PageSourceSearch

https://www.holmanindustries.com.au/wp-content/cache/autoptimize/j…ptimize_485ea6d8ca32fd4ef869dad8f9d6b8a6.js

js holmanindustries.com.au collected 2026-09-24 09:50:29 UTC 1,101,763 bytes, 2,471 lines download raw bytes

1/*!
2 * jQuery Migrate - v3.4.1 - 2023-02-23T15:31Z
3 * Copyright OpenJS Foundation and other contributors
4 */
5(function(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],function(jQuery){return factory(jQuery,window);});}else if(typeof module==="object"&&module.exports){module.exports=factory(require("jquery"),window);}else{factory(jQuery,window);}})(function(jQuery,window){"use strict";jQuery.migrateVersion="3.4.1";function compareVersions(v1,v2){var i,rVersionParts=/^(\d+)\.(\d+)\.(\d+)/,v1p=rVersionParts.exec(v1)||[],v2p=rVersionParts.exec(v2)||[];for(i=1;i<=3;i++){if(+v1p[i]>+v2p[i]){return 1;}
6if(+v1p[i]<+v2p[i]){return-1;}}
7return 0;}
8function jQueryVersionSince(version){return compareVersions(jQuery.fn.jquery,version)>=0;}
9var disabledPatches=Object.create(null);jQuery.migrateDisablePatches=function(){var i;for(i=0;i<arguments.length;i++){disabledPatches[arguments[i]]=true;}};jQuery.migrateEnablePatches=function(){var i;for(i=0;i<arguments.length;i++){delete disabledPatches[arguments[i]];}};jQuery.migrateIsPatchEnabled=function(patchCode){return!disabledPatches[patchCode];};(function(){if(!window.console||!window.console.log){return;}
10if(!jQuery||!jQueryVersionSince("3.0.0")||jQueryVersionSince("5.0.0")){window.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED");}
11if(jQuery.migrateWarnings){window.console.log("JQMIGRATE: Migrate plugin loaded multiple times");}
12window.console.log("JQMIGRATE: Migrate is installed"+
13(jQuery.migrateMute?"":" with logging active")+", version "+jQuery.migrateVersion);})();var warnedAbout={};jQuery.migrateDeduplicateWarnings=true;jQuery.migrateWarnings=[];if(jQuery.migrateTrace===undefined){jQuery.migrateTrace=true;}
14jQuery.migrateReset=function(){warnedAbout={};jQuery.migrateWarnings.length=0;};function migrateWarn(code,msg){var console=window.console;if(jQuery.migrateIsPatchEnabled(code)&&(!jQuery.migrateDeduplicateWarnings||!warnedAbout[msg])){warnedAbout[msg]=true;jQuery.migrateWarnings.push(msg+" ["+code+"]");if(console&&console.warn&&!jQuery.migrateMute){console.warn("JQMIGRATE: "+msg);if(jQuery.migrateTrace&&console.trace){console.trace();}}}}
15function migrateWarnProp(obj,prop,value,code,msg){Object.defineProperty(obj,prop,{configurable:true,enumerable:true,get:function(){migrateWarn(code,msg);return value;},set:function(newValue){migrateWarn(code,msg);value=newValue;}});}
16function migrateWarnFuncInternal(obj,prop,newFunc,code,msg){var finalFunc,origFunc=obj[prop];obj[prop]=function(){if(msg){migrateWarn(code,msg);}
17finalFunc=jQuery.migrateIsPatchEnabled(code)?newFunc:(origFunc||jQuery.noop);return finalFunc.apply(this,arguments);};}
18function migratePatchAndWarnFunc(obj,prop,newFunc,code,msg){if(!msg){throw new Error("No warning message provided");}
19return migrateWarnFuncInternal(obj,prop,newFunc,code,msg);}
20function migratePatchFunc(obj,prop,newFunc,code){return migrateWarnFuncInternal(obj,prop,newFunc,code);}
21if(window.document.compatMode==="BackCompat"){migrateWarn("quirks","jQuery is not compatible with Quirks Mode");}
22var findProp,class2type={},oldInit=jQuery.fn.init,oldFind=jQuery.find,rattrHashTest=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,rattrHashGlob=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;migratePatchFunc(jQuery.fn,"init",function(arg1){var args=Array.prototype.slice.call(arguments);if(jQuery.migrateIsPatchEnabled("selector-empty-id")&&typeof arg1==="string"&&arg1==="#"){migrateWarn("selector-empty-id","jQuery( '#' ) is not a valid selector");args[0]=[];}
23return oldInit.apply(this,args);},"selector-empty-id");jQuery.fn.init.prototype=jQuery.fn;migratePatchFunc(jQuery,"find",function(selector){var args=Array.prototype.slice.call(arguments);if(typeof selector==="string"&&rattrHashTest.test(selector)){try{window.document.querySelector(selector);}catch(err1){selector=selector.replace(rattrHashGlob,function(_,attr,op,value){return"["+attr+op+"\""+value+"\"]";});try{window.document.querySelector(selector);migrateWarn("selector-hash","Attribute selector with '#' must be quoted: "+args[0]);args[0]=selector;}catch(err2){migrateWarn("selector-hash","Attribute selector with '#' was not fixed: "+args[0]);}}}
24return oldFind.apply(this,args);},"selector-hash");for(findProp in oldFind){if(Object.prototype.hasOwnProperty.call(oldFind,findProp)){jQuery.find[findProp]=oldFind[findProp];}}
25migratePatchAndWarnFunc(jQuery.fn,"size",function(){return this.length;},"size","jQuery.fn.size() is deprecated and removed; use the .length property");migratePatchAndWarnFunc(jQuery,"parseJSON",function(){return JSON.parse.apply(null,arguments);},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse");migratePatchAndWarnFunc(jQuery,"holdReady",jQuery.holdReady,"holdReady","jQuery.holdReady is deprecated");migratePatchAndWarnFunc(jQuery,"unique",jQuery.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort");migrateWarnProp(jQuery.expr,"filters",jQuery.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos");migrateWarnProp(jQuery.expr,":",jQuery.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos");if(jQueryVersionSince("3.1.1")){migratePatchAndWarnFunc(jQuery,"trim",function(text){return text==null?"":(text+"").replace(rtrim,"$1");},"trim","jQuery.trim is deprecated; use String.prototype.trim");}
26if(jQueryVersionSince("3.2.0")){migratePatchAndWarnFunc(jQuery,"nodeName",function(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();},"nodeName","jQuery.nodeName is deprecated");migratePatchAndWarnFunc(jQuery,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray");}
27if(jQueryVersionSince("3.3.0")){migratePatchAndWarnFunc(jQuery,"isNumeric",function(obj){var type=typeof obj;return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj));},"isNumeric","jQuery.isNumeric() is deprecated");jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_,name){class2type["[object "+name+"]"]=name.toLowerCase();});
27migratePatchAndWarnFunc(jQuery,"type",function(obj){if(obj==null){return obj+"";}
28return typeof obj==="object"||typeof obj==="function"?class2type[Object.prototype.toString.call(obj)]||"object":typeof obj;},"type","jQuery.type is deprecated");migratePatchAndWarnFunc(jQuery,"isFunction",function(obj){return typeof obj==="function";},"isFunction","jQuery.isFunction() is deprecated");migratePatchAndWarnFunc(jQuery,"isWindow",function(obj){return obj!=null&&obj===obj.window;},"isWindow","jQuery.isWindow() is deprecated");}
29if(jQuery.ajax){var oldAjax=jQuery.ajax,rjsonp=/(=)\?(?=&|$)|\?\?/;migratePatchFunc(jQuery,"ajax",function(){var jQXHR=oldAjax.apply(this,arguments);if(jQXHR.promise){migratePatchAndWarnFunc(jQXHR,"success",jQXHR.done,"jqXHR-methods","jQXHR.success is deprecated and removed");migratePatchAndWarnFunc(jQXHR,"error",jQXHR.fail,"jqXHR-methods","jQXHR.error is deprecated and removed");migratePatchAndWarnFunc(jQXHR,"complete",jQXHR.always,"jqXHR-methods","jQXHR.complete is deprecated and removed");}
30return jQXHR;},"jqXHR-methods");if(!jQueryVersionSince("4.0.0")){jQuery.ajaxPrefilter("+json",function(s){if(s.jsonp!==false&&(rjsonp.test(s.url)||typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data))){migrateWarn("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated");}});}}
31var oldRemoveAttr=jQuery.fn.removeAttr,oldToggleClass=jQuery.fn.toggleClass,rmatchNonSpace=/\S+/g;migratePatchFunc(jQuery.fn,"removeAttr",function(name){var self=this,patchNeeded=false;jQuery.each(name.match(rmatchNonSpace),function(_i,attr){if(jQuery.expr.match.bool.test(attr)){self.each(function(){if(jQuery(this).prop(attr)!==false){patchNeeded=true;return false;}});}
32if(patchNeeded){migrateWarn("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+attr);self.prop(attr,false);}});return oldRemoveAttr.apply(this,arguments);},"removeAttr-bool");migratePatchFunc(jQuery.fn,"toggleClass",function(state){if(state!==undefined&&typeof state!=="boolean"){return oldToggleClass.apply(this,arguments);}
33migrateWarn("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated");return this.each(function(){var className=this.getAttribute&&this.getAttribute("class")||"";if(className){jQuery.data(this,"__className__",className);}
34if(this.setAttribute){this.setAttribute("class",className||state===false?"":jQuery.data(this,"__className__")||"");}});},"toggleClass-bool");function camelCase(string){return string.replace(/-([a-z])/g,function(_,letter){return letter.toUpperCase();});}
35var origFnCss,internalCssNumber,internalSwapCall=false,ralphaStart=/^[a-z]/,rautoPx=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;if(jQuery.swap){jQuery.each(["height","width","reliableMarginRight"],function(_,name){var oldHook=jQuery.cssHooks[name]&&jQuery.cssHooks[name].get;if(oldHook){jQuery.cssHooks[name].get=function(){var ret;internalSwapCall=true;ret=oldHook.apply(this,arguments);internalSwapCall=false;return ret;};}});}
36migratePatchFunc(jQuery,"swap",function(elem,options,callback,args){var ret,name,old={};if(!internalSwapCall){migrateWarn("swap","jQuery.swap() is undocumented and deprecated");}
37for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}
38ret=callback.apply(elem,args||[]);for(name in options){elem.style[name]=old[name];}
39return ret;},"swap");if(jQueryVersionSince("3.4.0")&&typeof Proxy!=="undefined"){jQuery.cssProps=new Proxy(jQuery.cssProps||{},{set:function(){migrateWarn("cssProps","jQuery.cssProps is deprecated");return Reflect.set.apply(this,arguments);}});}
40if(jQueryVersionSince("4.0.0")){internalCssNumber={animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true};if(typeof Proxy!=="undefined"){jQuery.cssNumber=new Proxy(internalCssNumber,{get:function(){migrateWarn("css-number","jQuery.cssNumber is deprecated");return Reflect.get.apply(this,arguments);},set:function(){migrateWarn("css-number","jQuery.cssNumber is deprecated");return Reflect.set.apply(this,arguments);}});}else{jQuery.cssNumber=internalCssNumber;}}else{internalCssNumber=jQuery.cssNumber;}
41function isAutoPx(prop){return ralphaStart.test(prop)&&rautoPx.test(prop[0].toUpperCase()+prop.slice(1));}
42origFnCss=jQuery.fn.css;migratePatchFunc(jQuery.fn,"css",function(name,value){var camelName,origThis=this;if(name&&typeof name==="object"&&!Array.isArray(name)){jQuery.each(name,function(n,v){jQuery.fn.css.call(origThis,n,v);});return this;}
43if(typeof value==="number"){camelName=camelCase(name);if(!isAutoPx(camelName)&&!internalCssNumber[camelName]){migrateWarn("css-number","Number-typed values are deprecated for jQuery.fn.css( \""+
44name+"\", value )");}}
45return origFnCss.apply(this,arguments);},"css-number");var origData=jQuery.data;migratePatchFunc(jQuery,"data",function(elem,name,value){var curData,sameKeys,key;if(name&&typeof name==="object"&&arguments.length===2){curData=jQuery.hasData(elem)&&origData.call(this,elem);sameKeys={};for(key in name){if(key!==camelCase(key)){migrateWarn("data-camelCase","jQuery.data() always sets/gets camelCased names: "+key);curData[key]=name[key];}else{sameKeys[key]=name[key];}}
46origData.call(this,elem,sameKeys);return name;}
47if(name&&typeof name==="string"&&name!==camelCase(name)){curData=jQuery.hasData(elem)&&origData.call(this,elem);if(curData&&name in curData){migrateWarn("data-camelCase","jQuery.data() always sets/gets camelCased names: "+name);if(arguments.length>2){curData[name]=value;}
48return curData[name];}}
49return origData.apply(this,arguments);},"data-camelCase");if(jQuery.fx){var intervalValue,intervalMsg,oldTweenRun=jQuery.Tween.prototype.run,linearEasing=function(pct){return pct;};migratePatchFunc(jQuery.Tween.prototype,"run",function(){if(jQuery.easing[this.easing].length>1){migrateWarn("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument");jQuery.easing[this.easing]=linearEasing;}
50oldTweenRun.apply(this,arguments);},"easing-one-arg");intervalValue=jQuery.fx.interval;intervalMsg="jQuery.fx.interval is deprecated";if(window.requestAnimationFrame){Object.defineProperty(jQuery.fx,"interval",{configurable:true,enumerable:true,get:function(){if(!window.document.hidden){migrateWarn("fx-interval",intervalMsg);}
51if(!jQuery.migrateIsPatchEnabled("fx-interval")){return intervalValue;}
52return intervalValue===undefined?13:intervalValue;},set:function(newValue){migrateWarn("fx-interval",intervalMsg);intervalValue=newValue;}});}}
53var oldLoad=jQuery.fn.load,oldEventAdd=jQuery.event.add,originalFix=jQuery.event.fix;jQuery.event.props=[];jQuery.event.fixHooks={};migrateWarnProp(jQuery.event.props,"concat",jQuery.event.props.concat,"event-old-pat
53ch","jQuery.event.props.concat() is deprecated and removed");migratePatchFunc(jQuery.event,"fix",function(originalEvent){var event,type=originalEvent.type,fixHook=this.fixHooks[type],props=jQuery.event.props;if(props.length){migrateWarn("event-old-patch","jQuery.event.props are deprecated and removed: "+props.join());while(props.length){jQuery.event.addProp(props.pop());}}
54if(fixHook&&!fixHook._migrated_){fixHook._migrated_=true;migrateWarn("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+type);if((props=fixHook.props)&&props.length){while(props.length){jQuery.event.addProp(props.pop());}}}
55event=originalFix.call(this,originalEvent);return fixHook&&fixHook.filter?fixHook.filter(event,originalEvent):event;},"event-old-patch");migratePatchFunc(jQuery.event,"add",function(elem,types){if(elem===window&&types==="load"&&window.document.readyState==="complete"){migrateWarn("load-after-event","jQuery(window).on('load'...) called after load event occurred");}
56return oldEventAdd.apply(this,arguments);},"load-after-event");jQuery.each(["load","unload","error"],function(_,name){migratePatchFunc(jQuery.fn,name,function(){var args=Array.prototype.slice.call(arguments,0);if(name==="load"&&typeof args[0]==="string"){return oldLoad.apply(this,args);}
57migrateWarn("shorthand-removed-v3","jQuery.fn."+name+"() is deprecated");args.splice(0,0,name);if(arguments.length){return this.on.apply(this,args);}
58this.triggerHandler.apply(this,args);return this;},"shorthand-removed-v3");});jQuery.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(_i,name){migratePatchAndWarnFunc(jQuery.fn,name,function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);},"shorthand-deprecated-v3","jQuery.fn."+name+"() event shorthand is deprecated");});jQuery(function(){jQuery(window.document).triggerHandler("ready");});jQuery.event.special.ready={setup:function(){if(this===window.document){migrateWarn("ready-event","'ready' event is deprecated");}}};migratePatchAndWarnFunc(jQuery.fn,"bind",function(types,data,fn){return this.on(types,null,data,fn);},"pre-on-methods","jQuery.fn.bind() is deprecated");migratePatchAndWarnFunc(jQuery.fn,"unbind",function(types,fn){return this.off(types,null,fn);},"pre-on-methods","jQuery.fn.unbind() is deprecated");migratePatchAndWarnFunc(jQuery.fn,"delegate",function(selector,types,data,fn){return this.on(types,selector,data,fn);},"pre-on-methods","jQuery.fn.delegate() is deprecated");migratePatchAndWarnFunc(jQuery.fn,"undelegate",function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);},"pre-on-methods","jQuery.fn.undelegate() is deprecated");migratePatchAndWarnFunc(jQuery.fn,"hover",function(fnOver,fnOut){return this.on("mouseenter",fnOver).on("mouseleave",fnOut||fnOver);},"pre-on-methods","jQuery.fn.hover() is deprecated");var rxhtmlTag=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,makeMarkup=function(html){var doc=window.document.implementation.createHTMLDocument("");doc.body.innerHTML=html;return doc.body&&doc.body.innerHTML;},warnIfChanged=function(html){var changed=html.replace(rxhtmlTag,"<$1></$2>");if(changed!==html&&makeMarkup(html)!==makeMarkup(changed)){migrateWarn("self-closed-tags","HTML tags must be properly nested and closed: "+html);}};jQuery.UNSAFE_restoreLegacyHtmlPrefilter=function(){jQuery.migrateEnablePatches("self-closed-tags");};migratePatchFunc(jQuery,"htmlPrefilter",function(html){warnIfChanged(html);return html.replace(rxhtmlTag,"<$1></$2>");},"self-closed-tags");jQuery.migrateDisablePatches("self-closed-tags");var origOffset=jQuery.fn.offset;migratePatchFunc(jQuery.fn,"offset",function(){var elem=this[0];if(elem&&(!elem.nodeType||!elem.getBoundingClientRect)){migrateWarn("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element");return arguments.length?this:undefined;}
59return origOffset.apply(this,arguments);},"offset-valid-elem");if(jQuery.ajax){var origParam=jQuery.param;migratePatchFunc(jQuery,"param",function(data,traditional){var ajaxTraditional=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional;if(traditional===undefined&&ajaxTraditional){migrateWarn("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional");traditional=ajaxTraditional;}
60return origParam.call(this,data,traditional);},"param-ajax-traditional");}
61migratePatchAndWarnFunc(jQuery.fn,"andSelf",jQuery.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()");if(jQuery.Deferred){var oldDeferred=jQuery.Deferred,tuples=[["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory")]];migratePatchFunc(jQuery,"Deferred",function(func){var deferred=oldDeferred(),promise=deferred.promise();function newDeferredPipe(){var fns=arguments;return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=typeof fns[i]==="function"&&fns[i];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&typeof returned.promise==="function"){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify);}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments);}});});fns=null;}).promise();}
62migratePatchAndWarnFunc(deferred,"pipe",newDeferredPipe,"deferred-pipe","deferred.pipe() is deprecated");migratePatchAndWarnFunc(promise,"pipe",newDeferredPipe,"deferred-pipe","deferred.pipe() is deprecated");if(func){func.call(deferred,deferred);}
63return deferred;},"deferred-pipe");jQuery.Deferred.exceptionHook=oldDeferred.exceptionHook;}
64return jQuery;});
65;
66/*!
67 * jQuery blockUI plugin
68 * Version 2.70.0-2014.11.23
69 * Requires jQuery v1.7 or later
70 *
71 * Examples at: http://malsup.com/jquery/block/
72 * Copyright (c) 2007-2013 M. Alsup
73 * Dual licensed under the MIT and GPL licenses:
74 * http://www.opensource.org/licenses/mit-license.php
75 * http://www.gnu.org/licenses/gpl.html
76 *
77 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
78 */
79(function(){"use strict";function setup($){$.fn._fadeIn=$.fn.fadeIn;var noOp=$.noop||function(){};var msie=/MSIE/.test(navigator.userAgent);var ie6=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent);var mode=document.documentMode||0;var setExpr='function'===typeof document.createElement('div').style.setExpression?document.createElement('div').style.setExpression:false;$.blockUI=function(opts){install(window,opts);};$.unblockUI=function(opts){remove(window,opts);};$.growlUI=function(title,message,timeout,onClose){var $m=$('<div class="growlUI"></div>');if(title)$m.append('<h1>'+title+'</h1>');if(message)$m.append('<h2>'+message+'</h2>');if(timeout===undefined)timeout=3000;var callBlock=function(opts){opts=opts||{};$.blockUI({message:$m,fadeIn:typeof opts.fadeIn!=='undefined'?opts.fadeIn:700,fadeOut:typeof opts.fadeOut!=='undefined'?opts.fadeOut:1000,timeout:typeof opts.timeout!=='undefined'?opts.timeout:timeout,centerY:false,showOverlay:false,onUnblock:onClose,css:$.blockUI.defaults.growlCSS});};callBlock();var nonmousedOpacity=$m.css('opacity');$m.on('mouseover',function(){callBlock({fadeIn:0,timeout:30000});var displayBlock=$('.blockMsg');displayBlock.stop();displayBlock.fadeTo(300,1);}).on('mouseout',function(){$('.blockMsg').fadeOut(1000);});};$.fn.block=function(opts){if(this[0]===window){$.blockUI(opts);return this;}
80var fullOpts=$.extend({},$.blockUI.defaults,opts||{});this.each(function(){var $el=$(this);if(fullOpts.ignoreIfBlocked&&$el.data('blockUI.isBlocked'))
81return;$el.unblock({fadeOut:0});});return this.each(function(){if($.css(this,'position')=='static'){this.style.position='relative';$(this).data('blockUI.static',true);}
82this.style.zoom=1;install(this,opts);});};$.fn.unblock=function(opts){if(this[0]===window){$.unblockUI(opts);return this;}
83return this.each(function(){remove(this,opts);});};$.blockUI.version=2.70;$.blockUI.defaults={message:'<h1>Please wait...</h1>',title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:'30%',top:'40%',left:'35%',textAlign:'center',color:'#000',border:'3px solid #aaa',backgroundColor:'#fff',cursor:'wait'},themedCSS:{width:'30%',top:'40%',left:'35%'},overlayCSS:{backgroundColor:'#000',opacity:0.6,cursor:'wait'},cursorReset:'default',growlCSS:{width:'350px',top:'10px',left:'',right:'10px',border:'none',padding:'5px',opacity:0.6,cursor:'default',color:'#fff',backgroundColor:'#000','-webkit-border-radius':'10px','-moz-border-radius':'10px','border-radius':'10px'},iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank',forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,focusableElements:':input:enabled:visible',onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:'blockMsg',ignoreIfBlocked:false};var pageBlock=null;var pageBlockEls=[];function install(el,opts){var css,themedCSS;var full=(el==window);var msg=(opts&&opts.message!==undefined?opts.message:undefined);opts=$.extend({},$.blockUI.defaults,opts||{});if(opts.ignoreIfBlocked&&$(el).data('blockUI.isBlocked'))
84return;opts.overlayCSS=$.extend({},$.blockUI.defaults.overlayCSS,opts.overlayCSS||{});css=$.extend({},$.blockUI.defaults.css,opts.css||{});if(opts.onOverlayClick)
85opts.overlayCSS.cursor='pointer';themedCSS=$.extend({},$.blockUI.defaults.themedCSS,opts.themedCSS||{});msg=msg===undefined?opts.message:msg;if(full&&pageBlock)
86remove(window,{fadeOut:0});
vendor: 7,413 bytes, lines 86-162
86if(msg&&typeof msg!='string'&&(msg.parentNode||msg.jquery)){var node=msg.jquery?msg[0]:msg;var data={};$(el).data('blockUI.history',data);data.el=node;data.parent=node.parentNode;data.display=node.style.display;data.position=node.style.position;if(data.parent)
87data.parent.removeChild(node);}
88$(el).data('blockUI.onUnblock',opts.onUnblock);var z=opts.baseZ;var lyr1,lyr2,lyr3,s;if(msie||opts.forceIframe)
89lyr1=$('<iframe class="blockUI" style="z-index:'+(z++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');else
90lyr1=$('<div class="blockUI" style="display:none"></div>');if(opts.theme)
91lyr2=$('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(z++)+';display:none"></div>');else
92lyr2=$('<div class="blockUI blockOverlay" style="z-index:'+(z++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');if(opts.theme&&full){s='<div class="blockUI '+opts.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';if(opts.title){s+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title||'&nbsp;')+'</div>';}
93s+='<div class="ui-widget-content ui-dialog-content"></div>';s+='</div>';}
94else if(opts.theme){s='<div class="blockUI '+opts.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';if(opts.title){s+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title||'&nbsp;')+'</div>';}
95s+='<div class="ui-widget-content ui-dialog-content"></div>';s+='</div>';}
96else if(full){s='<div class="blockUI '+opts.blockMsgClass+' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';}
97else{s='<div class="blockUI '+opts.blockMsgClass+' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';}
98lyr3=$(s);if(msg){if(opts.theme){lyr3.css(themedCSS);lyr3.addClass('ui-widget-content');}
99else
100lyr3.css(css);}
101if(!opts.theme)
102lyr2.css(opts.overlayCSS);lyr2.css('position',full?'fixed':'absolute');if(msie||opts.forceIframe)
103lyr1.css('opacity',0.0);var layers=[lyr1,lyr2,lyr3],$par=full?$('body'):$(el);$.each(layers,function(){this.appendTo($par);});if(opts.theme&&opts.draggable&&$.fn.draggable){lyr3.draggable({handle:'.ui-dialog-titlebar',cancel:'li'});}
104var expr=setExpr&&(!$.support.boxModel||$('object,embed',full?null:el).length>0);if(ie6||expr){if(full&&opts.allowBodyStretch&&$.support.boxModel)
105$('html,body').css('height','100%');if((ie6||!$.support.boxModel)&&!full){var t=sz(el,'borderTopWidth'),l=sz(el,'borderLeftWidth');var fixT=t?'(0 - '+t+')':0;var fixL=l?'(0 - '+l+')':0;}
106$.each(layers,function(i,o){var s=o[0].style;s.position='absolute';if(i<2){if(full)
107s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');else
108s.setExpression('height','this.parentNode.offsetHeight + "px"');if(full)
109s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');else
110s.setExpression('width','this.parentNode.offsetWidth + "px"');if(fixL)s.setExpression('left',fixL);if(fixT)s.setExpression('top',fixT);}
111else if(opts.centerY){if(full)s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');s.marginTop=0;}
112else if(!opts.centerY&&full){var top=(opts.css&&opts.css.top)?parseInt(opts.css.top,10):0;var expression='((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';s.setExpression('top',expression);}});}
113if(msg){if(opts.theme)
114lyr3.find('.ui-widget-content').append(msg);else
115lyr3.append(msg);if(msg.jquery||msg.nodeType)
116$(msg).show();}
117if((msie||opts.forceIframe)&&opts.showOverlay)
118lyr1.show();if(opts.fadeIn){var cb=opts.onBlock?opts.onBlock:noOp;var cb1=(opts.showOverlay&&!msg)?cb:noOp;var cb2=msg?cb:noOp;if(opts.showOverlay)
119lyr2._fadeIn(opts.fadeIn,cb1);if(msg)
120lyr3._fadeIn(opts.fadeIn,cb2);}
121else{if(opts.showOverlay)
122lyr2.show();if(msg)
123lyr3.show();if(opts.onBlock)
124opts.onBlock.bind(lyr3)();}
125bind(1,el,opts);if(full){pageBlock=lyr3[0];pageBlockEls=$(opts.focusableElements,pageBlock);if(opts.focusInput)
126setTimeout(focus,20);}
127else
128center(lyr3[0],opts.centerX,opts.centerY);if(opts.timeout){var to=setTimeout(function(){if(full)
129$.unblockUI(opts);else
130$(el).unblock(opts);},opts.timeout);$(el).data('blockUI.timeout',to);}}
131function remove(el,opts){var count;var full=(el==window);var $el=$(el);var data=$el.data('blockUI.history');var to=$el.data('blockUI.timeout');if(to){clearTimeout(to);$el.removeData('blockUI.timeout');}
132opts=$.extend({},$.blockUI.defaults,opts||{});bind(0,el,opts);if(opts.onUnblock===null){opts.onUnblock=$el.data('blockUI.onUnblock');$el.removeData('blockUI.onUnblock');}
133var els;if(full)
134els=$(document.body).children().filter('.blockUI').add('body > .blockUI');else
135els=$el.find('>.blockUI');if(opts.cursorReset){if(els.length>1)
136els[1].style.cursor=opts.cursorReset;if(els.length>2)
137els[2].style.cursor=opts.cursorReset;}
138if(full)
139pageBlock=pageBlockEls=null;if(opts.fadeOut){count=els.length;els.stop().fadeOut(opts.fadeOut,function(){if(--count===0)
140reset(els,data,opts,el);});}
141else
142reset(els,data,opts,el);}
143function reset(els,data,opts,el){var $el=$(el);if($el.data('blockUI.isBlocked'))
144return;els.each(function(i,o){if(this.parentNode)
145this.parentNode.removeChild(this);});if(data&&data.el){data.el.style.display=data.display;data.el.style.position=data.position;data.el.style.cursor='default';if(data.parent)
146data.parent.appendChild(data.el);$el.removeData('blockUI.history');}
147if($el.data('blockUI.static')){$el.css('position','static');}
148if(typeof opts.onUnblock=='function')
149opts.onUnblock(el,opts);var body=$(document.body),w=body.width(),cssW=body[0].style.width;body.width(w-1).width(w);body[0].style.width=cssW;}
150function bind(b,el,opts){var full=el==window,$el=$(el);if(!b&&(full&&!pageBlock||!full&&!$el.data('blockUI.isBlocked')))
151return;$el.data('blockUI.isBlocked',b);if(!full||!opts.bindEvents||(b&&!opts.showOverlay))
152return;var events='mousedown mouseup keydown keypress keyup touchstart touchend touchmove';if(b)
153$(document).on(events,opts,handler);else
154$(document).off(events,handler);}
155function handler(e){if(e.type==='keydown'&&e.keyCode&&e.keyCode==9){if(pageBlock&&e.data.constrainTabKey){var els=pageBlockEls;var fwd=!e.shiftKey&&e.target===els[els.length-1];var back=e.shiftKey&&e.target===els[0];if(fwd||back){setTimeout(function(){focus(back);},10);return false;}}}
156var opts=e.data;var target=$(e.target);if(target.hasClass('blockOverlay')&&opts.onOverlayClick)
157opts.onOverlayClick(e);if(target.parents('div.'+opts.blockMsgClass).length>0)
158return true;return target.parents().children().filter('div.blockUI').length===0;}
159function focus(back){if(!pageBlockEls)
160return;var e=pageBlockEls[back===true?pageBlockEls.length-1:0];if(e)
161e.trigger('focus');}
162function center(el,x,y){var p=el.parentNode,s=el.style;var l=((p.offsetWidth-el.offsetWidth)/2)-sz(p,'borderLeftWidth');var t=((p.offsetHeight-el.offsetHeight)/2)-sz(p,'borderTopWidth');
162if(x)s.left=l>0?(l+'px'):'0';if(y)s.top=t>0?(t+'px'):'0';}
163function sz(el,p){return parseInt($.css(el,p),10)||0;}}
164if(typeof define==='function'&&define.amd&&define.amd.jQuery){define(['jquery'],setup);}else{setup(jQuery);}})();
165jQuery(function($){if(typeof wc_add_to_cart_params==='undefined'){return false;}
166var AddToCartHandler=function(){this.requests=[];this.addRequest=this.addRequest.bind(this);this.run=this.run.bind(this);this.$liveRegion=this.createLiveRegion();$(document.body).on('click','.add_to_cart_button:not(.wc-interactive)',{addToCartHandler:this},this.onAddToCart).on('keydown','.add_to_cart_button:not(.wc-interactive)',{addToCartHandler:this},(e)=>{if(e.key===' '){e.preventDefault();e.target.click();}}).on('click','.remove_from_cart_button',{addToCartHandler:this},this.onRemoveFromCart).on('keydown','.remove_from_cart_button',this.onKeydownRemoveFromCart).on('added_to_cart',{addToCartHandler:this},this.onAddedToCart).on('removed_from_cart',{addToCartHandler:this},this.onRemovedFromCart).on('ajax_request_not_sent.adding_to_cart',this.updateButton);};AddToCartHandler.prototype.addRequest=function(request){this.requests.push(request);if(1===this.requests.length){this.run();}};AddToCartHandler.prototype.run=function(){var requestManager=this,originalCallback=requestManager.requests[0].complete;requestManager.requests[0].complete=function(){if(typeof originalCallback==='function'){originalCallback();}
167requestManager.requests.shift();if(requestManager.requests.length>0){requestManager.run();}};$.ajax(this.requests[0]);};AddToCartHandler.prototype.onAddToCart=function(e){var $thisbutton=$(this);if($thisbutton.is('.ajax_add_to_cart')){if(!$thisbutton.attr('data-product_id')){return true;}
168e.data.addToCartHandler.$liveRegion.text('').removeAttr('aria-relevant');e.preventDefault();$thisbutton.removeClass('added');$thisbutton.addClass('loading');if(false===$(document.body).triggerHandler('should_send_ajax_request.adding_to_cart',[$thisbutton])){$(document.body).trigger('ajax_request_not_sent.adding_to_cart',[false,false,$thisbutton]);return true;}
169var data={};$.each($thisbutton.data(),function(key,value){data[key]=value;});$.each($thisbutton[0].dataset,function(key,value){data[key]=value;});$(document.body).trigger('adding_to_cart',[$thisbutton,data]);e.data.addToCartHandler.addRequest({type:'POST',url:wc_add_to_cart_params.wc_ajax_url.toString().replace('%%endpoint%%','add_to_cart'),data:data,success:function(response){if(!response){return;}
170if(response.error&&response.product_url){window.location=response.product_url;return;}
171if(wc_add_to_cart_params.cart_redirect_after_add==='yes'){window.location=wc_add_to_cart_params.cart_url;return;}
172$(document.body).trigger('added_to_cart',[response.fragments,response.cart_hash,$thisbutton]);},dataType:'json'});}};AddToCartHandler.prototype.onRemoveFromCart=function(e){var $thisbutton=$(this),$row=$thisbutton.closest('.woocommerce-mini-cart-item');e.data.addToCartHandler.$liveRegion.text('').removeAttr('aria-relevant');e.preventDefault();$row.block({message:null,overlayCSS:{opacity:0.6}});e.data.addToCartHandler.addRequest({type:'POST',url:wc_add_to_cart_params.wc_ajax_url.toString().replace('%%endpoint%%','remove_from_cart'),data:{cart_item_key:$thisbutton.data('cart_item_key')},success:function(response){if(!response||!response.fragments){window.location=$thisbutton.attr('href');return;}
173$(document.body).trigger('removed_from_cart',[response.fragments,response.cart_hash,$thisbutton]);},error:function(){window.location=$thisbutton.attr('href');return;},dataType:'json'});};AddToCartHandler.prototype.onKeydownRemoveFromCart=function(event){if(event.key===' '){event.preventDefault();$(this).trigger('click');}};AddToCartHandler.prototype.updateButton=function(e,fragments,cart_hash,$button){$button=typeof $button==='undefined'?false:$button;if($button){$button.removeClass('loading');if(fragments){$button.addClass('added');}
174if(fragments&&!wc_add_to_cart_params.is_cart&&$button.parent().find('.added_to_cart').length===0){var anchor=document.createElement('a');anchor.href=wc_add_to_cart_params.cart_url;anchor.className='added_to_cart wc-forward';anchor.title=wc_add_to_cart_params.i18n_view_cart;anchor.textContent=wc_add_to_cart_params.i18n_view_cart;$button.after(anchor);}
175$(document.body).trigger('wc_cart_button_updated',[$button]);}};AddToCartHandler.prototype.updateFragments=function(e,fragments){if(fragments){$.each(fragments,function(key){$(key).addClass('updating').fadeTo('400','0.6').block({message:null,overlayCSS:{opacity:0.6}});});$.each(fragments,function(key,value){$(key).replaceWith(value);$(key).stop(true).css('opacity','1').unblock();});$(document.body).trigger('wc_fragments_loaded');}};AddToCartHandler.prototype.alertCartUpdated=function(e,fragments,cart_hash,$button){$button=typeof $button==='undefined'?false:$button;if($button){var message=$button.data('success_message');
175if(!message){return;}
176e.data.addToCartHandler.$liveRegion.delay(1000).text(message).attr('aria-relevant','all');}};AddToCartHandler.prototype.createLiveRegion=function(){var existingLiveRegion=$('.widget_shopping_cart_live_region');if(existingLiveRegion.length){return existingLiveRegion;}
177return $('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo('body');};AddToCartHandler.prototype.onAddedToCart=function(e,fragments,cart_hash,$button){e.data.addToCartHandler.updateButton(e,fragments,cart_hash,$button);e.data.addToCartHandler.updateFragments(e,fragments);e.data.addToCartHandler.alertCartUpdated(e,fragments,cart_hash,$button);};AddToCartHandler.prototype.onRemovedFromCart=function(e,fragments,cart_hash,$button){e.data.addToCartHandler.updateFragments(e,fragments);e.data.addToCartHandler.alertCartUpdated(e,fragments,cart_hash,$button);};new AddToCartHandler();});
178;
179/*! js-cookie v3.0.5 | MIT */
180(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){var current=global.Cookies;var exports=global.Cookies=factory();exports.noConflict=function(){global.Cookies=current;return exports;};})());})(this,(function(){'use strict';function assign(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){target[key]=source[key];}}
181return target}
182var defaultConverter={read:function(value){if(value[0]==='"'){value=value.slice(1,-1);}
183return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(value){return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init(converter,defaultAttributes){function set(name,value,attributes){if(typeof document==='undefined'){return}
184attributes=assign({},defaultAttributes,attributes);if(typeof attributes.expires==='number'){attributes.expires=new Date(Date.now()+attributes.expires*864e5);}
185if(attributes.expires){attributes.expires=attributes.expires.toUTCString();}
186name=encodeURIComponent(name).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var stringifiedAttributes='';for(var attributeName in attributes){if(!attributes[attributeName]){continue}
187stringifiedAttributes+='; '+attributeName;if(attributes[attributeName]===true){continue}
188stringifiedAttributes+='='+attributes[attributeName].split(';')[0];}
189return(document.cookie=name+'='+converter.write(value,name)+stringifiedAttributes)}
190function get(name){if(typeof document==='undefined'||(arguments.length&&!name)){return}
191var cookies=document.cookie?document.cookie.split('; '):[];var jar={};for(var i=0;i<cookies.length;i++){var parts=cookies[i].split('=');var value=parts.slice(1).join('=');try{var found=decodeURIComponent(parts[0]);jar[found]=converter.read(value,found);if(name===found){break}}catch(e){}}
192return name?jar[name]:jar}
193return Object.create({set,get,remove:function(name,attributes){set(name,'',assign({},attributes,{expires:-1}));},withAttributes:function(attributes){return init(this.converter,assign({},this.attributes,attributes))},withConverter:function(converter){return init(assign({},this.converter,converter),this.attributes)}},{attributes:{value:Object.freeze(defaultAttributes)},converter:{value:Object.freeze(converter)}})}
194var api=init(defaultConverter,{path:'/'});return api;}));
195(function($){'use strict';$(document).ready(function(){$('body').on('adding_to_cart',function(event,$button){if($button&&$button.hasClass('vc_gitem-link')){$button.addClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').addClass('vc-woocommerce-a
vendor: 10,404 bytes, lines 195-198
195dd-to-cart-loading').append($('<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>'));}}).on('added_to_cart',function(event,fragments,cart_hash,$button){if('undefined'===typeof($button)){$button=$('.vc-gitem-add-to-cart-loading-btn');}
196if($button&&$button.hasClass('vc_gitem-link')){$button.removeClass('vc-gitem-add-to-cart-loading-btn').parents('.vc_grid-item-mini').removeClass('vc-woocommerce-add-to-cart-loading').find('.vc_wc-load-add-to-loader-wrapper').remove();}});});})(window.jQuery);
197/*! This file is auto-generated */
198!function(n,t){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):(n="undefined"!=typeof globalThis?globalThis:n||self,r=n._,(e=n._=t()).noConflict=function(){return n._=r,e})}(this,function(){var n="1.13.8",t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},e=Array.prototype,V=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,P=e.push,f=e.slice,s=V.toString,q=V.hasOwnProperty,r="undefined"!=typeof ArrayBuffer,u="undefined"!=typeof DataView,U=Array.isArray,W=Object.keys,z=Object.create,L=r&&ArrayBuffer.isView,$=isNaN,C=isFinite,K=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],G=Math.pow(2,53)-1;function l(u,i){return i=null==i?u.length-1:+i,function(){for(var n=Math.max(arguments.length-i,0),t=Array(n),r=0;r<n;r++)t[r]=arguments[r+i];switch(i){case 0:return u.call(this,t);case 1:return u.call(this,arguments[0],t);case 2:return u.call(this,arguments[0],arguments[1],t)}for(var e=Array(i+1),r=0;r<i;r++)e[r]=arguments[r];return e[i]=t,u.apply(this,e)}}function i(n){var t=typeof n;return"function"==t||"object"==t&&!!n}function H(n){return void 0===n}function Q(n){return!0===n||!1===n||"[object Boolean]"===s.call(n)}function o(n){var t="[object "+n+"]";return function(n){return s.call(n)===t}}var X=o("String"),Y=o("Number"),Z=o("Date"),nn=o("RegExp"),tn=o("Error"),rn=o("Symbol"),en=o("ArrayBuffer"),a=o("Function"),t=t.document&&t.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof t?function(n){return"function"==typeof n||!1}:a,t=o("Object"),un=u&&(!/\[native code\]/.test(String(DataView))||t(new DataView(new ArrayBuffer(8)))),a="undefined"!=typeof Map&&t(new Map),u=o("DataView");var h=un?function(n){return null!=n&&p(n.getInt8)&&en(n.buffer)}:u,c=U||o("Array");function v(n,t){return null!=n&&q.call(n,t)}var on=o("Arguments"),an=(!function(){on(arguments)||(on=function(n){return v(n,"callee")})}(),on);function fn(n){return Y(n)&&$(n)}function cn(n){return function(){return n}}function ln(t){return function(n){n=t(n);return"number"==typeof n&&0<=n&&n<=G}}function sn(t){return function(n){return null==n?void 0:n[t]}}var y=sn("byteLength"),pn=ln(y),hn=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var vn=r?function(n){return L?L(n)&&!h(n):pn(n)&&hn.test(s.call(n))}:cn(!1),d=sn("length");function yn(n,t){t=function(t){for(var r={},n=t.length,e=0;e<n;++e)r[t[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(n){return r[n]=!0,t.push(n)}}}(t);var r=J.length,e=n.constructor,u=p(e)&&e.prototype||V,i="constructor";for(v(n,i)&&!t.contains(i)&&t.push(i);r--;)(i=J[r])in n&&n[i]!==u[i]&&!t.contains(i)&&t.push(i)}function g(n){if(!i(n))return[];if(W)return W(n);var t,r=[];for(t in n)v(n,t)&&r.push(t);return K&&yn(n,r),r}function dn(n,t){var r=g(t),e=r.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=r[i];if(t[o]!==u[o]||!(o in u))return!1}return!0}function b(n){return n instanceof b?n:this instanceof b?void(this._wrapped=n):new b(n)}function gn(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,y(n))}b.VERSION=n,b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var bn="[object DataView]";function m(n){if(!i(n))return[];var t,r=[];for(t in n)r.push(t);return K&&yn(n,r),r}function mn(e){var u=d(e);return function(n){if(null==n)return!1;var t=m(n);if(d(t))return!1;for(var r=0;r<u;r++)if(!p(n[e[r]]))return!1;return e!==wn||!p(n[jn])}}var jn="forEach",t=["clear","delete"],u=["get","has","set"],U=t.concat(jn,u),wn=t.concat(u),r=["add"].concat(t,jn,"has"),u=a?mn(U):o("Map"),t=a?mn(wn):o("WeakMap"),U=a?mn(r):o("Set"),a=o("WeakSet");function j(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=n[t[u]];return e}function _n(n){for(var t={},r=g(n),e=0,u=r.length;e<u;e++)t[n[r[e]]]=r[e];return t}function An(n){var t,r=[];for(t in n)p(n[t])&&r.push(t);return r.sort()}function xn(f,c){return function(n){var t=arguments.length;if(c&&(n=Object(n)),!(t<2||null==n))for(var r=1;r<t;r++)for(var e=arguments[r],u=f(e),i=u.length,o=0;o<i;o++){var a=u[o];c&&void 0!==n[a]||(n[a]=e[a])}return n}}var Sn=xn(m),w=xn(g),On=xn(m,!0);function Mn(n){var t;return i(n)?z?z(n):((t=function(){}).prototype=n,n=new t,t.prototype=null,n):{}}function En(n){return c(n)?n:[n]}function _(n){return b.toPath(n)}function Bn(n,t){for(var r=t.length,e=0;e<r;e++){if(null==n)return;n=n[t[e]]}return r?n:void 0}function Nn(n,t,r){n=Bn(n,_(t));return H(n)?r:n}function kn(n){return n}function A(t){return t=w({},t),function(n){return dn(n,t)}}function In(t){return t=_(t),function(n){return Bn(n,t)}}function x(u,i,n){if(void 0===i)return u;switch(null==n?3:n){case 1:return function(n){return u.call(i,n)};case 3:return function(n,t,r){return u.call(i,n,t,r)};case 4:return function(n,t,r,e){return u.call(i,n,t,r,e)}}return function(){return u.apply(i,arguments)}}function Tn(n,t,r){return null==n?kn:p(n)?x(n,t,r):(i(n)&&!c(n)?A:In)(n)}function Dn(n,t){return Tn(n,t,1/0)}function S(n,t,r){return b.iteratee!==Dn?b.iteratee(n,t):Tn(n,t,r)}function Rn(){}function Vn(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))}b.toPath=En,b.iteratee=Dn;var O=Date.now||function(){return(new Date).getTime()};function Fn(t){function r(n){return t[n]}var n="(?:"+g(t).join("|")+")",e=RegExp(n),u=RegExp(n,"g");return function(n){return e.test(n=null==n?"":""+n)?n.replace(u,r):n}}var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Pn=Fn(r),r=Fn(_n(r)),qn=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Un=/(.)^/,Wn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},zn=/\\|'|\r|\n|\u2028|\u2029/g;function Ln(n){return"\\"+Wn[n]}var $n=/^\s*(\w|\$)+\s*$/;var Cn=0;function Kn(n,t,r,e,u){return e instanceof t?(e=Mn(n.prototype),i(t=n.apply(e,u))?t:e):n.apply(r,u)}var M=l(function(u,i){function o(){for(var n=0,t=i.length,r=Array(t),e=0;e<t;e++)r[e]=i[e]===a?arguments[n++]:i[e];for(;n<arguments.length;)r.push(arguments[n++]);return Kn(u,o,this,this,r)}var a=M.placeholder;return o}),Jn=(M.placeholder=b,l(function(t,r,e){var u;if(p(t))return u=l(function(n){return Kn(t,u,r,this,e.concat(n))});throw new TypeError("Bind must be called on a function")})),E=ln(d);function B(n,t,r){t||0===t||(t=1/0);for(var e=[],u=0,i=0,o=d(n)||0,a=[];;){if(o<=i){if(a.length){var f=a.pop(),i=f.i,o=d(n=f.v);continue}break}f=n[i++];t<=a.length?e[u++]=f:E(f)&&(c(f)||an(f))?(a.push({i:i,v:n}),i=0,o=d(n=f)):r||(e[u++]=f)}return e}var Gn=l(function(n,t){var r=(t=B(t,!1,!1)).length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var e=t[r];n[e]=Jn(n[e],n)}return n});var Hn=l(function(n,t,r){return setTimeout(function(){return n.apply(null,r)},t)}),Qn=M(Hn,b,1);function Xn(n){return function(){return!n.apply(this,arguments)}}function Yn(n,t){var r;return function(){return 0<--n&&(r=t.apply(this,arguments)),n<=1&&(t=null),r}}var Zn=M(Yn,2);function nt(n,t,r){t=S(t,r);for(var e,u=g(n),i=0,o=u.length;i<o;i++)if(t(n[e=u[i]],e,n))return e}function tt(i){return function(n,t,r){t=S(t,r);for(var e=d(n),u=0<i?0:e-1;0<=u&&u<e;u+=i)if(t(n[u],u,n))return u;return-1}}var rt=tt(1),et=tt(-1);function ut(n,t,r,e){for(var u=(r=S(r,e,1))(t),i=0,o=d(n);i<o;){var a=Math.floor((i+o)/2);r(n[a])<u?i=a+1:o=a}return i}function it(i,o,a){return function(n,t,r){var e=0,u=d(n);if("number"==typeof r)0<i?e=0<=r?r:Math.max(r+u,e):u=0<=r?Math.min(r+1,u):r+u+1;else if(a&&r&&u)return n[r=a(n,t)]===t?r:-1;if(t!=t)return 0<=(r=o(f.call(n,e,u),fn))?r+e:-1;for(r=0<i?e:u-1;0<=r&&r<u;r+=i)if(n[r]===t)return r;return-1}}var ot=it(1,rt,ut),at=it(-1,et);function ft(n,t,r){t=(E(n)?rt:nt)(n,t,r);if(void 0!==t&&-1!==t)return n[t]}function N(n,t,r){if(t=x(t,r),E(n))for(u=0,i=n.length;u<i;u++)t(n[u],u,n);else for(var e=g(n),u=0,i=e.length;u<i;u++)t(n[e[u]],e[u],n);return n}function k(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=t(n[a],a,n)}return i}function ct(f){return function(n,t,r,e){var u=3<=arguments.length;return function(n,t,r,e){var u=!E(n)&&g(n),i=(u||n).length,o=0<f?0:i-1;for(e||(r=n[u?u[o]:o],o+=f);0<=o&&o<i;o+=f){var a=u?u[o]:o;r=t(r,n[a],a,n)}return r}(n,x(t,e,4),r,u)}}var lt=ct(1),st=ct(-1);function I(n,e,t){var u=[];return e=S(e,t),N(n,function(n,t,r){e(n,t,r)&&u.push(n)}),u}function pt(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!t(n[o],o,n))return!1}return!0}function ht(n,t,r){t=S(t,r);for(var e=!E(n)&&g(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(t(n[o],o,n))return!0}return!1}function T(n,t,r,e){return E(n)||(n=j(n)),0<=ot(n,t,r="number"==typeof r&&!e?r:0)}var vt=l(function(n,r,e){var u,i;return p(r)?i=r:(r=_(r),u=r.slice(0,-1),r=r[r.length-1]),k(n,function(n){var t=i;if(!t){if(null==(n=u&&u.length?Bn(n,u):n))return;t=n[r]}return null==t?t:t.apply(n,e)})});function yt(n,t){return k(n,In(t))}function dt(n,e,t){var r,u,i=-1/0,o=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&i<r&&(i=r);else e=S(e,t),N(n,function(n,t,r){u=e(n,t,r),(o<u||u===-1/0&&i===-1/0)&&(i=n,o=u)});return i}var gt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function bt(n){return n?c(n)?f.call(n):X(n)?n.match(gt):E(n)?k(n,kn):j(n):[]}function mt(n,t,r){if(null==t||r)return(n=E(n)?n:j(n))[Vn(n.length-1)];for(var e=bt(n),r=d(e),u=(t=Math.max(Math.min(t,r),0),r-1),i=0;i<t;i++){var o=Vn(i,u),a=e[i];
198e[i]=e[o],e[o]=a}return e.slice(0,t)}function D(i,t){return function(r,e,n){var u=t?[[],[]]:{};return e=S(e,n),N(r,function(n,t){t=e(n,t,r);i(u,n,t)}),u}}var jt=D(function(n,t,r){v(n,r)?n[r].push(t):n[r]=[t]}),wt=D(function(n,t,r){n[r]=t}),_t=D(function(n,t,r){v(n,r)?n[r]++:n[r]=1}),At=D(function(n,t,r){n[r?0:1].push(t)},!0);function xt(n,t,r){return t in r}var St=l(function(n,t){var r={},e=t[0];if(null!=n){p(e)?(1<t.length&&(e=x(e,t[1])),t=m(n)):(e=xt,t=B(t,!1,!1),n=Object(n));for(var u=0,i=t.length;u<i;u++){var o=t[u],a=n[o];e(a,o,n)&&(r[o]=a)}}return r}),Ot=l(function(n,r){var t,e=r[0];return p(e)?(e=Xn(e),1<r.length&&(t=r[1])):(r=k(B(r,!1,!1),String),e=function(n,t){return!T(r,t)}),St(n,e,t)});function Mt(n,t,r){return f.call(n,0,Math.max(0,n.length-(null==t||r?1:t)))}function Et(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[0]:Mt(n,n.length-t)}function R(n,t,r){return f.call(n,null==t||r?1:t)}var Bt=l(function(n,t){return t=B(t,!0,!0),I(n,function(n){return!T(t,n)})}),Nt=l(function(n,t){return Bt(n,t)});function kt(n,t,r,e){Q(t)||(e=r,r=t,t=!1),null!=r&&(r=S(r,e));for(var u=[],i=[],o=0,a=d(n);o<a;o++){var f=n[o],c=r?r(f,o,n):f;t&&!r?(o&&i===c||u.push(f),i=c):r?T(i,c)||(i.push(c),u.push(f)):T(u,f)||u.push(f)}return u}var It=l(function(n){return kt(B(n,!0,!0))});function Tt(n){for(var t=n&&dt(n,d).length||0,r=Array(t),e=0;e<t;e++)r[e]=yt(n,e);return r}var Dt=l(Tt);function Rt(n,t){return n._chain?b(t).chain():t}function Vt(r){return N(An(r),function(n){var t=b[n]=r[n];b.prototype[n]=function(){var n=[this._wrapped];return P.apply(n,arguments),Rt(this,t.apply(b,n))}}),b}N(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var r=e[t];b.prototype[t]=function(){var n=this._wrapped;return null!=n&&(r.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Rt(this,n)}}),N(["concat","join","slice"],function(n){var t=e[n];b.prototype[n]=function(){var n=this._wrapped;return Rt(this,n=null!=n?t.apply(n,arguments):n)}});n=Vt({__proto__:null,VERSION:n,restArguments:l,isObject:i,isNull:function(n){return null===n},isUndefined:H,isBoolean:Q,isElement:function(n){return!(!n||1!==n.nodeType)},isString:X,isNumber:Y,isDate:Z,isRegExp:nn,isError:tn,isSymbol:rn,isArrayBuffer:en,isDataView:h,isArray:c,isFunction:p,isArguments:an,isFinite:function(n){return!rn(n)&&C(n)&&!isNaN(parseFloat(n))},isNaN:fn,isTypedArray:vn,isEmpty:function(n){var t;return null==n||("number"==typeof(t=d(n))&&(c(n)||X(n)||an(n))?0===t:0===d(g(n)))},isMatch:dn,isEqual:function(n,t){for(var r=[{a:n,b:t}],e=[],u=[];r.length;){var i=r.pop();if(!0===i)e.pop(),u.pop();else{if((n=i.a)===(t=i.b)){if(0!==n||1/n==1/t)continue;return!1}if(null==n||null==t)return!1;if(n!=n){if(t!=t)continue;return!1}i=typeof n;if("function"!=i&&"object"!=i&&"object"!=typeof t)return!1;n instanceof b&&(n=n._wrapped),t instanceof b&&(t=t._wrapped);i=s.call(n);if(i!==s.call(t))return!1;if(un&&"[object Object]"==i&&h(n)){if(!h(t))return!1;i=bn}switch(i){case"[object RegExp]":case"[object String]":if(""+n==""+t)continue;return!1;case"[object Number]":r.push({a:+n,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+n==+t)continue;return!1;case"[object Symbol]":if(F.valueOf.call(n)===F.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case bn:r.push({a:gn(n),b:gn(t)});continue}i="[object Array]"===i;if(!i&&vn(n)){if(y(n)!==y(t))return!1;if(n.buffer===t.buffer&&n.byteOffset===t.byteOffset)continue;i=!0}if(!i){if("object"!=typeof n||"object"!=typeof t)return!1;var o=n.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in n&&"constructor"in t)return!1}for(var f=e.length;f--;)if(e[f]===n){if(u[f]===t)break;return!1}if(!(0<=f))if(e.push(n),u.push(t),r.push(!0),i){if((f=n.length)!==t.length)return!1;for(;f--;)r.push({a:n[f],b:t[f]})}else{var c,l=g(n),f=l.length;if(g(t).length!==f)return!1;for(;f--;){if(!v(t,c=l[f]))return!1;r.push({a:n[c],b:t[c]})}}}}return!0},isMap:u,isWeakMap:t,isSet:U,isWeakSet:a,keys:g,allKeys:m,values:j,pairs:function(n){for(var t=g(n),r=t.length,e=Array(r),u=0;u<r;u++)e[u]=[t[u],n[t[u]]];return e},invert:_n,functions:An,methods:An,extend:Sn,extendOwn:w,assign:w,defaults:On,create:function(n,t){return n=Mn(n),t&&w(n,t),n},clone:function(n){return i(n)?c(n)?n.slice():Sn({},n):n},tap:function(n,t){return t(n),n},get:Nn,has:function(n,t){for(var r=(t=_(t)).length,e=0;e<r;e++){var u=t[e];if(!v(n,u))return!1;n=n[u]}return!!r},mapObject:function(n,t,r){t=S(t,r);for(var e=g(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=t(n[a],a,n)}return i},identity:kn,constant:cn,noop:Rn,toPath:En,property:In,propertyOf:function(t){return null==t?Rn:function(n){return Nn(t,n)}},matcher:A,matches:A,times:function(n,t,r){var e=Array(Math.max(0,n));t=x(t,r,1);for(var u=0;u<n;u++)e[u]=t(u);return e},random:Vn,now:O,escape:Pn,unescape:r,templateSettings:qn,template:function(i,n,t){n=On({},n=!n&&t?t:n,b.templateSettings);var r,t=RegExp([(n.escape||Un).source,(n.interpolate||Un).source,(n.evaluate||Un).source].join("|")+"|$","g"),o=0,a="__p+='";if(i.replace(t,function(n,t,r,e,u){return a+=i.slice(o,u).replace(zn,Ln),o=u+n.length,t?a+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":e&&(a+="';\n"+e+"\n__p+='"),n}),a+="';\n",t=n.variable){if(!$n.test(t))throw new Error("variable is not a bare identifier: "+t)}else a="with(obj||{}){\n"+a+"}\n",t="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t,"_",a)}catch(n){throw n.source=a,n}function e(n){return r.call(this,n,b)}return e.source="function("+t+"){\n"+a+"}",e},result:function(n,t,r){var e=(t=_(t)).length;if(!e)return p(r)?r.call(n):r;for(var u=0;u<e;u++){var i=null==n?void 0:n[t[u]];void 0===i&&(i=r,u=e),n=p(i)?i.call(n):i}return n},uniqueId:function(n){var t=++Cn+"";return n?n+t:t},chain:function(n){return(n=b(n))._chain=!0,n},iteratee:Dn,partial:M,bind:Jn,bindAll:Gn,memoize:function(e,u){function i(n){var t=i.cache,r=""+(u?u.apply(this,arguments):n);return v(t,r)||(t[r]=e.apply(this,arguments)),t[r]}return i.cache={},i},delay:Hn,defer:Qn,throttle:function(r,e,u){function i(){l=!1===u.leading?0:O(),o=null,c=r.apply(a,f),o||(a=f=null)}function n(){var n=O(),t=(l||!1!==u.leading||(l=n),e-(n-l));return a=this,f=arguments,t<=0||e<t?(o&&(clearTimeout(o),o=null),l=n,c=r.apply(a,f),o||(a=f=null)):o||!1===u.trailing||(o=setTimeout(i,t)),c}var o,a,f,c,l=0;return u=u||{},n.cancel=function(){clearTimeout(o),l=0,o=a=f=null},n},debounce:function(t,r,e){function u(){var n=O()-o;n<r?i=setTimeout(u,r-n):(i=null,e||(f=t.apply(c,a)),i||(a=c=null))}var i,o,a,f,c,n=l(function(n){return c=this,a=n,o=O(),i||(i=setTimeout(u,r),e&&(f=t.apply(c,a))),f});return n.cancel=function(){clearTimeout(i),i=a=c=null},n},wrap:function(n,t){return M(t,n)},negate:Xn,compose:function(){var r=arguments,e=r.length-1;return function(){for(var n=e,t=r[e].apply(this,arguments);n--;)t=r[n].call(this,t);return t}},after:function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},before:Yn,once:Zn,findKey:nt,findIndex:rt,findLastIndex:et,sortedIndex:ut,indexOf:ot,lastIndexOf:at,find:ft,detect:ft,findWhere:function(n,t){return ft(n,A(t))},each:N,forEach:N,map:k,collect:k,reduce:lt,foldl:lt,inject:lt,reduceRight:st,foldr:st,filter:I,select:I,reject:function(n,t,r){return I(n,Xn(S(t)),r)},every:pt,all:pt,some:ht,any:ht,contains:T,includes:T,include:T,invoke:vt,pluck:yt,where:function(n,t){return I(n,A(t))},max:dt,min:function(n,e,t){var r,u,i=1/0,o=1/0;
198if(null==e||"number"==typeof e&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=E(n)?n:j(n)).length;a<f;a++)null!=(r=n[a])&&r<i&&(i=r);else e=S(e,t),N(n,function(n,t,r){((u=e(n,t,r))<o||u===1/0&&i===1/0)&&(i=n,o=u)});return i},shuffle:function(n){return mt(n,1/0)},sample:mt,sortBy:function(n,e,t){var u=0;return e=S(e,t),yt(k(n,function(n,t,r){return{value:n,index:u++,criteria:e(n,t,r)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(e<r||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")},groupBy:jt,indexBy:wt,countBy:_t,partition:At,toArray:bt,size:function(n){return null==n?0:(E(n)?n:g(n)).length},pick:St,omit:Ot,first:Et,head:Et,take:Et,initial:Mt,last:function(n,t,r){return null==n||n.length<1?null==t||r?void 0:[]:null==t||r?n[n.length-1]:R(n,Math.max(0,n.length-t))},rest:R,tail:R,drop:R,compact:function(n){return I(n,Boolean)},flatten:function(n,t){return B(n,t,!1)},without:Nt,uniq:kt,unique:kt,union:It,intersection:function(n){for(var t=[],r=arguments.length,e=0,u=d(n);e<u;e++){var i=n[e];if(!T(t,i)){for(var o=1;o<r&&T(arguments[o],i);o++);o===r&&t.push(i)}}return t},difference:Bt,unzip:Tt,transpose:Tt,zip:Dt,object:function(n,t){for(var r={},e=0,u=d(n);e<u;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},range:function(n,t,r){null==t&&(t=n||0,n=0),r=r||(t<n?-1:1);for(var e=Math.max(Math.ceil((t-n)/r),0),u=Array(e),i=0;i<e;i++,n+=r)u[i]=n;return u},chunk:function(n,t){if(null==t||t<1)return[];for(var r=[],e=0,u=n.length;e<u;)r.push(f.call(n,e,e+=t));return r},mixin:Vt,default:b});return n._=n});
199window.wp=window.wp||{};(function($){var settings=typeof _wpUtilSettings==='undefined'?{}:_wpUtilSettings;wp.template=_.memoize(function(id){var compiled,options={evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:'data'};return function(data){var el=document.querySelector('script#tmpl-'+id);if(!el){throw new Error('Template not found: '+'#tmpl-'+id);}
200compiled=compiled||_.template($(el).html(),options);return compiled(data);};});wp.ajax={settings:settings.ajax||{},post:function(action,data){return wp.ajax.send({data:_.isObject(action)?action:_.extend(data||{},{action:action})});},send:function(action,options){var promise,deferred;if(_.isObject(action)){options=action;}else{options=options||{};options.data=_.extend(options.data||{},{action:action});}
201options=_.defaults(options||{},{type:'POST',url:wp.ajax.settings.url,context:this});deferred=$.Deferred(function(deferred){if(options.success){deferred.done(options.success);}
202if(options.error){deferred.fail(options.error);}
203delete options.success;delete options.error;deferred.jqXHR=$.ajax(options).done(function(response){if(response==='1'||response===1){response={success:true};}
204if(_.isObject(response)&&!_.isUndefined(response.success)){var context=this;deferred.done(function(){if(action&&action.data&&'query-attachments'===action.data.action&&deferred.jqXHR.hasOwnProperty('getResponseHeader')&&deferred.jqXHR.getResponseHeader('X-WP-Total')){context.totalAttachments=parseInt(deferred.jqXHR.getResponseHeader('X-WP-Total'),10);}else{context.totalAttachments=0;}});deferred[response.success?'resolveWith':'rejectWith'](this,[response.data]);}else{deferred.rejectWith(this,[response]);}}).fail(function(){deferred.rejectWith(this,arguments);});});promise=deferred.promise();promise.abort=function(){deferred.jqXHR.abort();return this;};return promise;}};}(jQuery));
205window.FacebookSignal=window.FacebookSignal||{_held:false,_releasing:false,_pixelInitialized:false,_pixelId:null,_pixelUserInfo:{},_pixelOptions:{},_pendingPixelEvents:[],_queue:[],_config:{},_seenEventIds:{},_fbclid:(function(){try{var match=window.location.search.match(/[?&]fbclid=([^&]*)/);return match?decodeURIComponent(match[1]):null;}catch(e){return null;}})(),_readCookie:function(name){try{var pairs=(document.cookie||'').split(';');for(var i=0;i<pairs.length;i++){var pair=pairs[i].replace(/^\s+/,'');if(pair.indexOf(name+'=')===0){return decodeURIComponent(pair.substring(name.length+1));}}}catch(e){}
206return null;},init:function(config){this._config=config||{};this._attribution=this._config.attribution||{};var cookieState=this._readCookie('wc_facebook_signals_state');this._held=cookieState?cookieState==='held':!!this._config.held;if(typeof fbq==='function'){fbq('consent',this._held?'revoke':'grant');}
207try{var raw=window.sessionStorage.getItem('fbpix_seen_event_ids');this._seenEventIds=raw?JSON.parse(raw):{};}catch(e){this._seenEventIds=this._seenEventIds||{};}},initPixel:function(pixelId,userInfo,options){this._pixelId=pixelId;this._pixelUserInfo=userInfo&&typeof userInfo==='object'&&!Array.isArray(userInfo)?userInfo:{};this._pixelOptions=options||{};if(!this._held){this._runPixelInit();}},_runPixelInit:function(){if(this._pixelInitialized||!this._pixelId||typeof fbq!=='function'){return;}
208if(this._pixelOptions&&this._pixelOptions.includeCapiIntegration){var url=window.location.origin+'?ob=open-bri
208dge';fbq('set','openbridge',this._pixelId,url);}
209if(this._config.capig==='1'){fbq('optinMetaEnabledCapi',this._pixelId);}
210fbq('init',this._pixelId,this._pixelUserInfo,this._pixelOptions);this._pixelInitialized=true;this._flushPendingPixelEvents();},_flushPendingPixelEvents:function(){var pending=this._pendingPixelEvents;this._pendingPixelEvents=[];for(var i=0;i<pending.length;i++){var ev=pending[i];this._firePixelEvent(ev.name,ev.params,ev.method,ev.eventId);}},_fireOrQueuePixelEvent:function(name,params,method,eventId){if(!this._pixelInitialized){this._pendingPixelEvents.push({name:name,params:params||{},method:method||'track',eventId:eventId||null,});return;}
211this._firePixelEvent(name,params||{},method||'track',eventId||null);},_firePixelEvent:function(name,params,method,eventId){method=method||'track';if(eventId){fbq(method,name,params||{},{eventID:eventId});}else{fbq(method,name,params||{});}},_syncCookie:function(name,serverValue,domain){if(!serverValue){return;}
212var encoded=encodeURIComponent(serverValue);var match=document.cookie.match(new RegExp('(?:^|;\\s*)'+name+'=([^;]*)'),);var current=match?match[1]:null;if(current&&current!==encoded){var cookie=name+'='+encoded+';path=/;max-age=7776000;SameSite=Lax';if(domain){cookie+=';domain='+domain;}
213document.cookie=cookie;}},queueEvent:function(eventData){if(!eventData||!eventData.event_name){return;}
214if(eventData.event_id&&this._seenEventIds[eventData.event_id]){return;}
215eventData.event_time=eventData.event_time||Math.floor(Date.now()/1000);eventData.event_source_url=eventData.event_source_url||window.location.href;this._queue.push(eventData);if(eventData.event_id){this._seenEventIds[eventData.event_id]=1;try{window.sessionStorage.setItem('fbpix_seen_event_ids',JSON.stringify(this._seenEventIds),);}catch(e){}}},trackEvent:function(name,params,userData,method,eventId){method=method||'track';eventId=eventId||(params&&params.eventID)||null;if(this._held){this.queueEvent({event_name:name,custom_data:params||{},event_id:eventId,event_time:Math.floor(Date.now()/1000),method:method,});}else{this._fireOrQueuePixelEvent(name,params||{},method,eventId);}},hold:function(){this._held=true;fbq('consent','revoke');},release:function(){var self=this;if(!self._held||self._releasing||!self._config.ajaxUrl){return Promise.resolve({success:true,data:{sent_count:0}});}
216self._releasing=true;return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();var url=self._config.ajaxUrl+
217(self._config.ajaxUrl.indexOf('?')===-1?'?':'&')+'action='+
218encodeURIComponent(self._config.releaseAction);xhr.open('POST',url,true);xhr.setRequestHeader('Content-Type','application/json');xhr.onload=function(){if(xhr.status<200||xhr.status>=300){self._releasing=false;reject(new Error('Release AJAX failed: '+xhr.status));return;}
219try{var response=JSON.parse(xhr.responseText);self._handleReleaseResponse(response.data||{});self._releasing=false;resolve(response);}catch(error){self._releasing=false;reject(error);}};xhr.onerror=function(){self._releasing=false;reject(new Error('Network error'));};var attribution=self._config.attribution||{};xhr.send(JSON.stringify({events:self._queue,fbclid:self._fbclid,fbp:self._readCookie('_fbp')||attribution.fbp||null,fbc:self._readCookie('_fbc')||attribution.fbc||null,}),);});},_handleReleaseResponse:function(data){var attr=this._config.attribution||{};var fbpValue=data.fbp||attr.fbp;var fbcValue=data.fbc||attr.fbc;if(fbpValue){var fbpCookie='_fbp='+encodeURIComponent(fbpValue)+';path=/;max-age=7776000;SameSite=Lax';if(attr.fbpDomain){fbpCookie+=';domain='+attr.fbpDomain;}
220document.cookie=fbpCookie;}
221if(fbcValue){var fbcCookie='_fbc='+encodeURIComponent(fbcValue)+';path=/;max-age=7776000;SameSite=Lax';if(attr.fbcDomain){fbcCookie+=';domain='+attr.fbcDomain;}
222document.cookie=fbcCookie;}
223if(data.user_info&&typeof data.user_info==='object'&&!Array.isArray(data.user_info)){this._pixelUserInfo=data.user_info;}
224this._pixelInitialized=false;this._runPixelInit();fbq('consent','grant');for(var i=0;i<this._queue.length;i++){var queuedEvent=this._queue[i];var customData=queuedEvent.custom_data||{};var trackMethod=queuedEvent.method||(queuedEvent.is_custom?'trackCustom':'track');if(queuedEvent.event_id){fbq(trackMethod,queuedEvent.event_name,customData,{eventID:queuedEvent.event_id,});}else{fbq(trackMethod,queuedEvent.event_name,customData);}}
225this._queue=[];this._held=false;this._releasing=false;},};window.fbwcsignal=window.fbwcsignal||{};(function(api){var signalConfig=window.facebookSignalConfig||{};var cookieName=signalConfig.cookieName||'';var ajaxUrl=signalConfig.ajaxUrl||'';var signalsAction=signalConfig.signalsAction||'';var signalsNonce=signalConfig.signalsNonce||'';function setCookie(value){var expires=new Date();expires.setTime(expires.getTime()+365*24*60*60*1000);document.cookie=cookieName+'='+
226encodeURIComponent(value)+';expires='+
227expires.toUTCString()+';path=/;SameSite=Lax';}
228function getCookie(){var match=document.cookie.match(new RegExp('(?:^|;\\s*)'+cookieName+'=([^;]*)'),);return match?decodeURIComponent(match[1]):null;}
229function updateState(state){var normalizedState=state==='active'?'active':'held';
229setCookie(normalizedState);return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.open('POST',ajaxUrl,true);xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8',);xhr.onload=function(){if(xhr.status<200||xhr.status>=300){reject(new Error('Signals AJAX failed: '+xhr.status));return;}
230try{var response=JSON.parse(xhr.responseText);if(normalizedState==='held'){window.FacebookSignal.hold();resolve(response);return;}
231if(window.FacebookSignal&&window.FacebookSignal._held){window.FacebookSignal.release().then(function(){resolve(response);},function(error){reject(error);},);return;}
232resolve(response);}catch(error){reject(error);}};xhr.onerror=function(){reject(new Error('Network error'));};xhr.send('action='+
233encodeURIComponent(signalsAction)+'&security='+
234encodeURIComponent(signalsNonce)+'&state='+
235encodeURIComponent(normalizedState),);});}
236api.hold=function(){return updateState('held');};api.release=function(){return updateState('active');};api.getState=function(){var value=getCookie();if(value==='active'||value==='held'){return value;}
237return null;};})(window.fbwcsignal);
238;(function($){var focused=true;var easings={swing:'cubic-bezier(.02, .01, .47, 1)',linear:'linear',easeInQuad:'cubic-bezier(0.11, 0, 0.5, 0)',easeOutQuad:'cubic-bezier(0.5, 1, 0.89, 1)',easeInOutQuad:'cubic-bezier(0.45, 0, 0.55, 1)',easeInCubic:'cubic-bezier(0.32, 0, 0.67, 0)',easeOutCubic:'cubic-bezier(0.33, 1, 0.68, 1)',easeInOutCubic:'cubic-bezier(0.65, 0, 0.35, 1)',easeInQuart:'cubic-bezier(0.5, 0, 0.75, 0)',easeOutQuart:'cubic-bezier(0.25, 1, 0.5, 1)',easeInOutQuart:'cubic-bezier(0.76, 0, 0.24, 1)',easeInQuint:'cubic-bezier(0.64, 0, 0.78, 0)',easeOutQuint:'cubic-bezier(0.22, 1, 0.36, 1)',easeInOutQuint:'cubic-bezier(0.83, 0, 0.17, 1)',easeInSine:'cubic-bezier(0.12, 0, 0.39, 0)',easeOutSine:'cubic-bezier(0.61, 1, 0.88, 1)',easeInOutSine:'cubic-bezier(0.37, 0, 0.63, 1)',easeInExpo:'cubic-bezier(0.7, 0, 0.84, 0)',easeOutExpo:'cubic-bezier(0.16, 1, 0.3, 1)',easeInOutExpo:'cubic-bezier(0.87, 0, 0.13, 1)',easeInCirc:'cubic-bezier(0.55, 0, 1, 0.45)',easeOutCirc:'cubic-bezier(0, 0.55, 0.45, 1)',easeInOutCirc:'cubic-bezier(0.85, 0, 0.15, 1)',easeInBack:'cubic-bezier(0.36, 0, 0.66, -0.56)',easeOutBack:'cubic-bezier(0.34, 1.56, 0.64, 1)',easeInOutBack:'cubic-bezier(0.68, -0.6, 0.32, 1.6)'};easings['jswing']=easings['swing'];$.flexslider=function(el,options){var slider=$(el);if(typeof options.rtl=='undefined'&&$('html').attr('dir')=='rtl'){options.rtl=true;}
239slider.vars=$.extend({},$.flexslider.defaults,options);var namespace=slider.vars.namespace,touch=(("ontouchstart"in window)||window.DocumentTouch&&document instanceof DocumentTouch)&&slider.vars.touch,eventType="click touchend keyup flexslider-click",watchedEvent="",watchedEventClearTimer,easing=easings[slider.vars.easing]||"ease",vertical=slider.vars.direction==="vertical",reverse=slider.vars.reverse,carousel=(slider.vars.itemWidth>0),fade=slider.vars.animation==="fade",asNav=slider.vars.asNavFor!=="",methods={};$.data(el,"flexslider",slider);methods={init:function(){slider.animating=false;slider.currentSlide=parseInt((slider.vars.startAt?slider.vars.startAt:0),10);if(isNaN(slider.currentSlide)){slider.currentSlide=0;}
240slider.animatingTo=slider.currentSlide;slider.atEnd=(slider.currentSlide===0||slider.currentSlide===slider.last);slider.containerSelector=slider.vars.selector.substr(0,slider.vars.selector.search(' '));slider.slides=$(slider.vars.selector,slider);slider.container=$(slider.containerSelector,slider);slider.count=slider.slides.length;slider.syncExists=$(slider.vars.sync).length>0;if(slider.vars.animation==="slide"){slider.vars.animation="swing";}
241slider.prop=(vertical)?"top":(slider.vars.rtl?"marginRight":"marginLeft");slider.args={};slider.manualPause=false;slider.stopped=false;slider.started=false;slider.startTimeout=null;slider.transforms=slider.transitions=!slider.vars.video&&!fade&&slider.vars.useCSS;if(slider.transforms)slider.prop="transform";slider.isFirefox=navigator.userAgent.toLowerCase().indexOf('firefox')>-1;slider.ensureAnimationEnd='';if(slider.vars.controlsContainer!=="")slider.controlsContainer=$(slider.vars.controlsContainer).length>0&&$(slider.vars.controlsContainer);if(slider.vars.manualControls!=="")slider.manualControls=$(slider.vars.manualControls).length>0&&$(slider.vars.manualControls);if(slider.vars.customDirectionNav!=="")slider.customDirectionNav=$(slider.vars.customDirectionNav).length===2&&$(sl
vendor: 23,884 bytes, lines 241-310
241ider.vars.customDirectionNav);if(slider.vars.randomize){slider.slides.sort(function(){return(Math.round(Math.random())-0.5);});slider.container.empty().append(slider.slides);}
242slider.doMath();slider.setup("init");if(slider.vars.controlNav){methods.controlNav.setup();}
243if(slider.vars.directionNav){methods.directionNav.setup();}
244if(slider.vars.keyboard&&($(slider.containerSelector).length===1||slider.vars.multipleKeyboard)){$(document).on('keyup',function(event){var keycode=event.keyCode;if(!slider.animating&&(keycode===39||keycode===37)){var target=(slider.vars.rtl?((keycode===37)?slider.getTarget('next'):(keycode===39)?slider.getTarget('prev'):false):((keycode===39)?slider.getTarget('next'):(keycode===37)?slider.getTarget('prev'):false));slider.flexAnimate(target,slider.vars.pauseOnAction);}});}
245if(slider.vars.mousewheel){slider.on('mousewheel',function(event,delta,deltaX,deltaY){event.preventDefault();var target=(delta<0)?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,slider.vars.pauseOnAction);});}
246if(slider.vars.pausePlay){methods.pausePlay.setup();}
247if(slider.vars.slideshow&&slider.vars.pauseInvisible){methods.pauseInvisible();}
248if(slider.vars.slideshow){if(slider.vars.pauseOnHover){slider.on('mouseenter',function(){if(!slider.manualPlay&&!slider.manualPause){slider.pause();}}).on('mouseleave',function(){if(!slider.manualPause&&!slider.manualPlay&&!slider.stopped){slider.play();}});}
249if(!slider.vars.pauseInvisible||document.visibilityState==='visible'){(slider.vars.initDelay>0)?slider.startTimeout=setTimeout(slider.play,slider.vars.initDelay):slider.play();}}
250if(asNav){methods.asNav.setup();}
251if(touch&&slider.vars.touch){methods.touch();}
252if(!fade||(fade&&slider.vars.smoothHeight)){$(window).on("resize orientationchange focus",methods.resize);}
253slider.find("img").attr("draggable","false");setTimeout(function(){slider.vars.start(slider);},200);},asNav:{setup:function(){slider.asNav=true;slider.animatingTo=Math.floor(slider.currentSlide/slider.move);slider.currentItem=slider.currentSlide;slider.slides.removeClass(namespace+"active-slide").eq(slider.currentItem).addClass(namespace+"active-slide");slider.slides.on(eventType,function(e){e.preventDefault();var $slide=$(this),target=$slide.index();var posFromX;if(slider.vars.rtl){posFromX=-1*($slide.offset().right-$(slider).scrollLeft());}
254else
255{posFromX=$slide.offset().left-$(slider).scrollLeft();}
256if(posFromX<=0&&$slide.hasClass(namespace+'active-slide')){slider.flexAnimate(slider.getTarget("prev"),true);}else if(!$(slider.vars.asNavFor).data('flexslider').animating&&!$slide.hasClass(namespace+"active-slide")){slider.direction=(slider.currentItem<target)?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction,false,true,true);}});}},controlNav:{setup:function(){if(!slider.manualControls){methods.controlNav.setupPaging();}else{methods.controlNav.setupManual();}},setupPaging:function(){var type=(slider.vars.controlNav==="thumbnails")?'control-thumbs':'control-paging',j=1,item,slide;slider.controlNavScaffold=$('<ol class="'+namespace+'control-nav '+namespace+type+'"></ol>');if(slider.pagingCount>1){for(var i=0;i<slider.pagingCount;i++){slide=slider.slides.eq(i);if(undefined===slide.attr('data-thumb-alt')){slide.attr('data-thumb-alt','');}
257item=$('<a></a>').attr('href','#').text(j);if(slider.vars.controlNav==="thumbnails"){item=$('<img/>',{onload:'this.width = this.naturalWidth; this.height = this.naturalHeight',src:slide.attr('data-thumb'),srcset:slide.attr('data-thumb-srcset'),sizes:slide.attr('data-thumb-sizes'),alt:slide.attr('alt')})}
258if(''!==slide.attr('data-thumb-alt')){item.attr('alt',slide.attr('data-thumb-alt'));}
259if('thumbnails'===slider.vars.controlNav&&true===slider.vars.thumbCaptions){var captn=slide.attr('data-thumbcaption');if(''!==captn&&undefined!==captn){var caption=$('<span></span>').addClass(namespace+'caption').text(captn);item.append(caption);}}
260var liElement=$('<li>');item.appendTo(liElement);liElement.append('</li>');slider.controlNavScaffold.append(liElement);j++;}}
261(slider.controlsContainer)?$(slider.controlsContainer).append(slider.controlNavScaffold):slider.append(slider.controlNavScaffold);methods.controlNav.set();methods.controlNav.active();slider.controlNavScaffold.on(eventType,'a, img',function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type||event.type==="flexslider-click"){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){slider.direction=(target>slider.currentSlide)?"next":"prev";slider.flexAnimate(target,slider.vars.pauseOnAction);}}
262if(watchedEvent===""&&event.type!=="flexslider-click"){watchedEvent=event.type;}
263methods.setToClearWatchedEvent();});},setupManual:function(){slider.controlNav=slider.manualControls;methods.controlNav.active();slider.controlNav.on(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type||event.type==="flexslider-click"){var $this=$(this),target=slider.controlNav.index($this);if(!$this.hasClass(namespace+'active')){(target>slider.currentSlide)?slider.direction="next":slider.direction="prev";slider.flexAnimate(target,slider.vars.pauseOnAction);}}
264if(watchedEvent===""&&event.type!=="flexslider-click"){watchedEvent=event.type;}
265methods.setToClearWatchedEvent();});},set:function(){var selector=(slider.vars.controlNav==="thumbnails")?'img':'a';slider.controlNav=$('.'+namespace+'control-nav li '+selector,(slider.controlsContainer)?slider.controlsContainer:slider);},active:function(){slider.controlNav.removeClass(namespace+"active").eq(slider.animatingTo).addClass(namespace+"active");},update:function(action,pos){if(slider.pagingCount>1&&action==="add"){slider.controlNavScaffold.append($('<li><a href="#">'+slider.count+'</a></li>'));}else if(slider.pagingCount===1){slider.controlNavScaffold.find('li').remove();}else{slider.controlNav.eq(pos).closest('li').remove();}
266methods.controlNav.set();(slider.pagingCount>1&&slider.pagingCount!==slider.controlNav.length)?slider.update(pos,action):methods.controlNav.active();}},directionNav:{setup:function(){var directionNavScaffold=$('<ul class="'+namespace+'direction-nav"><li class="'+namespace+'nav-prev"><a class="'+namespace+'prev" href="#">'+slider.vars.prevText+'</a></li><li class="'+namespace+'nav-next"><a class="'+namespace+'next" href="#">'+slider.vars.nextText+'</a></li></ul>');if(slider.customDirectionNav){slider.directionNav=slider.customDirectionNav;}else if(slider.controlsContainer){$(slider.controlsContainer).append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider.controlsContainer);}else{slider.append(directionNavScaffold);slider.directionNav=$('.'+namespace+'direction-nav li a',slider);}
267methods.directionNav.update();slider.directionNav.on(eventType,function(event){event.preventDefault();var target;if(watchedEvent===""||watchedEvent===event.type||event.type==="flexslider-click"){target=($(this).hasClass(namespace+'next'))?slider.getTarget('next'):slider.getTarget('prev');slider.flexAnimate(target,slider.vars.pauseOnAction);}
268if(watchedEvent===""&&event.type!=="flexslider-click"){watchedEvent=event.type;}
269methods.setToClearWatchedEvent();});},update:function(){var disabledClass=namespace+'disabled';if(slider.pagingCount===1){slider.directionNav.addClass(disabledClass).attr('tabindex','-1');}else if(!slider.vars.animationLoop){if(slider.animatingTo===0){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"prev").addClass(disabledClass).attr('tabindex','-1');}else if(slider.animatingTo===slider.last){slider.directionNav.removeClass(disabledClass).filter('.'+namespace+"next").addClass(disabledClass).attr('tabindex','-1');}else{slider.directionNav.removeClass(disabledClass).prop('tabindex','-1');}}else{slider.directionNav.removeClass(disabledClass).prop('tabindex','-1');}}},pausePlay:{setup:function(){var pausePlayScaffold=$('<div class="'+namespace+'pauseplay"><a href="#"></a></div>');if(slider.controlsContainer){slider.controlsContainer.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider.controlsContainer);}else{slider.append(pausePlayScaffold);slider.pausePlay=$('.'+namespace+'pauseplay a',slider);}
270methods.pausePlay.update((slider.vars.slideshow)?namespace+'pause':namespace+'play');slider.pausePlay.on(eventType,function(event){event.preventDefault();if(watchedEvent===""||watchedEvent===event.type||event.type==="flexslider-click"){if($(this).hasClass(namespace+'pause')){slider.manualPause=true;slider.manualPlay=false;slider.pause();}else{slider.manualPause=false;slider.manualPlay=true;slider.play();}}
271if(watchedEvent===""&&event.type!=="flexslider-click"){watchedEvent=event.type;}
272methods.setToClearWatchedEvent();});},update:function(state){(state==="play")?slider.pausePlay.removeClass(namespace+'pause').addClass(namespace+'play').html(slider.vars.playText):slider.pausePlay.removeClass(namespace+'play').addClass(namespace+'pause').html(slider.vars.pauseText);}},touch:function(){var startX,startY,offset,cwidth,dx,startT,onTouchStart,onTouchMove,onTouchEnd,scrolling=false,localX=0,localY=0,accDx=0;onTouchStart=function(e){if(slider.animating){e.preventDefault();}else if(e.touches.length===1){slider.pause();cwidth=(vertical)?slider.h:slider.w;startT=Number(new Date());localX=e.touches[0].pageX;localY=e.touches[0].pageY;offset=(carousel&&reverse&&slider.animatingTo===slider.last)?0:(carousel&&reverse)?slider.limit-(((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo):(carousel&&slider.currentSlide===slider.last)?slider.limit:(carousel)?((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.currentSlide:(reverse)?(slider.last-slider.currentSlide+slider.cloneOffset)*cwidth:(slider.currentSlide+slider.cloneOffset)*cwidth;startX=(vertical)?localY:localX;startY=(vertical)?localX:localY;el.addEventListener('touchmove',onTouchMove,false);el.addEventListener('touchend',onTouchEnd,false);}};onTouchMove=function(e){localX=e.touches[0].pageX;localY=e.touches[0].pageY;dx=(vertical)?startX-localY:(slider.vars.rtl?-1:1)*(startX-localX);scrolling=(vertical)?(Math.abs(dx)<Math.abs(localX-startY)):(Math.abs(dx)<Math.abs(localY-startY));var fxms=500;if(!scrolling||Number(new Date())-startT>fxms){e.preventDefault();if(!fade){if(!slider.vars.animationLoop){dx=dx/((slider.currentSlide===0&&dx<0||slider.currentSlide===slider.last&&dx>0)?(Math.abs(dx)/cwidth+2):1);}
273slider.setProps(offset+dx,"setTouch");}}};onTouchEnd=function(e){el.removeEventListener('touchmove',onTouchMove,false);if(slider.animatingTo===slider.currentSlide&&!scrolling&&!(dx===null)){var updateDx=(reverse)?-dx:dx,target=(updateDx>0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)&&(Number(new Date())-startT<550&&Math.abs(updateDx)>50||Math.abs(updateDx)>cwidth/2)){slider.flexAnimate(target,slider.vars.pauseOnAction);}else{if(!fade){slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction,true);}}}
274el.removeEventListener('touchend',onTouchEnd,false);startX=null;startY=null;dx=null;offset=null;};el.addEventListener('touchstart',onTouchStart,false);},resize:function(){if(!slider.animating&&slider.is(':visible')){if(!carousel){slider.doMath();}
275if(fade){methods.smoothHeight();}else if(carousel){slider.slides.width(slider.computedW);slider.update(slider.pagingCount);slider.setProps();}
276else if(vertical){slider.viewport.height(slider.h);slider.setProps(slider.h,"setTotal");}else{slider.setProps(slider.computedW,"setTotal");slider.newSlides.width(slider.computedW);if(slider.vars.smoothHeight){methods.smoothHeight();}}}},smoothHeight:function(dur){if(!vertical||fade){var $obj=(fade)?slider:slider.viewport;$obj.css({"height":slider.slides.eq(slider.animatingTo).innerHeight(),"transition":dur?("height "+dur+"ms"):"none"});}},sync:function(action){var $obj=$(slider.vars.sync).data("flexslider"),target=slider.animatingTo;switch(action){case"animate":$obj.flexAnimate(target,slider.vars.pauseOnAction,false,true);break;case"play":if(!$obj.playing&&!$obj.asNav){$obj.play();}break;case"pause":$obj.pause();break;}},uniqueID:function($clone){$clone.filter('[id]').add($clone.find('[id]')).each(function(){var $this=$(this);$this.attr('id',$this.attr('id')+'_clone');});return $clone;},pauseInvisible:function(){document.addEventListener('visibilitychange',function(){if(document.visibilityState==='hidden'){if(slider.startTimeout){clearTimeout(slider.startTimeout);}else{slider.pause();}}
277else{if(slider.started){slider.play();}else{if(slider.vars.initDelay>0){setTimeout(slider.play,slider.vars.initDelay);}else{slider.play();}}}});},setToClearWatchedEvent:function(){clearTimeout(watchedEventClearTimer);watchedEventClearTimer=setTimeout(function(){watchedEvent="";},3000);}};slider.flexAnimate=function(target,pause,override,withSync,fromNav){if(!slider.vars.animationLoop&&target!==slider.currentSlide){slider.direction=(target>slider.currentSlide)?"next":"prev";}
278if(asNav&&slider.pagingCount===1)slider.direction=(slider.currentItem<target)?"next":"prev";if(!slider.animating&&(slider.canAdvance(target,fromNav)||override)&&slider.is(":visible")){if(asNav&&withSync){var master=$(slider.vars.asNavFor).data('flexslider');slider.atEnd=target===0||target===slider.count-1;master.flexAnimate(target,true,false,true,fromNav);slider.direction=(slider.currentItem<target)?"next":"prev";master.direction=slider.direction;if(Math.ceil((target+1)/slider.visible)-1!==slider.currentSlide&&target!==0){slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");target=Math.floor(target/slider.visible);}else{slider.currentItem=target;slider.slides.removeClass(namespace+"active-slide").eq(target).addClass(namespace+"active-slide");return false;}}
279slider.animating=true;slider.animatingTo=target;if(pause){slider.pause();}
280slider.vars.before(slider);if(slider.syncExists&&!fromNav){methods.sync("animate");}
281if(slider.vars.controlNav){methods.controlNav.active();}
282if(!carousel){slider.slides.removeClass(namespace+'active-slide').eq(target).addClass(namespace+'active-slide');}
283slider.atEnd=target===0||target===slider.last;if(slider.vars.directionNav){methods.directionNav.update();}
284if(target===slider.last){slider.vars.end(slider);if(!slider.vars.animationLoop){slider.pause();}}
285if(!fade){var dimension=(vertical)?slider.slides.filter(':first').height():slider.computedW,margin,slideString,calcNext;if(carousel){margin=slider.vars.itemMargin;calcNext=((slider.itemW+margin)*slider.move)*slider.animatingTo;slideString=(calcNext>slider.limit&&slider.visible!==1)?slider.limit:calcNext;}else if(slider.currentSlide===0&&target===slider.count-1&&slider.vars.animationLoop&&slider.direction!=="next"){slideString=(reverse)?(slider.count+slider.cloneOffset)*dimension:0;}else if(slider.currentSlide===slider.last&&target===0&&slider.vars.animationLoop&&slider.direction!=="prev"){slideString=(reverse)?0:(slider.count+1)*dimension;}else{slideString=(reverse)?((slider.count-1)-target+slider.cloneOffset)*dimension:(target+slider.cloneOffset)*dimension;}
286slider.setProps(slideString,"",slider.vars.animationSpeed);if(!slider.vars.animationLoop||!slider.atEnd){slider.animating=false;slider.currentSlide=slider.animatingTo;}
287slider.container.off("transitionend");slider.container.on("transitionend",function(){clearTimeout(slider.ensureAnimationEnd);slider.wrapup(dimension);});clearTimeout(slider.ensureAnimationEnd);slider.ensureAnimationEnd=setTimeout(function(){slider.wrapup(dimension);},slider.vars.animationSpeed+100);}else{if(!touch){slider.slides.eq(slider.currentSlide).off("transitionend");slider.slides.eq(target).off("transitionend").on("transitionend",slider.wrapup);}
288slider.slides.eq(slider.currentSlide).css({"opacity":0,"zIndex":1});slider.slides.eq(target).css({"opacity":1,"zIndex":2});if(touch){slider.wrapup(dimension);}}
289if(slider.vars.smoothHeight){methods.smoothHeight(slider.vars.animationSpeed);}}};slider.wrapup=function(dimension){if(!fade&&!carousel){if(slider.currentSlide===0&&slider.animatingTo===slider.last&&slider.vars.animationLoop){slider.setProps(dimension,"jumpEnd");}else if(slider.currentSlide===slider.last&&slider.animatingTo===0&&slider.vars.animationLoop){slider.setProps(dimension,"jumpStart");}}
290slider.animating=false;slider.currentSlide=slider.animatingTo;slider.vars.after(slider);};slider.animateSlides=function(){if(!slider.animating&&focused){slider.flexAnimate(slider.getTarget("next"));}};slider.pause=function(){clearInterval(slider.animatedSlides);slider.animatedSlides=null;slider.playing=false;if(slider.vars.pausePlay){methods.pausePlay.update("play");}
291if(slider.syncExists){methods.sync("pause");}};slider.play=function(){if(slider.playing){clearInterval(slider.animatedSlides);}
292slider.animatedSlides=slider.animatedSlides||setInterval(slider.animateSlides,slider.vars.slideshowSpeed);slider.started=slider.playing=true;if(slider.vars.pausePlay){methods.pausePlay.update("pause");}
293if(slider.syncExists){methods.sync("play");}};slider.stop=function(){slider.pause();slider.stopped=true;};slider.canAdvance=function(target,fromNav){var last=(asNav)?slider.pagingCount-1:slider.last;return(fromNav)?true:(asNav&&slider.currentItem===slider.count-1&&target===0&&slider.direction==="prev")?true:(asNav&&slider.currentItem===0&&target===slider.pagingCount-1&&slider.direction!=="next")?false:(target===slider.currentSlide&&!asNav)?false:(slider.vars.animationLoop)?true:(slider.atEnd&&slider.currentSlide===0&&target===last&&slider.direction!=="next")?false:(slider.atEnd&&slider.currentSlide===last&&target===0&&slider.direction==="next")?false:true;};slider.getTarget=function(dir){slider.direction=dir;if(dir==="next"){return(slider.currentSlide===slider.last)?0:slider.currentSlide+1;}else{return(slider.currentSlide===0)?slider.last:slider.currentSlide-1;}};slider.setProps=function(pos,special,dur){var target=(function(){var posCheck=(pos)?pos:((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo,posCalc=(function(){if(carousel){return(special==="setTouch")?pos:(reverse&&slider.animatingTo===slider.last)?0:(reverse)?slider.limit-(((slider.itemW+slider.vars.itemMargin)*slider.move)*slider.animatingTo):(slider.animatingTo===slider.last)?slider.limit:posCheck;}else{switch(special){case"setTotal":return(reverse)?((slider.count-1)-slider.currentSlide+slider.cloneOffset)*pos:(slider.currentSlide+slider.cloneOffset)*pos;case"setTouch":return(reverse)?pos:pos;case"jumpEnd":return(reverse)?pos:slider.count*pos;case"jumpStart":return(reverse)?slider.count*pos:pos;default:return pos;}}}());return(posCalc*((slider.vars.rtl)?1:-1))+"px";}());dur=(dur!==undefined)?(dur/1000)+"s":"0s";slider.container.css("transition-duration",dur);if(slider.transforms){target=(vertical)?"translate3d(0,"+target+",0)":"translate3d("+(parseInt(target)+'px')+",0,0)";}else{slider.container.css("transition-timing-function",easing);}
294slider.args[slider.prop]=target;slider.container.css(slider.args);};slider.setup=function(type){if(!fade){var sliderOffset,arr;if(type==="init"){slider.viewport=$('<div class="'+namespace+'viewport"></div>').css({"overflow":"hidden","position":"relative"}).appendTo(slider).append(slider.container);slider.cloneCount=0;slider.cloneOffset=0;if(reverse){arr=$.makeArray(slider.slides).reverse();slider.slides=$(arr);slider.container.empty().append(slider.slides);}}
295if(slider.vars.animationLoop&&!carousel){slider.cloneCount=2;slider.cloneOffset=1;if(type!=="init"){slider.container.find('.clone').remove();}
296slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden','true')).prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden','true'));}
297slider.newSlides=$(slider.vars.selector,slider);sliderOffset=(reverse)?slider.count-1-slider.currentSlide+slider.cloneOffset:slider.currentSlide+slider.cloneOffset;if(vertical&&!carousel){slider.container.height((slider.count+slider.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){slider.newSlides.css({"display":"block"});slider.doMath();slider.viewport.height(slider.h);slider.setProps(sliderOffset*slider.h,"init");},(type==="init")?100:0);}else{slider.container.width((slider.count+slider.cloneCount)*200+"%");slider.setProps(sliderOffset*slider.computedW,"init");setTimeout(function(){slider.doMath();if(slider.vars.rtl){slider.newSlides.css({"width":slider.computedW,"marginRight":slider.computedM,"float":"right","display":"block"});}
298else{slider.newSlides.css({"width":slider.computedW,"marginRight":slider.computedM,"float":"left","display":"block"});}
299if(slider.vars.smoothHeight){methods.smoothHeight();}},(type==="init")?100:0);}}else{if(slider.vars.rtl){slider.slides.css({"width":"100%","float":'right',"marginLeft":"-100%","position":"relative"});}
300else{slider.slides.css({"width":"100%","float":'left',"marginRight":"-100%","position":"relative"});}
301if(type==="init"){if(!touch){if(slider.vars.fadeFirstSlide==false){slider.slides.css({"opacity":0,"display":"block","zIndex":1}).eq(slider.currentSlide).css({"opacity":1,"zIndex":2});slider.slides.outerWidth();}else{slider.slides.css({"opacity":0,"display":"block","zIndex":1}).outerWidth();slider.slides.eq(slider.currentSlide).css({"opacity":1,"zIndex":2});}
302slider.slides.css({"transition":"opacity "+slider.vars.animationSpeed/1000+"s "+easing});}else{slider.slides.css({"opacity":0,"display":"block","transition":"opacity "+slider.vars.animationSpeed/1000+"s ease","zIndex":1}).eq(slider.currentSlide).css({"opacity":1,"zIndex":2});}}
303if(slider.vars.smoothHeight){methods.smoothHeight();}}
304if(!carousel){slider.slides.removeClass(namespace+"active-slide").eq(slider.currentSlide).addClass(namespace+"active-slide");}
305slider.vars.init(slider);};slider.doMath=function(){var slide=slider.slides.first(),slideMargin=slider.vars.itemMargin,minItems=slider.vars.minItems,maxItems=slider.vars.maxItems;slider.w=(slider.viewport===undefined)?slider.width():slider.viewport.width();if(slider.isFirefox){slider.w=slider.width();}
306slider.h=slide.height();slider.boxPadding=slide.outerWidth()-slide.width();if(carousel){slider.itemT=slider.vars.itemWidth+slideMargin;slider.itemM=slideMargin;slider.minW=(minItems)?minItems*slider.itemT:slider.w;slider.maxW=(maxItems)?(maxItems*slider.itemT)-slideMargin:slider.w;slider.itemW=(slider.minW>slider.w)?(slider.w-(slideMargin*(minItems-1)))/minItems:(slider.maxW<slider.w)?(slider.w-(slideMargin*(maxItems-1)))/maxItems:(slider.vars.itemWidth>slider.w)?slider.w:slider.vars.itemWidth;slider.visible=Math.floor(slider.w/(slider.itemW));slider.move=(slider.vars.move>0&&slider.vars.move<slider.visible)?slider.vars.move:slider.visible;slider.pagingCount=Math.ceil(((slider.count-slider.visible)/slider.move)+1);slider.last=slider.pagingCount-1;slider.limit=(slider.pagingCount===1)?0:(slider.vars.itemWidth>slider.w)?(slider.itemW*(slider.count-1))+(slideMargin*(slider.count-1)):((slider.itemW+slideMargin)*slider.count)-slider.w-slideMargin;}else{slider.itemW=slider.w;slider.itemM=slideMargin;slider.pagingCount=slider.count;slider.last=slider.count-1;}
307slider.computedW=slider.itemW-slider.boxPadding;slider.computedM=slider.itemM;};slider.update=function(pos,action){slider.doMath();if(!carousel){if(pos<slider.currentSlide){slider.currentSlide+=1;}else if(pos<=slider.currentSlide&&pos!==0){slider.currentSlide-=1;}
308slider.animatingTo=slider.currentSlide;}
309if(slider.vars.controlNav&&!slider.manualControls){if((action==="add"&&!carousel)||slider.pagingCount>slider.controlNav.length){methods.controlNav.update("add");}else if((action==="remove"&&!carousel)||slider.pagingCount<slider.controlNav.length){if(carousel&&slider.currentSlide>slider.last){slider.currentSlide-=1;slider.animatingTo-=1;}
310methods.controlNav.update("remove",slider.last);}}
311if(slider.vars.directionNav){methods.directionNav.update();}};slider.addSlide=function(obj,pos){var $obj=$(obj);slider.count+=1;slider.last=slider.count-1;if(vertical&&reverse){(pos!==undefined)?slider.slides.eq(slider.count-pos).after($obj):slider.container.prepend($obj);}else{(pos!==undefined)?slider.slides.eq(pos).before($obj):slider.container.append($obj);}
312slider.update(pos,"add");slider.slides=$(slider.vars.selector+':not(.clone)',slider);slider.setup();slider.vars.added(slider);};slider.removeSlide=function(obj){var pos=(isNaN(obj))?slider.slides.index($(obj)):obj;slider.count-=1;slider.last=slider.count-1;if(isNaN(obj)){$(obj,slider.slides).remove();}else{(vertical&&reverse)?slider.slides.eq(slider.last).remove():slider.slides.eq(obj).remove();}
313slider.doMath();slider.update(pos,"remove");slider.slides=$(slider.vars.selector+':not(.clone)',slider);slider.setup();slider.vars.removed(slider);};methods.init();};$(window).on('blur',function(e){focused=false;}).on('focus',function(e){focused=true;});$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7000,animationSpeed:600,initDelay:0,randomize:false,fadeFirstSlide:true,thumbCaptions:false,pauseOnAction:true,pauseOnHover:false,pauseInvisible:true,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"Previous",nextText:"Next",keyboard:true,multipleKeyboard:false,mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:true,isFirefox:false,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:false};$.fn.flexslider=function(options){if(options===undefined){options={};}
314if(typeof options==="object"){return this.each(function(){var $this=$(this),selector=(options.selector)?options.selector:".slides > li",$slides=$this.find(selector);if(($slides.length===1&&options.allowOneSlide===false)||$slides.length===0){var fadeIn=[{opacity:0},{opacity:1}];if($slides.length){$slides[0].animate(fadeIn,400);}
315if(options.start){options.start($this);}}else if($this.data('flexslider')===undefined){new $.flexslider(this,options);}});}else{var $slider=$(this).data('flexslider');switch(options){case"play":$slider.play();break;case"pause":$slider.pause();break;case"stop":$slider.stop();break;case"next":$slider.flexAnimate($slider.getTarget("next"),true);break;case"prev":case"previous":$slider.flexAnimate($slider.getTarget("prev"),true);break;default:if(typeof options==="number"){$slider.flexAnimate(options,true);}}}};})(jQuery);
316/*!
317 * Select2 4.0.3
318 * https://select2.github.io
319 *
320 * Released under the MIT license
321 * https://github.com/select2/select2/blob/master/LICENSE.md
322 */
323(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(jQuery);}}(function(jQuery){var S2=(function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd){var S2=jQuery.fn.select2.amd;}
324var S2;(function(){if(!S2||!S2.requirejs){if(!S2){S2={};}else{require=S2;}
325var requirejs,require,define;(function(undef){var main,req,makeMap,handlers,defined={},waiting={},config={},defining={},hasOwn=Object.prototype.hasOwnProperty,aps=[].slice,jsSuffixRegExp=/\.js$/;function hasProp(obj,prop){return hasOwn.call(obj,prop);}
326function normalize(name,baseName){var nameParts,nameSegment,mapValue,foundMap,lastIndex,foundI,foundStarMap,starI,i,j,part,baseParts=baseName&&baseName.split("/"),map=config.map,starMap=(map&&map['*'])||{};if(name&&name.charAt(0)==="."){if(baseName){name=name.split('/');lastIndex=name.length-1;if(config.nodeIdCompat&&jsSuffixRegExp.test(name[lastIndex])){name[lastIndex]=name[lastIndex].replace(jsSuffixRegExp,'');}
327name=baseParts.slice(0,baseParts.length-1).concat(name);for(i=0;i<name.length;i+=1){part=name[i];if(part==="."){name.splice(i,1);i-=1;}else if(part===".."){if(i===1&&(name[2]==='..'||name[0]==='..')){break;}else if(i>0){name.splice(i-1,2);i-=2;}}}
328name=name.join("/");}else if(name.indexOf('./')===0){name=name.substring(2);}}
329if((baseParts||starMap)&&map){nameParts=name.split('/');for(i=nameParts.length;i>0;i-=1){nameSegment=nameParts.slice(0,i).join("/");if(baseParts){for(j=baseParts.length;j>0;j-=1){mapValue=map[baseParts.slice(0,j).join('/')];if(mapValue){mapValue=mapValue[nameSegment];if(mapValue){foundMap=mapValue;foundI=i;break;}}}}
330if(foundMap){break;}
331if(!foundStarMap&&starMap&&starMap[nameSegment]){foundStarMap=starMap[nameSegment];starI=i;}}
vendor: 6,578 bytes, lines 332-369
332if(!foundMap&&foundStarMap){foundMap=foundStarMap;foundI=starI;}
333if(foundMap){nameParts.splice(0,foundI,foundMap);name=nameParts.join('/');}}
334return name;}
335function makeRequire(relName,forceSync){return function(){var args=aps.call(arguments,0);if(typeof args[0]!=='string'&&args.length===1){args.push(null);}
336return req.apply(undef,args.concat([relName,forceSync]));};}
337function makeNormalize(relName){return function(name){return normalize(name,relName);};}
338function makeLoad(depName){return function(value){defined[depName]=value;};}
339function callDep(name){if(hasProp(waiting,name)){var args=waiting[name];delete waiting[name];defining[name]=true;main.apply(undef,args);}
340if(!hasProp(defined,name)&&!hasProp(defining,name)){throw new Error('No '+name);}
341return defined[name];}
342function splitPrefix(name){var prefix,index=name?name.indexOf('!'):-1;if(index>-1){prefix=name.substring(0,index);name=name.substring(index+1,name.length);}
343return[prefix,name];}
344makeMap=function(name,relName){var plugin,parts=splitPrefix(name),prefix=parts[0];name=parts[1];if(prefix){prefix=normalize(prefix,relName);plugin=callDep(prefix);}
345if(prefix){if(plugin&&plugin.normalize){name=plugin.normalize(name,makeNormalize(relName));}else{name=normalize(name,relName);}}else{name=normalize(name,relName);parts=splitPrefix(name);prefix=parts[0];name=parts[1];if(prefix){plugin=callDep(prefix);}}
346return{f:prefix?prefix+'!'+name:name,n:name,pr:prefix,p:plugin};};function makeConfig(name){return function(){return(config&&config.config&&config.config[name])||{};};}
347handlers={require:function(name){return makeRequire(name);},exports:function(name){var e=defined[name];if(typeof e!=='undefined'){return e;}else{return(defined[name]={});}},module:function(name){return{id:name,uri:'',exports:defined[name],config:makeConfig(name)};}};main=function(name,deps,callback,relName){var cjsModule,depName,ret,map,i,args=[],callbackType=typeof callback,usingExports;relName=relName||name;if(callbackType==='undefined'||callbackType==='function'){deps=!deps.length&&callback.length?['require','exports','module']:deps;for(i=0;i<deps.length;i+=1){map=makeMap(deps[i],relName);depName=map.f;if(depName==="require"){args[i]=handlers.require(name);}else if(depName==="exports"){args[i]=handlers.exports(name);usingExports=true;}else if(depName==="module"){cjsModule=args[i]=handlers.module(name);}else if(hasProp(defined,depName)||hasProp(waiting,depName)||hasProp(defining,depName)){args[i]=callDep(depName);}else if(map.p){map.p.load(map.n,makeRequire(relName,true),makeLoad(depName),{});args[i]=defined[depName];}else{throw new Error(name+' missing '+depName);}}
348ret=callback?callback.apply(defined[name],args):undefined;if(name){if(cjsModule&&cjsModule.exports!==undef&&cjsModule.exports!==defined[name]){defined[name]=cjsModule.exports;}else if(ret!==undef||!usingExports){defined[name]=ret;}}}else if(name){defined[name]=callback;}};requirejs=require=req=function(deps,callback,relName,forceSync,alt){if(typeof deps==="string"){if(handlers[deps]){return handlers[deps](callback);}
349return callDep(makeMap(deps,callback).f);}else if(!deps.splice){config=deps;if(config.deps){req(config.deps,config.callback);}
350if(!callback){return;}
351if(callback.splice){deps=callback;callback=relName;relName=null;}else{deps=undef;}}
352callback=callback||function(){};if(typeof relName==='function'){relName=forceSync;forceSync=alt;}
353if(forceSync){main(undef,deps,callback,relName);}else{setTimeout(function(){main(undef,deps,callback,relName);},4);}
354return req;};req.config=function(cfg){return req(cfg);};requirejs._defined=defined;define=function(name,deps,callback){if(typeof name!=='string'){throw new Error('See almond README: incorrect module build, no module name');}
355if(!deps.splice){callback=deps;deps=[];}
356if(!hasProp(defined,name)&&!hasProp(waiting,name)){waiting[name]=[name,deps,callback];}};define.amd={jQuery:true};}());S2.requirejs=requirejs;S2.require=require;S2.define=define;}}());S2.define("almond",function(){});S2.define('jquery',[],function(){var _$=jQuery||$;if(_$==null&&console&&console.error){console.error('Select2: An instance of jQuery or a jQuery-compatible library was not '+'found. Make sure that you are including jQuery before Select2 on your '+'web page.');}
357return _$;});S2.define('select2/utils',['jquery'],function($){var Utils={};Utils.Extend=function(ChildClass,SuperClass){var __hasProp={}.hasOwnProperty;function BaseConstructor(){this.constructor=ChildClass;}
358for(var key in SuperClass){if(__hasProp.call(SuperClass,key)){ChildClass[key]=SuperClass[key];}}
359BaseConstructor.prototype=SuperClass.prototype;ChildClass.prototype=new BaseConstructor();ChildClass.__super__=SuperClass.prototype;return ChildClass;};function getMethods(theClass){var proto=theClass.prototype;var methods=[];for(var methodName in proto){var m=proto[methodName];if(typeof m!=='function'){continue;}
360if(methodName==='constructor'){continue;}
361methods.push(methodName);}
362return methods;}
363Utils.Decorate=function(SuperClass,DecoratorClass){var decoratedMethods=getMethods(DecoratorClass);var superMethods=getMethods(SuperClass);function DecoratedClass(){var unshift=Array.prototype.unshift;var argCount=DecoratorClass.prototype.constructor.length;var calledConstructor=SuperClass.prototype.constructor;if(argCount>0){unshift.call(arguments,SuperClass.prototype.constructor);calledConstructor=DecoratorClass.prototype.constructor;}
364calledConstructor.apply(this,arguments);}
365DecoratorClass.displayName=SuperClass.displayName;function ctr(){this.constructor=DecoratedClass;}
366DecoratedClass.prototype=new ctr();for(var m=0;m<superMethods.length;m++){var superMethod=superMethods[m];DecoratedClass.prototype[superMethod]=SuperClass.prototype[superMethod];}
367var calledMethod=function(methodName){var originalMethod=function(){};if(methodName in DecoratedClass.prototype){originalMethod=DecoratedClass.prototype[methodName];}
368var decoratedMethod=DecoratorClass.prototype[methodName];return function(){var unshift=Array.prototype.unshift;unshift.call(arguments,originalMethod);return decoratedMethod.apply(this,arguments);};};for(var d=0;d<decoratedMethods.length;d++){var decoratedMethod=decoratedMethods[d];DecoratedClass.prototype[decoratedMethod]=calledMethod(decoratedMethod);}
369return DecoratedClass;};var Observable=function(){this.listeners={};};Observable.prototype.on=function(event,callback){this.listeners=this.listeners||{};if(event in this.listeners){this.listeners[event].push(callback);}else{this.listeners[event]=[callback];}};Observable.prototype.trigger=function(event){var slice=Array.prototype.slice;
369var params=slice.call(arguments,1);this.listeners=this.listeners||{};if(params==null){params=[];}
370if(params.length===0){params.push({});}
371params[0]._type=event;if(event in this.listeners){this.invoke(this.listeners[event],slice.call(arguments,1));}
372if('*'in this.listeners){this.invoke(this.listeners['*'],arguments);}};Observable.prototype.invoke=function(listeners,params){for(var i=0,len=listeners.length;i<len;i++){listeners[i].apply(this,params);}};Utils.Observable=Observable;Utils.generateChars=function(length){var chars='';for(var i=0;i<length;i++){var randomChar=Math.floor(Math.random()*36);chars+=randomChar.toString(36);}
373return chars;};Utils.bind=function(func,context){return function(){func.apply(context,arguments);};};Utils._convertData=function(data){for(var originalKey in data){var keys=originalKey.split('-');var dataLevel=data;if(keys.length===1){continue;}
374for(var k=0;k<keys.length;k++){var key=keys[k];key=key.substring(0,1).toLowerCase()+key.substring(1);if(!(key in dataLevel)){dataLevel[key]={};}
375if(k==keys.length-1){dataLevel[key]=data[originalKey];}
376dataLevel=dataLevel[key];}
377delete data[originalKey];}
378return data;};Utils.hasScroll=function(index,el){var $el=$(el);var overflowX=el.style.overflowX;var overflowY=el.style.overflowY;if(overflowX===overflowY&&(overflowY==='hidden'||overflowY==='visible')){return false;}
379if(overflowX==='scroll'||overflowY==='scroll'){return true;}
380return($el.innerHeight()<el.scrollHeight||$el.innerWidth()<el.scrollWidth);};Utils.escapeMarkup=function(markup){var replaceMap={'\\':'&#92;','&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;','\'':'&#39;','/':'&#47;'};if(typeof markup!=='string'){return markup;}
381return String(markup).replace(/[&<>"'\/\\]/g,function(match){return replaceMap[match];});};Utils.appendMany=function($element,$nodes){if($.fn.jquery.substr(0,3)==='1.7'){var $jqNodes=$();$.map($nodes,function(node){$jqNodes=$jqNodes.add(node);});$nodes=$jqNodes;}
382$element.append($nodes);};return Utils;});S2.define('select2/results',['jquery','./utils'],function($,Utils){function Results($element,options,dataAdapter){this.$element=$element;this.data=dataAdapter;this.options=options;Results.__super__.constructor.call(this);}
383Utils.Extend(Results,Utils.Observable);Results.prototype.render=function(){var $results=$('<ul class="select2-results__options" role="tree"></ul>');if(this.options.get('multiple')){$results.attr('aria-multiselectable','true');}
384this.$results=$results;return $results;};Results.prototype.clear=function(){this.$results.empty();};Results.prototype.displayMessage=function(params){var escapeMarkup=this.options.get('escapeMarkup');this.clear();this.hideLoading();var $message=$('<li role="treeitem" aria-live="assertive"'+' class="select2-results__option"></li>');var message=this.options.get('translations').get(params.message);$message.append(escapeMarkup(message(params.args)));$message[0].className+=' select2-results__message';this.$results.append($message);};Results.prototype.hideMessages=function(){this.$results.find('.select2-results__message').remove();};Results.prototype.append=function(data){this.hideLoading();var $options=[];if(data.results==null||data.results.length===0){if(this.$results.children().length===0){this.trigger('results:message',{message:'noResults'});}
385return;}
386data.results=this.sort(data.results);for(var d=0;d<data.results.length;d++){var item=data.results[d];var $option=this.option(item);$options.push($option);}
387this.$results.append($options);};Results.prototype.position=function($results,$dropdown){var $resultsContainer=$dropdown.find('.select2-results');$resultsContainer.append($results);};Results.prototype.sort=function(data){var sorter=this.options.get('sorter');return sorter(data);};Results.prototype.highlightFirstItem=function(){var $options=this.$results.find('.select2-results__option[aria-selected]');var $selected=$options.filter('[aria-selected=true]');if($selected.length>0){$selected.first().trigger('mouseenter');}else{$options.first().trigger('mouseenter');}
388this.ensureHighlightVisible();};Results.prototype.setClasses=function(){var self=this;this.data.current(function(selected){var selectedIds=$.map(selected,function(s){return s.id.toString();});var $options=self.$results.find('.select2-results__option[aria-selected]');$options.each(function(){var $option=$(this);var item=$.data(this,'data');var id=''+item.id;if((item.element!=null&&item.element.selected)||(item.element==null&&$.inArray(id,selectedIds)>-1)){$option.attr('aria-selected','true');}else{$option.attr('aria-selected','false');}});});};Results.prototype.showLoading=function(params){this.hideLoading();var loadingMore=this.options.get('translations').get('searching');var loading={disabled:true,loading:true,text:loadingMore(params)};var $loading=this.option(loading);$loading.className+=' loading-results';this.$results.prepend($loading);};Results.prototype.hideLoading=function(){this.$results.find('.loading-results').remove();};Results.prototype.option=function(data){var option=document.createElement('li');option.className='select2-results__option';var attrs={'role':'treeitem','aria-selected':'false'};if(data.disabled){delete attrs['aria-selected'];attrs['aria-disabled']='true';}
389if(data.id==null){delete attrs['aria-selected'];}
390if(data._resultId!=null){option.id=data._resultId;}
391if(data.title){option.title=data.title;}
392if(data.children){attrs.role='group';attrs['aria-label']=data.text;delete attrs['aria-selected'];}
393for(var attr in attrs){var val=attrs[attr];option.setAttribute(attr,val);}
394if(data.children){var $option=$(option);var label=document.createElement('strong');label.className='select2-results__group';var $label=$(label);this.template(data,label);var $children=[];for(var c=0;c<data.children.length;c++){var child=data.children[c];var $child=this.option(child);$children.push($child);}
395var $childrenContainer=$('<ul></ul>',{'class':'select2-results__options select2-results__options--nested'});$childrenContainer.append($children);$option.append(label);$option.append($childrenContainer);}else{this.template(data,option);}
396$.data(option,'data',data);return option;};Results.prototype.bind=function(container,$container){var self=this;var id=container.id+'-results';this.$results.attr('id',id);container.on('results:all',function(params){self.clear();self.append(params.data);if(container.isOpen()){self.setClasses();self.highlightFirstItem();}});container.on('results:append',function(params){self.append(params.data);if(container.isOpen()){self.setClasses();}});container.on('query',function(params){self.hideMessages();self.showLoading(params);});container.on('select',function(){if(!container.isOpen()){return;}
397self.setClasses();self.highlightFirstItem();});container.on('unselect',function(){if(!container.isOpen()){return;}
398self.setClasses();self.highlightFirstItem();});container.on('open',function(){self.$results.attr('aria-expanded','true');self.$results.attr('aria-hidden','false');
vendor: 21,437 bytes, lines 398-441
398self.setClasses();self.ensureHighlightVisible();});container.on('close',function(){self.$results.attr('aria-expanded','false');self.$results.attr('aria-hidden','true');self.$results.removeAttr('aria-activedescendant');});container.on('results:toggle',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}
399$highlighted.trigger('mouseup');});container.on('results:select',function(){var $highlighted=self.getHighlightedResults();if($highlighted.length===0){return;}
400var data=$highlighted.data('data');if($highlighted.attr('aria-selected')=='true'){self.trigger('close',{});}else{self.trigger('select',{data:data});}});container.on('results:previous',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);if(currentIndex===0){return;}
401var nextIndex=currentIndex-1;if($highlighted.length===0){nextIndex=0;}
402var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top;var nextTop=$next.offset().top;var nextOffset=self.$results.scrollTop()+(nextTop-currentOffset);if(nextIndex===0){self.$results.scrollTop(0);}else if(nextTop-currentOffset<0){self.$results.scrollTop(nextOffset);}});container.on('results:next',function(){var $highlighted=self.getHighlightedResults();var $options=self.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var nextIndex=currentIndex+1;if(nextIndex>=$options.length){return;}
403var $next=$options.eq(nextIndex);$next.trigger('mouseenter');var currentOffset=self.$results.offset().top+
404self.$results.outerHeight(false);var nextBottom=$next.offset().top+$next.outerHeight(false);var nextOffset=self.$results.scrollTop()+nextBottom-currentOffset;if(nextIndex===0){self.$results.scrollTop(0);}else if(nextBottom>currentOffset){self.$results.scrollTop(nextOffset);}});container.on('results:focus',function(params){params.element.addClass('select2-results__option--highlighted');});container.on('results:message',function(params){self.displayMessage(params);});if($.fn.mousewheel){this.$results.on('mousewheel',function(e){var top=self.$results.scrollTop();var bottom=self.$results.get(0).scrollHeight-top+e.deltaY;var isAtTop=e.deltaY>0&&top-e.deltaY<=0;var isAtBottom=e.deltaY<0&&bottom<=self.$results.height();if(isAtTop){self.$results.scrollTop(0);e.preventDefault();e.stopPropagation();}else if(isAtBottom){self.$results.scrollTop(self.$results.get(0).scrollHeight-self.$results.height());e.preventDefault();e.stopPropagation();}});}
405this.$results.on('mouseup','.select2-results__option[aria-selected]',function(evt){var $this=$(this);var data=$this.data('data');if($this.attr('aria-selected')==='true'){if(self.options.get('multiple')){self.trigger('unselect',{originalEvent:evt,data:data});}else{self.trigger('close',{});}
406return;}
407self.trigger('select',{originalEvent:evt,data:data});});this.$results.on('mouseenter','.select2-results__option[aria-selected]',function(evt){var data=$(this).data('data');self.getHighlightedResults().removeClass('select2-results__option--highlighted');self.trigger('results:focus',{data:data,element:$(this)});});};Results.prototype.getHighlightedResults=function(){var $highlighted=this.$results.find('.select2-results__option--highlighted');return $highlighted;};Results.prototype.destroy=function(){this.$results.remove();};Results.prototype.ensureHighlightVisible=function(){var $highlighted=this.getHighlightedResults();if($highlighted.length===0){return;}
408var $options=this.$results.find('[aria-selected]');var currentIndex=$options.index($highlighted);var currentOffset=this.$results.offset().top;var nextTop=$highlighted.offset().top;var nextOffset=this.$results.scrollTop()+(nextTop-currentOffset);var offsetDelta=nextTop-currentOffset;nextOffset-=$highlighted.outerHeight(false)*2;if(currentIndex<=2){this.$results.scrollTop(0);}else if(offsetDelta>this.$results.outerHeight()||offsetDelta<0){this.$results.scrollTop(nextOffset);}};Results.prototype.template=function(result,container){var template=this.options.get('templateResult');var escapeMarkup=this.options.get('escapeMarkup');var content=template(result,container);if(content==null){container.style.display='none';}else if(typeof content==='string'){container.innerHTML=escapeMarkup(content);}else{$(container).append(content);}};return Results;});S2.define('select2/keys',[],function(){var KEYS={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return KEYS;});S2.define('select2/selection/base',['jquery','../utils','../keys'],function($,Utils,KEYS){function BaseSelection($element,options){this.$element=$element;this.options=options;BaseSelection.__super__.constructor.call(this);}
409Utils.Extend(BaseSelection,Utils.Observable);BaseSelection.prototype.render=function(){var $selection=$('<span class="select2-selection" role="combobox" '+' aria-haspopup="true" aria-expanded="false">'+'</span>');this._tabindex=0;if(this.$element.data('old-tabindex')!=null){this._tabindex=this.$element.data('old-tabindex');}else if(this.$element.attr('tabindex')!=null){this._tabindex=this.$element.attr('tabindex');}
410$selection.attr('title',this.$element.attr('title'));$selection.attr('tabindex',this._tabindex);this.$selection=$selection;return $selection;};BaseSelection.prototype.bind=function(container,$container){var self=this;var id=container.id+'-container';var resultsId=container.id+'-results';this.container=container;this.$selection.on('focus',function(evt){self.trigger('focus',evt);});this.$selection.on('blur',function(evt){self._handleBlur(evt);});this.$selection.on('keydown',function(evt){self.trigger('keypress',evt);if(evt.which===KEYS.SPACE){evt.preventDefault();}});container.on('results:focus',function(params){self.$selection.attr('aria-activedescendant',params.data._resultId);});container.on('selection:update',function(params){self.update(params.data);});container.on('open',function(){self.$selection.attr('aria-expanded','true');self.$selection.attr('aria-owns',resultsId);self._attachCloseHandler(container);});container.on('close',function(){self.$selection.attr('aria-expanded','false');self.$selection.removeAttr('aria-activedescendant');self.$selection.removeAttr('aria-owns');self.$selection.focus();self._detachCloseHandler(container);});container.on('enable',function(){self.$selection.attr('tabindex',self._tabindex);});container.on('disable',function(){self.$selection.attr('tabindex','-1');});};BaseSelection.prototype._handleBlur=function(evt){var self=this;window.setTimeout(function(){if((document.activeElement==self.$selection[0])||($.contains(self.$selection[0],document.activeElement))){return;}
411self.trigger('blur',evt);},1);};BaseSelection.prototype._attachCloseHandler=function(container){var self=this;$(document.body).on('mousedown.select2.'+container.id,function(e){var $target=$(e.target);var $select=$target.closest('.select2');var $all=$('.select2.select2-container--open');$all.each(function(){var $this=$(this);if(this==$select[0]){return;}
412var $element=$this.data('element');$element.select2('close');});});};BaseSelection.prototype._detachCloseHandler=function(container){$(document.body).off('mousedown.select2.'+container.id);};BaseSelection.prototype.position=function($selection,$container){var $selectionContainer=$container.find('.selection');$selectionContainer.append($selection);};BaseSelection.prototype.destroy=function(){this._detachCloseHandler(this.container);};BaseSelection.prototype.update=function(data){throw new Error('The `update` method must be defined in child classes.');};return BaseSelection;});S2.define('select2/selection/single',['jquery','./base','../utils','../keys'],function($,BaseSelection,Utils,KEYS){function SingleSelection(){SingleSelection.__super__.constructor.apply(this,arguments);}
413Utils.Extend(SingleSelection,BaseSelection);SingleSelection.prototype.render=function(){var $selection=SingleSelection.__super__.render.call(this);$selection.addClass('select2-selection--single');$selection.html('<span class="select2-selection__rendered"></span>'+'<span class="select2-selection__arrow" role="presentation">'+'<b role="presentation"></b>'+'</span>');return $selection;};SingleSelection.prototype.bind=function(container,$container){var self=this;SingleSelection.__super__.bind.apply(this,arguments);var id=container.id+'-container';this.$selection.find('.select2-selection__rendered').attr('id',id);this.$selection.attr('aria-labelledby',id);this.$selection.on('mousedown',function(evt){if(evt.which!==1){return;}
414self.trigger('toggle',{originalEvent:evt});});this.$selection.on('focus',function(evt){});this.$selection.on('blur',function(evt){});container.on('focus',function(evt){if(!container.isOpen()){self.$selection.focus();}});container.on('selection:update',function(params){self.update(params.data);});};SingleSelection.prototype.clear=function(){this.$selection.find('.select2-selection__rendered').empty();};SingleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};SingleSelection.prototype.selectionContainer=function(){return $('<span></span>');};SingleSelection.prototype.update=function(data){if(data.length===0){this.clear();return;}
415var selection=data[0];var $rendered=this.$selection.find('.select2-selection__rendered');var formatted=this.display(selection,$rendered);$rendered.empty().append(formatted);$rendered.prop('title',selection.title||selection.text);};return SingleSelection;});S2.define('select2/selection/multiple',['jquery','./base','../utils'],function($,BaseSelection,Utils){function MultipleSelection($element,options){MultipleSelection.__super__.constructor.apply(this,arguments);}
416Utils.Extend(MultipleSelection,BaseSelection);MultipleSelection.prototype.render=function(){var $selection=MultipleSelection.__super__.render.call(this);$selection.addClass('select2-selection--multiple');$selection.html('<ul class="select2-selection__rendered"></ul>');return $selection;};MultipleSelection.prototype.bind=function(container,$container){var self=this;MultipleSelection.__super__.bind.apply(this,arguments);this.$selection.on('click',function(evt){self.trigger('toggle',{originalEvent:evt});});this.$selection.on('click','.select2-selection__choice__remove',function(evt){if(self.options.get('disabled')){return;}
417var $remove=$(this);var $selection=$remove.parent();var data=$selection.data('data');self.trigger('unselect',{originalEvent:evt,data:data});});};MultipleSelection.prototype.clear=function(){this.$selection.find('.select2-selection__rendered').empty();};MultipleSelection.prototype.display=function(data,container){var template=this.options.get('templateSelection');var escapeMarkup=this.options.get('escapeMarkup');return escapeMarkup(template(data,container));};MultipleSelection.prototype.selectionContainer=function(){var $container=$('<li class="select2-selection__choice">'+'<span class="select2-selection__choice__remove" role="presentation">'+'&times;'+'</span>'+'</li>');return $container;};MultipleSelection.prototype.update=function(data){this.clear();if(data.length===0){return;}
418var $selections=[];for(var d=0;d<data.length;d++){var selection=data[d];var $selection=this.selectionContainer();var formatted=this.display(selection,$selection);$selection.append(formatted);$selection.prop('title',selection.title||selection.text);$selection.data('data',selection);$selections.push($selection);}
419var $rendered=this.$selection.find('.select2-selection__rendered');Utils.appendMany($rendered,$selections);};return MultipleSelection;});S2.define('select2/selection/placeholder',['../utils'],function(Utils){function Placeholder(decorated,$element,options){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options);}
420Placeholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}
421return placeholder;};Placeholder.prototype.createPlaceholder=function(decorated,placeholder){var $placeholder=this.selectionContainer();$placeholder.html(this.display(placeholder));$placeholder.addClass('select2-selection__placeholder').removeClass('select2-selection__choice');return $placeholder;};Placeholder.prototype.update=function(decorated,data){var singlePlaceholder=(data.length==1&&data[0].id!=this.placeholder.id);var multipleSelections=data.length>1;if(multipleSelections||singlePlaceholder){return decorated.call(this,data);}
422this.clear();var $placeholder=this.createPlaceholder(this.placeholder);this.$selection.find('.select2-selection__rendered').append($placeholder);};return Placeholder;});S2.define('select2/selection/allowClear',['jquery','../keys'],function($,KEYS){function AllowClear(){}
423AllowClear.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);if(this.placeholder==null){if(this.options.get('debug')&&window.console&&console.error){console.error('Select2: The `allowClear` option should be used in combination '+'with the `placeholder` option.');}}
424this.$selection.on('mousedown','.select2-selection__clear',function(evt){self._handleClear(evt);});container.on('keypress',function(evt){self._handleKeyboardClear(evt,container);});};AllowClear.prototype._handleClear=function(_,evt){if(this.options.get('disabled')){return;}
425var $clear=this.$selection.find('.select2-selection__clear');if($clear.length===0){return;}
426evt.stopPropagation();var data=$clear.data('data');for(var d=0;d<data.length;d++){var unselectData={data:data[d]};this.trigger('unselect',unselectData);if(unselectData.prevented){return;}}
427this.$element.val(this.placeholder.id).trigger('change');this.trigger('toggle',{});};AllowClear.prototype._handleKeyboardClear=function(_,evt,container){if(container.isOpen()){return;}
428if(evt.which==KEYS.DELETE||evt.which==KEYS.BACKSPACE){this._handleClear(evt);}};AllowClear.prototype.update=function(decorated,data){decorated.call(this,data);if(this.$selection.find('.select2-selection__placeholder').length>0||data.length===0){return;}
429var $remove=$('<span class="select2-selection__clear">'+'&times;'+'</span>');$remove.data('data',data);this.$selection.find('.select2-selection__rendered').prepend($remove);};return AllowClear;});S2.define('select2/selection/search',['jquery','../utils','../keys'],function($,Utils,KEYS){function Search(decorated,$element,options){decorated.call(this,$element,options);}
430Search.prototype.render=function(decorated){var $search=$('<li class="select2-search select2-search--inline">'+'<input class="select2-search__field" type="search" tabindex="-1"'+' autocomplete="off" autocorrect="off" autocapitalize="off"'+' spellcheck="false" role="textbox" aria-autocomplete="list" />'+'</li>');this.$searchContainer=$search;this.$search=$search.find('input');var $rendered=decorated.call(this);this._transferTabIndex();return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('open',function(){self.$search.trigger('focus');});container.on('close',function(){self.$search.val('');self.$search.removeAttr('aria-activedescendant');self.$search.trigger('focus');});container.on('enable',function(){self.$search.prop('disabled',false);self._transferTabIndex();});container.on('disable',function(){self.$search.prop('disabled',true);});container.on('focus',function(evt){self.$search.trigger('focus');});container.on('results:focus',function(params){self.$search.attr('aria-activedescendant',params.id);});this.$selection.on('focusin','.select2-search--inline',function(evt){self.trigger('focus',evt);});this.$selection.on('focusout','.select2-search--inline',function(evt){self._handleBlur(evt);});this.$selection.on('keydown','.select2-search--inline',function(evt){evt.stopPropagation();self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();var key=evt.which;if(key===KEYS.BACKSPACE&&self.$search.val()===''){var $previousChoice=self.$searchContainer.prev('.select2-selection__choice');if($previousChoice.length>0){var item=$previousChoice.data('data');self.searchRemoveChoice(item);evt.preventDefault();}}});var msie=document.documentMode;var disableInputEvents=msie&&msie<=11;this.$selection.on('input.searchcheck','.select2-search--inline',function(evt){if(disableInputEvents){self.$selection.off('input.search input.searchcheck');return;}
431self.$selection.off('keyup.search');});this.$selection.on('keyup.search input.search','.select2-search--inline',function(evt){if(disableInputEvents&&evt.type==='input'){self.$selection.off('input.search input.searchcheck');return;}
432var key=evt.which;if(key==KEYS.SHIFT||key==KEYS.CTRL||key==KEYS.ALT){return;}
433if(key==KEYS.TAB){return;}
434self.handleSearch(evt);});};Search.prototype._transferTabIndex=function(decorated){this.$search.attr('tabindex',this.$selection.attr('tabindex'));this.$selection.attr('tabindex','-1');};Search.prototype.createPlaceholder=function(decorated,placeholder){this.$search.attr('placeholder',placeholder.text);};Search.prototype.update=function(decorated,data){var searchHadFocus=this.$search[0]==document.activeElement;this.$search.attr('placeholder','');decorated.call(this,data);this.$selection.find('.select2-selection__rendered').append(this.$searchContainer);this.resizeSearch();if(searchHadFocus){this.$search.focus();}};Search.prototype.handleSearch=function(){this.resizeSearch();if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}
435this._keyUpPrevented=false;};Search.prototype.searchRemoveChoice=function(decorated,item){this.trigger('unselect',{data:item});this.$search.val(item.text);this.handleSearch();};Search.prototype.resizeSearch=function(){this.$search.css('width','25px');var width='';if(this.$search.attr('placeholder')!==''){width=this.$selection.find('.select2-selection__rendered').innerWidth();}else{var minimumWidth=this.$search.val().length+1;width=(minimumWidth*0.75)+'em';}
436this.$search.css('width',width);};return Search;});S2.define('select2/selection/eventRelay',['jquery'],function($){function EventRelay(){}
437EventRelay.prototype.bind=function(decorated,container,$container){var self=this;var relayEvents=['open','opening','close','closing','select','selecting','unselect','unselecting'];var preventableEvents=['opening','closing','selecting','unselecting'];decorated.call(this,container,$container);container.on('*',function(name,params){if($.inArray(name,relayEvents)===-1){return;}
438params=params||{};var evt=$.Event('select2:'+name,{params:params});self.$element.trigger(evt);if($.inArray(name,preventableEvents)===-1){return;}
439params.prevented=evt.isDefaultPrevented();});};return EventRelay;});S2.define('select2/translation',['jquery','require'],function($,require){function Translation(dict){this.dict=dict||{};}
440Translation.prototype.all=function(){return this.dict;};Translation.prototype.get=function(key){return this.dict[key];};Translation.prototype.extend=function(translation){this.dict=$.extend({},translation.all(),this.dict);};Translation._cache={};Translation.loadPath=function(path){if(!(path in Translation._cache)){var translations=require(path);Translation._cache[path]=translations;}
441return new Translation(Translation._cache[path]);};return Translation;});S2.define('select2/diacritics',[],function(){var diacritics={'\u24B6':'A','\uFF21':'A','\u00C0':'A','\u00C1':'A','\u00C2':'A','\u1EA6':'A','\u1EA4':'A','\u1EAA':'A','\u1EA8':'A','\u00C3':'A','\u0100':'A','\u0102':'A','\u1EB0':'A','\u1EAE':'A','\u1EB4':'A','\u1EB2':'A','\u0226':'A','\u01E0':'A','\u00C4':'A','\u01DE':'A','\u1EA2':'A','\u00C5':'A','\u01FA':'A','\u01CD':'A','\u0200':'A','\u0202':'A','\u1EA0':'A','\u1EAC':'A','\u1EB6':'A','\u1E00':'A','\u0104':'A','\u023A':'A','\u2C6F':'A','\uA732':'AA','\u00C6':'AE','\u01FC':'AE','\u01E2':'AE','\uA734':'AO','\uA736':'AU','\uA738':'AV','\uA73A':'AV','\uA73C':'AY','\u24B7':'B','\uFF22':'B','\u1E02':'B','\u1E04':'B','\u1E06':'B','\u0243':'B','\u0182':'B','\u0181':'B','\u24B8':'C','\uFF23':'C','\u0106':'C','\u0108':'C','\u010A':'C','\u010C':'C','\u00C7':'C','\u1E08':'C','\u0187':'C','\u023B':'C','\uA73E':'C','\u24B9':'D','\uFF24':'D','\u1E0A':'D','\u010E':'D','\u1E0C':'D','\u1E10':'D','\u1E12':'D','\u1E0E':'D','\u0110':'D','\u018B':'D','\u018A':'D','\u0189':'D','\uA779':'D','\u01F1':'DZ','\u01C4':'DZ','\u01F2':'Dz','\u01C5':'Dz','\u24BA':'E','\uFF25':'E','\u00C8':'E','\u00C9':'E','\u00CA':'E','\u1EC0':'E','\u1EBE':'E','\u1EC4':'E','\u1EC2':'E','\u1EBC':'E','\u0112':'E','\u1E14':'E','\u1E16':'E','\u0114':'E','\u0116':'E','\u00CB':'E','\u1EBA':'E','\u011A':'E','\u0204':'E','\u0206':'E','\u1EB8':'E','\u1EC6':'E','\u0228':'E','\u1E1C':'E','\u0118':'E','\u1E18':'E','\u1E1A':'E','\u0190':'E','\u018E':'E','\u24BB':'F','\uFF26':'F','\u1E1E':'F','\u0191':'F','\uA77B':'F','\u24BC':'G','\uFF27':'G','\u01F4':'G','\u011C':'G','\u1E20':'G','\u011E':'G','\u0120':'G','\u01E6':'G','\u0122':'G','\u01E4':'G','\u0193':'G','\uA7A0':'G','\uA77D':'G','\uA77E':'G','\u24BD':'H','\uFF28':'H','\u0124':'H','\u1E22':'H','\u1E26':'H','\u021E':'H','\u1E24':'H','\u1E28':'H','\u1E2A':'H','\u0126':'H','\u2C67':'H','\u2C75':'H','\uA78D':'H','\u24BE':'I','\uFF29':'I','\u00CC':'I','\u00CD':'I'
441,'\u00CE':'I','\u0128':'I','\u012A':'I','\u012C':'I','\u0130':'I','\u00CF':'I','\u1E2E':'I','\u1EC8':'I','\u01CF':'I','\u0208':'I','\u020A':'I','\u1ECA':'I','\u012E':'I','\u1E2C':'I','\u0197':'I','\u24BF':'J','\uFF2A':'J','\u0134':'J','\u0248':'J','\u24C0':'K','\uFF2B':'K','\u1E30':'K','\u01E8':'K','\u1E32':'K','\u0136':'K','\u1E34':'K','\u0198':'K','\u2C69':'K','\uA740':'K','\uA742':'K','\uA744':'K','\uA7A2':'K','\u24C1':'L','\uFF2C':'L','\u013F':'L','\u0139':'L','\u013D':'L','\u1E36':'L','\u1E38':'L','\u013B':'L','\u1E3C':'L','\u1E3A':'L','\u0141':'L','\u023D':'L','\u2C62':'L','\u2C60':'L','\uA748':'L','\uA746':'L','\uA780':'L','\u01C7':'LJ','\u01C8':'Lj','\u24C2':'M','\uFF2D':'M','\u1E3E':'M','\u1E40':'M','\u1E42':'M','\u2C6E':'M','\u019C':'M','\u24C3':'N','\uFF2E':'N','\u01F8':'N','\u0143':'N','\u00D1':'N','\u1E44':'N','\u0147':'N','\u1E46':'N','\u0145':'N','\u1E4A':'N','\u1E48':'N','\u0220':'N','\u019D':'N','\uA790':'N','\uA7A4':'N','\u01CA':'NJ','\u01CB':'Nj','\u24C4':'O','\uFF2F':'O','\u00D2':'O','\u00D3':'O','\u00D4':'O','\u1ED2':'O','\u1ED0':'O','\u1ED6':'O','\u1ED4':'O','\u00D5':'O','\u1E4C':'O','\u022C':'O','\u1E4E':'O','\u014C':'O','\u1E50':'O','\u1E52':'O','\u014E':'O','\u022E':'O','\u0230':'O','\u00D6':'O','\u022A':'O','\u1ECE':'O','\u0150':'O','\u01D1':'O','\u020C':'O','\u020E':'O','\u01A0':'O','\u1EDC':'O','\u1EDA':'O','\u1EE0':'O','\u1EDE':'O','\u1EE2':'O','\u1ECC':'O','\u1ED8':'O','\u01EA':'O','\u01EC':'O','\u00D8':'O','\u01FE':'O','\u0186':'O','\u019F':'O','\uA74A':'O','\uA74C':'O','\u01A2':'OI','\uA74E':'OO','\u0222':'OU','\u24C5':'P','\uFF30':'P','\u1E54':'P','\u1E56':'P','\u01A4':'P','\u2C63':'P','\uA750':'P','\uA752':'P','\uA754':'P','\u24C6':'Q','\uFF31':'Q','\uA756':'Q','\uA758':'Q','\u024A':'Q','\u24C7':'R','\uFF32':'R','\u0154':'R','\u1E58':'R','\u0158':'R','\u0210':'R','\u0212':'R','\u1E5A':'R','\u1E5C':'R','\u0156':'R','\u1E5E':'R','\u024C':'R','\u2C64':'R','\uA75A':'R','\uA7A6':'R','\uA782':'R','\u24C8':'S','\uFF33':'S','\u1E9E':'S','\u015A':'S','\u1E64':'S','\u015C':'S','\u1E60':'S','\u0160':'S','\u1E66':'S','\u1E62':'S','\u1E68':'S','\u0218':'S','\u015E':'S','\u2C7E':'S','\uA7A8':'S','\uA784':'S','\u24C9':'T','\uFF34':'T','\u1E6A':'T','\u0164':'T','\u1E6C':'T','\u021A':'T','\u0162':'T','\u1E70':'T','\u1E6E':'T','\u0166':'T','\u01AC':'T','\u01AE':'T','\u023E':'T','\uA786':'T','\uA728':'TZ','\u24CA':'U','\uFF35':'U','\u00D9':'U','\u00DA':'U','\u00DB':'U','\u0168':'U','\u1E78':'U','\u016A':'U','\u1E7A':'U','\u016C':'U','\u00DC':'U','\u01DB':'U','\u01D7':'U','\u01D5':'U','\u01D9':'U','\u1EE6':'U','\u016E':'U','\u0170':'U','\u01D3':'U','\u0214':'U','\u0216':'U','\u01AF':'U','\u1EEA':'U','\u1EE8':'U','\u1EEE':'U','\u1EEC':'U','\u1EF0':'U','\u1EE4':'U','\u1E72':'U','\u0172':'U','\u1E76':'U','\u1E74':'U','\u0244':'U','\u24CB':'V','\uFF36':'V','\u1E7C':'V','\u1E7E':'V','\u01B2':'V','\uA75E':'V','\u0245':'V','\uA760':'VY','\u24CC':'W','\uFF37':'W','\u1E80':'W','\u1E82':'W','\u0174':'W','\u1E86':'W','\u1E84':'W','\u1E88':'W','\u2C72':'W','\u24CD':'X','\uFF38':'X','\u1E8A':'X','\u1E8C':'X','\u24CE':'Y','\uFF39':'Y','\u1EF2':'Y','\u00DD':'Y','\u0176':'Y','\u1EF8':'Y','\u0232':'Y','\u1E8E':'Y','\u0178':'Y','\u1EF6':'Y','\u1EF4':'Y','\u01B3':'Y','\u024E':'Y','\u1EFE':'Y','\u24CF':'Z','\uFF3A':'Z','\u0179':'Z','\u1E90':'Z','\u017B':'Z','\u017D':'Z','\u1E92':'Z','\u1E94':'Z','\u01B5':'Z','\u0224':'Z','\u2C7F':'Z','\u2C6B':'Z','\uA762':'Z','\u24D0':'a','\uFF41':'a','\u1E9A':'a','\u00E0':'a','\u00E1':'a','\u00E2':'a','\u1EA7':'a','\u1EA5':'a','\u1EAB':'a','\u1EA9':'a','\u00E3':'a','\u0101':'a','\u0103':'a','\u1EB1':'a','\u1EAF':'a','\u1EB5':'a','\u1EB3':'a','\u0227':'a','\u01E1':'a','\u00E4':'a','\u01DF':'a','\u1EA3':'a','\u00E5':'a','\u01FB':'a','\u01CE':'a','\u0201':'a','\u0203':'a','\u1EA1':'a','\u1EAD':'a','\u1EB7':'a','\u1E01':'a','\u0105':'a','\u2C65':'a','\u0250':'a','\uA733':'aa','\u00E6':'ae','\u01FD':'ae','\u01E3':'ae','\uA735':'ao','\uA737':'au','\uA739':'av','\uA73B':'av','\uA73D':'ay','\u24D1':'b','\uFF42':'b','\u1E03':'b','\u1E05':'b','\u1E07':'b','\u0180':'b','\u0183':'b','\u0253':'b','\u24D2':'c','\uFF43':'c','\u0107':'c','\u0109':'c','\u010B':'c','\u010D':'c','\u00E7':'c','\u1E09':'c','\u0188':'c','\u023C':'c','\uA73F':'c','\u2184':'c','\u24D3':'d','\uFF44':'d','\u1E0B':'d','\u010F':'d','\u1E0D':'d','\u1E11':'d','\u1E13':'d','\u1E0F':'d','\u0111':'d','\u018C':'d','\u0256':'d','\u0257':'d','\uA77A':'d','\u01F3':'dz','\u01C6':'dz','\u24D4':'e','\uFF45':'e','\u00E8':'e','\u00E9':'e','\u00EA':'e','\u1EC1':'e','\u1EBF':'e','\u1EC5':'e','\u1EC3':'e','\u1EBD':'e','\u0113':'e','\u1E15':'e','\u1E17':'e','\u0115':'e','\u0117':'e','\u00EB':'e','\u1EBB':'e','\u011B':'e','\u0205':'e','\u0207':'e','\u1EB9':'e','\u1EC7':'e','\u0229':'e','\u1E1D':'e','\u0119':'e','\u1E19':'e','\u1E1B':'e','\u0247':'e','\u025B':'e','\u01DD':'e','\u24D5':'f','\uFF46':'f','\u1E1F':'f','\u0192':'f','\uA77C':'f','\u24D6':'g','\uFF47':'g','\u01F5':'g','\u011D':'g','\u1E21':'g','\u011F':'g','\u0121':'g','\u01E7':'g','\u0123':'g','\u01E5':'g','\u0260':'g','\uA7A1':'g','\u1D79':'g','\uA77F':'g','\u24D7':'h','\uFF48':'h','\u0125':'h','\u1E23':'h','\u1E27':'h','\u021F':'h','\u1E25':'h','\u1E29':'h','\u1E2B':'h','\u1E96':'h','\u0127':'h','\u2C68':'h','\u2C76':'h','\u0265':'h','\u0195':'hv','\u24D8':'i','\uFF49':'i','\u00EC':'i','\u00ED':'i','\u00EE':'i','\u0129':'i','\u012B':'i','\u012D':'i','\u00EF':'i','\u1E2F':'i','\u1EC9':'i','\u01D0':'i','\u0209':'i','\u020B':'i','\u1ECB':'i','\u012F':'i','\u1E2D':'i','\u0268':'i','\u0131':'i','\u24D9':'j','\uFF4A':'j','\u0135':'j','\u01F0':'j','\u0249':'j','\u24DA':'k','\uFF4B':'k','\u1E31':'k','\u01E9':'k','\u1E33':'k','\u0137':'k','\u1E35':'k','\u0199':'k','\u2C6A':'k','\uA741':'k','\uA743':'k','\uA745':'k','\uA7A3':'k','\u24DB':'l','\uFF4C':'l','\u0140':'l','\u013A':'l','\u013E':'l','\u1E37':'l','\u1E39':'l','\u013C':'l','\u1E3D':'l','\u1E3B':'l','\u017F':'l','\u0142':'l','\u019A':'l','\u026B':'l','\u2C61':'l','\uA749':'l','\uA781':'l','\uA747':'l','\u01C9':'lj','\u24DC':'m','\uFF4D':'m','\u1E3F':'m','\u1E41':'m','\u1E43':'m','\u0271':'m','\u026F':'m','\u24DD':'n','\uFF4E':'n','\u01F9':'n','\u0144':'n','\u00F1':'n','\u1E45':'n','\u0148':'n','\u1E47':'n','\u0146':'n','\u1E4B':'n','\u1E49':'n','\u019E':'n','\u0272':'n','\u0149':'n','\uA791':'n','\uA7A5':'n','\u01CC':'nj','\u24DE':'o','\uFF4F':'o','\u00F2':'o','\u00F3':'o','\u00F4':'o','\u1ED3':'o','\u1ED1':'o','\u1ED7':'o','\u1ED5':'o','\u00F5':'o','\u1E4D':'o','\u022D':'o','\u1E4F':'o','\u014D':'o','\u1E51':'o','\u1E53':'o','\u014F':'o','\u022F':'o','\u0231':'o','\u00F6':'o','\u022B':'o','\u1ECF':'o','\u0151':'o','\u01D2':'o','\u020D':'o','\u020F':'o','\u01A1':'o','\u1EDD':'o','\u1EDB':'o','\u1EE1':'o','\u1EDF':'o','\u1EE3':'o','\u1ECD':'o','\u1ED9':'o','\u01EB':'o','\u01ED':'o','\u00F8':'o','\u01FF':'o','\u0254':'o','\uA74B':'o','\uA74D':'o','\u0275':'o','\u01A3':'oi','\u0223':'ou','\uA74F':'oo','\u24DF':'p','\uFF50':'p','\u1E55':'p','\u1E57':'p','\u01A5':'p','\u1D7D':'p','\uA751':'p','\uA753':'p','\uA755':'p','\u24E0':'q','\uFF51':'q','\u024B':'q','\uA757':'q','\uA759':'q','\u24E1':'r','\uFF52':'r','\u0155':'r','\u1E59':'r','\u0159':'r','\u0211':'r','\u0213':'r','\u1E5B':'r','\u1E5D':'r','\u0157':'r','\u1E5F':'r','\u024D':'r','\u027D':'r','\uA75B':'r','\uA7A7':'r','\uA783':'r','\u24E2':'s','\uFF53':'s','\u00DF':'s','\u015B':'s','\u1E65':'s','\u015D':'s','\u1E61':'s','\u0161':'s','\u1E67':'s','\u1E63':'s','\u1E69':'s','\u0219':'s','\u015F':'s','\u023F':'s','\uA7A9':'s','\uA785':'s','\u1E9B':'s','\u24E3':'t','\uFF54':'t','\u1E6B':'t','\u1E97':'t','\u016
4415':'t','\u1E6D':'t','\u021B':'t','\u0163':'t','\u1E71':'t','\u1E6F':'t','\u0167':'t','\u01AD':'t','\u0288':'t','\u2C66':'t','\uA787':'t','\uA729':'tz','\u24E4':'u','\uFF55':'u','\u00F9':'u','\u00FA':'u','\u00FB':'u','\u0169':'u','\u1E79':'u','\u016B':'u','\u1E7B':'u','\u016D':'u','\u00FC':'u','\u01DC':'u','\u01D8':'u','\u01D6':'u','\u01DA':'u','\u1EE7':'u','\u016F':'u','\u0171':'u','\u01D4':'u','\u0215':'u','\u0217':'u','\u01B0':'u','\u1EEB':'u','\u1EE9':'u','\u1EEF':'u','\u1EED':'u','\u1EF1':'u','\u1EE5':'u','\u1E73':'u','\u0173':'u','\u1E77':'u','\u1E75':'u','\u0289':'u','\u24E5':'v','\uFF56':'v','\u1E7D':'v','\u1E7F':'v','\u028B':'v','\uA75F':'v','\u028C':'v','\uA761':'vy','\u24E6':'w','\uFF57':'w','\u1E81':'w','\u1E83':'w','\u0175':'w','\u1E87':'w','\u1E85':'w','\u1E98':'w','\u1E89':'w','\u2C73':'w','\u24E7':'x','\uFF58':'x','\u1E8B':'x','\u1E8D':'x','\u24E8':'y','\uFF59':'y','\u1EF3':'y','\u00FD':'y','\u0177':'y','\u1EF9':'y','\u0233':'y','\u1E8F':'y','\u00FF':'y','\u1EF7':'y','\u1E99':'y','\u1EF5':'y','\u01B4':'y','\u024F':'y','\u1EFF':'y','\u24E9':'z','\uFF5A':'z','\u017A':'z','\u1E91':'z','\u017C':'z','\u017E':'z','\u1E93':'z','\u1E95':'z','\u01B6':'z','\u0225':'z','\u0240':'z','\u2C6C':'z','\uA763':'z','\u0386':'\u0391','\u0388':'\u0395','\u0389':'\u0397','\u038A':'\u0399','\u03AA':'\u0399','\u038C':'\u039F','\u038E':'\u03A5','\u03AB':'\u03A5','\u038F':'\u
44103A9','\u03AC':'\u03B1','\u03AD':'\u03B5','\u03AE':'\u03B7','\u03AF':'\u03B9','\u03CA':'\u03B9','\u0390':'\u03B9','\u03CC':'\u03BF','\u03CD':'\u03C5','\u03CB':'\u03C5','\u03B0':'\u03C5','\u03C9':'\u03C9','\u03C2':'\u03C3'};return diacritics;});S2.define('select2/data/base',['../utils'],function(Utils){function BaseAdapter($element,options){BaseAdapter.__super__.constructor.call(this);}
442Utils.Extend(BaseAdapter,Utils.Observable);BaseAdapter.prototype.current=function(callback){throw new Error('The `current` method must be defined in child classes.');};BaseAdapter.prototype.query=function(params,callback){throw new Error('The `query` method must be defined in child classes.');};BaseAdapter.prototype.bind=function(container,$container){};BaseAdapter.prototype.destroy=function(){};BaseAdapter.prototype.generateResultId=function(container,data){var id=container.id+'-result-';id+=Utils.generateChars(4);if(data.id!=null){id+='-'+data.id.toString();}else{id+='-'+Utils.generateChars(4);}
443return id;};return BaseAdapter;});S2.define('select2/data/select',['./base','../utils','jquery'],function(BaseAdapter,Utils,$){function SelectAdapter($element,options){this.$element=$element;this.options=options;SelectAdapter.__super__.constructor.call(this);}
444Utils.Extend(SelectAdapter,BaseAdapter);SelectAdapter.prototype.current=function(callback){var data=[];var self=this;this.$element.find(':selected').each(function(){var $option=$(this);var option=self.item($option);data.push(option);});callback(data);};SelectAdapter.prototype.select=function(data){var self=this;data.selected=true;if($(data.element).is('option')){data.element.selected=true;this.$element.trigger('change');return;}
445if(this.$element.prop('multiple')){this.current(function(currentData){var val=[];data=[data];data.push.apply(data,currentData);for(var d=0;d<data.length;d++){var id=data[d].id;if($.inArray(id,val)===-1){val.push(id);}}
446self.$element.val(val);self.$element.trigger('change');});}else{var val=data.id;this.$element.val(val);this.$element.trigger('change');}};SelectAdapter.prototype.unselect=function(data){var self=this;if(!this.$element.prop('multiple')){return;}
447data.selected=false;if($(data.element).is('option')){data.element.selected=false;this.$element.trigger('change');return;}
448this.current(function(currentData){var val=[];for(var d=0;d<currentData.length;d++){var id=currentData[d].id;if(id!==data.id&&$.inArray(id,val)===-1){val.push(id);}}
449self.$element.val(val);self.$element.trigger('change');});};SelectAdapter.prototype.bind=function(container,$container){var self=this;this.container=container;container.on('select',function(params){self.select(params.data);});container.on('unselect',function(params){self.unselect(params.data);});};SelectAdapter.prototype.destroy=function(){this.$element.find('*').each(function(){$.removeData(this,'data');});};SelectAdapter.prototype.query=function(params,callback){var data=[];var self=this;var $options=this.$element.children();$options.each(function(){var $option=$(this);if(!$option.is('option')&&!$option.is('optgroup')){return;}
450var option=self.item($option);var matches=self.matches(params,option);if(matches!==null){data.push(matches);}});callback({results:data});};SelectAdapter.prototype.addOptions=function($options){Utils.appendMany(this.$element,$options);};SelectAdapter.prototype.option=function(data){var option;if(data.children){option=document.createElement('optgroup');option.label=data.text;}else{option=document.createElement('option');if(option.textContent!==undefined){option.textContent=data.text;}else{option.innerText=data.text;}}
451if(data.id){option.value=data.id;}
452if(data.disabled){option.disabled=true;}
453if(data.selected){option.selected=true;}
454if(data.title){option.title=data.title;}
455var $option=$(option);var normalizedData=this._normalizeItem(data);normalizedData.element=option;$.data(option,'data',normalizedData);return $option;};SelectAdapter.prototype.item=function($option){var data={};data=$.data($option[0],'data');if(data!=null){return data;}
456if($option.is('option')){data={id:$option.val(),text:$option.text(),disabled:$option.prop('disabled'),selected:$option.prop('selected'),title:$option.prop('title')};}else if($option.is('optgroup')){data={text:$option.prop('label'),children:[],title:$option.prop('title')};var $children=$option.children('option');var children=[];for(var c=0;c<$children.length;c++){var $child=$($children[c]);var child=this.item($child);children.push(child);}
457data.children=children;}
458data=this._normalizeItem(data);data.element=$option[0];$.data($option[0],'data',data);return data;};SelectAdapter.prototype._normalizeItem=function(item){if(!$.isPlainObject(item)){item={id:item,text:item};}
459item=$.extend({},{text:''},item);var defaults={selected:false,disabled:false};if(item.id!=null){item.id=item.id.toString();}
460if(item.text!=null){item.text=item.text.toString();}
461if(item._resultId==null&&item.id&&this.container!=null){item._resultId=this.generateResultId(this.container,item);}
462return $.extend({},defaults,item);};SelectAdapter.prototype.matches=function(params,data){var matcher=this.options.get('matcher');return matcher(params,data);};return SelectAdapter;});S2.define('select2/data/array',['./select','../utils','jquery'],function(SelectAdapter,Utils,$){function ArrayAdapter($element,options){var data=options.get('data')||[];ArrayAdapter.__super__.constructor.call(this,$element,options);this.addOptions(this.convertToOptions(data));}
463Utils.Extend(ArrayAdapter,SelectAdapter);ArrayAdapter.prototype.select=function(data){var $option=this.$element.find('option').filter(function(i,elm){return elm.value==data.id.toString();});if($option.length===0){$option=this.option(data);this.addOptions($option);}
464ArrayAdapter.__super__.select.call(this,data);};ArrayAdapter.prototype.convertToOptions=function(data){var self=this;var $existing=this.$element.find('option');var existingIds=$existing.map(function(){return self.item($(this)).id;}).get();var $options=[];function onlyItem(item){return function(){return $(this).val()==item.id;};}
465for(var d=0;d<data.length;d++){var item=this._normalizeItem(data[d]);if($.inArray(item.id,existingIds)>=0){var $existingOption=$existing.filter(onlyItem(item));var existingData=this.item($existingOption);var newData=$.extend(true,{},item,existingData);var $newOption=this.option(newData);$existingOption.replaceWith($newOption);continue;}
466var $option=this.option(item);if(item.children){var $children=this.convertToOptions(item.children);Utils.appendMany($option,$children);}
467$options.push($option);}
468return $options;};return ArrayAdapter;});S2.define('select2/data/ajax',['./array','../utils','jquery'],function(ArrayAdapter,Utils,$){function AjaxAdapter($element,options){this.ajaxOptions=this._applyDefaults(options.get('ajax'));if(this.ajaxOptions.processResults!=null){this.processResults=this.ajaxOptions.processResults;}
469AjaxAdapter.__super__.constructor.call(this,$element,options);}
470Utils.Extend(AjaxAdapter,ArrayAdapter);AjaxAdapter.prototype._applyDefaults=function(options){var defaults={data:function(params){return $.extend({},params,{q:params.term});},transport:function(params,success,failure){var $request=$.ajax(params);$request.then(success);$request.fail(failure);return $request;}};return $.extend({},defaults,options,true);};AjaxAdapter.prototype.processResults=function(results){return results;};AjaxAdapter.prototype.query=function(params,callback){var matches=[];var self=this;if(this._request!=null){if($.isFunction(this._request.abort)){this._request.abort();}
471this._request=null;}
472var options=$.extend({type:'GET'},this.ajaxOptions);if(typeof options.url==='function'){options.url=options.url.call(this.$element,params);}
473if(typeof options.data==='function'){options.data=options.data.call(this.$element,params);}
474function request(){var $request=options.transport(options,function(data){var results=self.processResults(data,params);if(self.options.get('debug')&&window.console&&console.error){if(!results||!results.results||!$.isArray(results.results)){console.error('Select2: The AJAX results did not return an array in the '+'`results` key of the response.');}}
475callback(results);},function(){if($request.status&&$request.status==='0'){return;}
476self.trigger('results:message',{message:'errorLoading'});});self._request=$request;}
477if(this.ajaxOptions.delay&&params.term!=null){if(this._queryTimeout){window.clearTimeout(this._queryTimeout);}
478this._queryTimeout=window.setTimeout(request,this.ajaxOptions.delay);}else{request();}};return AjaxAdapter;});S2.define('select2/data/tags',['jquery'],function($){function Tags(decorated,$element,options){var tags=options.get('tags');var createTag=options.get('createTag');
vendor: 5,048 bytes, lines 478-505
478if(createTag!==undefined){this.createTag=createTag;}
479var insertTag=options.get('insertTag');if(insertTag!==undefined){this.insertTag=insertTag;}
480decorated.call(this,$element,options);if($.isArray(tags)){for(var t=0;t<tags.length;t++){var tag=tags[t];var item=this._normalizeItem(tag);var $option=this.option(item);this.$element.append($option);}}}
481Tags.prototype.query=function(decorated,params,callback){var self=this;this._removeOldTags();if(params.term==null||params.page!=null){decorated.call(this,params,callback);return;}
482function wrapper(obj,child){var data=obj.results;for(var i=0;i<data.length;i++){var option=data[i];var checkChildren=(option.children!=null&&!wrapper({results:option.children},true));var checkText=option.text===params.term;if(checkText||checkChildren){if(child){return false;}
483obj.data=data;callback(obj);return;}}
484if(child){return true;}
485var tag=self.createTag(params);if(tag!=null){var $option=self.option(tag);$option.attr('data-select2-tag',true);self.addOptions([$option]);self.insertTag(data,tag);}
486obj.results=data;callback(obj);}
487decorated.call(this,params,wrapper);};Tags.prototype.createTag=function(decorated,params){var term=$.trim(params.term);if(term===''){return null;}
488return{id:term,text:term};};Tags.prototype.insertTag=function(_,data,tag){data.unshift(tag);};Tags.prototype._removeOldTags=function(_){var tag=this._lastTag;var $options=this.$element.find('option[data-select2-tag]');$options.each(function(){if(this.selected){return;}
489$(this).remove();});};return Tags;});S2.define('select2/data/tokenizer',['jquery'],function($){function Tokenizer(decorated,$element,options){var tokenizer=options.get('tokenizer');if(tokenizer!==undefined){this.tokenizer=tokenizer;}
490decorated.call(this,$element,options);}
491Tokenizer.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);this.$search=container.dropdown.$search||container.selection.$search||$container.find('.select2-search__field');};Tokenizer.prototype.query=function(decorated,params,callback){var self=this;function createAndSelect(data){var item=self._normalizeItem(data);var $existingOptions=self.$element.find('option').filter(function(){return $(this).val()===item.id;});if(!$existingOptions.length){var $option=self.option(item);$option.attr('data-select2-tag',true);self._removeOldTags();self.addOptions([$option]);}
492select(item);}
493function select(data){self.trigger('select',{data:data});}
494params.term=params.term||'';var tokenData=this.tokenizer(params,this.options,createAndSelect);if(tokenData.term!==params.term){if(this.$search.length){this.$search.val(tokenData.term);this.$search.focus();}
495params.term=tokenData.term;}
496decorated.call(this,params,callback);};Tokenizer.prototype.tokenizer=function(_,params,options,callback){var separators=options.get('tokenSeparators')||[];var term=params.term;var i=0;var createTag=this.createTag||function(params){return{id:params.term,text:params.term};};while(i<term.length){var termChar=term[i];if($.inArray(termChar,separators)===-1){i++;continue;}
497var part=term.substr(0,i);var partParams=$.extend({},params,{term:part});var data=createTag(partParams);if(data==null){i++;continue;}
498callback(data);term=term.substr(i+1)||'';i=0;}
499return{term:term};};return Tokenizer;});S2.define('select2/data/minimumInputLength',[],function(){function MinimumInputLength(decorated,$e,options){this.minimumInputLength=options.get('minimumInputLength');decorated.call(this,$e,options);}
500MinimumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(params.term.length<this.minimumInputLength){this.trigger('results:message',{message:'inputTooShort',args:{minimum:this.minimumInputLength,input:params.term,params:params}});return;}
501decorated.call(this,params,callback);};return MinimumInputLength;});S2.define('select2/data/maximumInputLength',[],function(){function MaximumInputLength(decorated,$e,options){this.maximumInputLength=options.get('maximumInputLength');decorated.call(this,$e,options);}
502MaximumInputLength.prototype.query=function(decorated,params,callback){params.term=params.term||'';if(this.maximumInputLength>0&&params.term.length>this.maximumInputLength){this.trigger('results:message',{message:'inputTooLong',args:{maximum:this.maximumInputLength,input:params.term,params:params}});return;}
503decorated.call(this,params,callback);};return MaximumInputLength;});S2.define('select2/data/maximumSelectionLength',[],function(){function MaximumSelectionLength(decorated,$e,options){this.maximumSelectionLength=options.get('maximumSelectionLength');decorated.call(this,$e,options);}
504MaximumSelectionLength.prototype.query=function(decorated,params,callback){var self=this;this.current(function(currentData){var count=currentData!=null?currentData.length:0;if(self.maximumSelectionLength>0&&count>=self.maximumSelectionLength){self.trigger('results:message',{message:'maximumSelected',args:{maximum:self.maximumSelectionLength}});return;}
505decorated.call(self,params,callback);});};return MaximumSelectionLength;});
505S2.define('select2/dropdown',['jquery','./utils'],function($,Utils){function Dropdown($element,options){this.$element=$element;this.options=options;Dropdown.__super__.constructor.call(this);}
506Utils.Extend(Dropdown,Utils.Observable);Dropdown.prototype.render=function(){var $dropdown=$('<span class="select2-dropdown">'+'<span class="select2-results"></span>'+'</span>');$dropdown.attr('dir',this.options.get('dir'));this.$dropdown=$dropdown;return $dropdown;};Dropdown.prototype.bind=function(){};Dropdown.prototype.position=function($dropdown,$container){};Dropdown.prototype.destroy=function(){this.$dropdown.remove();};return Dropdown;});S2.define('select2/dropdown/search',['jquery','../utils'],function($,Utils){function Search(){}
507Search.prototype.render=function(decorated){var $rendered=decorated.call(this);var $search=$('<span class="select2-search select2-search--dropdown">'+'<input class="select2-search__field" type="search" tabindex="-1"'+' autocomplete="off" autocorrect="off" autocapitalize="off"'+' spellcheck="false" role="textbox" />'+'</span>');this.$searchContainer=$search;this.$search=$search.find('input');$rendered.prepend($search);return $rendered;};Search.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);this.$search.on('keydown',function(evt){self.trigger('keypress',evt);self._keyUpPrevented=evt.isDefaultPrevented();});this.$search.on('input',function(evt){$(this).off('keyup');});this.$search.on('keyup input',function(evt){self.handleSearch(evt);});container.on('open',function(){self.$search.attr('tabindex',0);self.$search.focus();window.setTimeout(function(){self.$search.focus();},0);});container.on('close',function(){self.$search.attr('tabindex',-1);self.$search.val('');});container.on('focus',function(){if(container.isOpen()){self.$search.focus();}});container.on('results:all',function(params){if(params.query.term==null||params.query.term===''){var showSearch=self.showSearch(params);if(showSearch){self.$searchContainer.removeClass('select2-search--hide');}else{self.$searchContainer.addClass('select2-search--hide');}}});};Search.prototype.handleSearch=function(evt){if(!this._keyUpPrevented){var input=this.$search.val();this.trigger('query',{term:input});}
508this._keyUpPrevented=false;};Search.prototype.showSearch=function(_,params){return true;};return Search;});S2.define('select2/dropdown/hidePlaceholder',[],function(){function HidePlaceholder(decorated,$element,options,dataAdapter){this.placeholder=this.normalizePlaceholder(options.get('placeholder'));decorated.call(this,$element,options,dataAdapter);}
509HidePlaceholder.prototype.append=function(decorated,data){data.results=this.removePlaceholder(data.results);decorated.call(this,data);};HidePlaceholder.prototype.normalizePlaceholder=function(_,placeholder){if(typeof placeholder==='string'){placeholder={id:'',text:placeholder};}
510return placeholder;};HidePlaceholder.prototype.removePlaceholder=function(_,data){var modifiedData=data.slice(0);for(var d=data.length-1;d>=0;d--){var item=data[d];if(this.placeholder.id===item.id){modifiedData.splice(d,1);}}
511return modifiedData;};return HidePlaceholder;});S2.define('select2/dropdown/infiniteScroll',['jquery'],function($){function InfiniteScroll(decorated,$element,options,dataAdapter){this.lastParams={};decorated.call(this,$element,options,dataAdapter);this.$loadingMore=this.createLoadingMore();this.loading=false;}
512InfiniteScroll.prototype.append=function(decorated,data){this.$loadingMore.remove();this.loading=false;decorated.call(this,data);if(this.showLoadingMore(data)){this.$results.append(this.$loadingMore);}};InfiniteScroll.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('query',function(params){self.lastParams=params;self.loading=true;});container.on('query:append',function(params){self.lastParams=params;self.loading=true;});this.$results.on('scroll',function(){var isLoadMoreVisible=$.contains(document.documentElement,self.$loadingMore[0]);if(self.loading||!isLoadMoreVisible){return;}
513var currentOffset=self.$results.offset().top+
514self.$results.outerHeight(false);var loadingMoreOffset=self.$loadingMore.offset().top+
515self.$loadingMore.outerHeight(false);
vendor: 12,188 bytes, lines 515-556
515if(currentOffset+50>=loadingMoreOffset){self.loadMore();}});};InfiniteScroll.prototype.loadMore=function(){this.loading=true;var params=$.extend({},{page:1},this.lastParams);params.page++;this.trigger('query:append',params);};InfiniteScroll.prototype.showLoadingMore=function(_,data){return data.pagination&&data.pagination.more;};InfiniteScroll.prototype.createLoadingMore=function(){var $option=$('<li '+'class="select2-results__option select2-results__option--load-more"'+'role="treeitem" aria-disabled="true"></li>');var message=this.options.get('translations').get('loadingMore');$option.html(message(this.lastParams));return $option;};return InfiniteScroll;});S2.define('select2/dropdown/attachBody',['jquery','../utils'],function($,Utils){function AttachBody(decorated,$element,options){this.$dropdownParent=options.get('dropdownParent')||$(document.body);decorated.call(this,$element,options);}
516AttachBody.prototype.bind=function(decorated,container,$container){var self=this;var setupResultsEvents=false;decorated.call(this,container,$container);container.on('open',function(){self._showDropdown();self._attachPositioningHandler(container);if(!setupResultsEvents){setupResultsEvents=true;container.on('results:all',function(){self._positionDropdown();self._resizeDropdown();});container.on('results:append',function(){self._positionDropdown();self._resizeDropdown();});}});container.on('close',function(){self._hideDropdown();self._detachPositioningHandler(container);});this.$dropdownContainer.on('mousedown',function(evt){evt.stopPropagation();});};AttachBody.prototype.destroy=function(decorated){decorated.call(this);this.$dropdownContainer.remove();};AttachBody.prototype.position=function(decorated,$dropdown,$container){$dropdown.attr('class',$container.attr('class'));$dropdown.removeClass('select2');$dropdown.addClass('select2-container--open');$dropdown.css({position:'absolute',top:-999999});this.$container=$container;};AttachBody.prototype.render=function(decorated){var $container=$('<span></span>');var $dropdown=decorated.call(this);$container.append($dropdown);this.$dropdownContainer=$container;return $container;};AttachBody.prototype._hideDropdown=function(decorated){this.$dropdownContainer.detach();};AttachBody.prototype._attachPositioningHandler=function(decorated,container){var self=this;var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.each(function(){$(this).data('select2-scroll-position',{x:$(this).scrollLeft(),y:$(this).scrollTop()});});$watchers.on(scrollEvent,function(ev){var position=$(this).data('select2-scroll-position');$(this).scrollTop(position.y);});$(window).on(scrollEvent+' '+resizeEvent+' '+orientationEvent,function(e){self._positionDropdown();self._resizeDropdown();});};AttachBody.prototype._detachPositioningHandler=function(decorated,container){var scrollEvent='scroll.select2.'+container.id;var resizeEvent='resize.select2.'+container.id;var orientationEvent='orientationchange.select2.'+container.id;var $watchers=this.$container.parents().filter(Utils.hasScroll);$watchers.off(scrollEvent);$(window).off(scrollEvent+' '+resizeEvent+' '+orientationEvent);};AttachBody.prototype._positionDropdown=function(){var $window=$(window);var isCurrentlyAbove=this.$dropdown.hasClass('select2-dropdown--above');var isCurrentlyBelow=this.$dropdown.hasClass('select2-dropdown--below');var newDirection=null;var offset=this.$container.offset();offset.bottom=offset.top+this.$container.outerHeight(false);var container={height:this.$container.outerHeight(false)};container.top=offset.top;container.bottom=offset.top+container.height;var dropdown={height:this.$dropdown.outerHeight(false)};var viewport={top:$window.scrollTop(),bottom:$window.scrollTop()+$window.height()};var enoughRoomAbove=viewport.top<(offset.top-dropdown.height);var enoughRoomBelow=viewport.bottom>(offset.bottom+dropdown.height);var css={left:offset.left,top:container.bottom};var $offsetParent=this.$dropdownParent;if($offsetParent.css('position')==='static'){$offsetParent=$offsetParent.offsetParent();}
517var parentOffset=$offsetParent.offset();css.top-=parentOffset.top;css.left-=parentOffset.left;if(!isCurrentlyAbove&&!isCurrentlyBelow){newDirection='below';}
518if(!enoughRoomBelow&&enoughRoomAbove&&!isCurrentlyAbove){newDirection='above';}else if(!enoughRoomAbove&&enoughRoomBelow&&isCurrentlyAbove){newDirection='below';}
519if(newDirection=='above'||(isCurrentlyAbove&&newDirection!=='below')){css.top=container.top-parentOffset.top-dropdown.height;}
520if(newDirection!=null){this.$dropdown.removeClass('select2-dropdown--below select2-dropdown--above').addClass('select2-dropdown--'+newDirection);this.$container.removeClass('select2-container--below select2-container--above').addClass('select2-container--'+newDirection);}
521this.$dropdownContainer.css(css);};AttachBody.prototype._resizeDropdown=function(){var css={width:this.$container.outerWidth(false)+'px'};if(this.options.get('dropdownAutoWidth')){css.minWidth=css.width;css.position='relative';css.width='auto';}
522this.$dropdown.css(css);};AttachBody.prototype._showDropdown=function(decorated){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown();};return AttachBody;});S2.define('select2/dropdown/minimumResultsForSearch',[],function(){function countResults(data){var count=0;for(var d=0;d<data.length;d++){var item=data[d];if(item.children){count+=countResults(item.children);}else{count++;}}
523return count;}
524function MinimumResultsForSearch(decorated,$element,options,dataAdapter){this.minimumResultsForSearch=options.get('minimumResultsForSearch');if(this.minimumResultsForSearch<0){this.minimumResultsForSearch=Infinity;}
525decorated.call(this,$element,options,dataAdapter);}
526MinimumResultsForSearch.prototype.showSearch=function(decorated,params){if(countResults(params.data.results)<this.minimumResultsForSearch){return false;}
527return decorated.call(this,params);};return MinimumResultsForSearch;});S2.define('select2/dropdown/selectOnClose',[],function(){function SelectOnClose(){}
528SelectOnClose.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('close',function(params){self._handleSelectOnClose(params);});};SelectOnClose.prototype._handleSelectOnClose=function(_,params){if(params&&params.originalSelect2Event!=null){var event=params.originalSelect2Event;if(event._type==='select'||event._type==='unselect'){return;}}
529var $highlightedResults=this.getHighlightedResults();if($highlightedResults.length<1){return;}
530var data=$highlightedResults.data('data');if((data.element!=null&&data.element.selected)||(data.element==null&&data.selected)){return;}
531this.trigger('select',{data:data});};return SelectOnClose;});S2.define('select2/dropdown/closeOnSelect',[],function(){function CloseOnSelect(){}
532CloseOnSelect.prototype.bind=function(decorated,container,$container){var self=this;decorated.call(this,container,$container);container.on('select',function(evt){self._selectTriggered(evt);});container.on('unselect',function(evt){self._selectTriggered(evt);});};CloseOnSelect.prototype._selectTriggered=function(_,evt){var originalEvent=evt.originalEvent;if(originalEvent&&originalEvent.ctrlKey){return;}
533this.trigger('close',{originalEvent:originalEvent,originalSelect2Event:evt});};return CloseOnSelect;});S2.define('select2/i18n/en',[],function(){return{errorLoading:function(){return'The results could not be loaded.';},inputTooLong:function(args){var overChars=args.input.length-args.maximum;var message='Please delete '+overChars+' character';if(overChars!=1){message+='s';}
534return message;},inputTooShort:function(args){var remainingChars=args.minimum-args.input.length;var message='Please enter '+remainingChars+' or more characters';return message;},loadingMore:function(){return'Loading more results…';},maximumSelected:function(args){var message='You can only select '+args.maximum+' item';if(args.maximum!=1){message+='s';}
535return message;},noResults:function(){return'No results found';},searching:function(){return'Searching…';}};});S2.define('select2/defaults',['jquery','require','./results','./selection/single','./selection/multiple','./selection/placeholder','./selection/allowClear','./selection/search','./selection/eventRelay','./utils','./translation','./diacritics','./data/select','./data/array','./data/ajax','./data/tags','./data/tokenizer','./data/minimumInputLength','./data/maximumInputLength','./data/maximumSelectionLength','./dropdown','./dropdown/search','./dropdown/hidePlaceholder','./dropdown/infiniteScroll','./dropdown/attachBody','./dropdown/minimumResultsForSearch','./dropdown/selectOnClose','./dropdown/closeOnSelect','./i18n/en'],function($,require,ResultsList,SingleSelection,MultipleSelection,Placeholder,AllowClear,SelectionSearch,EventRelay,Utils,Translation,DIACRITICS,SelectData,ArrayData,AjaxData,Tags,Tokenizer,MinimumInputLength,MaximumInputLength,MaximumSelectionLength,Dropdown,DropdownSearch,HidePlaceholder,InfiniteScroll,AttachBody,MinimumResultsForSearch,SelectOnClose,CloseOnSelect,EnglishTranslation){function Defaults(){this.reset();}
536Defaults.prototype.apply=function(options){options=$.extend(true,{},this.defaults,options);if(options.dataAdapter==null){if(options.ajax!=null){options.dataAdapter=AjaxData;}else if(options.data!=null){options.dataAdapter=ArrayData;}else{options.dataAdapter=SelectData;}
537if(options.minimumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MinimumInputLength);}
538if(options.maximumInputLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumInputLength);}
539if(options.maximumSelectionLength>0){options.dataAdapter=Utils.Decorate(options.dataAdapter,MaximumSelectionLength);}
540if(options.tags){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tags);}
541if(options.tokenSeparators!=null||options.tokenizer!=null){options.dataAdapter=Utils.Decorate(options.dataAdapter,Tokenizer);}
542if(options.query!=null){var Query=require(options.amdBase+'compat/query');options.dataAdapter=Utils.Decorate(options.dataAdapter,Query);}
543if(options.initSelection!=null){var InitSelection=require(options.amdBase+'compat/initSelection');options.dataAdapter=Utils.Decorate(options.dataAdapter,InitSelection);}}
544if(options.resultsAdapter==null){options.resultsAdapter=ResultsList;if(options.ajax!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,InfiniteScroll);}
545if(options.placeholder!=null){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,HidePlaceholder);}
546if(options.selectOnClose){options.resultsAdapter=Utils.Decorate(options.resultsAdapter,SelectOnClose);}}
547if(options.dropdownAdapter==null){if(options.multiple){options.dropdownAdapter=Dropdown;}else{var SearchableDropdown=Utils.Decorate(Dropdown,DropdownSearch);options.dropdownAdapter=SearchableDropdown;}
548if(options.minimumResultsForSearch!==0){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,MinimumResultsForSearch);}
549if(options.closeOnSelect){options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,CloseOnSelect);}
550if(options.dropdownCssClass!=null||options.dropdownCss!=null||options.adaptDropdownCssClass!=null){var DropdownCSS=require(options.amdBase+'compat/dropdownCss');options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,DropdownCSS);}
551options.dropdownAdapter=Utils.Decorate(options.dropdownAdapter,AttachBody);}
552if(options.selectionAdapter==null){if(options.multiple){options.selectionAdapter=MultipleSelection;}else{options.selectionAdapter=SingleSelection;}
553if(options.placeholder!=null){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,Placeholder);}
554if(options.allowClear){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,AllowClear);}
555if(options.multiple){options.selectionAdapter=Utils.Decorate(options.selectionAdapter,SelectionSearch);}
556if(options.containerCssClass!=null||options.containerCss!=null||options.adaptContainerCssClass!=null){var ContainerCSS=require(options.amdBase+'compat/containerCss');
556options.selectionAdapter=Utils.Decorate(options.selectionAdapter,ContainerCSS);}
557options.selectionAdapter=Utils.Decorate(options.selectionAdapter,EventRelay);}
558if(typeof options.language==='string'){if(options.language.indexOf('-')>0){var languageParts=options.language.split('-');var baseLanguage=languageParts[0];options.language=[options.language,baseLanguage];}else{options.language=[options.language];}}
559if($.isArray(options.language)){var languages=new Translation();options.language.push('en');var languageNames=options.language;for(var l=0;l<languageNames.length;l++){var name=languageNames[l];var language={};try{language=Translation.loadPath(name);}catch(e){try{name=this.defaults.amdLanguageBase+name;language=Translation.loadPath(name);}catch(ex){if(options.debug&&window.console&&console.warn){console.warn('Select2: The language file for "'+name+'" could not be '+'automatically loaded. A fallback will be used instead.');}
560continue;}}
561languages.extend(language);}
562options.translations=languages;}else{var baseTranslation=Translation.loadPath(this.defaults.amdLanguageBase+'en');var customTranslation=new Translation(options.language);customTranslation.extend(baseTranslation);options.translations=customTranslation;}
563return options;};Defaults.prototype.reset=function(){function stripDiacritics(text){function match(a){return DIACRITICS[a]||a;}
564return text.replace(/[^\u0000-\u007E]/g,match);}
565function matcher(params,data){if($.trim(params.term)===''){return data;}
566if(data.children&&data.children.length>0){var match=$.extend(true,{},data);for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];var matches=matcher(params,child);if(matches==null){match.children.splice(c,1);}}
567if(match.children.length>0){return match;}
568return matcher(params,match);}
569var original=stripDiacritics(data.text).toUpperCase();var term=stripDiacritics(params.term).toUpperCase();if(original.indexOf(term)>-1){return data;}
570return null;}
571this.defaults={amdBase:'./',amdLanguageBase:'./i18n/',closeOnSelect:true,debug:false,dropdownAutoWidth:false,escapeMarkup:Utils.escapeMarkup,language:EnglishTranslation,matcher:matcher,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:false,sorter:function(data){return data;},templateResult:function(result){return result.text;},templateSelection:function(selection){return selection.text;},theme:'default',width:'resolve'};};Defaults.prototype.set=function(key,value){var camelKey=$.camelCase(key);var data={};data[camelKey]=value;var convertedData=Utils._convertData(data);$.extend(this.defaults,convertedData);};var defaults=new Defaults();return defaults;});S2.define('select2/options',['require','jquery','./defaults','./utils'],function(require,$,Defaults,Utils){function Options(options,$element){this.options=options;if($element!=null){this.fromElement($element);}
572this.options=Defaults.apply(this.options);if($element&&$element.is('input')){var InputCompat=require(this.get('amdBase')+'compat/inputData');this.options.dataAdapter=Utils.Decorate(this.options.dataAdapter,InputCompat);}}
573Options.prototype.fromElement=function($e){var excludedData=['select2'];if(this.options.multiple==null){this.options.multiple=$e.prop('multiple');}
574if(this.options.disabled==null){this.options.disabled=$e.prop('disabled');}
575if(this.options.language==null){if($e.prop('lang')){this.options.language=$e.prop('lang').toLowerCase();}else if($e.closest('[lang]').prop('lang')){this.options.language=$e.closest('[lang]').prop('lang');}}
576if(this.options.dir==null){if($e.prop('dir')){this.options.dir=$e.prop('dir');}else if($e.closest('[dir]').prop('dir')){this.options.dir=$e.closest('[dir]').prop('dir');}else{this.options.dir='ltr';}}
577$e.prop('disabled',this.options.disabled);$e.prop('multiple',this.options.multiple);if($e.data('select2Tags')){if(this.options.debug&&window.console&&console.warn){console.warn('Select2: The `data-select2-tags` attribute has been changed to '+'use the `data-data` and `data-tags="true"` attributes and will be '+'removed in future versions of Select2.');}
578$e.data('data',$e.data('select2Tags'));$e.data('tags',true);}
579if($e.data('ajaxUrl')){if(this.options.debug&&window.console&&console.warn){console.warn('Select2: The `data-ajax-url` attribute has been changed to '+'`data-ajax--url` and support for the old attribute will be removed'
579+' in future versions of Select2.');}
580$e.attr('ajax--url',$e.data('ajaxUrl'));$e.data('ajax--url',$e.data('ajaxUrl'));}
581var dataset={};if($.fn.jquery&&$.fn.jquery.substr(0,2)=='1.'&&$e[0].dataset){dataset=$.extend(true,{},$e[0].dataset,$e.data());}else{dataset=$e.data();}
582var data=$.extend(true,{},dataset);data=Utils._convertData(data);for(var key in data){if($.inArray(key,excludedData)>-1){continue;}
583if($.isPlainObject(this.options[key])){$.extend(this.options[key],data[key]);}else{this.options[key]=data[key];}}
584return this;};Options.prototype.get=function(key){return this.options[key];};Options.prototype.set=function(key,val){this.options[key]=val;};return Options;});S2.define('select2/core',['jquery','./options','./utils','./keys'],function($,Options,Utils,KEYS){var Select2=function($element,options){if($element.data('select2')!=null){$element.data('select2').destroy();}
585this.$element=$element;this.id=this._generateId($element);options=options||{};this.options=new Options(options,$element);Select2.__super__.constructor.call(this);var tabindex=$element.attr('tabindex')||0;$element.data('old-tabindex',tabindex);$element.attr('tabindex','-1');var DataAdapter=this.options.get('dataAdapter');this.dataAdapter=new DataAdapter($element,this.options);var $container=this.render();this._placeContainer($container);var SelectionAdapter=this.options.get('selectionAdapter');this.selection=new SelectionAdapter($element,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,$container);var DropdownAdapter=this.options.get('dropdownAdapter');this.dropdown=new DropdownAdapter($element,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,$container);var ResultsAdapter=this.options.get('resultsAdapter');this.results=new ResultsAdapter($element,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var self=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(initialData){self.trigger('selection:update',{data:initialData});});$element.addClass('select2-hidden-accessible');$element.attr('aria-hidden','true');this._syncAttributes();$element.data('select2',this);};Utils.Extend(Select2,Utils.Observable);Select2.prototype._generateId=function($element){var id='';if($element.attr('id')!=null){id=$element.attr('id');}else if($element.attr('name')!=null){id=$element.attr('name')+'-'+Utils.generateChars(2);}else{id=Utils.generateChars(4);}
586id=id.replace(/(:|\.|\[|\]|,)/g,'');id='select2-'+id;return id;};Select2.prototype._placeContainer=function($container){$container.insertAfter(this.$element);var width=this._resolveWidth(this.$element,this.options.get('width'));if(width!=null){$container.css('width',width);}};Select2.prototype._resolveWidth=function($element,method){var WIDTH=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(method=='resolve'){var styleWidth=this._resolveWidth($element,'style');if(styleWidth!=null){return styleWidth;}
587return this._resolveWidth($element,'element');}
588if(method=='element'){var elementWidth=$element.outerWidth(false);if(elementWidth<=0){return'auto';}
589return elementWidth+'px';}
590if(method=='style'){var style=$element.attr('style');if(typeof(style)!=='string'){return null;}
591var attrs=style.split(';');for(var i=0,l=attrs.length;i<l;i=i+1){var attr=attrs[i].replace(/\s/g,'');var matches=attr.match(WIDTH);if(matches!==null&&matches.length>=1){return matches[1];}}
592return null;}
593return method;};Select2.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container);};Select2.prototype._registerDomEvents=function(){var self=this;this.$element.on('change.select2',function(){self.dataAdapter.current(function(data){self.trigger('selection:update',{data:data});});});this.$element.on('focus.select2',function(evt){self.trigger('focus',evt);});this._syncA=Utils.bind(this._syncAttributes,this);this._syncS=Utils.bind(this._syncSubtree,this);if(this.$element[0].attachEvent){this.$element[0].attachEvent('onpropertychange',this._syncA);}
594var observer=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(observer!=null){this._observer=new observer(function(mutations){$.each(mutations,self._syncA);$.each(mutations,self._syncS);});this._observer.observe(this.$element[0],{attributes:true,childList:true,subtree:false});}else if(this.$element[0].addEventListener){this.$element[0].addEventListener('DOMAttrModified',self._syncA,false);this.$element[0].addEventListener('DOMNodeInserted',self._syncS,false);this.$element[0].addEventListener('DOMNodeRemoved',self._syncS,false);}};Select2.prototype._registerDataEvents=function(){var self=this;this.dataAdapter.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerSelectionEvents=function(){var self=this;var nonRelayEvents=['toggle','focus'];this.selection.on('toggle',function(){self.toggleDropdown();});this.selection.on('focus',function(params){self.focus(params);});this.selection.on('*',function(name,params){if($.inArray(name,nonRelayEvents)!==-1){return;}
595self.trigger(name,params);});};Select2.prototype._registerDropdownEvents=function(){var self=this;this.dropdown.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerResultsEvents=function(){var self=this;this.results.on('*',function(name,params){self.trigger(name,params);});};Select2.prototype._registerEvents=function(){var self=this;this.on('open',function(){self.$container.addClass('select2-container--open');});this.on('close',function(){self.$container.removeClass('select2-container--open');});this.on('enable',function(){self.$container.removeClass('select2-container--disabled');});this.on('disable',function(){self.$container.addClass('select2-container--disabled');});this.on('blur',function(){self.$container.removeClass('select2-container--focus');});this.on('query',function(params){if(!self.isOpen()){self.trigger('open',{});}
596this.dataAdapter.query(params,function(data){self.trigger('results:all',{data:data,query:params});});});this.on('query:append',function(params){this.dataAdapter.query(params,function(data){self.trigger('results:append',{data:data,query:params});});});this.on('keypress',function(evt){var key=evt.which;if(self.isOpen()){if(key===KEYS.ESC||key===KEYS.TAB||(key===KEYS.UP&&evt.altKey)){
596self.close();evt.preventDefault();}else if(key===KEYS.ENTER){self.trigger('results:select',{});evt.preventDefault();}else if((key===KEYS.SPACE&&evt.ctrlKey)){self.trigger('results:toggle',{});evt.preventDefault();}else if(key===KEYS.UP){self.trigger('results:previous',{});evt.preventDefault();}else if(key===KEYS.DOWN){self.trigger('results:next',{});evt.preventDefault();}}else{if(key===KEYS.ENTER||key===KEYS.SPACE||(key===KEYS.DOWN&&evt.altKey)){self.open();evt.preventDefault();}}});};Select2.prototype._syncAttributes=function(){this.options.set('disabled',this.$element.prop('disabled'));if(this.options.get('disabled')){if(this.isOpen()){this.close();}
597this.trigger('disable',{});}else{this.trigger('enable',{});}};Select2.prototype._syncSubtree=function(evt,mutations){var changed=false;var self=this;if(evt&&evt.target&&(evt.target.nodeName!=='OPTION'&&evt.target.nodeName!=='OPTGROUP')){return;}
598if(!mutations){changed=true;}else if(mutations.addedNodes&&mutations.addedNodes.length>0){for(var n=0;n<mutations.addedNodes.length;n++){var node=mutations.addedNodes[n];if(node.selected){changed=true;}}}else if(mutations.removedNodes&&mutations.removedNodes.length>0){changed=true;}
599if(changed){this.dataAdapter.current(function(currentData){self.trigger('selection:update',{data:currentData});});}};Select2.prototype.trigger=function(name,args){var actualTrigger=Select2.__super__.trigger;var preTriggerMap={'open':'opening','close':'closing','select':'selecting','unselect':'unselecting'};if(args===undefined){args={};}
600if(name in preTriggerMap){var preTriggerName=preTriggerMap[name];var preTriggerArgs={prevented:false,name:name,args:args};actualTrigger.call(this,preTriggerName,preTriggerArgs);if(preTriggerArgs.prevented){args.prevented=true;return;}}
601actualTrigger.call(this,name,args);};Select2.prototype.toggleDropdown=function(){if(this.options.get('disabled')){return;}
602if(this.isOpen()){this.close();}else{this.open();}};Select2.prototype.open=function(){if(this.isOpen()){return;}
603this.trigger('query',{});};Select2.prototype.close=function(){if(!this.isOpen()){return;}
604this.trigger('close',{});};Select2.prototype.isOpen=function(){return this.$container.hasClass('select2-container--open');};Select2.prototype.hasFocus=function(){return this.$container.hasClass('select2-container--focus');};Select2.prototype.focus=function(data){if(this.hasFocus()){return;}
605this.$container.addClass('select2-container--focus');this.trigger('focus',{});};Select2.prototype.enable=function(args){if(this.options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `select2("enable")` method has been deprecated and will'+' be removed in later Select2 versions. Use $element.prop("disabled")'+' instead.');}
606if(args==null||args.length===0){args=[true];}
607var disabled=!args[0];this.$element.prop('disabled',disabled);};Select2.prototype.data=function(){if(this.options.get('debug')&&arguments.length>0&&window.console&&console.warn){console.warn('Select2: Data can no longer be set using `select2("data")`. You '+'should consider setting the value instead using `$element.val()`.');}
608var data=[];this.dataAdapter.current(function(currentData){data=currentData;});return data;};Select2.prototype.val=function(args){if(this.options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `select2("val")` method has been deprecated and will be'+' removed in later Select2 versions. Use $element.val() instead.');}
609if(args==null||args.length===0){return this.$element.val();}
610var newVal=args[0];if($.isArray(newVal)){newVal=$.map(newVal,function(obj){return obj.toString();});}
611this.$element.val(newVal).trigger('change');};Select2.prototype.destroy=function(){this.$container.remove();if(this.$element[0].detachEvent){this.$element[0].detachEvent('onpropertychange',this._syncA);}
612if(this._observer!=null){this._observer.disconnect();this._observer=null;}else if(this.$element[0].removeEventListener){this.$element[0].removeEventListener('DOMAttrModified',this._syncA,false);this.$element[0].removeEventListener('DOMNodeInserted',this._syncS,false);this.$element[0].removeEventListener('DOMNodeRemoved',this._syncS,false);}
613this._syncA=null;this._syncS=null;this.$element.off('.select2');this.$element.attr('tabindex',this.$element.data('old-tabindex'));this.$element.removeClass('select2-hidden-accessible');this.$element.attr('aria-hidden','false');this.$element.removeData('select2');this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null;};Select2.prototype.render=function(){var $container=$('<span class="select2 select2-container">'+'<span class="selection"></span>'+'<span class="dropdown-wrapper" aria-hidden="true"></span>'+'</span>');$container.attr('dir',this.options.get('dir'));this.$container=$container;this.$container.addClass('select2-container--'+this.options.get('theme'));$container.data('element',this.$element);return $container;};return Select2;});S2.define('select2/compat/utils',['jquery'],function($){function syncCssClasse
613s($dest,$src,adapter){var classes,replacements=[],adapted;classes=$.trim($dest.attr('class'));if(classes){classes=''+classes;$(classes.split(/\s+/)).each(function(){if(this.indexOf('select2-')===0){replacements.push(this);}});}
614classes=$.trim($src.attr('class'));if(classes){classes=''+classes;$(classes.split(/\s+/)).each(function(){if(this.indexOf('select2-')!==0){adapted=adapter(this);if(adapted!=null){replacements.push(adapted);}}});}
615$dest.attr('class',replacements.join(' '));}
616return{syncCssClasses:syncCssClasses};});S2.define('select2/compat/containerCss',['jquery','./utils'],function($,CompatUtils){function _containerAdapter(clazz){return null;}
617function ContainerCSS(){}
618ContainerCSS.prototype.render=function(decorated){var $container=decorated.call(this);var containerCssClass=this.options.get('containerCssClass')||'';if($.isFunction(containerCssClass)){containerCssClass=containerCssClass(this.$element);}
619var containerCssAdapter=this.options.get('adaptContainerCssClass');containerCssAdapter=containerCssAdapter||_containerAdapter;if(containerCssClass.indexOf(':all:')!==-1){containerCssClass=containerCssClass.replace(':all:','');var _cssAdapter=containerCssAdapter;containerCssAdapter=function(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){return adapted+' '+clazz;}
620return clazz;};}
621var containerCss=this.options.get('containerCss')||{};if($.isFunction(containerCss)){containerCss=containerCss(this.$element);}
622CompatUtils.syncCssClasses($container,this.$element,containerCssAdapter);$container.css(containerCss);$container.addClass(containerCssClass);return $container;};return ContainerCSS;});S2.define('select2/compat/dropdownCss',['jquery','./utils'],function($,CompatUtils){function _dropdownAdapter(clazz){return null;}
623function DropdownCSS(){}
624DropdownCSS.prototype.render=function(decorated){var $dropdown=decorated.call(this);var dropdownCssClass=this.options.get('dropdownCssClass')||'';if($.isFunction(dropdownCssClass)){dropdownCssClass=dropdownCssClass(this.$element);}
625var dropdownCssAdapter=this.options.get('adaptDropdownCssClass');dropdownCssAdapter=dropdownCssAdapter||_dropdownAdapter;if(dropdownCssClass.indexOf(':all:')!==-1){dropdownCssClass=dropdownCssClass.replace(':all:','');var _cssAdapter=dropdownCssAdapter;dropdownCssAdapter=function(clazz){var adapted=_cssAdapter(clazz);if(adapted!=null){return adapted+' '+clazz;}
626return clazz;};}
627var dropdownCss=this.options.get('dropdownCss')||{};if($.isFunction(dropdownCss)){dropdownCss=dropdownCss(this.$element);}
628CompatUtils.syncCssClasses($dropdown,this.$element,dropdownCssAdapter);$dropdown.css(dropdownCss);$dropdown.addClass(dropdownCssClass);return $dropdown;};return DropdownCSS;});S2.define('select2/compat/initSelection',['jquery'],function($){function InitSelection(decorated,$element,options){if(options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `initSelection` option has been deprecated in favor'+' of a custom data adapter that overrides the `current` method. '+'This method is now called multiple times instead of a single '+'time when the instance is initialized. Support will be removed '+'for the `initSelection` option in future versions of Select2');}
629this.initSelection=options.get('initSelection');this._isInitialized=false;decorated.call(this,$element,options);}
630InitSelection.prototype.current=function(decorated,callback){var self=this;if(this._isInitialized){decorated.call(this,callback);return;}
631this.initSelection.call(null,this.$element,function(data){self._isInitialized=true;if(!$.isArray(data)){data=[data];}
632callback(data);});};return InitSelection;});S2.define('select2/compat/inputData',['jquery'],function($){function InputData(decorated,$element,options){this._currentData=[];this._valueSeparator=options.get('valueSeparator')||',';if($element.prop('type')==='hidden'){if(options.get('debug')&&console&&console.warn){console.warn('Select2: Using a hidden input with Select2 is no longer '+'supported and may stop working in the future. It is recommended '+'to use a `<select>` element instead.');}}
633decorated.call(this,$element,options);}
634InputData.prototype.current=function(_,callback){function getSelected(data,selectedIds){var selected=[];if(data.selected||$.inArray(data.id,selectedIds)!==-1){data.selected=true;selected.push(data);}else{data.selected=false;}
635if(data.children){selected.push.apply(selected,getSelected(data.children,selectedIds));}
636return selected;}
637var selected=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];selected.push.apply(selected,getSelected(data,this.$element.val().split(this._valueSeparator)));}
638callback(selected);};InputData.prototype.select=function(_,data){if(!this.options.get('multiple')){this.current(function(allData){$.map(allData,function(data){data.selected=false;});});this.$element.val(data.id);this.$element.trigger('change');}else{var value=this.$element.val();value+=this._valueSeparator+data.id;this.$element.val(value);this.$element.trigger('change');}};InputData.prototype.unselect=function(_,data){var self=this;data.selected=false;this.current(function(allData){var values=[];for(var d=0;d<allData.length;d++){var item=allData[d];if(data.id==item.id){continue;}
639values.push(item.id);}
640self.$element.val(values.join(self._valueSeparator));self.$element.trigger('change');});};InputData.prototype.query=function(_,params,callback){var results=[];for(var d=0;d<this._currentData.length;d++){var data=this._currentData[d];var matches=this.matches(params,data);if(matches!==null){results.push(matches);}}
641callback({results:results});};InputData.prototype.addOptions=function(_,$options){var options=$.map($options,function($option){return $.data($option[0],'data');});this._currentData.push.apply(this._currentData,options);};return InputData;});S2.define('select2/compat/matcher',['jquery'],function($){function oldMatcher(matcher){function wrappedMatcher(params,data){var match=$.extend(true,{},data);if(params.term==null||$.trim(params.term)===''){return match;}
642if(data.children){for(var c=data.children.length-1;c>=0;c--){var child=data.children[c];var doesMatch=matcher(params.term,child.text,child);if(!doesMatch){match.children.splice(c,1);}}
643if(match.children.length>0){return match;}}
644if(matcher(params.term,data.text,data)){return match;}
645return null;}
646return wrappedMatcher;}
647return oldMatcher;});S2.define('select2/compat/query',[],function(){function Query(decorated,$element,options){if(options.get('debug')&&window.console&&console.warn){console.warn('Select2: The `query` option has been deprecated 
vendor: 4,722 bytes, lines 647-672
647in favor of a '+'custom data adapter that overrides the `query` method. Support '+'will be removed for the `query` option in future versions of '+'Select2.');}
648decorated.call(this,$element,options);}
649Query.prototype.query=function(_,params,callback){params.callback=callback;var query=this.options.get('query');query.call(null,params);};return Query;});S2.define('select2/dropdown/attachContainer',[],function(){function AttachContainer(decorated,$element,options){decorated.call(this,$element,options);}
650AttachContainer.prototype.position=function(decorated,$dropdown,$container){var $dropdownContainer=$container.find('.dropdown-wrapper');$dropdownContainer.append($dropdown);$dropdown.addClass('select2-dropdown--below');$container.addClass('select2-container--below');};return AttachContainer;});S2.define('select2/dropdown/stopPropagation',[],function(){function StopPropagation(){}
651StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$dropdown.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});S2.define('select2/selection/stopPropagation',[],function(){function StopPropagation(){}
652StopPropagation.prototype.bind=function(decorated,container,$container){decorated.call(this,container,$container);var stoppedEvents=['blur','change','click','dblclick','focus','focusin','focusout','input','keydown','keyup','keypress','mousedown','mouseenter','mouseleave','mousemove','mouseover','mouseup','search','touchend','touchstart'];this.$selection.on(stoppedEvents.join(' '),function(evt){evt.stopPropagation();});};return StopPropagation;});
653/*!
654 * jQuery Mousewheel 3.1.13
655 *
656 * Copyright jQuery Foundation and other contributors
657 * Released under the MIT license
658 * http://jquery.org/license
659 */
660(function(factory){if(typeof S2.define==='function'&&S2.define.amd){S2.define('jquery-mousewheel',['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory;}else{factory(jQuery);}}(function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'],toBind=('onwheel'in document||document.documentMode>=9)?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'],slice=Array.prototype.slice,nullLowestDeltaTimeout,lowestDelta;if($.event.fixHooks){for(var i=toFix.length;i;){$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;}}
661var special=$.event.special.mousewheel={version:'3.1.12',setup:function(){if(this.addEventListener){for(var i=toBind.length;i;){this.addEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=handler;}
662$.data(this,'mousewheel-line-height',special.getLineHeight(this));$.data(this,'mousewheel-page-height',special.getPageHeight(this));},teardown:function(){if(this.removeEventListener){for(var i=toBind.length;i;){this.removeEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=null;}
663$.removeData(this,'mousewheel-line-height');$.removeData(this,'mousewheel-page-height');},getLineHeight:function(elem){var $elem=$(elem),$parent=$elem['offsetParent'in $.fn?'offsetParent':'parent']();if(!$parent.length){$parent=$('body');}
664return parseInt($parent.css('fontSize'),10)||parseInt($elem.css('fontSize'),10)||16;},getPageHeight:function(elem){return $(elem).height();},settings:{adjustOldDeltas:true,normalizeOffset:true}};$.fn.extend({mousewheel:function(fn){return fn?this.bind('mousewheel',fn):this.trigger('mousewheel');},unmousewheel:function(fn){return this.unbind('mousewheel',fn);}});function handler(event){var orgEvent=event||window.event,args=slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0,offsetX=0,offsetY=0;event=$.event.fix(orgEvent);event.type='mousewheel';if('detail'in orgEvent){deltaY=orgEvent.detail*-1;}
665if('wheelDelta'in orgEvent){deltaY=orgEvent.wheelDelta;}
666if('wheelDeltaY'in orgEvent){deltaY=orgEvent.wheelDeltaY;}
667if('wheelDeltaX'in orgEvent){deltaX=orgEvent.wheelDeltaX*-1;}
668if('axis'in orgEvent&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaX=deltaY*-1;deltaY=0;}
669delta=deltaY===0?deltaX:deltaY;if('deltaY'in orgEvent){deltaY=orgEvent.deltaY*-1;delta=deltaY;}
670if('deltaX'in orgEvent){deltaX=orgEvent.deltaX;if(deltaY===0){delta=deltaX*-1;}}
671if(deltaY===0&&deltaX===0){return;}
672if(orgEvent.deltaMode===1){var lineHeight=$.data(this,'mousewheel-line-height');delta*=lineHeight;deltaY*=lineHeight;deltaX*=lineHeight;}else if(orgEvent.deltaMode===2){var pageHeight=$.data(this,'mousewheel-page-height');delta*=pageHeight;deltaY*=pageHeight;deltaX*=pageHeight;}
673absDelta=Math.max(Math.abs(deltaY),Math.abs(deltaX));if(!lowestDelta||absDelta<lowestDelta){lowestDelta=absDelta;if(shouldAdjustOldDeltas(orgEvent,absDelta)){lowestDelta/=40;}}
674if(shouldAdjustOldDeltas(orgEvent,absDelta)){delta/=40;deltaX/=40;deltaY/=40;}
675delta=Math[delta>=1?'floor':'ceil'](delta/lowestDelta);deltaX=Math[deltaX>=1?'floor':'ceil'](deltaX/lowestDelta);deltaY=Math[deltaY>=1?'floor':'ceil'](deltaY/lowestDelta);if(special.settings.normalizeOffset&&this.getBoundingClientRect){var boundingRect=this.getBoundingClientRect();offsetX=event.clientX-boundingRect.left;offsetY=event.clientY-boundingRect.top;}
676event.deltaX=deltaX;event.deltaY=deltaY;event.deltaFactor=lowestDelta;event.offsetX=offsetX;event.offsetY=offsetY;event.deltaMode=0;args.unshift(event,delta,deltaX,deltaY);if(nullLowestDeltaTimeout){clearTimeout(nullLowestDeltaTimeout);}
677nullLowestDeltaTimeout=setTimeout(nullLowestDelta,200);return($.event.dispatch||$.event.handle).apply(this,args);}
678function nullLowestDelta(){lowestDelta=null;}
679function shouldAdjustOldDeltas(orgEvent,absDelta){return special.settings.adjustOldDeltas&&orgEvent.type==='mousewheel'&&absDelta%120===0;}}));S2.define('jquery.select2',['jquery','jquery-mousewheel','./select2/core','./select2/defaults'],function($,_,Select2,Defaults){if($.fn.select2==null){var thisMethods=['open','close','destroy'];$.fn.select2=function(options){options=options||{};if(typeof options==='object'){this.each(function(){var instanceOptions=$.extend(true,{},options);var instance=new Select2($(this),instanceOptions);});return this;}else if(typeof options==='string'){var ret;var args=Array.prototype.slice.call(arguments,1);this.each(function(){var instance=$(this).data('select2');if(instance==null&&window.console&&console.error){console.error('The select2(\''+options+'\') method was called on an '+'element that is not using Select2.');}
680ret=instance[options].apply(instance,args);});if($.inArray(options,thisMethods)>-1){return this;}
681return ret;}else{throw new Error('Invalid arguments for Select2: '+options);}};}
682if($.fn.select2.defaults==null){$.fn.select2.defaults=Defaults;}
683return Select2;});return{define:S2.define,require:S2.require};}());var select2=S2.require('jquery.select2');jQuery.fn.select2.amd=S2;return select2;}));
684(function($,window,document,undefined){var VariationForm=function($form){var self=this;self.$form=$form;self.$attributeFields=$form.find('.variations select');self.$singleVariation=$form.find('.single_variation');self.$singleVariationWrap=$form.find('.single_variation_wrap');self.$resetVariations=$form.find('.reset_variations');self.$resetAlert=$form.find('.reset_variations_alert');self.$product=$form.closest('.product');self.variationData=$form.data('product_variations');self.useAjax=false===self.variationData;self.xhr=false;self.loading=true;self.$singleVariationWrap.show();self.$form.off('.wc-variation-form');self.getChosenAttributes=self.getChosenAttributes.bind(self);self.findMatchingVariations=self.findMatchingVariations.bind(self);self.isMatch=self.isMatch.bind(self);self.toggleResetLink=self.toggleResetLink.bind(self);self.showNoMatchingVariationsMsg=self.showNoMatchingVariationsMsg.bind(self);$form.on('click.wc-variation-form','.reset_variations',{variationForm:self},self.onReset);$form.on('reload_product_variations',{variationForm:self},self.onReload);$form.on('hide_variation',{variationForm:self},self.onHide);$form.on('show_variation',{variationForm:self},self.onShow);$form.on('click','.single_add_to_cart_button',{variationForm:self},self.onAddToCart);$form.on('reset_data',{variationForm:self},self.onResetDisplayedVariation);$form.on('reset_focus',{variationForm:self},self.onResetVariationFocus);$form.on('announce_reset',{variationForm:self},self.onAnnounceReset);$form.on('clear_reset_announcement',{variationForm:self},self.onClearResetAnnouncement);$form.on('reset_image',{variationForm:self},self.onResetImage);$form.on('change.wc-variation-form','.variations select',{variationForm:self},self.onChange);$form.on('found_variation.wc-variation-form',{variationForm:self},self.onFoundVariation);$form.on('check_variations.wc-variation-form',{variationForm:self},self.onFindVariation);$form.on('update_variation_values.wc-variation-form',{variationForm:self},self.onUpdateAttributes);$form.on('keydown.wc-variation-form','.reset_variations',{variationForm:self}
684,self.onResetKeyDown);setTimeout(function(){$form.trigger('check_variations');$form.trigger('wc_variation_form',self);self.loading=false;},100);};VariationForm.prototype.onReset=function(event){event.preventDefault();event.data.variationForm.$attributeFields.val('').trigger('change');event.data.variationForm.$form.trigger('announce_reset');event.data.variationForm.$form.trigger('reset_data');event.data.variationForm.$form.trigger('reset_focus');};VariationForm.prototype.onReload=function(event){var form=event.data.variationForm;form.variationData=form.$form.data('product_variations');form.useAjax=false===form.variationData;form.$form.trigger('check_variations');};VariationForm.prototype.onHide=function(event){event.preventDefault();event.data.variationForm.$form.find('.single_add_to_cart_button').removeClass('wc-variation-is-unavailable').addClass('disabled wc-variation-selection-needed');event.data.variationForm.$form.find('.woocommerce-variation-add-to-cart').removeClass('woocommerce-variation-add-to-cart-enabled').addClass('woocommerce-variation-add-to-cart-disabled');};VariationForm.prototype.onShow=function(event,variation,purchasable){event.preventDefault();if(purchasable){event.data.variationForm.$form.find('.single_add_to_cart_button').removeClass('disabled wc-variation-selection-needed wc-variation-is-unavailable');event.data.variationForm.$form.find('.woocommerce-variation-add-to-cart').removeClass('woocommerce-variation-add-to-cart-disabled').addClass('woocommerce-variation-add-to-cart-enabled');}else{event.data.variationForm.$form.find('.single_add_to_cart_button').removeClass('wc-variation-selection-needed').addClass('disabled wc-variation-is-unavailable');event.data.variationForm.$form.find('.woocommerce-variation-add-to-cart').removeClass('woocommerce-variation-add-to-cart-enabled').addClass('woocommerce-variation-add-to-cart-disabled');}
685if(wp.mediaelement){event.data.variationForm.$form.find('.wp-audio-shortcode, .wp-video-shortcode').not('.mejs-container').filter(function(){return!$(this).parent().hasClass('mejs-mediaelement');}).mediaelementplayer(wp.mediaelement.settings);}};VariationForm.prototype.onAddToCart=function(event){if($(this).is('.disabled')){event.preventDefault();if($(this).is('.wc-variation-is-unavailable')){window.alert(wc_add_to_cart_variation_params.i18n_unavailable_text);}else if($(this).is('.wc-variation-selection-needed')){window.alert(wc_add_to_cart_variation_params.i18n_make_a_selection_text);}}};VariationForm.prototype.onResetDisplayedVariation=function(event){var form=event.data.variationForm;form.$product.find('.product_meta').find('.sku').wc_reset_content();form.$product.find('.product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value').wc_reset_content();form.$product.find('.product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value').wc_reset_content();form.$form.trigger('reset_image');form.$singleVariation.slideUp(200).trigger('hide_variation');};VariationForm.prototype.onAnnounceReset=function(event){event.data.variationForm.$resetAlert.text(wc_add_to_cart_variation_params.i18n_reset_alert_text);};VariationForm.prototype.onResetVariationFocus=function(event){event.data.variationForm.$attributeFields[0].focus();};VariationForm.prototype.onClearResetAnnouncement=function(event){event.data.variationForm.$resetAlert.text('');};VariationForm.prototype.onResetImage=function(event){event.data.variationForm.$form.wc_variations_image_update(false);};VariationForm.prototype.onFindVariation=function(event,chosenAttributes){var form=event.data.variationForm,attributes='undefined'!==typeof chosenAttributes?chosenAttributes:form.getChosenAttributes(),currentAttributes=attributes.data;if(attributes.count&&attributes.count===attributes.chosenCount){if(form.useAjax){if(form.xhr){form.xhr.abort();}
686form.$form.block({message:null,overlayCSS:{background:'#fff',opacity:0.6},});currentAttributes.product_id=parseInt(form.$form.data('product_id'),10);currentAttributes.custom_data=form.$form.data('custom_data');form.xhr=$.ajax({url:wc_add_to_cart_variation_params.wc_ajax_url.toString().replace('%%endpoint%%','get_variation'),type:'POST',data:currentAttributes,success:function(variation){if(variation){form.$form.trigger('found_variation',[variation,]);}else{form.$form.trigger('reset_data');attributes.chosenCount=0;
686if(!form.loading){form.showNoMatchingVariationsMsg();}}},complete:function(){form.$form.unblock();},});}else{form.$form.trigger('update_variation_values');var matching_variations=form.findMatchingVariations(form.variationData,currentAttributes),variation=matching_variations.shift();if(variation){form.$form.trigger('found_variation',[variation]);}else{form.$form.trigger('reset_data');attributes.chosenCount=0;if(!form.loading){form.showNoMatchingVariationsMsg();}}}}else{form.$form.trigger('update_variation_values');form.$form.trigger('reset_data');}
687form.toggleResetLink(attributes.chosenCount>0);};VariationForm.prototype.onFoundVariation=function(event,variation){var form=event.data.variationForm,$sku=form.$product.find('.product_meta').find('.sku'),$weight=form.$product.find('.product_weight, .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value'),$dimensions=form.$product.find('.product_dimensions, .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value'),$qty_input=form.$singleVariationWrap.find('.quantity input.qty[name="quantity"]'),$qty=$qty_input.closest('.quantity'),purchasable=true,variation_id='',template=false,$template_html='';if(variation.sku){$sku.wc_set_content(variation.sku);}else{$sku.wc_reset_content();}
688if(variation.weight){$weight.wc_set_content(variation.weight_html);}else{$weight.wc_reset_content();}
689if(variation.dimensions){$dimensions.wc_set_content($.parseHTML(variation.dimensions_html)[0].data);}else{$dimensions.wc_reset_content();}
690form.$form.wc_variations_image_update(variation);if(!variation.variation_is_visible){template=wp_template('unavailable-variation-template');}else{template=wp_template('variation-template');variation_id=variation.variation_id;}
691$template_html=template({variation:variation,});$template_html=$template_html.replace('/*<![CDATA[*/','');$template_html=$template_html.replace('/*]]>*/','');form.$form.find('input[name="variation_id"], input.variation_id').val(variation.variation_id).trigger('change');if(variation.is_sold_individually==='yes'){$qty_input.val('1').attr('min','1').attr('max','').trigger('change');$qty.hide();}else{var qty_val=parseFloat($qty_input.val());if(isNaN(qty_val)){qty_val=variation.min_qty;}else{qty_val=qty_val>parseFloat(variation.max_qty)?variation.max_qty:qty_val;qty_val=qty_val<parseFloat(variation.min_qty)?variation.min_qty:qty_val;}
692$qty_input.attr('min',variation.min_qty).attr('max',variation.max_qty).val(qty_val).trigger('change');$qty.show();}
693if(!variation.is_purchasable||!variation.is_in_stock||!variation.variation_is_visible){purchasable=false;}
694setTimeout(function(){form.$singleVariation.html($template_html);if(form.$singleVariation.text().trim()){form.$singleVariation.slideDown(200).trigger('show_variation',[variation,purchasable]);}else{form.$singleVariation.show().trigger('show_variation',[variation,purchasable]);}},300);};VariationForm.prototype.onChange=function(event){var form=event.data.variationForm;form.$form.find('input[name="variation_id"], input.variation_id').val('').trigger('change');form.$form.trigger('clear_reset_announcement');form.$form.find('.wc-no-matching-variations').parent().remove();if(form.useAjax){form.$form.trigger('check_variations');}else{form.$form.trigger('woocommerce_variation_select_change');form.$form.trigger('check_variations');}
695form.$form.trigger('woocommerce_variation_has_changed');};VariationForm.prototype.addSlashes=function(string){string=string.replace(/'/g,"\\'");string=string.replace(/"/g,'\\"');return string;};VariationForm.prototype.onUpdateAttributes=function(event){var form=event.data.variationForm,attributes=form.getChosenAttributes(),currentAttributes=attributes.data;if(form.useAjax){return;}
696form.$attributeFields.each(function(index,el){var current_attr_select=$(el),current_attr_name=current_attr_select.data('attribute_name')||current_attr_select.attr('name'),show_option_none=$(el).data('show_option_none'),option_gt_filter=':gt(0)',attached_options_count=0,new_attr_select=$('<select/>'),selected_attr_val=current_attr_select.val()||'',selected_attr_val_valid=true;if(!current_attr_select.data('attribute_html')){var refSelect=current_attr_select.clone();refSelect.find('option').removeAttr('attached').prop('disabled',false).prop('selected',false);current_attr_select.data('attribute_options',refSelect.find('option'+option_gt_filter).get());current_attr_select.data('attribute_html',refSelect.html());}
697new_attr_select.html(current_attr_select.data('attribute_html'));var checkAttributes=$.extend(true,{},currentAttributes);checkAttributes[current_attr_name]='';var variations=form.findMatchingVariations(form.variationData,checkAttributes);for(var num in variations){if(typeof variations[num]!=='undefined'){var variationAttributes=variations[num].attributes;
697for(var attr_name in variationAttributes){if(variationAttributes.hasOwnProperty(attr_name)){var attr_val=variationAttributes[attr_name],variation_active='';if(attr_name===current_attr_name){if(variations[num].variation_is_active){variation_active='enabled';}
698if(attr_val){attr_val=$('<div/>').html(attr_val).text();var $option_elements=new_attr_select.find('option');if($option_elements.length){for(var i=0,len=$option_elements.length;i<len;i++){var $option_element=$($option_elements[i]),option_value=$option_element.val();if(attr_val===option_value){$option_element.addClass('attached '+
699variation_active);break;}}}}else{new_attr_select.find('option:gt(0)').addClass('attached '+variation_active);}}}}}}
700attached_options_count=new_attr_select.find('option.attached').length;if(selected_attr_val){selected_attr_val_valid=false;if(0!==attached_options_count){new_attr_select.find('option.attached.enabled').each(function(){var option_value=$(this).val();if(selected_attr_val===option_value){selected_attr_val_valid=true;return false;}});}}
701if(attached_options_count>0&&selected_attr_val&&selected_attr_val_valid&&'no'===show_option_none){new_attr_select.find('option:first').remove();option_gt_filter='';}
702new_attr_select.find('option'+option_gt_filter+':not(.attached)').remove();current_attr_select.html(new_attr_select.html());current_attr_select.find('option'+option_gt_filter+':not(.enabled)').prop('disabled',true);if(selected_attr_val){if(selected_attr_val_valid){current_attr_select.val(selected_attr_val);}else{current_attr_select.val('').trigger('change');}}else{current_attr_select.val('');}});form.$form.trigger('woocommerce_update_variation_values');};VariationForm.prototype.getChosenAttributes=function(){var data={};var count=0;var chosen=0;this.$attributeFields.each(function(){var attribute_name=$(this).data('attribute_name')||$(this).attr('name');var value=$(this).val()||'';if(value.length>0){chosen++;}
703count++;data[attribute_name]=value;});return{count:count,chosenCount:chosen,data:data,};};VariationForm.prototype.findMatchingVariations=function(variations,attributes){var matching=[];for(var i=0;i<variations.length;i++){var variation=variations[i];if(this.isMatch(variation.attributes,attributes)){matching.push(variation);}}
704return matching;};VariationForm.prototype.isMatch=function(variation_attributes,attributes){var match=true;for(var attr_name in variation_attributes){if(variation_attributes.hasOwnProperty(attr_name)){var val1=variation_attributes[attr_name];var val2=attributes[attr_name];if(val1!==undefined&&val2!==undefined&&val1.length!==0&&val2.length!==0&&val1!==val2){match=false;}}}
705return match;};VariationForm.prototype.toggleResetLink=function(on){if(on){if(this.$resetVariations.css('visibility')==='hidden'){this.$resetVariations.css('visibility','visible').hide().fadeIn();}}else{this.$resetVariations.css('visibility','hidden');}};VariationForm.prototype.showNoMatchingVariationsMsg=function(){this.$form.find('.single_variation').after('<div role="alert">'+'<p class="wc-no-matching-variations woocommerce-info">'+
706wc_add_to_cart_variation_params.i18n_no_matching_variations_text+'</p>'+'</div>').next('div').find('.wc-no-matching-variations').slideDown(200);};VariationForm.prototype.onResetKeyDown=function(event){if(event.code==='Enter'||event.code==='Space'){event.preventDefault();event.data.variationForm.onReset(event);}};$.fn.wc_variation_form=function(){new VariationForm(this);return this;};$.fn.wc_set_content=function(content){if(undefined===this.attr('data-o_content')){this.attr('data-o_content',this.text());}
707this.text(content);};$.fn.wc_reset_content=function(){if(undefined!==this.attr('data-o_content')){this.text(this.attr('data-o_content'));}};$.fn.wc_set_variation_attr=function(attr,value){if(undefined===this.attr('data-o_'+attr)){this.attr('data-o_'+attr,!this.attr(attr)?'':this.attr(attr));}
708if(false===value){this.removeAttr(attr);}else{this.attr(attr,value);}};$.fn.wc_reset_variation_attr=function(attr){if(undefined!==this.attr('data-o_'+attr)){this.attr(attr,this.attr('data-o_'+attr));}};$.fn.wc_maybe_trigger_slide_position_reset=function(variation){var $form=$(this),$product=$form.closest('.product'),$product_gallery=$product.find('.images'),reset_slide_position=false,new_image_id=variation&&variation.image_id?variation.image_id:'';if($form.attr('current-image')!==new_image_id){reset_slide_position=true;}
709$form.attr('current-image',new_image_id);if(reset_slide_position){$product_gallery.trigger('woocommerce_gallery_reset_slide_position');}};$.fn.wc_variations_gallery_is_active=function(){return'yes'===$(this).attr('data-product_gallery_active');};$.fn.wc_get_default_product_gallery_html=function(){var $form=$(this);var $template=$form.find('.wc-product-gallery-default-template');if($template.length){return $.trim($template.html());}
710var defaults=window.wc_variation_gallery_defaults||{};return defaults[$form.data('product_id')]||'';};$.fn.wc_find_gallery_root=function(){return $(this).find('.woocommerce-product-gallery').addBack('.woocommerce-product-gallery').first();};$.fn.wc_variations_gallery_replace=function(gallery_html,variation){var $form=$(this),$product=$form.closest('.product'),$current_gallery=$product.wc_find_gallery_root(),$parsed_gallery=$($.parseHTML($.trim(gallery_html))),$new_gallery=$parsed_gallery.wc_find_gallery_root(),current_image_id=variation&&variation.image_id?variation.image_id:'';if(!$current_gallery.length||!$new_gallery.length){return false;}
711if(typeof wc_single_product_params!=='undefined'){$current_gallery.trigger('wc-product-gallery-before-destroy',[$current_gallery[0],wc_single_product_params,]);}
712$current_gallery.replaceWith($new_gallery);if(typeof $.fn.wc_product_gallery==='function'&&typeof wc_single_product_params!=='undefined'){$new_gallery.trigger('wc-product-gallery-before-init',[$new_gallery[0],wc_single_product_params,]);$new_gallery.wc_product_gallery(wc_single_product_params);$new_gallery.trigger('wc-product-gallery-after-init',[$new_gallery[0],wc_single_product_params,]);}else{$new_gallery.css('opacity',1);}
713$form.attr('current-image',current_image_id);$form.attr('data-product_gallery_active','yes');return true;};$.fn.wc_variations_gallery_reset=function(){var $form=$(this),default_gallery_html=$form.wc_get_default_product_gallery_html(),reset_gallery=false;
713if(default_gallery_html.length){reset_gallery=$form.wc_variations_gallery_replace(default_gallery_html,false);}
714if(reset_gallery){$form.removeAttr('data-product_gallery_active');$form.attr('current-image','');}
715return reset_gallery;};$.fn.wc_variations_image_update=function(variation){var $form=this,$product=$form.closest('.product'),$product_gallery,$gallery_nav,$gallery_img,$product_img_wrap,$product_img,$product_link;if(variation&&variation.gallery_images_html&&variation.gallery_images_html.length&&$form.wc_variations_gallery_replace(variation.gallery_images_html,variation)){window.setTimeout(function(){$(window).trigger('resize');},20);return;}
716if($form.wc_variations_gallery_is_active()){var reset_succeeded=$form.wc_variations_gallery_reset();if(!variation){if(reset_succeeded){window.setTimeout(function(){$(window).trigger('resize');},20);}
717return;}
718if(!reset_succeeded){return;}}
719$product_gallery=$product.find('.images');$gallery_nav=$product.find('.flex-control-nav');$gallery_img=$gallery_nav.find('li:eq(0) img');$product_img_wrap=$product_gallery.find('.woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder').eq(0);$product_img=$product_img_wrap.find('.wp-post-image');$product_link=$product_img_wrap.find('a').eq(0);if(variation&&variation.image&&variation.image.src&&variation.image.src.length>1){var galleryHasImage=$gallery_nav.find('li img[data-o_src="'+
720variation.image.gallery_thumbnail_src+'"]').length>0;if(galleryHasImage){$form.wc_variations_image_reset();}
721var slideToImage=$gallery_nav.find('li img[src="'+variation.image.gallery_thumbnail_src+'"]');if(slideToImage.length>0){slideToImage.trigger('flexslider-click');$form.attr('current-image',variation.image_id);window.setTimeout(function(){$(window).trigger('resize');$product_gallery.trigger('woocommerce_gallery_init_zoom');},20);return;}
722$product_img.wc_set_variation_attr('src',variation.image.src);$product_img.wc_set_variation_attr('height',variation.image.src_h);$product_img.wc_set_variation_attr('width',variation.image.src_w);$product_img.wc_set_variation_attr('srcset',variation.image.srcset);$product_img.wc_set_variation_attr('sizes',variation.image.sizes);$product_img.wc_set_variation_attr('title',variation.image.title);$product_img.wc_set_variation_attr('data-caption',variation.image.caption);$product_img.wc_set_variation_attr('alt',variation.image.alt);$product_img.wc_set_variation_attr('data-src',variation.image.full_src);$product_img.wc_set_variation_attr('data-large_image',variation.image.full_src);$product_img.wc_set_variation_attr('data-large_image_width',variation.image.full_src_w);$product_img.wc_set_variation_attr('data-large_image_height',variation.image.full_src_h);$product_img_wrap.wc_set_variation_attr('data-thumb',variation.image.src);$gallery_img.wc_set_variation_attr('src',variation.image.gallery_thumbnail_src);$product_link.wc_set_variation_attr('href',variation.image.full_src);}else{$form.wc_variations_image_reset();}
723window.setTimeout(function(){$(window).trigger('resize');$form.wc_maybe_trigger_slide_position_reset(variation);$product_gallery.trigger('woocommerce_gallery_init_zoom');},20);};$.fn.wc_variations_image_reset=function(){var $form=this,$product=$form.closest('.product'),$product_gallery=$product.find('.images'),$gallery_nav=$product.find('.flex-control-nav'),$gallery_img=$gallery_nav.find('li:eq(0) img'),$product_img_wrap=$product_gallery.find('.woocommerce-product-gallery__image, .woocommerce-product-gallery__image--placeholder').eq(0),$product_img=$product_img_wrap.find('.wp-post-image'),$product_link=$product_img_wrap.find('a').eq(0);if($form.wc_variations_gallery_is_active()){$form.wc_variations_gallery_reset();return;}
724$product_img.wc_reset_variation_attr('src');$product_img.wc_reset_variation_attr('width');$product_img.wc_reset_variation_attr('height');$product_img.wc_reset_variation_attr('srcset');$product_img.wc_reset_variation_attr('sizes');$product_img.wc_reset_variation_attr('title');$product_img.wc_reset_variation_attr('data-caption');$product_img.wc_reset_variation_attr('alt');$product_img.wc_reset_variation_attr('data-src');$product_img.wc_reset_variation_attr('data-large_image');$product_img.wc_reset_variation_attr('data-large_image_width');$product_img.wc_reset_variation_attr('data-large_image_height');$product_img_wrap.wc_reset_variation_attr('data-thumb');$gallery_img.wc_reset_variation_attr('src');$product_link.wc_reset_variation_attr('href');};$(function(){if(typeof wc_add_to_cart_variation_params!=='undefined'){$('.variations_form').each(function(){$(this).wc_variation_form();});}});var wc_variation_form_matcher={find_matching_variations:function(product_variations,settings){var matching=[];for(var i=0;i<product_variations.length;i++){var variation=product_variations[i];if(wc_variation_form_matcher.variations_match(variation.attributes,settings)){matching.push(variation);}}
725return matching;},variations_match:function(attrs1,attrs2){var match=true;for(var attr_name in attrs1){if(attrs1.hasOwnProperty(attr_name)){var val1=attrs1[attr_name];var val2=attrs2[attr_name];if(val1!==undefined&&val2!==undefined&&val1.length!==0&&val2.length!==0&&val1!==val2){match=false;}}}
726return match;},};var wp_template=function(templateId){var html=document.getElementById('tmpl-'+templateId).textContent;var hard=false;hard=hard||/<#\s?data\./.test(html);hard=hard||/{{{?\s?data\.(?!variation\.).+}}}?/.test(html);hard=hard||/{{{?\s?data\.variation\.[\w-]*[^\s}]/.test(html);if(hard){return wp.template(templateId);}
727return function template(data){var variation=data.variation||{};return html.replace(/({{{?)\s?data\.variation\.([\w-]*)\s?(}}}?)/g,function(_,open,key,close){if(open.length!==close.length){return'';}
728var replacement=variation[key]||'';if(open.length===2){return window.escape(replacement);}
729return replacement;});};};})(jQuery,window,document);
730(()=>{"use strict";var t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
730),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{add_payment_info:()=>k,add_shipping_info:()=>b,add_to_cart:()=>w,begin_checkout:()=>v,purchase:()=>E,remove_from_cart:()=>g,search:()=>q,select_content:()=>A,view_item:()=>S,view_item_list:()=>f});const r=window.wp.i18n,o=window.wp.hooks,n=[],c=(t,e)=>null!=t&&null!=e&&String(t)===String(e),i=(t,e)=>{const r={};var o;t.variation&&(r.item_variant=(o=t.variation,Array.isArray(o)?o.map(({attribute:t,value:e})=>t&&e?`${t.toLowerCase()}: ${e}`:null).filter(Boolean).join(", "):o));const n={item_id:u(t),item_name:t.name,...m(t),quantity:t.quantity??e,price:s(t.totals?.line_total||t.prices.price,t.prices.currency_minor_unit),...r};return t?.price_after_coupon_discount<t.prices.price&&(n.discount=s(t.prices.price-t.price_after_coupon_discount,t.prices.currency_minor_unit),n.price=s(t.price_after_coupon_discount,t.prices.currency_minor_unit)),n},a=(t,e)=>({item_id:u(t),item_name:t.name,item_list_name:e,...m(t),price:s(t.prices.price,t.prices.currency_minor_unit)}),s=(t,e=2)=>parseInt(t,10)/10**e,d=(t,e,r)=>{(0,o.removeAction)(t,e),(0,o.addAction)(t,e,r)},u=t=>{const e=t.extensions?.woocommerce_google_analytics_integration?.identifier;return void 0!==e?e:"product_sku"===window.ga4w?.settings?.identifier?t.sku?t.sku:"#"+t.id:t.id},l=t=>t.coupons[0]?.code?{coupon:t.coupons[0]?.code}:{},m=t=>"categories"in t&&t.categories.length?p(t.categories):{},p=t=>Object.fromEntries(t.slice(0,5).map((t,e)=>[_(e),t.name])),_=t=>"item_category"+(t>0?t+1:""),y=(t,e,r)=>e?.find(({id:e})=>c(e,t))??r?.items?.find(({id:e})=>c(e,t))??n.find(({id:e})=>c(e,t)),f=({products:t,listName:e=(0,r.__)("Product List","woocommerce-google-analytics-integration")})=>!!t?.length&&{item_list_id:e.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/(^_+|_+$)/g,""),item_list_name:e,items:t.map((t,r)=>({...a(t,e),index:r+1}))},w=({product:t,quantity:e=1})=>({items:t?[i(t,e)]:[]}),g=({product:t,quantity:e=1})=>({items:t?[i(t,e)]:[]}),h=t=>{if(!t?.items?.length)return!1;const e=t.totals,r=t.items.reduce((t,e)=>t+parseInt(e.totals?.line_total??e.prices.price,10),0);return{currency:e.currency_code,value:s(r,e.currency_minor_unit),...l(t),items:t.items.map(i)}},v=({storeCart:t})=>h(t),b=({storeCart:t,shippingTier:e})=>{const r=h(t);return!!r&&{...r,...e?{shipping_tier:e}:{}}},k=({storeCart:t,paymentType:e})=>{const r=h(t);return!!r&&{...r,...e?{payment_type:e}:{}}},A=({product:t})=>!!t&&{content_type:"product",content_id:u(t)},q=({searchTerm:t})=>({search_term:t}),S=({product:t,listName:e=(0,r.__)("Product List","woocommerce-google-analytics-integration")})=>!!t&&{items:[a(t,e)]},E=({order:t})=>void 0!==t&&{transaction_id:t.id,affiliation:t.affiliation,currency:t.totals.currency_code,value:s(t.totals.total_price,t.totals.currency_minor_unit),tax:s(t.totals.tax_total,t.totals.currency_minor_unit),shipping:s(t.totals.shipping_total,t.totals.currency_minor_unit),items:t.items.map(i)},I='input[name="payment_method"]',C='input[name^="shipping_method"], select[name^="shipping_method"]',N=".woocommerce-cart-form .woocommerce-cart-form__cart-item, .woocommerce-cart-form .cart_item",$=t=>Array.from(document.querySelectorAll(t)).find(t=>t.checked||"SELECT"===t.tagName),L=t=>{if(!t)return;if("SELECT"===t.tagName){const e=t.options[t.selectedIndex];return e?.text?.trim()||t.value}const e=t.labels?.[0]||t.closest("label");return e?.textContent?.trim()||t.value},O=t=>{if(!t)return;const e=t.labels?.[0]||t.closest("label");if(e){const t=e.cloneNode(!0);t.querySelectorAll(".woocommerce-Price-amount").forEach(t=>t.remove());const r=t.textContent.replace(/[\s:]+$/,"").trim();if(r)return r}return L(t)};function j(t,{events:e,cart:r,products:o,product:n,added_to_cart:c,order:i,list_name:a}){let s=!1,d=!1,u=r;const l=new WeakSet,m=e=>{s=!0,t("add_shipping_info")({storeCart:r,shippingTier:e})},p=e=>{d=!0,t("add_payment_info")({storeCart:r,paymentType:e})};function _(e,i,a,s){const d=s?.[0]??s,u=parseInt(d?.dataset.product_id||d?.value);if(Number.isNaN(u)){const e=c??n;
730return e?void(Array.isArray(e)?e:[e]).filter(Boolean).forEach(e=>{t("add_to_cart")({product:e})}):void console.error("Google Analytics for WooCommerce: Could not read product ID from the button given in `added_to_cart` event. Check whether WooCommerce Core events or elements are malformed by other extensions.")}const l=n?.id===u?n:y(u,o,r);l&&t("add_to_cart")({product:l})}Object.values(e??{}).forEach(e=>{"add_to_cart"===e?(Array.isArray(c)?c:[c]).filter(Boolean).forEach(r=>{t(e)({product:r})}):t(e)({storeCart:r,products:o,product:n,order:i,listName:a})}),document.body.addEventListener("change",t=>{r?.items?.length&&t.target.closest?.("form.checkout")&&(t.target.matches(C)&&m(O(t.target)),t.target.matches(I)&&p(L(t.target)))}),document.querySelector("form.checkout")?.addEventListener("submit",()=>{if(r?.items?.length){if(!s){const t=$(C);t&&m(O(t))}d||p(L($(I)))}}),document.body.addEventListener("added_to_cart",t=>{_(t,...Array.isArray(t.detail)?t.detail:[t.detail?.fragments,t.detail?.cartHash,t.detail?.button])}),window.jQuery?.(document.body)?.on("added_to_cart",_);const f=()=>{document.querySelectorAll(".woocommerce-cart-form .woocommerce-cart-form__cart-item .remove[data-product_id]").forEach(t=>t.addEventListener("click",w))};function w(e){const r=parseInt(e.target?.dataset.product_id);Number.isNaN(r)?console.error("Google Analytics for WooCommerce: Could not read product ID from the target element given to remove from cart event. Check whether WooCommerce Core events or elements are malformed by other extensions."):t("remove_from_cart")({product:y(r,o,u)})}function g(t){const e=parseInt(t?.quantity,10),r=parseInt(t?.prices?.price,10);return!Number.isFinite(e)||e<1||!Number.isFinite(r)?null:r/e}function h(t,e){const r=g(t);return null===r?{...t,quantity:e}:{...t,quantity:e,prices:{...t.prices,price:Math.round(r)}}}function v(t,e){const r=function(t){const e=t.querySelector("input.qty")?.name;return e?.match(/^cart\[([^\]]+)\]\[qty]$/)?.[1]}(t),n=u?.items??[];if(r){const t=n.find(({key:t})=>t===r);if(t)return t}if(!Number.isNaN(e))return n.filter(({id:t})=>String(t)===String(e)).length>1?void 0:y(e,n,{items:o})}function b(){u?.items?.length&&document.querySelectorAll(N).forEach(e=>{const r=parseInt(e.querySelector("input.qty")?.value,10);if(!Number.isFinite(r))return;const o=parseInt(e.querySelector(".remove[data-product_id]")?.dataset.product_id,10),n=v(e,o),c=parseInt(n?.quantity,10);if(!n||!Number.isFinite(c)||r===c)return;const i=r>c?"add_to_cart":"remove_from_cart",a=Math.abs(r-c);t(i)({product:h(n,a)})})}function k(){const t=document.querySelector(".woocommerce-cart-form");t&&!l.has(t)&&(l.add(t),t.addEventListener("submit",b))}f(),k();const A=document.body.onupdated_wc_div;document.body.onupdated_wc_div=function(){"function"==typeof A&&A.apply(this,arguments),function(){if(!u?.items?.length)return;if(!document.querySelector(".woocommerce-cart-form"))return;const t=[];document.querySelectorAll(N).forEach(e=>{const r=parseInt(e.querySelector("input.qty")?.value,10),o=parseInt(e.querySelector(".remove[data-product_id]")?.dataset.product_id,10),n=v(e,o);n&&Number.isFinite(r)&&t.push(function(t,e){const r=g(t);return null===r?{...t,quantity:e}:{...t,quantity:e,prices:{...t.prices,price:Math.round(r*e)}}}(n,r))}),u={...u,items:t}}(),f(),k()};const q=document.body.onremoved_from_cart;document.body.onremoved_from_cart=function(t,e,r,o){"function"==typeof q&&q.apply(this,arguments),w({target:o?.[0]})},document.querySelectorAll(".products .product:not(.wp-block-post)")?.forEach(e=>{const n=e.querySelector("a[data-product_id]")?.getAttribute("data-product_id");n&&e.addEventListener("click",e=>{const c=e.target.closest(".woocommerce-loop-product__link"),i=e.target.classList.contains("button")&&e.target.hasAttribute("data-product_id"),a=e.target.classList.contains("add_to_cart_button")&&!e.target.classList.contains("product_type_variable");(c||i&&!a)&&t("select_content")({product:y(parseInt(n),o,r)})})}),document.querySelectorAll(".products-block-post-template .product, .wc-block-product-template .product, .wc-block-grid__product")?.forEach(e
730=>{const n=e.querySelector("[data-product_id]")?.getAttribute("data-product_id");n&&e.addEventListener("click",c=>{const i=c.target,a=i.closest(".wc-block-components-product-image a, .wc-block-grid__product-link"),s=i.closest(".wp-block-post-title a"),d=i.closest(".wc-block-components-product-button [data-product_id]");d&&d.classList.contains("add_to_cart_button")&&!d.classList.contains("product_type_variable")?t("add_to_cart")({product:y(parseInt(n),o,r)}):!e.closest(".wc-block-product-template")&&(a||d||s)&&t("select_content")({product:y(parseInt(n),o,r)})})})}const P="woocommerce-google-analytics",T="experimental__woocommerce_blocks",x=new Set;let F=!1,M=!1;const B=new Set;let G=!1,W=null;const D=new Map,R=t=>{Array.isArray(t?.items)&&t.items.forEach(t=>{null!=t?.key&&D.set(t.key,t)})},U=(t,e)=>{console.warn(`Google Analytics for WooCommerce: ${t}`,e)},z=(t,e,r)=>{try{t(e)(r)}catch(t){U(`could not track the ${e} event.`,t)}},J=t=>{const e=[];return null!=t?.key&&e.push(`key:${t.key}`),(t?.id||t?.name)&&e.push(`id:${t?.id??""}|${t?.name??""}`),e},H=t=>{J(t).forEach(t=>{B.add(t),setTimeout(()=>B.delete(t),200)})},Q=t=>J(t).some(t=>B.has(t));let K=null;const V=()=>window.ga4w?.settings?.currency,X=()=>{try{if(window.wp?.data?.select?.("wc/store/cart")){const t=window.wp.data.select("wc/store/cart").getCartData();if(t?.items?.length>0)return t}return window.ga4w?.data?.cart??null}catch(t){return U("could not read cart data.",t),null}},Y=t=>t?.key??t?.id??t?.name,Z=t=>t?.items?.length>0?t:window.ga4w?.data?.cart,tt=t=>t?.shippingRates??t?.shipping_rates??[],et=t=>window.wc?.wcSettings?.getSetting?.("paymentMethodData")?.[t]?.title||t,rt=t=>{const e=tt(window.wp?.data?.select?.("wc/store/cart")?.getCartData?.());return(e.length?e:tt(t)).flatMap(t=>t.shipping_rates??[])},ot=(t,e)=>rt(t).find(t=>t.rate_id===e)?.name,nt=(t,e,r={})=>{try{const o=Z(r.storeCart);return!!o?.items?.length&&(z(e,t,{...r,storeCart:o}),!0)}catch(e){return U(`could not prepare the ${t} event.`,e),!1}},ct=/\/wc\/store(?:\/v\d+)?\/cart\/add-item/,it=/\/wc\/store(?:\/v\d+)?\/cart\/update-item/,at=/\/wc\/store(?:\/v\d+)?\/batch/,st=(t,e={})=>{let r;try{r=new URL(t?.url??t?.toString?.(),window.location.origin)}catch{return null}return r.origin!==window.location.origin?null:{method:(e?.method??t?.method??"GET").toUpperCase(),pathname:r.searchParams.get("rest_route")??r.pathname}},dt=t=>{if(t instanceof FormData||t instanceof URLSearchParams)return Object.fromEntries(t.entries());if("string"==typeof t)try{return JSON.parse(t)}catch{return Object.fromEntries(new URLSearchParams(t).entries())}return t&&"object"==typeof t?t:{}},ut=(t,e=null)=>{const r=parseInt(t,10);return Number.isFinite(r)&&r>0?r:e},lt=t=>t?.key??t?.id,mt=(t,e)=>{const r=parseInt(t?.quantity,10),o=parseInt(t?.totals?.line_total,10);return Number.isFinite(o)&&Number.isFinite(r)&&Number.isFinite(e)&&r?{...t,totals:{...t.totals,line_total:String(Math.round(o*e/r))}}:t},pt=(t,e,r)=>{const{productId:o,quantity:n}=(t=>{const e=dt(t);return{productId:ut(e.id),quantity:ut(e.quantity,1)}})(t),c=((t,e,r)=>{if(Array.isArray(t?.items)&&t.items.length){if(Array.isArray(e?.items)){const r=t.items.find(t=>{const r=e.items.find(e=>lt(e)===lt(t));return!r||t.quantity>r.quantity});if(r)return r}return r?t.items.find(t=>parseInt(t.id,10)===r):void 0}})(e,r,o),i=c?((t,e,r)=>{const o=parseInt(t?.quantity,10);if(Array.isArray(e?.items)&&Number.isFinite(o)){const r=e.items.find(e=>lt(e)===lt(t)),n=parseInt(r?.quantity??0,10);if(Number.isFinite(n)){const t=o-n;if(t>0)return t}}return Number.isFinite(o)?Math.min(r,o):r})(c,r,n):n;return c?{eventName:"add_to_cart",product:mt(c,i),quantity:i,isAddItem:!0}:null},_t=(t,e,r)=>{const o=(n=t,dt(n)?.key??null);var n;if(!o)return null;const c=Array.isArray(e?.items)?e.items.find(t=>t.key===o):null,i=Array.isArray(r?.items)?r.items.find(t=>t.key===o):null,a=D.get(o);let s=0;a?s=a.quantity??0:i&&(s=i.quantity??0);const d=parseInt(c?.quantity??0,10)-parseInt(s,10);if(!Number.isFinite(d)||0===d)return null;const u=d>0?c:i??a;if(!u)return null;const l=Math.abs(d);return{eventName:d>0?"add_to_cart":"remove_from_cart",product:mt(u,l),quantity:l}},yt=t=>{if(W=(e,r)=>z(t,e,r),G||"function"!=typeof window.fetch)return;G=!0;const e=window.fetch;window.fetch=async function(...t){const[r,o]=t,n=((t,e={})=>{const r=st(t,e);return!!r&&"POST"===r.method&&ct.test(r.pathname)})(r,o),c=!n&&((t,e={})=>{const r=st(t,e);return!!r&&"POST"===r.method&&it.test(r.pathname)})(r,o),i=!n&&!c&&((t,e={})=>{const r=st(t,e);return!!r&&"POST"===r.method&&at.test(r.pathname)})(r,o),a=n||c||i,s=a?X():null,d=a?(async(t,e={})=>e?.body?e.body:"function"==typeof t?.clone?await t.clone().text():null)(r,o):null,u=await e.apply(this,t);if(!a||!u?.ok)return u;try{const t=await d,e=await u.clone().json();let r;i?r=((t,e,r)=>{const o=(t=>{if("string"==typeof t)try{return JSON.parse(t)}catch{return null}return t&&"object"==typeof t?t:null})(t)?.requests,n=e?.responses;if(!Array.isArray(o)||!Array.isArray(n))return[];const c=[];let i=r;return o.forEach((t,e)=>{const r=t?.path??"",o=ct.test(r),a=it.test(r);if(!o&&!a)return;const s=n[e],d=s?.status;if(!s||d<200||d>=300)return;const u=s.body,l=o?pt(t.body,u,i):_t(t.body,u,i);l&&c.push(l),R(u),i=u}),c}
730)(t,e,s):c?(r=[_t(t,e,s)].filter(Boolean),R(e)):(r=[pt(t,e,s)].filter(Boolean),R(e));const o=i?25:0;r.forEach(({eventName:t,product:e,quantity:r,isAddItem:n})=>{"remove_from_cart"!==t&&n?setTimeout(()=>{Q(e)||(H(e),W(t,{product:{...e,quantity:r}}))},o):W(t,{product:{...e,quantity:r}})})}catch(t){return U("could not parse the Store API cart response for cart change tracking.",t),u}return u}},ft=t=>{d(`${T}-product-render`,P,e=>z(t,"view_item",e)),d(`${T}-cart-remove-item`,P,e=>{try{const r=Y(e?.product);r&&(x.add(r),setTimeout(()=>x.delete(r),200)),z(t,"remove_from_cart",e)}catch(t){U("could not process Blocks remove_from_cart tracking.",t)}}),(t=>{document.body.addEventListener("click",e=>{try{const r=e.target?.closest?.(".wc-block-cart-item__remove-link");if(!r)return;const o=r.closest(".wc-block-cart-items__row");if(!o)return;let n=null;const c=o.querySelector(".wc-block-components-product-name"),i=c?.getAttribute("href"),a=c?.textContent?.trim();let s=null;if(i){const t=i.match(/[?&]p=(\d+)/);t&&(s=parseInt(t[1],10))}const d=X();if(Array.isArray(d?.items)&&(s?n=y(s,[],d):a&&(n=d.items.find(t=>t.name===a))),n||(n=(t=>{const e=t.querySelector(".wc-block-components-product-name"),r=e?.textContent?.trim();if(!r)return null;const o=t.querySelector(".wc-block-components-quantity-selector__input"),n=o&&parseInt(o.value,10)||1,c=t.querySelector(".wc-block-components-product-price__value ins .woocommerce-Price-amount")||t.querySelector(".wc-block-components-product-price__value .woocommerce-Price-amount")||t.querySelector(".wc-block-components-product-price__value"),i=X(),a=V(),s=i?.totals?.currency_minor_unit??a?.precision??2,d=c?(t=>{if(!t)return 0;const e=V();if(!e)return 0;const{decimalSeparator:r=".",thousandSeparator:o=","}=e;if("function"==typeof window.accounting?.unformat)return window.accounting.unformat(t,r);let n=t.replace(/[^\d.,]/g,"").trim();if(o){const t=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n=n.replace(new RegExp(t,"g"),"")}return"."!==r&&(n=n.replace(r,".")),parseFloat(n)||0})(c.textContent):0;return{name:r,quantity:n,prices:{price:Math.round(d*10**s),currency_minor_unit:s}}})(o)),n){const e=Y(n);setTimeout(()=>{e&&x.has(e)||z(t,"remove_from_cart",{product:n})},0)}}catch(t){U("could not read mini-cart remove_from_cart data.",t)}})})(t),d(`${T}-checkout-render-checkout-form`,P,e=>{F=!1,M=!1,nt("begin_checkout",t,e)}),d(`${T}-checkout-set-selected-shipping-rate`,P,e=>{try{const r=Z(e.storeCart),o=e.shippingRateId;F=nt("add_shipping_info",t,{...e,shippingTier:ot(r,o)??o})}catch(t){F=!1,U("could not prepare the add_shipping_info event.",t)}}),d(`${T}-checkout-set-active-payment-method`,P,e=>{try{M=nt("add_payment_info",t,{...e,paymentType:et(e.paymentMethodSlug)})}catch(t){M=!1,U("could not prepare the add_payment_info event.",t)}}),d(`${T}-checkout-submit`,P,e=>{try{const r=(t=>{const e=rt(t).find(t=>t.selected);return e?.name??e?.rate_id})(e.storeCart);if(!F&&r&&(F=nt("add_shipping_info",t,{...e,shippingTier:r})),M)return;M=nt("add_payment_info",t,{...e,paymentType:et(window.wp?.data?.select?.("wc/store/payment")?.getActivePaymentMethod?.())})}catch(t){U("could not prepare checkout submit tracking.",t)}}),d(`${T}-cart-add-item`,P,e=>{try{const r=e?.product;if(Q(r))return;H(r),z(t,"add_to_cart",{product:r})}catch(t){U("could not process Blocks add_to_cart tracking.",t)}}),yt(t),d(`${T}-product-list-render`,P,e=>{var r;e?.products&&(r=e.products,Array.isArray(r)&&r.forEach(t=>{null==t?.id||n.some(({id:e})=>c(e,t.id))||n.push(t)})),z(t,"view_item_list",e)}),d(`${T}-product-view-link`,P,e=>z(t,"select_content",e)),K&&document.body.removeEventListener("wc-blocks_viewed_product",K),K=e=>{const{productId:r}=e.detail??{},o=String(r??"");if(/^[1-9]\d*$/.test(o)){const e=parseInt(o,10).toString(),r=y(e,[],null)??{id:e};z(t,"select_content",{product:r})}},document.body.addEventListener("wc-blocks_viewed_product",K)};(0,o.removeAction)(`${T}-checkout-submit`,P),(0,o.removeAction)(`${T}-checkout-set-email-address`,P),(0,o.removeAction)(`${T}-checkout-set-phone-number`,P),(0,o.removeAction)(`${T}-checkout-set-billing-address`,P),(0,o.removeAction)(`${T}-cart-set-item-quantity`,P),(0,o.removeAction)(`${T}-product-search`,P),(0,o.removeAction)(`${T}-store-notice-create`,P);const wt={statistics:["analytics_storage"],marketing:["ad_storage","ad_user_data","ad_personalization"]},gt={formatters:e,utils:{getProductFieldObject:i,getProductImpressionObject:a,formatPrice:s,getProductId:u,getCartCoupon:l}};function ht(){window.wcGoogleAnalyticsIntegration={...window.wcGoogleAnalyticsIntegration??{},...gt},Object.assign(window.ga4w,gt),(({tracker_function_name:t})=>{if("function"==typeof wp_has_consent){void 0===window.wp_consent_type&&(window.wp_consent_type="optin");const e={};for(const[t,r]of Object.entries(wt))if(""!==consent_api_get_cookie(window.consent_api.cookie_prefix+"_"+t)){const o=wp_has_consent(t)?"granted":"denied";r.forEach(t=>{e[t]=o})}Object.keys(e).length>0&&window[t]("consent","update",e)}})(window.ga4w.settings),(({tracker_function_name:t})=>{document.addEventListener("wp_listen_for_consent_change",e=>{const r={},o=wt[Object.keys(e.detail)[0]],n="allow"===Object.values(e.detail)[0]?"granted":"denied";
730void 0!==o&&(o.forEach(t=>{r[t]=n}),Object.keys(r).length>0&&window[t]("consent","update",r))})})(window.ga4w.settings);const t=function({events:t,tracker_function_name:r}){return function(o){const n=e[o];if("function"!=typeof n)throw new Error(`Event ${o} is not supported.`);return function(e){const c=n(e);t.includes(o)&&c&&window[r]("event",o,c)}}}(window.ga4w.settings);j(t,window.ga4w.data),ft(t)}function vt(){window.ga4w||console.warn("Google Analytics for WooCommerce: Configuration and tracking data not found after the page was fully loaded. Make sure the `woocommerce-google-analytics-integration-data` script gets eventually loaded.")}window.ga4w?ht():(document.addEventListener("ga4w:ready",ht),"complete"===document.readyState?vt():window.addEventListener("load",vt))})();
731(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>
731t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
732(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,
732status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>
732(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>
732{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)}
732)))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
733(function(){'use strict';function applyHoneypotRefill(form,honeypotData){if(!form||!honeypotData||typeof honeypotData!=='object'){return;}
734Object.keys(honeypotData).forEach(function(fieldName){const token=honeypotData[fieldName];if(!token||!token.random_hash||!token.field_name){return;}
735const wrapper=form.querySelector('[data-cf7apps-honeypot="'+fieldName+'"]')||form.querySelector('.wpcf7-form-control-wrap.'+fieldName+'-wrap');if(!wrapper){return;}
736const hashInput=form.querySelector('input[name="'+fieldName+'-random-hash"]');if(hashInput){hashInput.value=token.random_hash;}
737const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(honeypotInput){honeypotInput.setAttribute('name',token.field_name);honeypotInput.value='';}});}
738function syncHoneypotInputValues(form){if(!form){return;}
739form.querySelectorAll('[data-cf7apps-honeypot]').forEach(function(wrapper){const honeypotInput=wrapper.querySelector('input.wpcf7-form-control[type="text"]');if(!honeypotInput){return;}
740const attributeValue=honeypotInput.getAttribute('value');if(attributeValue&&!honeypotInput.value){honeypotInput.value=attributeValue;}});}
741function bindHoneypotRefillEvents(form){if(!form||form.dataset.cf7appsHoneypotBound){return;}
742if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
743form.dataset.cf7appsHoneypotBound='1';form.addEventListener('submit',function(){syncHoneypotInputValues(form);},true);form.addEventListener('wpcf7reset',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});form.addEventListener('wpcf7submit',function(event){if(event.detail&&event.detail.apiResponse&&event.detail.apiResponse.honeypot){applyHoneypotRefill(form,event.detail.apiResponse.honeypot);}});}
744function initHoneypotRefill(){if(typeof wpcf7==='undefined'){return;}
745if(typeof wpcf7.submit==='function'&&!wpcf7.__cf7appsHoneypotSubmitWrapped){const originalSubmit=wpcf7.submit;wpcf7.submit=function(form,options){if(form instanceof HTMLFormElement){syncHoneypotInputValues(form);}
746return originalSubmit.call(this,form,options);};wpcf7.__cf7appsHoneypotSubmitWrapped=true;}
747const forms=document.querySelectorAll('.wpcf7 > form');
747forms.forEach(function(form){bindHoneypotRefillEvents(form);if(!form.querySelector('[data-cf7apps-honeypot]')){return;}
748const forceRefill=(typeof wpcf7!=='undefined'&&wpcf7.cached)||(typeof cf7appsHoneypotRefill!=='undefined'&&cf7appsHoneypotRefill.forceRefillOnInit);if(forceRefill&&typeof wpcf7.reset==='function'){wpcf7.reset(form);}});}
749if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',initHoneypotRefill);}else{initHoneypotRefill();}})();
750jQuery(document).ready(function(){jQuery(".dms-select").on('change',function(){var x=jQuery(this).val();if(jQuery(this).hasClass('open-in-new-tab')){window.open(x,'_blank');}else{if(x!==''){window.location.href=x;}}});});
751(function($){'use strict';})(jQuery);
752((i,e)=>{var t={cache(){t.els=[],t.els.term_link=i(".iconic-wlv-terms__term-content--link")},on_ready(){t.cache(),t.setup_term_links()},setup_term_links(){t.els.term_link.on("mouseenter",function(){var e=i(this),t=e.closest(".iconic-wlv-terms__term").data("iconic-wlv-term-label");e.closest("tr").find(".iconic-wlv-variations__selection").text(t)}).on("mouseleave",function(){var e=i(this).closest("tr").find(".iconic-wlv-variations__selection"),t=e.data("iconic-wlv-selected-term-label");e.text(t)})}};i(e).ready(t.on_ready)})(jQuery,document);
753/*! Magnific Popup - v1.1.0 - 2016-02-20
754* http://dimsemenov.com/plugins/magnific-popup/
755* Copyright (c) 2016 Dmitry Semenov; */
756!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.
756st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;
756if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;
756var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});
756var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
757jQuery(function($){if(typeof wc_cart_fragments_params==='undefined'){return false;}
758var $supports_html5_storage=true,cart_hash_key=wc_cart_fragments_params.cart_hash_key;try{$supports_html5_storage=('sessionStorage'in window&&window.sessionStorage!==null);window.sessionStorage.setItem('wc','test');window.sessionStorage.removeItem('wc');window.localStorage.setItem('wc','test');window.localStorage.removeItem('wc');}catch(err){$supports_html5_storage=false;}
759function set_cart_creation_timestamp(){if($supports_html5_storage){sessionStorage.setItem('wc_cart_created',(new Date()).getTime());}}
760function set_cart_hash(cart_hash){if($supports_html5_storage){localStorage.setItem(cart_hash_key,cart_hash);sessionStorage.setItem(cart_hash_key,cart_hash);}}
761var $fragment_refresh={url:wc_cart_fragments_params.wc_ajax_url.toString().replace('%%endpoint%%','get_refreshed_fragments'),type:'POST',data:{time:new Date().getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(data){if(data&&data.fragments){$.each(data.fragments,function(key,value){$(key).replaceWith(value);});if($supports_html5_storage){sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(data.fragments));set_cart_hash(data.cart_hash);if(data.cart_hash){set_cart_creation_timestamp();}}
762$(document.body).trigger('wc_fragments_refreshed');}},error:function(){$(document.body).trigger('wc_fragments_ajax_error');}};function refresh_cart_fragment(){$.ajax($fragment_refresh);}
763if($supports_html5_storage){var cart_timeout=null,day_in_ms=(24*60*60*1000);$(document.body).on('wc_fragment_refresh updated_wc_div',function(){refresh_cart_fragment();});$(document.body).on('added_to_cart removed_from_cart',function(event,fragments,cart_hash){var prev_cart_hash=sessionStorage.getItem(cart_hash_key);if(prev_cart_hash===null||prev_cart_hash===undefined||prev_cart_hash===''){set_cart_creation_timestamp();}
764sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(fragments));set_cart_hash(cart_hash);});$(document.body).on('wc_fragments_refreshed',function(){clearTimeout(cart_timeout);cart_timeout=setTimeout(refresh_cart_fragment,day_in_ms);});$(window).on('storage onstorage',function(e){if(cart_hash_key===e.originalEvent.key&&localStorage.getItem(cart_hash_key)!==se
764ssionStorage.getItem(cart_hash_key)){refresh_cart_fragment();}});$(window).on('pageshow',function(e){if(e.originalEvent.persisted){$('.widget_shopping_cart_content').empty();$(document.body).trigger('wc_fragment_refresh');}});try{var wc_fragments=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),cart_hash=sessionStorage.getItem(cart_hash_key),cookie_hash=Cookies.get('woocommerce_cart_hash'),cart_created=sessionStorage.getItem('wc_cart_created');if(cart_hash===null||cart_hash===undefined||cart_hash===''){cart_hash='';}
765if(cookie_hash===null||cookie_hash===undefined||cookie_hash===''){cookie_hash='';}
766if(cart_hash&&(cart_created===null||cart_created===undefined||cart_created==='')){throw'No cart_created';}
767if(cart_created){var cart_expiration=((1*cart_created)+day_in_ms),timestamp_now=(new Date()).getTime();if(cart_expiration<timestamp_now){throw'Fragment expired';}
768cart_timeout=setTimeout(refresh_cart_fragment,(cart_expiration-timestamp_now));}
769if(wc_fragments&&wc_fragments['div.widget_shopping_cart_content']&&cart_hash===cookie_hash){$.each(wc_fragments,function(key,value){$(key).replaceWith(value);});$(document.body).trigger('wc_fragments_loaded');}else{throw'No fragment';}}catch(err){refresh_cart_fragment();}}else{refresh_cart_fragment();}
770if(Cookies.get('woocommerce_items_in_cart')>0){$('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show();}else{$('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').hide();}
771$(document.body).on('adding_to_cart',function(){$('.hide_cart_widget_if_empty').closest('.widget_shopping_cart').show();});var hasSelectiveRefresh=('undefined'!==typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial);if(hasSelectiveRefresh){wp.customize.selectiveRefresh.bind('partial-content-rendered',function(){refresh_cart_fragment();});}});
772jQuery(function($){"use strict";if(window?.wc?.blocksCheckout){const{registerCheckoutFilters}=wc.blocksCheckout;const{sprintf,__}=wp.i18n;const modifyItemName=(defaultValue,extensions,args)=>{if(!extensions?.iconic_sales_booster?.added_via_at_checkout_bump){return defaultValue;}
773return sprintf(__('(Offer) %s','iconic-wsb'),defaultValue);};registerCheckoutFilters('iconic-sales-booster',{itemName:modifyItemName});}
774$(document).on('change','[data-iconic-wsb-checkout-bump-trigger]',function(){if(!$(this).parents('[data-block-name="woocommerce/checkout"]').length){return;}
775if(!wc?.blocksCheckout?.extensionCartUpdate){return;}
776const $fields=$(this).siblings('input[type="hidden"]');const data={'bump-type':'at-checkout','iconic-wsb-bump-id':$fields.filter('[name="iconic-wsb-bump-id"]').val(),'iconic-wsb-checkout-bump-action':$(this).prop('checked')?'add':'remove','iconic-wsb-checkout-product-id':$fields.filter('[name="iconic-wsb-checkout-product-id"]').val(),'iconic-wsb-checkout-variation-id':$fields.filter('[name="iconic-wsb-checkout-variation-id"]').val(),'iconic-wsb-checkout-variation-data':$fields.filter('[name="iconic-wsb-checkout-variation-data"]').val()};$('.wp-block-woocommerce-checkout').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});wc.blocksCheckout.extensionCartUpdate({namespace:'iconic-sales-booster',data}).then(()=>{checkoutBumpVariableProduct.handleSwatchesLabel();checkoutBumpVariableProduct.handleOverlay();checkoutBumpVariableProduct.handleCheckbox();$('.wp-block-woocommerce-checkout').unblock();});});wp.data.subscribe(()=>{if(!wp.data.select('wc/store/checkout')?.isBeforeProcessing()){return;}
777if(!$('[data-iconic-wsb-acb-modal]').length){return;}
778wp.data.dispatch('wc/store/checkout').__internalSetIdle();$.magnificPopup.open({items:{type:'inline',src:$('[data-iconic-wsb-acb-modal]')}});},'wc/store/checkout');$('[data-iconic-wsb-acb-add-to-cart-button]').on('click',function(event){if(!window?.wc?.blocksCheckout){return;}
779event.preventDefault();const $fields=$('.iconic-wsb-acb-fields input[type="hidden"]');const data={'bump-type':'after-checkout','iconic-wsb-acb-action':'add','iconic-wsb-acb-bump-id':$fields.filter('[name="iconic-wsb-acb-bump-id"]').val(),'iconic-wsb-acb-variation-id':$fields.filter('[name="iconic-wsb-acb-variation-id"]').val(),'iconic-wsb-acb-variation-data':$fields.filter('[name="iconic-wsb-acb-variation-data"]').val()};wc.blocksCheckout.extensionCartUpdate({namespace:'iconic-sales-booster',data}).then(()=>{$.magnificPopup.close();$('[data-iconic-wsb-acb-modal]').remove();wp.data.dispatch('wc/store/checkout').__internalSetBeforeProcessing();});});$('[data-iconic-wsb-acb-close-button]').on('click',function(event){if(!window?.wc?.blocksCheckout){return;}
780event.preventDefault();$.magnificPopup.close();$('[data-iconic-wsb-acb-modal]').remove();wp.data.dispatch('wc/store/checkout')?.__internalSetBeforeProcessing();});$(document).on('change','[data-iconic-wsb-checkout-bump-trigger]',function(){var actionTypeInput=$('[name=iconic-wsb-checkout-bump-action]');var bumpInForm=true;var bumpWrapper=$(this).closest('.iconic-wsb-checkout-bump');if(!$(this).closest('form.checkout').length){bumpInForm=false;}
781if(!$(this).prop('checked')){actionTypeInput.val('remove');}else{actionTypeInput.val('add');if(!bumpInForm){bumpWrapper.find('input[name="iconic-wsb-bump-id"]').clone().appendTo('form.checkout');bumpWrapper.find('input[name="iconic-wsb-checkout-bump-action"]').clone().appendTo('form.checkout');bumpWrapper.find('input[name="iconic-wsb-checkout-product-id"]').clone().appendTo('form.checkout');bumpWrapper.find('input[name="iconic-wsb-checkout-variation-id"]').clone().appendTo('form.checkout');bumpWrapper.find('input[name="iconic-wsb-checkout-variation-data"]').clone().appendTo('form.checkout');}}
782$('body').trigger('update_checkout');if(!$(this).prop('checked')&&!bumpInForm){setTimeout(function(){$('form.checkout input[name="iconic-wsb-bump-id"]').remove();$('form.checkout input[name="iconic-wsb-checkout-bump-action"]').remove();$('form.checkout input[name="iconic-wsb-checkout-product-id"]').remove();$('form.checkout input[name="iconic-wsb-checkout-variation-id"]').remove();$('form.checkout input[name="iconic-wsb-checkout-variation-data"]').remove();},500);}});var AfterCheckoutBump=function(){this.isBumpShowed=false;this.isFormSubmited=false;this.init=function(){this.$checkoutForm=$('form.checkout');this.container='[data-iconic-wsb-acb-modal]';this.$bumpModal=$(this.container);this.$addToCartButton=$('[data-iconic-wsb-acb-add-to-cart-button]');this.$closeButton=$('[data-iconic-wsb-acb-close-button]');this.actionInputSelector='[name=iconic-wsb-acb-action]';this.$form=$('.iconic-wsb-after-checkout-bump-form');this.variation_dropdown=".iconic-wsb-checkout-modal__select";this.variationHandler=new IconicVariationHandler(this.$form,this.container,this.onVariationFound.bind(this),this.onVariationNotFound.bind(this));var self=this;if(this.$bumpModal.length>0){this.$checkoutForm.on('checkout_place_order.orderBump',this.openModal.bind(this));this.$closeButton.on('click',this.close.bind(this));this.$addToCartButton.on('click',function(e){e.preventDefault();this.addToCartBump();}.bind(this));$(this.container).on("change",this.variation_dropdown,this.variationHandler.getVariation.bind(this.variationHandler));$('.wsb_select_readonly option:not(:selected)').prop('disabled',true);}
783this.$form.addClass("variations_form");this.$form.data("product_variations",false);};this.close=function(){$.magnificPopup.close();this.$checkoutForm.submit();};this.addToCartBump=function(){$(this.actionInputSelector).val('add');this.$checkoutForm.trigger('update_checkout');this.$checkoutForm.off('checkout_place_order.orderBump',this.openModal.bind(this));$(document).ajaxComplete(function(event,xhr,settings){if(!settings.url.includes("update_order_review")){return;}
784if(this.isFormSubmited===true){return;}
785this.isFormSubmited=true;this.$checkoutForm.submit();}.bind(this));$.magnificPopup.close();};this.openModal=function(){if(!$(this.container).length){return;}
786if(this.isBumpShowed===true){return true;}
787this.variationHandler.getVariation();var modalConfig={items:{src:this.$bumpModal,type:'inline'}};modalConfig=Object.assign(modalConfig,Object(iconic_wsb_frontend_vars&&iconic_wsb_frontend_vars.modal_options));$.magnificPopup.open(modalConfig);this.isBumpShowed=true;return false;};this.onVariationFound=function(variation){this.$addToCartButton.attr("disabled",fal
787se);this.$form.find(".iconic-wsb-checkout-modal-unavailable_msg").hide();this.$form.find(".iconic-wsb-modal-product-offer__price").html(variation.price_html);$("[name='iconic-wsb-acb-variation-id']").val(variation.variation_id);};this.onVariationNotFound=function(){this.$addToCartButton.attr("disabled",true);this.$form.find(".iconic-wsb-checkout-modal-unavailable_msg").slideDown(200);this.$form.find(".iconic-wsb-modal-product-offer__price").html("");$("[name='iconic-wsb-acb-variation-id']").val("");};};var CheckoutBumpVariableProduct=function(){this.allVariationSelectedFlag=null;this.$attributeFields=null;this.$woocommerceWrapper=$('.page.woocommerce-checkout, [data-block-name="woocommerce/checkout"]');this.container=".iconic-wsb-checkout-bump";this.variation_dropdown=".iconic-wsb-checkout-bump__select";this.init=function(){var self=this;self.variationHandler=new IconicVariationHandler(self.$woocommerceWrapper,this.container,this.onVariationFound.bind(self),this.onVariationNotFound.bind(self));$(self.$woocommerceWrapper).on("change",this.variation_dropdown,this.variationHandler.getVariation.bind(this.variationHandler));$(self.$woocommerceWrapper).on("change",this.variation_dropdown,this.handleCheckbox.bind(this));self.product_type=self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump").data("product_type");if(self.product_type==="variable"){if(self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__select").length){self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__header-checkbox").attr("disabled",!self.variationHandler.checkAllSelects.bind(self.variationHandler));}
788self.handleSwatchesLabel();self.handleOverlay();self.handleCheckbox();}
789$(document.body).on('updated_checkout',function(){self.product_type=self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump").data("product_type");if(self.product_type==="variable"){if(self.$woocommerceWrapper.find("[name=iconic-wsb-checkout-variation-id]").length&&$("[name=iconic-wsb-checkout-variation-id]").val()===''){self.variationHandler.getVariation(false);}
790if(self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__select").length){self.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__header-checkbox").attr("disabled",!self.variationHandler.checkAllSelects.bind(self.variationHandler));}
791self.handleSwatchesLabel();self.handleOverlay();self.handleCheckbox();}
792$('.wsb_select_readonly option:not(:selected)').prop('disabled',true);});this.$woocommerceWrapper.addClass("variations_form");this.$woocommerceWrapper.data("product_variations",false);if(!$('form.checkout .iconic-wsb-checkout-bump').length){if($('.iconic-wsb-checkout-bump__header-checkbox').prop('checked')){this.$woocommerceWrapper.find('input[name="iconic-wsb-bump-id"]').clone().appendTo('form.checkout');this.$woocommerceWrapper.find('input[name="iconic-wsb-checkout-bump-action"]').clone().appendTo('form.checkout');this.$woocommerceWrapper.find('input[name="iconic-wsb-checkout-product-id"]').clone().appendTo('form.checkout');this.$woocommerceWrapper.find('input[name="iconic-wsb-checkout-variation-id"]').clone().appendTo('form.checkout');this.$woocommerceWrapper.find('input[name="iconic-wsb-checkout-variation-data"]').clone().appendTo('form.checkout');}}
793setTimeout(()=>{$('.iconic-wsb-variation__select.iconic-wsb-checkout-bump__select option').each(function(){$(this).attr('value',$(this).attr('data-value')||'');});},700);};this.onVariationFound=function(variation){this.$woocommerceWrapper.find("[data-iconic-wsb-checkout-bump-trigger]").attr("disabled",false);this.$woocommerceWrapper.find(".iconic-wsb-checkou-bump_unavailable_msg").hide();};this.onVariationNotFound=function(){this.$woocommerceWrapper.find("[data-iconic-wsb-checkout-bump-trigger]").attr("disabled",true);this.$woocommerceWrapper.find(".iconic-wsb-checkou-bump_unavailable_msg").slideDown(200);};this.handleOverlay=function(){var isInCart=this.$woocommerceWrapper.find("[data-iconic-wsb-checkout-bump-trigger]").prop("checked");if(isInCart){this.$woocommerceWrapper.find(".iconic-wsb-checkout-bump").addClass("iconic-wsb-checkout-bump__overlay_active");
793this.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__overlay").show();}else{this.$woocommerceWrapper.find(".iconic-wsb-checkout-bump").removeClass("iconic-wsb-checkout-bump__overlay_active");this.$woocommerceWrapper.find(".iconic-wsb-checkout-bump__overlay").hide();}};this.handleSwatchesLabel=function(){if(this.$woocommerceWrapper.find(".iconic-was-swatches").length){this.$woocommerceWrapper.find(".iconic-wsb-variation__select").each(function(){var val=jQuery(this).val();if(val){var $row=jQuery(this).closest("tr");var html=$row.find("td.label label .iconic-was-chosen-attribute").html();if(html&&html.trim()===""){var new_html=$row.find(".iconic-was-swatch--selected").data("attribute-value-name");$row.find("td.label label .iconic-was-chosen-attribute").html(new_html);}}});}};this.handleCheckbox=function(){var $checkbox=this.$woocommerceWrapper.find("[data-iconic-wsb-checkout-bump-trigger]");if($checkbox.prop("checked")){$checkbox.attr("disabled",false);}else{this.$woocommerceWrapper.find("[data-iconic-wsb-checkout-bump-trigger]").attr("disabled",!this.variationHandler.checkAllSelects());}};};var afterCheckoutBump=new AfterCheckoutBump();var checkoutBumpVariableProduct=new CheckoutBumpVariableProduct();function clear_after_add_to_cart_fragment_on_checkout_page(){if(!iconic_wsb_frontend_vars?.is_checkout){return;}
794const fragment_name=wc_cart_fragments_params?.fragment_name;if(!fragment_name||'string'!==typeof fragment_name){return;}
795let fragments=sessionStorage.getItem(fragment_name);if(!fragments){return;}
796fragments=JSON.parse(fragments);fragments['.iconic_wsb_after_add_to_cart_popup_placeholder']=undefined;sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(fragments));}
797$(document).ready(function(){checkoutBumpVariableProduct.init();clear_after_add_to_cart_fragment_on_checkout_page();if($('[data-block-name="woocommerce/checkout"]').length){return;}
798afterCheckoutBump.init();$(document).on('updated_checkout',function(event,data){if(!data.fragments||!data.fragments['.iconic-wsb-modal']){return;}
799var refreshedAfterCheckoutBump=new AfterCheckoutBump();refreshedAfterCheckoutBump.init();});});});jQuery(function($){"use strict";var AfterAddToCartBump=function(){this.init=function(){this.$bumpModal=$('[data-iconic-wsb-acc-modal-bump]');this.$closeButton=$('[data-iconic-wsb-close-aac-modal]');this.$variation_wrap=jQuery(this.$bumpModal.selector+' .single_variation_wrap');if(this.$bumpModal.length>0){this.$closeButton.on('click',this.close.bind(this));this.$variation_wrap.on('show_variation',this.changeVariationImage);this.openModal();}};this.changeVariationImage=function(event,variation){if(variation.image.thumb_src!==undefined){var $image=$(this).closest('[data-iconic-wsb-acc-modal-bump-offer-product]').find('[data-iconic-wsb-acc-modal-bamp-offer-image]').find('img');$image.attr('srcset','');$image.attr('src',variation.image.thumb_src);}};this.close=function(){$.magnificPopup.close();$('[data-iconic-wsb-acc-modal-bump]').remove();};this.openModal=function(){var modalConfig={items:{src:this.$bumpModal,type:'inline'}};modalConfig=Object.assign(modalConfig,Object(iconic_wsb_frontend_vars&&iconic_wsb_frontend_vars.modal_options));$.magnificPopup.open(modalConfig);$('[data-iconic-wsb-acc-modal-bump]').fadeIn(100);};};var FrequentlyBoughTogether=function(){this.init=function(){$('.variations_form').on('found_variation',this.variationChangeHandle.bind(this));$('.iconic-wsb-bump-product__select').change(function(e){this.toggleButtonStatus.bind(this)();this.updateTotalPrice.bind(this)();this.fetchVariationPrice.bind(e.target)();this.updateAttributeData.bind(e.target)();}.bind(this));$('.iconic-wsb-bump-product__checkbox').change(function(){this.updateTotalPrice();this.toggleButtonStatus();}.bind(this));this.toggleButtonStatus();this.addToCartAjax();this.toggleProductImages();this.disableFormSubmitForDisabledButton();};this.updateAttributeData=function(){var product_id=$(this).data("product_id"),attributes=$(this).find("option:selected").data("attributes"),attributes_str=typeof attributes==='object'?JSON.stringify(attributes):attributes;$("[name='iconic-wsb-bump-product_attributes-"+product_id+"']").val(attributes_str);};this.toggleButtonStatus=function(){var variableSelectFlag=true;$('.iconic-wsb-product-bumps__list-item').each(function(){if($(this).find(".iconic-wsb-bump-product__checkbox").prop("checked")){var $select=$(this).find(".iconic-wsb-bump-product__select");if($select.length&&!$select.val()){variableSelectFlag=false;}}});var selectedProductsCount=$('.iconic-wsb-bump-product__checkbox:checked').length;if(variableSelectFlag&&selectedProductsCount){$(".iconic-wsb-product-bumps__button").removeClass("disabled");}else{$(".iconic-wsb-product-bumps__button").addClass("disabled");}};this.disableFormSubmitForDisabledButton=function(){$('form.cart').click(function(e){$(this).data('clicked',$(e.target));});$('form.cart').submit(function(e){if($(this).data('clicked').is("[data-bump-product-form-submit]")){if($(this).find('.iconic-wsb-product-bumps__button').hasClass("disabled")){e.preventDefault();return false;}}});$('.iconic-wsb-product-bumps__button').click(function(){if($(this).hasClass("disabled")){alert(iconic_wsb_frontend_vars.i18n.disabled_add_to_cart);}});};this.fetchVariationPrice=function(){var data={action:'iconic_wsb_get_variation_price',variation_id:jQuery(this).val(),_ajax_nonce:iconic_wsb_frontend_vars.nonce};var self=this;const selector=$('.variations_form').length?'.variations_form':'.iconic-wsb-product-bumps';$(selector).block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});jQuery.post(iconic_wsb_frontend_vars.ajax_url,data,function(response){$(selector).unblock();if(!response.success){return;}
800jQuery(self).siblings(".iconic-wsb-bump-product__price").html(response.data.variation_price_html);});};this.updateTotalPrice=function(){var product_ids=[];$(".iconic-wsb-product-bumps__list-item").each(function(){if($(this).find(".iconic-wsb-bump-product__checkbox").is(":checked")){if($(this).data("product_type")==="variable"){var parent_id=parseInt($(this).data("product_id")),variation_value=parseInt($(this).find(".iconic-wsb-bump-product__select").val()),id=variation_value>0?variation_value:parent_id;product_ids.push(id);}else{product_ids.push($(this).data("product_id"));}}});var data={action:'iconic_wsb_fbt_get_products_price',product_ids:product_ids,offer_product_id:$("[name='iconic-wsb-fbt-this-product']").val(),_ajax_nonce:iconic_wsb_frontend_vars.nonce};var $variation_form=$('.iconic-wsb-product-bumps').parents('.variations_form');$variation_form.block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});$.post(iconic_wsb_frontend_vars.ajax_url,data,function(data){$(".iconic-wsb-product-bumps__total-price-amount").html(data.html);$variation_form.unblock();});};this.variationChangeHandle=function(e,variation_data){this.variationId=variation_data.variation_id;this.currentProductId=$("form.cart").data("product_id");if(this.variationId&&$(".iconic-wsb-bump-product__select--"+this.currentProductId).length){var $select=$(".iconic-wsb-bump-product__select--"+this.currentProductId);var currentProductAttributes={};$("form.cart .variations select").each(function(){currentProductAttributes[$(this).data("attribute_name")]=$(this).find("option:selected").text();});var matchIndex=0;$(".iconic-wsb-bump-product__select--"+this.currentProductId+" option").each(function(optionIndex){var $option=$(this);var optionAttribute=$option.data("attributes");var matchFlag=true;var attribute;
800for(attribute in currentProductAttributes){if(optionAttribute&&optionAttribute[attribute]['label']===currentProductAttributes[attribute]){}else{matchFlag=false;}}
801if(matchFlag){matchIndex=optionIndex;$select.find("option").eq(matchIndex).prop('selected',true);$select.change();}});}};this.addToCartAjax=function(){$(document.body).on('click','[data-bump-product-form-submit]',function(e){var $button=$(this);if($button.prop('disabled')||$button.hasClass('disabled')||'1'!==iconic_wsb_frontend_vars.fbt_use_ajax){return;}
802var $bumps=$button.closest('.iconic-wsb-product-bumps'),$form=$button.closest('form.cart'),bumpInForm=true,$product_id=$button.data('product-id');if(!$form.length){bumpInForm=false;$form=$('form.cart');if(!$form.length){$form=$(document.createElement('form'));$('.iconic-wsb-product-bumps').clone().appendTo($form);}else{$bumps.find('input[name="iconic-wsb-fbt-this-product"]').clone().appendTo('form.cart');$bumps.find('.iconic-wsb-bump-product__checkbox:checked').each(function(){var element=$(document.createElement('input'));element.attr('type','hidden');element.attr('name',$(this).attr('name'));element.val($(this).val());element.attr('class',$(this).attr('class'));element.appendTo($form);var select=$(this).closest('label').find('select[name^="iconic-wsb-products-add-to-cart-variation-"]');if(select.length){var element=$(document.createElement('input'));element.attr('type','hidden');element.attr('name',select.attr('name'));element.attr('class',select.attr('class'));element.val(select.val());element.data(select.data());element.appendTo($form);}else{$(this).closest('label').find('input[name^="iconic-wsb-products-add-to-cart-variation-"]').clone().appendTo($form);}
803$(this).closest('label').find('input[name^="iconic-wsb-bump-product_attributes-"]').clone().appendTo($form);});}}
804e.preventDefault();$bumps.block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});$button.prop("disabled",true);$('.woocommerce-notices-wrapper').html('');$.ajax({type:'POST',url:wc_add_to_cart_params.ajax_url,data:$form.serialize()+"&iconic-wsb-add-selected=1&action=iconic_wsb_fbt_add_to_cart&post_id="+$product_id,success:function(result){$button.text(iconic_wsb_frontend_vars.i18n.success);var notice_class=result.success?'woocommerce-message':'woocommerce-error';$('.woocommerce-notices-wrapper').append('<div class="'+notice_class+'">'+result.message+'</div>');jQuery.scroll_to_notices($(".woocommerce-notices-wrapper"));$bumps.unblock();if(wc_add_to_cart_params.cart_redirect_after_add==="yes"){window.location=wc_add_to_cart_params.cart_url;}else{$(document.body).trigger('added_to_cart',[result.fragments,result.cart_hash]);}},error:function(){$button.text(iconic_wsb_frontend_vars.i18n.error);$bumps.unblock();},complete:function(){setTimeout(function(){$button.prop("disabled",false).text(iconic_wsb_frontend_vars.i18n.add_selected);if(!bumpInForm){$('form.cart input[name="iconic-wsb-fbt-this-product"]').remove();$('form.cart .iconic-wsb-bump-product__checkbox').remove();$('form.cart input[name^="iconic-wsb-bump-product_attributes-"]').remove();$('form.cart select[name^="iconic-wsb-products-add-to-cart-variation-"]').remove();}},3000);}});});};this.toggleProductImages=function(){$('.iconic-wsb-bump-product__checkbox').change(function(){var $checkbox=$(this),$list_item=$checkbox.closest('.iconic-wsb-product-bumps__list-item'),$bumps=$checkbox.closest('.iconic-wsb-product-bumps'),id=$checkbox.val(),$images_wrapper=$('.iconic-wsb-product-bumps__images'),$images=$('.iconic-wsb-product-bumps__image');if(!$checkbox.is(':checked')){$list_item.addClass('iconic-wsb-product-bumps__list-item--faded');$('.iconic-wsb-product-bumps__image[data-product-id='+id+']').hide();}else{$list_item.removeClass('iconic-wsb-product-bumps__list-item--faded');$('.iconic-wsb-product-bumps__image[data-product-id='+id+']').show();}
805var $last_visible=$bumps.find('.iconic-wsb-product-bumps__image:visible:last');$images.removeClass('iconic-wsb-product-bumps__image--no-plus');$last_visible.addClass('iconic-wsb-product-bumps__image--no-plus');var toggle_images=!$images_wrapper.is(':visible')||0<$last_visible.length;
805$images_wrapper.toggle(toggle_images);});$('.iconic-wsb-bump-product__checkbox').trigger('change');};};var afterAddToCartBump=new AfterAddToCartBump();var frequentlyBoughTogether=new FrequentlyBoughTogether();$(document).ready(function(){afterAddToCartBump.init();frequentlyBoughTogether.init();});$(document).on('added_to_cart',function(e,fragments){if(!fragments||!window.wc_cart_fragments_params||!wc_cart_fragments_params.fragment_name){return;}
806afterAddToCartBump.init();fragments['.iconic_wsb_after_add_to_cart_popup_placeholder']=undefined;fragments['.woocommerce-notices-wrapper']=undefined;sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(fragments));});});"use strict";var IconicVariationHandler=function(form,container_selector,onVariationFound,onVariationNotFound){this.$form=form;this.container_selector=container_selector;this.getVariation=function(){var self=this,$variationIdField=self.$form.find(".iconic-wsb__variation_id");if($variationIdField.length<=0){return;}
807if(self.checkAllSelects()){self.$attributeFields=jQuery(self.container_selector).find('.iconic-wsb-variation__select');var attributes=self.getChosenAttributes();var currentAttributes=attributes.data;if(self.$form.hasClass("iconic-wsb-after-checkout-bump-form")){jQuery("[name='iconic-wsb-acb-variation-data']").val(JSON.stringify(currentAttributes));}else{jQuery("[name='iconic-wsb-checkout-variation-data']").val(JSON.stringify(currentAttributes));}
808currentAttributes.product_id=parseInt(jQuery(self.container_selector).find(".iconic-wsb__product_id").val());currentAttributes.action="iconic_wsb_checkout_get_variation";currentAttributes.bump_id=jQuery(self.container_selector).find(".iconic-wsb__bump_id").val();currentAttributes._ajax_nonce=iconic_wsb_frontend_vars.nonce;self.showLoader();self.xhr=jQuery.ajax({url:iconic_wsb_frontend_vars.ajax_url,type:'POST',data:currentAttributes,success:function(variation){if(variation){self.$form.find("#iconic-wsb-checkout-bump-variation").val(variation.variation_id);self.$form.find(".iconic-wsb-checkout-bump__price_span").html(variation.price_html);if(!variation.is_purchasable||!variation.is_in_stock||!variation.variation_is_visible){onVariationNotFound();$variationIdField.val("");}else{onVariationFound(variation);$variationIdField.val(variation.variation_id);}}else{onVariationNotFound();$variationIdField.val("");}
809self.hideLoader();},complete:function(){self.hideLoader();}});self.$form.find("[data-iconic-wsb-acb-add-to-cart-button] , [data-iconic-wsb-checkout-bump-trigger]").attr("disabled",false);}else{self.$form.find("[data-iconic-wsb-acb-add-to-cart-button], [data-iconic-wsb-checkout-bump-trigger]").attr("disabled",true);}};this.checkAllSelects=function(){var self=this;self.allVariationSelectedFlag=true;jQuery(self.container_selector).find(".iconic-wsb-variation__select").each(function(){if(jQuery(this).val()){jQuery(this).closest("tr").removeClass("iconic-wsb-variation-tr-valdation-error");}else{self.allVariationSelectedFlag=false;jQuery(this).closest("tr").addClass("iconic-wsb-variation-tr-valdation-error");}});return self.allVariationSelectedFlag;};this.getChosenAttributes=function(){var data={};var count=0;var chosen=0;this.$attributeFields.each(function(){var attribute_name=jQuery(this).data('attribute_name')||jQuery(this).attr('name');var value=jQuery(this).val()||'';if(value.length>0){chosen++;}
810count++;data[attribute_name]=value;});return{'count':count,'chosenCount':chosen,'data':data};};this.showLoader=function(){this.$form.block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});};this.hideLoader=function(){this.$form.unblock();};};
811
812!function(O,x,c,e){var n,M,s,i,l,a,o,r,u,h,t,d,p="mPageScroll2id",b="mPS2id",g={scrollSpeed:1e3,autoScrollSpeed:!0,scrollEasing:"easeInOutQuint",scrollingEasing:"easeOutQuint",pageEndSmoothScroll:!0,layout:"vertical",offset:0,highlightSelector:!1,clickedClass:b+"-clicked",targetClass:b+"-target",highlightClass:b+"-highlight",forceSingleHighlight:!1,keepHighlightUntilNext:!1,highlightByNextTarget:!1,disablePluginBelow:!1,clickEvents:!0,appendHash:!1,onStart:function(){},onComplete:function(){},defaultSelector:!1,live:!0,liveSelector:!1,excludeSelectors:!1,encodeLinks:!1,inIframe:!1},f=0,_=/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/,w={init:function(e){e=O.extend(!0,{},g,e);if(O(c).data(b,e),M=O(c).data(b),!this.selector){var t="__"+b;this.each(function(){var e=O(this);e.hasClass(t)||e.addClass(t)}),this.selector="."+t}M.liveSelector&&(this.selector+=","+M.liveSelector),n=n?n+","+this.selector:this.selector,M.defaultSelector&&("object"==typeof O(n)&&0!==O(n).length||(n=".m_PageScroll2id,a[rel~='m_PageScroll2id'],.page-scroll-to-id,a[rel~='page-scroll-to-id'],._ps2id")),M.clickEvents&&O(c).off("."+b).on("click."+b,n,function(e){if(m._isDisabled.call(null))m._removeClasses.call(null);else{var t=O(this),n=t.attr("href"),s=t.prop("href").baseVal||t.prop("href");M.excludeSelectors&&t.is(M.excludeSelectors)||n&&-1!==n.indexOf("#/")||(m._reset.call(null),h=t.data("ps2id-offset")||0,m._isValid.call(null,n,s)&&m._findTarget.call(null,n)&&
812(e.preventDefault(),i="selector",l=t,m._setClasses.call(null,!0),m._scrollTo.call(null)))}}),O(x).off("."+b).on("scroll."+b+" resize."+b,function(){if(m._isDisabled.call(null))m._removeClasses.call(null);else{var i=O("._"+b+"-t");i.each(function(e){var t=O(this),n=t.attr("id"),s=m._findHighlight.call(null,n);m._setClasses.call(null,!1,t,s),e==i.length-1&&m._extendClasses.call(null)})}}),s=!0,m._setup.call(null),m._live.call(null)},scrollTo:function(e,t){if(m._isDisabled.call(null))m._removeClasses.call(null);else if(e&&void 0!==e){m._isInit.call(null);var n={layout:M.layout,offset:M.offset,clicked:!1};t=O.extend(!0,{},n,t);m._reset.call(null),r=t.layout,u=t.offset,e=-1!==e.indexOf("#")?e:"#"+e,m._isValid.call(null,e)&&m._findTarget.call(null,e)&&(i="scrollTo",(l=t.clicked)&&m._setClasses.call(null,!0),m._scrollTo.call(null))}},destroy:function(){O(x).off("."+b),O(c).off("."+b).removeData(b),O("._"+b+"-t").removeData(b),m._removeClasses.call(null,!0)}},m={_isDisabled:function(){var e=x,t="inner",n=M.disablePluginBelow instanceof Array?[M.disablePluginBelow[0]||0,M.disablePluginBelow[1]||0]:[M.disablePluginBelow||0,0];return"innerWidth"in x||(t="client",e=c.documentElement||c.body),e[t+"Width"]<=n[0]||e[t+"Height"]<=n[1]},_isValid:function(e,t){if(e){var n=-1!==(t=t||e).indexOf("#/")?t.split("#/")[0]:t.split("#")[0],s=(M.inIframe||x.location===x.parent.location?x.location:x.parent.location).toString().split("#")[0];return"#"!==e&&-1!==e.indexOf("#")&&(""===n||decodeURIComponent(n)===decodeURIComponent(s))}},_setup:function(){var l=m._highlightSelector(),o=1,r=0;return O(l).each(function(){var e=O(this),t=e.attr("href"),n=e.prop("href").baseVal||e.prop("href");if(m._isValid.call(null,t,n)){if(M.excludeSelectors&&e.is(M.excludeSelectors))return;var s=-1!==t.indexOf("#/")?t.split("#/")[1]:t.substring(t.indexOf("#")+1),i=_.test(s)?O(c.getElementById(s)):O("#"+s);if(0<i.length){M.highlightByNextTarget&&i!==r&&(r?r.data(b,{tn:i}):i.data(b,{tn:"0"}),r=i),i.hasClass("_"+b+"-t")||i.addClass("_"+b+"-t"),i.data(b,{i:o}),e.hasClass("_"+b+"-h")||e.addClass("_"+b+"-h");var a=m._findHighlight.call(null,s);m._setClasses.call(null,!1,i,a),f=o,++o==O(l).length&&m._extendClasses.call(null)}}})},_highlightSelector:function(){return M.highlightSelector&&""!==M.highlightSelector?M.highlightSelector:n},_findTarget:function(e){var t=-1!==e.indexOf("#/")?e.split("#/")[1]:e.substring(e.indexOf("#")+1),n=_.test(t)?O(c.getElementById(t)):O("#"+t);if(n.length<1||"fixed"===n.css("position")){if("top"!==t)return;n=O("body")}return a=n,r||(r=M.layout),u=m._setOffset.call(null),(o=[(n.offset().top-u[0]).toString(),(n.offset().left-u[1]).toString()])[0]=o[0]<0?0:o[0],o[1]=o[1]<0?0:o[1],o},_setOffset:function(){var e,t,n,s;switch(u||(u=M.offset?M.offset:0),h&&(u=h),typeof u){case"object":case"string":0<(t=[(e=[u.y?u.y:u,u.x?u.x:u])[0]instanceof jQuery?e[0]:O(e[0]),e[1]instanceof jQuery?e[1]:O(e[1])])[0].length?(n=t[0].height(),"fixed"===t[0].css("position")&&(n+=t[0][0].offsetTop)):n=!isNaN(parseFloat(e[0]))&&isFinite(e[0])?parseInt(e[0]):0,0<t[1].length?(s=t[1].width(),"fixed"===t[1].css("position")&&(s+=t[1][0].offsetLeft)):s=!isNaN(parseFloat(e[1]))&&isFinite(e[1])?parseInt(e[1]):0;break;case"function":(e=u.call(null))instanceof Array?(n=e[0],s=e[1]):n=s=e;break;default:n=s=parseInt(u)}return[n,s]},_findHighlight:function(e){var t=M.inIframe||x.location===x.parent.location?x.location:x.parent.location,n=t.toString().split("#")[0],s=t.pathname;if(-1!==n.indexOf("'")&&(n=n.replace("'","\\'")),-1!==s.indexOf("'")&&(s=s.replace("'","\\'")),n=decodeURIComponent(n),s=decodeURIComponent(s),M.encodeLinks){var i=encodeURI(n).toLowerCase(),a=encodeURI(s).toLowerCase();return O("._"+b+"-h[href='#"+e+"'],._"+b+"-h[href='"+n+"#"+e+"'],._"+b+"-h[href='"+s+"#"+e+"'],._"+b+"-h[href='#/"+e+"'],._"+b+"-h[href='"+n+"#/"+e+"'],._"+b+"-h[href='"+s+"#/"+e+"'],._"+b+"-h[href='"+i+"#/"+e+"'],._"+b+"-h[href='"+i+"#"+e+"'],._"+b+"-h[href='"+a+"#/"+e+"'],._"+b+"-h[href='"+a+"#"+e+"']")}return O("._"+b+"-h[href='#"+e+"'],._"+b+"-h[href='"+n+"#"+e+"'],._"+b+"-h[href='"+s+"#"+e+"'],._"+b+"-h[href='#/"+e+"'],._"+b+"-h[href='"+n+"#/"+e+"'],._"+b+"-h[href='"+s+"#/"+e+"']")},_setClasses:function(e,t,n){var s=M.clickedClass,i=M.targetClass,a=M.highlightClass;e&&s&&""!==s?(O("."+s).removeClass(s),l.addClass(s)):t&&i&&""!==i&&n&&a&&""!==a&&(m._currentTarget.call(null,t)?(t.addClass(i),n.addClass(a)):(!M.keepHighlightUntilNext||1<O("."+a).length)&&(t.removeClass(i),n.removeClass(a)))},_extendClasses:function(){var e=M.targetClass,t=M.highlightClass,n=O("."+e),s=O("."+t),i=e+"-first",a=e+"-last",l=t+"-first",o=t+"-last";O("._"+b+"-t").removeClass(i+" "+a),O("._"+b+"-h").removeClass(l+" "+o),M.forceSingleHighlight?M.keepHighlightUntilNext&&1<n.length?(n.slice(0,1).removeClass(e),s.slice(0,1).removeClass(t)):(n.slice(1).removeClass(e),s.slice(1).removeClass(t)):(n.slice(0,1).addClass(i).end().slice(-1).addClass(a),s.slice(0,1).addClass(l).end().slice(-1).addClass(o))},_removeClasses:function(e){O("."+M.clickedClass).removeClass(M.clickedClass),O("."+M.targetClass).removeClass(M.targetClass+" "+M.targetClass+"-first "+M.targetClass+"-last"),O("."+M.highlightClass).removeClass(M.highlightClass+" "+M.highlightClass+"-first "+M.highlightClass+"-last"),e&&(O("._"+b+"-t").removeClass("_"+b+"-t"),O("._"+b+"-h").removeClass("_"+b+"-h"))},_currentTarget:function(e){if(e.data(b)){var t=M["target_"+e.data(b).i],n=e.data("ps2id-target"),s=n&&O(n)[0]?O(n)[0].getBoundingClientRect():e[0].getBoundingClientRect();if(void 0!==t){var i=e.offset().top,a=e.offset().left,l=t.from?t.from+i:i,o=t.to?t.to+i:i,r=t.fromX?t.fromX+a:a,c=t.toX?t.toX+a:a;return s.top>=o&&s.top<=l&&s.left>=c&&s.left<=r}var u=O(x).height(),h=O(x).width(),d=n?O(n).height():e.height(),p=n?O(n).width():e.width(),g=1+d/u,f=g,_=d<u?g*(u/d):g,w=1+p/h,m=w,S=p<h?w*(h/p):w,I=[s.top<=u/f,s.bottom>=u/_,s.left<=h/m,s.right>
812=h/S];if(M.highlightByNextTarget){var v=e.data(b).tn;if(v){var C=v[0].getBoundingClientRect();"vertical"===M.layout?I=[s.top<=u/2,C.top>u/2,1,1]:"horizontal"===M.layout&&(I=[1,1,s.left<=h/2,C.left>h/2])}}return I[0]&&I[1]&&I[2]&&I[3]}},_scrollTo:function(){d=m._scrollSpeed.call(null),o=M.pageEndSmoothScroll?m._pageEndSmoothScroll.call(null):o;var e=O("html,body"),t=M.autoScrollSpeed?m._autoScrollSpeed.call(null):d,n=e.is(":animated")?M.scrollingEasing:M.scrollEasing,s=O(x).scrollTop(),i=O(x).scrollLeft();switch(r){case"horizontal":i!=o[1]&&(m._callbacks.call(null,"onStart"),e.stop().animate({scrollLeft:o[1]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")}));break;case"auto":var a;if(s!=o[0]||i!=o[1])if(m._callbacks.call(null,"onStart"),navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/))e.stop().animate({pageYOffset:o[0],pageXOffset:o[1]},{duration:t,easing:n,step:function(e,t){"pageXOffset"==t.prop?a=e:"pageYOffset"==t.prop&&x.scrollTo(a,e)}}).promise().then(function(){m._callbacks.call(null,"onComplete")}
812);else e.stop().animate({scrollTop:o[0],scrollLeft:o[1]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")});break;default:s!=o[0]&&(m._callbacks.call(null,"onStart"),e.stop().animate({scrollTop:o[0]},t,n).promise().then(function(){m._callbacks.call(null,"onComplete")}))}},_pageEndSmoothScroll:function(){var e=O(c).height(),t=O(c).width(),n=O(x).height(),s=O(x).width();return[e-o[0]<n?e-n:o[0],t-o[1]<s?t-s:o[1]]},_scrollSpeed:function(){var s=M.scrollSpeed;return l&&l.length&&l.add(l.parent()).each(function(){var e=O(this);if(e.attr("class")){var t=e.attr("class").split(" ");for(var n in t)if(String(t[n]).match(/^ps2id-speed-\d+$/)){s=t[n].split("ps2id-speed-")[1];break}}}),parseInt(s)},_autoScrollSpeed:function(){var e=O(x).scrollTop(),t=O(x).scrollLeft(),n=O(c).height(),s=O(c).width(),i=[d+d*Math.floor(Math.abs(o[0]-e)/n*100)/100,d+d*Math.floor(Math.abs(o[1]-t)/s*100)/100];return Math.max.apply(Math,i)},_callbacks:function(e){if(M)switch(this[b]={trigger:i,clicked:l,target:a,scrollTo:{y:o[0],x:o[1]}},e){case"onStart":if(M.appendHash&&x.history&&x.history.pushState&&l&&l.length){var t=l.attr("href"),n="#"+t.substring(t.indexOf("#")+1);n!==x.location.hash&&history.pushState("","",n)}M.onStart.call(null,this[b]);break;case"onComplete":M.onComplete.call(null,this[b])}},_reset:function(){r=u=h=!1},_isInit:function(){s||w.init.apply(this)},_live:function(){t=setTimeout(function(){M.live?O(m._highlightSelector()).length!==f&&m._setup.call(null):t&&clearTimeout(t),m._live.call(null)},1e3)},_easing:function(){function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}O.easing.easeInQuad=O.easing.easeInQuad||function(e){return e*e},O.easing.easeOutQuad=O.easing.easeOutQuad||function(e){return 1-(1-e)*(1-e)},O.easing.easeInOutQuad=O.easing.easeInOutQuad||function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},O.easing.easeInCubic=O.easing.easeInCubic||function(e){return e*e*e},O.easing.easeOutCubic=O.easing.easeOutCubic||function(e){return 1-Math.pow(1-e,3)},O.easing.easeInOutCubic=O.easing.easeInOutCubic||function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},O.easing.easeInQuart=O.easing.easeInQuart||function(e){return e*e*e*e},O.easing.easeOutQuart=O.easing.easeOutQuart||function(e){return 1-Math.pow(1-e,4)},O.easing.easeInOutQuart=O.easing.easeInOutQuart||function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},O.easing.easeInQuint=O.easing.easeInQuint||function(e){return e*e*e*e*e},O.easing.easeOutQuint=O.easing.easeOutQuint||function(e){return 1-Math.pow(1-e,5)},O.easing.easeInOutQuint=O.easing.easeInOutQuint||function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},O.easing.easeInExpo=O.easing.easeInExpo||function(e){return 0===e?0:Math.pow(2,10*e-10)},O.easing.easeOutExpo=O.easing.easeOutExpo||function(e){return 1===e?1:1-Math.pow(2,-10*e)},O.easing.easeInOutExpo=O.easing.easeInOutExpo||function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},O.easing.easeInSine=O.easing.easeInSine||function(e){return 1-Math.cos(e*Math.PI/2)},O.easing.easeOutSine=O.easing.easeOutSine||function(e){return Math.sin(e*Math.PI/2)},O.easing.easeInOutSine=O.easing.easeInOutSine||function(e){return-(Math.cos(Math.PI*e)-1)/2},O.easing.easeInCirc=O.easing.easeInCirc||function(e){return 1-Math.sqrt(1-Math.pow(e,2))},O.easing.easeOutCirc=O.easing.easeOutCirc||function(e){return Math.sqrt(1-Math.pow(e-1,2))},O.easing.easeInOutCirc=O.easing.easeInOutCirc||function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},O.easing.easeInElastic=O.easing.easeInElastic||function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*(2*Math.PI/3))},O.easing.easeOutElastic=O.easing.easeOutElastic||function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*(2*Math.PI/3))+1},O.easing.easeInOutElastic=O.easing.easeInOutElastic||function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2+1},O.easing.easeInBack=O.easing.easeInBack||function(e){return 2.70158*e*e*e-1.70158*e*e},O.easing.easeOutBack=O.easing.easeOutBack||function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},O.easing.easeInOutBack=O.easing.easeInOutBack||function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2},O.easing.easeInBounce=O.easing.easeInBounce||function(e){return 1-t(1-e)},O.easing.easeOutBounce=O.easing.easeOutBounce||t,O.easing.easeInOutBounce=O.easing.easeInOutBounce||function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}};
812m._easing.call(),O.fn[p]=function(e){return w[e]?w[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void O.error("Method "+e+" does not exist"):w.init.apply(this,arguments)},O[p]=function(e){return w[e]?w[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void O.error("Method "+e+" does not exist"):w.init.apply(this,arguments)},O[p].defaults=g}(jQuery,window,document),function(o){var r,c="mPS2id",u=mPS2id_params,h=u.shortcode_class,d=location.hash||null,s=/[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/,p=function(e,t){var n=e.substring(e.indexOf("#")+1);try{s.test(n)?o(document.getElementById(n)):o("#"+n)}catch(e){return!1}return(s.test(n)?o(document.getElementById(n)):o("#"+n)).length&&(t||o("a[href*='#"+n+"']").filter(function(){return 1==o(this).data(c+"Element")}).length)},g=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return{y:t[0]||"0",x:t[1]||"0"}},f=function(e){if(-1===e.indexOf(","))return e;var t=e.split(",");return[t[0]||"0",t[1]||"0"]},_=function(e){"horizontal"!==e&&o(window).scrollTop(0),"vertical"!==e&&o(window).scrollLeft(0)},w=function(e,t){for(var n=e.click.length-1;0<=n;n--){var s=e.click[n];s&&"mPS2id"!=s.namespace&&("a[href*=#]"===s.selector?s.selector="a[href*=#]:not(._mPS2id-h)":'a[href*="#"]'===s.selector?s.selector='a[href*="#"]:not(._mPS2id-h)':"a[href*=#]:not([href=#])"===s.selector?s.selector="a[href*=#]:not([href=#]):not(._mPS2id-h)":'a[href*="#"]:not([href="#"])'===s.selector?s.selector='a[href*="#"]:not([href="#"]):not(._mPS2id-h)':s.selector&&-1!==s.selector.indexOf("mobmenu")?t.off("click"):t.off("click",s.handler))}},m="a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#']";function t(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375}o(function(){for(var e=0;e<u.total_instances;e++){var t=o("[class*='ps2id-id-']");if(t.length&&t.each(function(){var e,t=o(this),n=t.attr("class").split(" ");if(!t.attr("id"))for(var s in n)if(String(n[s]).match(/^ps2id-id-\S+$/)){e=n[s].split("ps2id-id-")[1],o("#"+e).length||t.attr("id",e);break}}),"true"===u.instances[c+"_instance_"+e].scrollToHash&&d&&(o(u.instances[c+"_instance_"+e].selector+",."+h+","+m).not(u.instances[c+"_instance_"+e].excludeSelector).each(function(){o(this).data(c+"Element",!0)}),p(d,"true"===u.instances[c+"_instance_"+e].scrollToHashForAll))){var n="true"===u.instances[c+"_instance_"+e].scrollToHashRemoveUrlHash?window.location.href.replace(/#.*$/,""):window.location.href.replace(/#.*$/,"#");_(u.instances[c+"_instance_"+e].layout),window.history&&window.history.replaceState?window.history.replaceState("","",n):window.location.href=n}}o("html").css("scroll-behavior","auto"),window.twentytwenty&&window.twentytwenty.smoothScroll&&(window.twentytwenty.smoothScroll=null)}),o(window).on("load",function(){for(var e=0;e<u.total_instances;e++){0<=u.instances[c+"_instance_"+e].selector.indexOf("a[href*=#]:not([href=#])")&&console.log("ps2id selector issue: a[href*=#]:not([href=#]) selector needs quotes"),0<=u.instances[c+"_instance_"+e].excludeSelector.indexOf("a[href*=#]:not([href=#])")&&console.log("ps2id excluded selector issue: a[href*=#]:not([href=#]) selector needs quotes");var n=o(u.instances[c+"_instance_"+e].selector+",."+h+","+m),t=u.instances[c+"_instance_"+e].autoCorrectScroll,s=0,i=u.instances[c+"_instance_"+e].autoCorrectScrollExtend;if(window.ps2id_special_params&&(window.ps2id_special_params.highlightSelector&&(u.instances[c+"_instance_"+e].highlightSelector=window.ps2id_special_params.highlightSelector),window.ps2id_special_params.scrollSpeed&&(u.instances[c+"_instance_"+e].scrollSpeed=window.ps2id_special_params.scrollSpeed),window.ps2id_special_params.scrollEasing&&(u.instances[c+"_instance_"+e].scrollEasing=window.ps2id_special_params.scrollEasing),void 0!==window.ps2id_special_params.forceSingleHighlight&&(u.instances[c+"_instance_"+e].forceSingleHighlight=window.ps2id_special_params.forceSingleHighlight),void 0!==window.ps2id_special_params.keepHighlightUntilNext&&(u.instances[c+"_instance_"+e].keepHighlightUntilNext=window.ps2id_special_params.keepHighlightUntilNext),void 0!==window.ps2id_special_params.appendHash&&(u.instances[c+"_instance_"+e].appendHash=window.ps2id_special_params.appendHash),window.ps2id_special_params.layout&&(u.instances[c+"_instance_"+e].layout=window.ps2id_special_params.layout),window.ps2id_special_params.offset&&(u.instances[c+"_instance_"+e].offset=window.ps2id_special_params.offset)),n.mPageScroll2id({scrollSpeed:u.instances[c+"_instance_"+e].scrollSpeed,autoScrollSpeed:"true"===u.instances[c+"_instance_"+e].autoScrollSpeed,scrollEasing:"true"===u.instances[c+"_instance_"+e].forceScrollEasing?"ps2id_"+u.instances[c+"_instance_"+e].scrollEasing:u.instances[c+"_instance_"+e].scrollEasing,scrollingEasing:"true"===u.instances[c+"_instance_"+e].forceScrollEasing?"ps2id_"+u.instances[c+"_instance_"+e].scrollingEasing:u.instances[c+"_instance_"+e].scrollingEasing,pageEndSmoothScroll:"true"===u.instances[c+"_instance_"+e].pageEndSmoothScroll,layout:u.instances[c+"_instance_"+e].layout,offset:g(u.instances[c+"_instance_"+e].offset.toString()),highlightSelector:u.instances[c+"_instance_"+e].highlightSelector,clickedClass:u.instances[c+"_instance_"+e].clickedClass,targetClass:u.instances[c+"_instance_"+e].targetClass,highlightClass:u.instances[c+"_instance_"+e].highlightClass,forceSingleHighlight:"true"===u.instances[c+"_instance_"+e].forceSingleHighlight,keepHighlightUntilNext:"true"===u.instances[c+"_instance_"+e].keepHighlightUntilNext,highlightByNextTarget:"true"===u.instances[c+"_instance_"+e].highlightByNextTarget,disablePluginBelow:f(u.instances[c+"_instance_"+e].disablePluginBelow.toString()),appendHash:"true"===u.instances[c+"_instance_"+e].appendHash,onStart:function(){"true"===t&&"selector"===mPS2id.trigger&&s++,"true"===i&&(r=[mPS2id.target.offset().top,mPS2id.target.offset().left])},onComplete:function(){"true"===i?r[0]===mPS2id.target.offset().top&&r[1]===mPS2id.target.offset().left||("selector"===mPS2id.trigger&&mPS2id.clicked.length?mPS2id.clicked.trigger("click.mPS2id"):o.mPageScroll2id("scrollTo",mPS2id.target.attr("id"))):1==s&&(mPS2id.clicked.length&&mPS2id.clicked.trigger("click.mPS2id"),s=0)},excludeSelectors:u.instances[c+"_instance_"+e].excludeSelector,encodeLinks:"true"===u.instances[c+"_instance_"+e].encodeLinks,liveSelector:u.instances[c+"_instance_"+e].selector+",."+h+","+m}),"true"===u.instances[c+"_instance_"+e].scrollToHash&&d&&p(d,"true"===u.instances[c+"_instance_"+e].scrollToHashForAll)){_(u.instances[c+"_instance_"+e].layout);var a=u.instances[c+"_instance_"+e].scrollToHashUseElementData,l=o("a._mPS2id-h[href$='"+d+"'][data-ps2id-offset]:not([data-ps2id-offset=''])").last();setTimeout(function(){"true"===a&&l.length?l.trigger("click.mPS2id"):o.mPageScroll2id("scrollTo",d),-1!==window.location.href.indexOf("#")&&(window.history&&window.history.replaceState?window.history.replaceState("","",d):window.location.hash=d)},u.instances[c+"_instance_"+e].scrollToHashDelay)}o(".ps2id-auto-scroll[id]").length&&!window.location.hash&&setTimeout(function(){o.mPageScroll2id("scrollTo",o(".ps2id-auto-scroll[id]").attr("id"))},u.instances[c+"_instance_"+e].scrollToHashDelay),"true"!==u.instances[c+"_instance_"+e].unbindUnrelatedClickEvents||u.instances[c+"_instance_"+e].unbindUnrelatedClickEventsSelector||setTimeout(function(){var e=n.length?o._data(n[0],"events"):null,t=n.length?o._data(o(document)[0],"events"):null;
812e&&w(e,n),t&&w(t,n)},300),"true"===u.instances[c+"_instance_"+e].normalizeAnchorPointTargets&&o("a._mPS2id-t[id]:empty").css({display:"inline-block","line-height":0,width:0,height:0,border:"none"}),"true"===u.instances[c+"_instance_"+e].stopScrollOnUserAction&&o(document).on("mousewheel DOMMouseScroll touchmove",function(){var e=o("html,body");e.is(":animated")&&e.stop()})}}),o.expr.pseudos?o.extend(o.expr.pseudos,{absolute:o.expr.pseudos.absolute||function(e){return"absolute"===o(e).css("position")},relative:o.expr.pseudos.relative||function(e){return"relative"===o(e).css("position")},static:o.expr.pseudos.static||function(e){return"static"===o(e).css("position")},fixed:o.expr.pseudos.fixed||function(e){return"fixed"===o(e).css("position")},sticky:o.expr.pseudos.sticky||function(e){return"sticky"===o(e).css("position")},width:o.expr.pseudos.width||function(e,t,n){var s=n[3].replace("&lt;","<").replace("&gt;",">");return!!s&&(">"===s.substr(0,1)?o(e).width()>s.substr(1):"<"===s.substr(0,1)?o(e).width()<s.substr(1):o(e).width()===parseInt(s))},height:o.expr.pseudos.height||function(e,t,n){var s=n[3].replace("&lt;","<").replace("&gt;",">");return!!s&&(">"===s.substr(0,1)?o(e).height()>s.substr(1):"<"===s.substr(0,1)?o(e).height()<s.substr(1):o(e).height()===parseInt(s))}}):o.extend(o.expr[":"],{absolute:o.expr[":"].absolute||function(e){return"absolute"===o(e).css("position")},relative:o.expr[":"].relative||function(e){return"relative"===o(e).css("position")},static:o.expr[":"].static||function(e){return"static"===o(e).css("position")},fixed:o.expr[":"].fixed||function(e){return"fixed"===o(e).css("position")},width:o.expr[":"].width||function(e,t,n){var s=n[3].replace("&lt;","<").replace("&gt;",">");return!!s&&(">"===s.substr(0,1)?o(e).width()>s.substr(1):"<"===s.substr(0,1)?o(e).width()<s.substr(1):o(e).width()===parseInt(s))},height:o.expr[":"].height||function(e,t,n){var s=n[3].replace("&lt;","<").replace("&gt;",">");return!!s&&(">"===s.substr(0,1)?o(e).height()>s.substr(1):"<"===s.substr(0,1)?o(e).height()<s.substr(1):o(e).height()===parseInt(s))}}),o.easing.ps2id_easeInQuad=o.easing.ps2id_easeInQuad||function(e){return e*e},o.easing.ps2id_easeOutQuad=o.easing.ps2id_easeOutQuad||function(e){return 1-(1-e)*(1-e)},o.easing.ps2id_easeInOutQuad=o.easing.ps2id_easeInOutQuad||function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},o.easing.ps2id_easeInCubic=o.easing.ps2id_easeInCubic||function(e){return e*e*e},o.easing.ps2id_easeOutCubic=o.easing.ps2id_easeOutCubic||function(e){return 1-Math.pow(1-e,3)},o.easing.ps2id_easeInOutCubic=o.easing.ps2id_easeInOutCubic||function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},o.easing.ps2id_easeInQuart=o.easing.ps2id_easeInQuart||function(e){return e*e*e*e},o.easing.ps2id_easeOutQuart=o.easing.ps2id_easeOutQuart||function(e){return 1-Math.pow(1-e,4)},o.easing.ps2id_easeInOutQuart=o.easing.ps2id_easeInOutQuart||function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},o.easing.ps2id_easeInQuint=o.easing.ps2id_easeInQuint||function(e){return e*e*e*e*e},o.easing.ps2id_easeOutQuint=o.easing.ps2id_easeOutQuint||function(e){return 1-Math.pow(1-e,5)},o.easing.ps2id_easeInOutQuint=o.easing.ps2id_easeInOutQuint||function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},o.easing.ps2id_easeInExpo=o.easing.ps2id_easeInExpo||function(e){return 0===e?0:Math.pow(2,10*e-10)},o.easing.ps2id_easeOutExpo=o.easing.ps2id_easeOutExpo||function(e){return 1===e?1:1-Math.pow(2,-10*e)},o.easing.ps2id_easeInOutExpo=o.easing.ps2id_easeInOutExpo||function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},o.easing.ps2id_easeInSine=o.easing.ps2id_easeInSine||function(e){return 1-Math.cos(e*Math.PI/2)},o.easing.ps2id_easeOutSine=o.easing.ps2id_easeOutSine||function(e){return Math.sin(e*Math.PI/2)},o.easing.ps2id_easeInOutSine=o.easing.ps2id_easeInOutSine||function(e){return-(Math.cos(Math.PI*e)-1)/2},o.easing.ps2id_easeInCirc=o.easing.ps2id_easeInCirc||function(e){return 1-Math.sqrt(1-Math.pow(e,2))},o.easing.ps2id_easeOutCirc=o.easing.ps2id_easeOutCirc||function(e){return Math.sqrt(1-Math.pow(e-1,2))},o.easing.ps2id_easeInOutCirc=o.easing.ps2id_easeInOutCirc||function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},o.easing.ps2id_easeInElastic=o.easing.ps2id_easeInElastic||function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*(2*Math.PI/3))},o.easing.ps2id_easeOutElastic=o.easing.ps2id_easeOutElastic||function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*(2*Math.PI/3))+1},o.easing.ps2id_easeInOutElastic=o.easing.ps2id_easeInOutElastic||function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*(2*Math.PI/4.5))/2+1},o.easing.ps2id_easeInBack=o.easing.ps2id_easeInBack||function(e){return 2.70158*e*e*e-1.70158*e*e},o.easing.ps2id_easeOutBack=o.easing.ps2id_easeOutBack||function(e){return 1+2.70158*Math.pow(e-1,3)+1.70158*Math.pow(e-1,2)},o.easing.ps2id_easeInOutBack=o.easing.ps2id_easeInOutBack||function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-2.5949095)/2:(Math.pow(2*e-2,2)*(3.5949095*(2*e-2)+2.5949095)+2)/2},o.easing.ps2id_easeInBounce=o.easing.ps2id_easeInBounce||function(e){return 1-t(1-e)},o.easing.ps2id_easeOutBounce=o.easing.ps2id_easeOutBounce||t,o.easing.ps2id_easeInOutBounce=o.easing.ps2id_easeInOutBounce||function(e){return e<.5?(1-t(1-2*e))/2:(1+t(2*e-1))/2}}(jQuery);
813if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach;}
814(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}
815window.CustomEvent=CustomEvent;})();(function($){var popup;var speed=200;
815function init(){popup=document.querySelector('.wp-video-popup-wrapper');if(!popup)return;setupOpenActions();setupVideoHeight();setupCloseActions();}
816function setupOpenActions(){setupOpenTriggers('.wp-video-popup');setupOpenTriggers('.ryv-popup');}
817function setupOpenTriggers(triggerSelector){var triggers=document.querySelectorAll(triggerSelector);if(!triggers)return;triggers.forEach(function(trigger){trigger.addEventListener('click',function(e){e.preventDefault();openPopup();});});}
818function setupCloseActions(){popup.addEventListener('click',function(e){if(e.target==this||e.target.classList.contains('wp-video-popup-close'))closePopup();});document.addEventListener('keyup',function(e){if(e.key!=='Escape'&&e.key!=='Esc'&&e.keyCode!==27)return;if($(popup).is(':visible'))closePopup();});}
819function setupVideoHeight(){window.addEventListener('resize',function(){var video=document.querySelector('.wp-video-popup-video.is-resizable');if(video)$(video).height($(video).width()*0.5625);});}
820function openPopup(){var video=popup.querySelector('.wp-video-popup-video');document.body.insertBefore(popup,document.body.firstChild);$(popup).css({display:'flex'}).stop().animate({opacity:1},speed);$(video).stop().fadeIn(speed);var videoUrl=video.getAttribute('data-wp-video-popup-url');if(videoUrl){video.setAttribute('src',videoUrl);}
821window.dispatchEvent(new Event('resize'));}
822function closePopup(){var video=popup.querySelector('.wp-video-popup-video');$(popup).stop().animate({opacity:0}
822,speed,function(){$(popup).css({display:'none'});});$(video).stop().fadeOut(speed,function(){video.setAttribute('src','');});}
823$(document).ready(function(){init();});})(jQuery);
824!function(e){"function"==typeof define&&define.amd?define([],e):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=e:e()}(function(){var i=Object.assign||window.jQuery&&jQuery.extend,p=8,a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,t){return window.setTimeout(function(){e()},25)};!function(){if("function"==typeof window.CustomEvent)return;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var o={textarea:!0,input:!0,select:!0,button:!0},u={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},r={move:"touchmove",cancel:"touchend",end:"touchend"},d=/\s+/,c={bubbles:!0,cancelable:!0},t="function"==typeof Symbol?Symbol("events"):{};function m(e){return e[t]||(e[t]={})}function v(e,t,n,o,i){t=t.split(d);var a,c=m(e),u=t.length;function r(e){n(e,o)}for(;u--;)(c[a=t[u]]||(c[a]=[])).push([n,r]),e.addEventListener(a,r)}function f(e,t,n,o){t=t.split(d);var i,a,c,u=m(e),r=t.length;if(u)for(;r--;)if(a=u[i=t[r]])for(c=a.length;c--;)a[c][0]===n&&(e.removeEventListener(i,a[c][1]),a.splice(c,1))}function g(e,t,n){var o=new CustomEvent(t,c);n&&i(o,n),e.dispatchEvent(o)}function n(e){var n=e,o=!1,i=!1;function t(e){o?(n(),a(t),o=!(i=!0)):i=!1}this.kick=function(e){o=!0,i||t()},this.end=function(e){var t=n;e&&(i?(n=o?function(){t(),e()}:e,o=!0):e())}}function h(){}function s(e){e.preventDefault()}function l(e,t){var n,o;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,o=e.length;++n<o;)if(e[n].identifier===t)return e[n]}function X(e,t){var n=l(e.changedTouches,t.identifier);if(n&&(n.pageX!==t.pageX||n.pageY!==t.pageY))return n}function Y(e,t){T(e,t,e,w)}function y(e,t){w()}function w(){f(document,u.move,Y),f(document,u.cancel,y)}function b(e){f(document,r.move,e.touchmove),f(document,r.cancel,e.touchend)}function T(e,t,n,o){var i,a,c,u,r,d,m,v,f,s=n.pageX-t.pageX,l=n.pageY-t.pageY;s*s+l*l<p*p||(a=t,c=n,u=s,r=l,d=o,m=(i=e).targetTouches,v=i.timeStamp-a.timeStamp,f={altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,startX:a.pageX,startY:a.pageY,distX:u,distY:r,deltaX:u,deltaY:r,pageX:c.pageX,pageY:c.pageY,velocityX:u/v,velocityY:r/v,identifier:a.identifier,targetTouches:m,finger:m?m.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=h,i.preventDefault()}},g(a.target,"movestart",f),d(a))}function E(e,t){var n=t.timer;t.touch=e,t.timeStamp=e.timeStamp,n.kick()}function S(e,t){var n=t.target,o=t.event,i=t.timer;f(document,u.move,E),f(document,u.end,S),K(n,o,i,function(){setTimeout(function(){f(n,"click",s)},0)})}function k(e,t){var n,o=t.target,i=t.event,a=t.timer;l(e.changedTouches,i.identifier)&&(n=t,f(document,r.move,n.activeTouchmove),f(document,r.end,n.activeTouchend),K(o,i,a))}function K(e,t,n,o){n.end(function(){return g(e,"moveend",t),o&&o()})}if(v(document,"mousedown",function(e){var t;1!==(t=e).which||t.ctrlKey||t.altKey||o[e.target.tagName.toLowerCase()]||(v(document,u.move,Y,e),v(document,u.cancel,y,e))}),v(document,"touchstart",function(e){if(!o[e.target.tagName.toLowerCase()]){var t=e.changedTouches[0],n={target:t.target,pageX:t.pageX,pageY:t.pageY,identifier:t.identifier,touchmove:function(e,t){var n,o,i;(i=X(n=e,o=t))&&T(n,o,i,b)},touchend:function(e,t){var n;n=t,l(e.changedTouches,n.identifier)&&b(n)}};v(document,r.move,n.touchmove,n),v(document,r.cancel,n.touchend,n)}}),v(document,"movestart",function(e){if(!e.defaultPrevented&&e.moveEnabled){var a={startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},c={target:e.target,event:a,timer:new n(function(e){var t,n,o,i;t=a,n=c.touch,o=c.timeStamp,i=o-t.timeStamp,t.distX=n.pageX-t.startX,t.distY=n.pageY-t.startY,t.deltaX=n.pageX-t.pageX,t.deltaY=n.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/i,t.velocityY=.3*t.velocityY+.7*t.deltaY/i,t.pageX=n.pageX,t.pageY=n.pageY,g(c.target,"move",a)}),touch:void 0,timeStamp:e.timeStamp};void 0===e.identifier?(v(e.target,"click",s),v(document,u.move,E,c),v(document,u.end,S,c)):(c.activeTouchmove=function(e,t){var n,o,i,a,c;n=e,i=(o=t).event,a=o.timer,(c=X(n,i))&&(n.preventDefault(),i.targetTouches=n.targetTouches,o.touch=c,o.timeStamp=n.timeStamp,a.kick())},c.activeTouchend=function(e,t){k(e,t)},v(document,r.move,c.activeTouchmove,c),v(document,r.end,c.activeTouchend,c))}}),window.jQuery){var j="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return v(this,"movestart",e),!1},teardown:function(){return f(this,"movestart",e),!1},add:q},jQuery.event.special.move={setup:function(){return v(this,"movestart",C),!1},teardown:function(){return f(this,"movestart",C),!1},add:q},jQuery.event.special.moveend={setup:function(){return v(this,"movestart",Q),!1},teardown:function(){return f(this,"movestart",Q),!1},add:q}}function e(e){e.enableMove()}function C(e){e.enableMove()}function Q(e){e.enableMove()}function q(e){var o=e.handler;e.handler=function(e){for(var t,n=j.length;n--;)e[t=j[n]]=e.originalEvent[t];o.apply(this,arguments)}}});
825!function(g){g.fn.twentytwenty=function(m){m=g.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},m);return this.each(function(){var e=m.default_offset_pct,s=g(this),r=m.orientation,t="vertical"===r?"down":"left",n="vertical"===r?"up":"right";s.wrap("<div class='twentytwenty-wrapper twentytwenty-"+r+"'></div>"),m.no_overlay||s.append("<div class='twentytwenty-overlay'></div>");var c=s.find("img:first"),d=s.find("img:last");s.append("<div class='twentytwenty-handle'></div>");var l=s.find(".twentytwenty-handle");l.append("<span class='twentytwenty-"+t+"-arrow'></span>"),l.append("<span class='twentytwenty-"+n+"-arrow'></span>"),s.addClass("twentytwenty-container"),c.addClass("twentytwenty-before"),d.addClass("twentytwenty-after");var i=s.find(".twentytwenty-overlay");i.append("<div class='twentytwenty-before-label'></div>"),i.append("<div class='twentytwenty-after-label'></div>");var a=function(t){var e,n,i,a,o=(e=t,n=c.width(),i=c.height(),{w:n+"px",h:i+"px",cw:e*n+"px",ch:e*i+"px"});l.css("vertical"===r?"top":"left","vertical"===r?o.ch:o.cw),a=o,"vertical"===r?(c.css("clip","rect(0,"+a.w+","+a.ch+",0)"),d.css("clip","rect("+a.ch+","+a.w+","+a.h+",0)")):(c.css("clip","rect(0,"+a.cw+","+a.h+",0)"),d.css("clip","rect(0,"+a.w+","+a.h+","+a.cw+")")),s.css("height",a.h)},o=function(t,e){var n,i,a;
825return n="vertical"===r?(e-v)/p:(t-w)/f,i=0,a=1,Math.max(i,Math.min(a,n))};g(window).on("resize.twentytwenty",function(t){a(e)});var w=0,v=0,f=0,p=0,y=function(t){(t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==r?t.preventDefault():(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===r&&t.preventDefault(),s.addClass("active"),w=s.offset().left,v=s.offset().top,f=c.width(),p=c.height()},h=function(t){s.hasClass("active")&&(e=o(t.pageX,t.pageY),a(e))},u=function(){s.removeClass("active")},_=m.move_with_handle_only?l:s;_.on("movestart",y),_.on("move",h),_.on("moveend",u),m.move_slider_on_hover&&(s.on("mouseenter",y),s.on("mousemove",h),s.on("mouseleave",u)),l.on("touchmove",function(t){t.preventDefault()}),s.find("img").on("mousedown",function(t){t.preventDefault()}),m.click_to_move&&s.on("click",function(t){w=s.offset().left,v=s.offset().top,f=c.width(),p=c.height(),e=o(t.pageX,t.pageY),a(e)}),g(window).trigger("resize.twentytwenty")})}}(jQuery);
826jQuery(function($){$('.woocommerce-ordering').on('change','select.orderby',function(){$(this).closest('form').trigger('submit');});$('input.qty:not(.product-quantity input.qty)').each(function(){var min=parseFloat($(this).attr('min'));if(min>=0&&parseFloat($(this).val())<min){$(this).val(min);}});var noticeID=$('.woocommerce-store-notice').data('noticeId')||'',cookieName='store_notice'+noticeID;if('hidden'===Cookies.get(cookieName)){$('.woocommerce-store-notice').hide();}else{$('.woocommerce-store-notice').show();function store_notice_keydown_handler(event){if(['Enter',' '].includes(event.key)){event.preventDefault();$('.woocommerce-store-notice__dismiss-link').click();}}
827function store_notice_click_handler(event){Cookies.set(cookieName,'hidden',{path:'/'});$('.woocommerce-store-notice').hide();event.preventDefault();$('.woocommerce-store-notice__dismiss-link').off('click',store_notice_click_handler).off('keydown',store_notice_keydown_handler);}
828$('.woocommerce-store-notice__dismiss-link').on('click',store_notice_click_handler).on('keydown',store_notice_keydown_handler);}
829if($('.woocommerce-input-wrapper span.description').length){$(document.body).on('click',function(){$('.woocommerce-input-wrapper span.description:visible').prop('aria-hidden',true).slideUp(250);});}
830$('.woocommerce-input-wrapper').on('click',function(event){event.stopPropagation();});$('.woocommerce-input-wrapper :input').on('keydown',function(event){var input=$(this),parent=input.parent(),description=parent.find('span.description');if(27===event.which&&description.length&&description.is(':visible')){description.prop('aria-hidden',true).slideUp(250);event.preventDefault();return false;}}).on('click focus',function(){var input=$(this),parent=input.parent(),description=parent.find('span.description');parent.addClass('currentTarget');$('.woocommerce-input-wrapper:not(.currentTarget) span.description:visible').prop('aria-hidden',true).slideUp(250);if(description.length&&description.is(':hidden')){description.prop('aria-hidden',false).slideDown(250);}
831parent.removeClass('currentTarget');});$.scroll_to_notices=function(scrollElement){if(scrollElement.length){$('html, body').animate({scrollTop:scrollElement.offset().top-100,},1000);}};$('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>');$('.woocommerce form input').filter(':password').parent('span').addClass('password-input');$('.password-input').each(function(){const describedBy=$(this).find('input').attr('id');$(this).append('<button type="button" class="show-password-input" aria-label="'+
832woocommerce_params.i18n_password_show+'" aria-describedBy="'+
833describedBy+'"></button>');});$('.show-password-input').on('click',function(event){event.preventDefault();if($(this).hasClass('display-password')){$(this).removeClass('display-password');$(this).attr('aria-label',woocommerce_params.i18n_password_show);}else{$(this).addClass('display-password');$(this).attr('aria-label',woocommerce_params.i18n_password_hide);}
834if($(this).hasClass('display-password')){$(this).siblings(['input[type="password"]']).prop('type','text');}else{$(this).siblings('input[type="text"]').prop('type','password');}
835$(this).siblings('input').focus();});$('a.coming-soon-footer-banner-dismiss').on('click',function(e){var target=$(e.target);$.ajax({type:'post',url:target.data('rest-url'),data:{woocommerce_meta:{coming_soon_banner_dismissed:'yes',},},beforeSend:function(xhr){xhr.setRequestHeader('X-WP-Nonce',target.data('rest-nonce'));},complete:function(){$('#coming-soon-footer-banner').hide();},});});if(typeof wc_add_to_cart_params==='undefined'){$(document.body).on('keydown','.remove_from_cart_button',on_keydown_remove_from_cart);}
836$(document.body).on('item_removed_from_classic_cart updated_wc_div',focus_populate_live_region);});function on_keydown_remove_from_cart(event){if(event.key===' '){event.preventDefault();event.currentTarget.click();}}
837function focus_populate_live_region(){var noticeClasses=['woocommerce-message','woocommerce-error','wc-block-components-notice-banner',];var noticeSelectors=noticeClasses.map(function(className){return'.'+className+'[role="alert"]';}).join(', ');var noticeElements=document.querySelectorAll(noticeSelectors);if(noticeElements.length===0){return;}
838var firstNotice=noticeElements[0];firstNotice.setAttribute('tabindex','-1');var delayFocusNoticeId=setTimeout(function(){firstNotice.focus();clearTimeout(delayFocusNoticeId);},500);}
839function refresh_sorted_by_live_region(){var sorted_by_live_region=document.querySelector('.woocommerce-result-count');var hasInteractivityFilters=document.querySelector('[data-wp-interactive="woocommerce/product-filters"]');if(!sorted_by_live_region||!window.location.search||hasInteractivityFilters){return;}
840var text=sorted_by_live_region.innerHTML;sorted_by_live_region.setAttribute('role','alert');sorted_by_live_region.setAttribute('aria-hidden','true');var sorted_by_live_region_id=setTimeout(function(){sorted_by_live_region.setAttribute('aria-hidden','false');
840sorted_by_live_region.innerHTML='';sorted_by_live_region.innerHTML=text;clearTimeout(sorted_by_live_region_id);},2000);}
841function on_document_ready(){focus_populate_live_region();refresh_sorted_by_live_region();}
842document.addEventListener('DOMContentLoaded',on_document_ready);
843var AwsHooks=AwsHooks||{};AwsHooks.filters=AwsHooks.filters||{};(function($){"use strict";var selector='.aws-container';var instance=0;var pluginPfx='aws_opts';var translate={sale:aws_vars.sale,sku:aws_vars.sku,showmore:aws_vars.showmore,noresults:aws_vars.noresults};var awsData=new Array();AwsHooks.add_filter=function(tag,callback,priority){if(typeof priority==="undefined"){priority=10;}
844AwsHooks.filters[tag]=AwsHooks.filters[tag]||[];AwsHooks.filters[tag].push({priority:priority,callback:callback});};AwsHooks.apply_filters=function(tag,value,options){var filters=[];if(typeof AwsHooks.filters[tag]!=="undefined"&&AwsHooks.filters[tag].length>0){AwsHooks.filters[tag].forEach(function(hook){filters[hook.priority]=filters[hook.priority]||[];filters[hook.priority].push(hook.callback);});filters.forEach(function(AwsHooks){AwsHooks.forEach(function(callback){value=callback(value,options);});});}
845return value;};$.fn.aws_search=function(options){var methods={init:function(){var appendResultsTo=AwsHooks.apply_filters('aws_results_append_to','body',{instance:instance,form:self,data:d});$(appendResultsTo).append('<div id="aws-search-result-'+instance+'" class="aws-search-result" style="display: none;"></div>');methods.addClasses();setTimeout(function(){methods.resultLayout();},500);},onKeyup:function(e){searchFor=$searchField.val();searchFor=searchFor.trim();searchFor=searchFor.replace(/<>\{\}\[\]\\\/]/gi,'');searchFor=searchFor.replace(/<[^>]*>/g,' ');if(searchFor===lastSearchFor){return;}
846lastSearchFor=searchFor;for(var i=0;i<requests.length;i++){if(requests[i].readyState<2){requests[i].abort();}}
847methods.searchRequest();},searchRequest:function(){if(!d.ajaxSearch){if(searchFor!==''){methods.showResultsBlock();}
848return;}
849if(searchFor===''){$(d.resultBlock).html('').hide();methods.hideLoader();methods.resultsHide();return;}
850if(cachedResponse.hasOwnProperty(searchFor)){methods.showResults(cachedResponse[searchFor]);return;}
851if(searchFor.length<d.minChars){$(d.resultBlock).html('');methods.hideLoader();return;}
852if(d.showLoader){methods.showLoader();}
853var searchTimeout=d.searchTimeout>100?d.searchTimeout:300;clearTimeout(keyupTimeout);keyupTimeout=setTimeout(function(){methods.ajaxRequest();},searchTimeout);},ajaxRequest:function(){var requestKeyword=searchFor;var data={action:'aws_action',keyword:requestKeyword,aws_page:d.pageId,aws_tax:d.tax,lang:d.lang,pageurl:window.location.href,typedata:'json'};data=AwsHooks.apply_filters('aws_ajax_request_params',data,{instance:instance,form:self,data:d});ajaxUrl=AwsHooks.apply_filters('aws_ajax_request_url',ajaxUrl,{instance:instance,form:self,data:d,ajaxData:data});requests.push($.ajax({type:'POST',url:ajaxUrl,data:data,dataType:'json',success:function(response){cachedResponse[requestKeyword]=response;if(requestKeyword!==searchFor){return;}
854methods.showResults(response);methods.showResultsBlock();},error:function(jqXHR,textStatus,errorThrown){if(textStatus==='abort'){return;}
855console.log("Request failed: "+textStatus);methods.hideLoader();}}));},showResults:function(response){var resultNum=0;var taxName='';var html='<div class="aws_result_scroll">';html+='<div class="aws_result_inner">';html+='<div class="aws_results style-inline">';if(typeof response.data!=='undefined'){if(typeof response.data.top_text!=='undefined'&&response.data.top_text){html+='<div class="aws_top_text">'+response.data.top_text+'</div>';}
856if(typeof response.data.notices!=='undefined'){$.each(response.data.notices,function(i,notice){html+='<div class="aws_top_text">'+notice+'</div>';});}
857if(typeof response.data.top_results!=='undefined'){$.each(response.data.top_results,function(i,topResults){var topResultsName=i;if((typeof topResults!=='undefined')&&topResults.length>0){$.each(topResults,function(i,topResult){var linkData=(typeof topResult.link_data!=='undefined')?topResult.link_data:'';html+='<div class="aws_result_item aws_result_top_custom_item aws_result_top_custom_item_'+topResultsName+'" style="position:relative;">';html+='<a class="aws_result_link_top" '+linkData+' href="'+topResult.link+'">
857'+topResult.name+'</a>';html+='<span class="aws_result_content">';html+='<span class="aws_result_head">';html+='<span class="aws_result_top_custom_item_title">';if((typeof topResult.heading!=='undefined')&&topResult.heading){html+='<span class="aws_result_heading">'+topResult.heading+'</span>';}
858html+=topResult.name;html+='</span>';html+='</span>';if((typeof topResult.content!=='undefined')&&topResult.content){html+='<span class="aws_result_excerpt">'+topResult.content+'</span>';}
859html+='</span>';html+='</div>';});}});}}
860if(typeof response.tax!=='undefined'){$.each(response.tax,function(i,taxes){taxName=i;if((typeof taxes!=='undefined')&&taxes.length>0){$.each(taxes,function(i,taxitem){resultNum++;html+='<div class="aws_result_item aws_result_tag aws_result_tax_'+taxName+'" style="position:relative;">';html+='<a class="aws_result_link_top" href="'+taxitem.link+'">'+taxitem.name+'</a>';html+='<span class="aws_result_content">';html+='<span class="aws_result_head">';html+='<span class="aws_result_tax_title">';if((typeof taxitem.heading!=='undefined')&&taxitem.heading){html+='<span class="aws_result_heading">'+taxitem.heading+'</span>';}
861html+=taxitem.name;if(taxitem.count){html+='<span class="aws_result_count">&nbsp;('+taxitem.count+')</span>';}
862if((typeof taxitem.hierarchy!=='undefined')&&taxitem.hierarchy){html+='<span class="aws_result_hierarchy">'+taxitem.hierarchy+'</span>';}
863html+='</span>';html+='</span>';if((typeof taxitem.excerpt!=='undefined')&&taxitem.excerpt){html+='<span class="aws_result_excerpt">'+taxitem.excerpt+'</span>';}
864html+='</span>';html+='</div>';});}});}
865if((typeof response.products!=='undefined')&&response.products.length>0){$.each(response.products,function(i,result){resultNum++;var isOnSale=result.on_sale?' on-sale':'';html+='<div class="aws_result_item'+isOnSale+'">';html+='<a class="aws_result_link_top" href="'+result.link+'">'+result.title.replace(/<[^>]*>/g,'')+'</a>';if(result.image){html+='<span class="aws_result_image">';html+='<img src="'+result.image+'">';html+='</span>';}
866html+='<span class="aws_result_content">';html+='<span class="aws_result_head">';html+='<span class="aws_result_title">';html+=result.title;if(result.featured){html+='<span class="aws_result_featured" title="Featured"><svg version="1.1" viewBox="0 0 20 21" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill-rule="evenodd" stroke="none" stroke-width="1"><g transform="translate(-296.000000, -422.000000)"><g transform="translate(296.000000, 422.500000)"><path d="M10,15.273 L16.18,19 L14.545,11.971 L20,7.244 L12.809,6.627 L10,0 L7.191,6.627 L0,7.244 L5.455,11.971 L3.82,19 L10,15.273 Z"/></g></g></g></svg></span>';}
867html+='</span>';if(result.price){html+='<span class="aws_result_price">'+result.price+'</span>';}
868html+='</span>';if(result.stock_status){var statusClass=result.stock_status.status?'in':'out';html+='<span class="aws_result_stock '+statusClass+'">';html+=result.stock_status.text;html+='</span>';}
869if(result.sku){html+='<span class="aws_result_sku">'+translate.sku+result.sku+'</span>';}
870if(result.excerpt){html+='<span class="aws_result_excerpt">'+result.excerpt+'</span>';}
871if(typeof result.categories!=='undefined'&&result.categories){html+='<span class="aws_result_term">'+result.categories+'</span>';}
872html+='</span>';if(result.on_sale){html+='<span class="aws_result_sale">';html+='<span class="aws_onsale">'+translate.sale+'</span>';html+='</span>';}
873html+='</div>';});if(d.showMore&&d.showPage){html+='<a class="aws_result_item aws_search_more" href="#">'+translate.showmore+'</a>';}}
874if(!resultNum){methods.createAndDispatchEvent(document,'awsNoResults',{term:searchFor,instance:instance,form:self,data:d});html+='<span class="aws_result_item aws_no_result">'+translate.noresults+'</span>';}
875html+='</div></div></div>';html=AwsHooks.apply_filters('aws_results_html',html,{response:response,data:d,translate:translate});methods.hideLoader();$(d.resultBlock).html(html);methods.showResultsBlock();if(eShowResults){self[0].dispatchEvent(eShowResults);}
876if(!cachedResponse.hasOwnProperty(searchFor)){methods.analytics(searchFor,false,resultNum!==0);}},showResultsBlock:function(){methods.resultLayout();methods.resultsShow();},showLoader:function(){$searchForm.addClass('aws-processing');},hideLoader:function(){$searchForm.removeClass('aws-processing');},resultsShow:function(){$(d.resultBlock).show();$searchForm.addClass('aws-form-active');},resultsHide:function(){$(d.resultBlock).hide();$searchForm.removeClass('aws-form-active');methods.createAndDispatchEvent(document,'awsResultsHidden',{instance:instance,form:self,data:d});},onFocus:function(event){var show=AwsHooks.apply_filters('aws_show_modal_layout',false,{instance:instance,form:self,data:d});if(!$('body').hasClass('aws-overlay')&&((methods.isMobile()&&d.mobileScreen&&!methods.isFixed())||show)){methods.showMobileLayout();}
877if(searchFor!==''){methods.showResultsBlock();}},hideResults:function(event){if(!$(event.target).closest(".aws-container").length&&!$(event.target).closest(self).length&&!$(event.target).closest(d.resultBlock).length){methods.resultsHide();}},isResultsVisible:function(){return $(d.resultBlock).is(":visible");},removeHovered:function(){$(d.resultBlock).find('.aws_result_item').removeClass('hovered');},resultLayout:function(){var $resultsBlock=$(d.resultBlock);var offset=self.offset();var bodyOffset=$('body').offset();var bodyPosition=$('body').css('position');var bodyHeight=$(document).height();var resultsHeight=$resultsBlock.height();var forcePosition=AwsHooks.apply_filters('aws_results_force_position',false,{resultsBlock:$resultsBlock,form:self});if(offset&&bodyOffset){var styles={width:self.outerWidth(),top:0,left:0};
877if(styles.width<=500){$resultsBlock.addClass('less500');}else{$resultsBlock.removeClass('less500');}
878if(bodyPosition==='relative'||bodyPosition==='absolute'||bodyPosition==='fixed'){styles.top=offset.top+$(self).innerHeight()-bodyOffset.top;styles.left=offset.left-bodyOffset.left;}else{styles.top=offset.top+$(self).innerHeight();styles.left=offset.left;}
879if(((bodyHeight-offset.top<500)&&!forcePosition)||(forcePosition&&forcePosition=='top')){resultsHeight=methods.getResultsBlockHeight();if(((bodyHeight-offset.top<resultsHeight)&&(offset.top>=resultsHeight))||forcePosition){styles.top=styles.top-resultsHeight-$(self).innerHeight();}}
880styles=AwsHooks.apply_filters('aws_results_layout',styles,{resultsBlock:$resultsBlock,form:self});$resultsBlock.css(styles);}},getResultsBlockHeight:function(){var $resultsBlock=$(d.resultBlock);var resultsHeight=$resultsBlock.height();if(resultsHeight===0){var copied_elem=$resultsBlock.clone().attr("id",false).css({visibility:"hidden",display:"block",position:"absolute"});$("body").append(copied_elem);resultsHeight=copied_elem.height();copied_elem.remove();}
881return resultsHeight;},forceNewSearch:function(term,submit){if(term&&term!==''){$searchField.val(term);searchFor=term;window.setTimeout(function(){methods.searchRequest();$searchField.focus();if(submit||!d.ajaxSearch){$searchForm.submit();}},50);}},showMobileLayout:function(){self.after('<div class="aws-placement-container"></div>');self.addClass('aws-mobile-fixed').prepend('<div class="aws-mobile-fixed-close"><svg width="17" height="17" viewBox="1.5 1.5 21 21"><path d="M22.182 3.856c.522-.554.306-1.394-.234-1.938-.54-.543-1.433-.523-1.826-.135C19.73 2.17 11.955 10 11.955 10S4.225 2.154 3.79 1.783c-.438-.371-1.277-.4-1.81.135-.533.537-.628 1.513-.25 1.938.377.424 8.166 8.218 8.166 8.218s-7.85 7.864-8.166 8.219c-.317.354-.34 1.335.25 1.805.59.47 1.24.455 1.81 0 .568-.456 8.166-7.951 8.166-7.951l8.167 7.86c.747.72 1.504.563 1.96.09.456-.471.609-1.268.1-1.804-.508-.537-8.167-8.219-8.167-8.219s7.645-7.665 8.167-8.218z"></path></svg></div>');$('body').addClass('aws-overlay').append('<div class="aws-overlay-mask"></div>').append(self);$searchField.focus();},hideMobileLayout:function(){$('.aws-placement-container').after(self).remove();self.removeClass('aws-mobile-fixed');$('body').removeClass('aws-overlay');$('.aws-mobile-fixed-close').remove();$('.aws-overlay-mask').remove();},isFixed:function(){var $checkElements=self.add(self.parents());var isFixed=false;$checkElements.each(function(){if($(this).css("position")==="fixed"){isFixed=true;return false;}});return isFixed;},getUrlParam:function(name){const url=new URL(window.location.href);return url.searchParams.get(name);},analytics:function(label,submit,hasResults){methods.createAndDispatchEvent(document,'awsAnalytics',{term:label,instance:instance,form:self,data:d});if(d.useAnalytics){try{var sPage=submit?'':'/?s='+encodeURIComponent('ajax-search:'+label);var tagF=false;if(typeof gtag!=='undefined'&&gtag!==null){tagF=gtag;}else if(typeof window.dataLayer!=='undefined'&&window.dataLayer!==null){tagF=function(){window.dataLayer.push(arguments)};}
882if(tagF){tagF('event','AWS search',{'event_label':label,'event_category':'AWS Search Term','transport_type':'beacon'});tagF('event','aws_search',{'aws_search_term':label,'aws_has_results':hasResults});if(hasResults===false){tagF('event','aws_search_no_results',{'aws_search_term':label,'event_label':label});}
883if(sPage){tagF('event','page_view',{'page_path':sPage,'page_title':'AWS search'});}}
884if(typeof ga!=='undefined'&&ga!==null){ga('send','event','AWS search','AWS Search Term',label);if(hasResults===false){ga('send','event','AWS search no results','AWS Search Term',label);}
885if(sPage){ga('send','pageview',sPage);}}
886if(typeof pageTracker!=="undefined"&&pageTracker!==null){if(sPage){pageTracker._trackPageview(sPage);}
887pageTracker._trackEvent('AWS search','AWS search','AWS Search Term',label);if(hasResults===false){pageTracker._trackEvent('AWS search no results','AWS search no results','AWS Search Term',label);}}
888if(typeof _gaq!=='undefined'&&_gaq!==null){_gaq.push(['_trackEvent','AWS search','AWS Search Term',label]);if(hasResults===false){_gaq.push(['_trackEvent','AWS search no results','AWS Search Term',label]);}
889if(sPage){_gaq.push(['_trackPageview',sPage]);}}
890if(typeof __gaTracker!=='undefined'&&__gaTracker!==null){__gaTracker('send','event','AWS search','AWS Search Term',label);if(sPage){__gaTracker('send','pageview',sPage);}
891if(hasResults===false){__gaTracker('send','event','AWS search no results','AWS Search Term',label);}}}
892catch(error){}}},addClasses:function(){if(methods.isMobile()||d.showClear){$searchForm.addClass('aws-show-clear');}},isMobile:function(){var check=false;
892(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true;})(navigator.userAgent||navigator.vendor||window.opera);return check;},createCustomEvent:function(event,params){var customEvent=false;params=params||null;if(typeof window.CustomEvent==="function"){customEvent=new CustomEvent(event,{bubbles:true,cancelable:true,detail:params});}
893else if(document.createEvent){customEvent=document.createEvent('CustomEvent');customEvent.initCustomEvent(event,true,true,params);}
894return customEvent;},createAndDispatchEvent:function(obj,event,params){var customEvent=methods.createCustomEvent(event,params);if(customEvent){obj.dispatchEvent(customEvent);}}};var self=$(this),$searchForm=self.find('.aws-search-form'),$searchField=self.find('.aws-search-field'),$searchButton=self.find('.aws-search-btn'),haveResults=false,eShowResults=false,requests=Array(),searchFor='',lastSearchFor=null,keyupTimeout,cachedResponse=new Array();var ajaxUrl=(self.data('url')!==undefined)?self.data('url'):false;if(document.createEvent){eShowResults=document.createEvent("Event");eShowResults.initEvent('awsShowingResults',true,true);eShowResults.eventName='awsShowingResults';}
895if(options==='relayout'){var d=self.data(pluginPfx);methods.resultLayout();return;}
896instance++;self.data(pluginPfx,{minChars:(self.data('min-chars')!==undefined)?self.data('min-chars'):1,lang:(self.data('lang')!==undefined)?self.data('lang'):false,showLoader:(self.data('show-loader')!==undefined)?self.data('show-loader'):true,showMore:(self.data('show-more')!==undefined)?self.data('show-more'):true,ajaxSearch:(self.data('ajax-search')!==undefined)?self.data('ajax-search'):true,showPage:(self.data('show-page')!==undefined)?self.data('show-page'):true,showClear:(self.data('show-clear')!==undefined)?self.data('show-clear'):false,mobileScreen:(self.data('mobile-screen')!==undefined)?self.data('mobile-screen'):false,useAnalytics:(self.data('use-analytics')!==undefined)?self.data('use-analytics'):false,searchTimeout:(self.data('timeout')!==undefined)?parseInt(self.data('timeout')):300,instance:instance,resultBlock:'#aws-search-result-'+instance,pageId:(self.data('page-id')!==undefined)?self.data('page-id'):0,tax:(self.data('tax')!==un
896defined)?self.data('tax'):0});var d=self.data(pluginPfx);methods.createAndDispatchEvent(document,'awsLoaded',{instance:instance,form:self,data:d});if($searchForm.length>0){methods.init.call(this);}
897$searchField.on('keyup input',function(e){if(e.keyCode!=40&&e.keyCode!=38){methods.onKeyup(e);}});$searchField.on('focus',function(e){$searchForm.addClass('aws-focus');methods.onFocus(e);});$searchField.on('focusout',function(e){$searchForm.removeClass('aws-focus');});$searchField.on('aws_search_force',function(e,term){methods.forceNewSearch(term,false);});$searchForm.on('keypress',function(e){if(e.keyCode==13&&(!d.showPage||$searchField.val()==='')){e.preventDefault();}});$searchButton.on('click',function(e){if(d.showPage&&$searchField.val()!==''){$searchForm.submit();}});$searchForm.find('.aws-search-clear').on('click',function(e){$searchField.val('');$searchField.focus();methods.resultsHide();$(d.resultBlock).html('');searchFor='';});var pageSearchQuery=window.location.search;if(pageSearchQuery.indexOf('type_aws=true')!==-1&&typeof awsData['pageEvent']=='undefined'){if(!d.ajaxSearch){awsData['pageEvent']=true;methods.analytics($searchField.val(),true,!$('body').hasClass('aws-no-results'));}}
898$(document).on('click',function(e){methods.hideResults(e);});$(window).on('resize',function(e){methods.resultLayout();});$(window).on('scroll',function(e){if($(d.resultBlock).css('display')=='block'){methods.resultLayout();}});$(d.resultBlock).on('mouseenter','.aws_result_item',function(){methods.removeHovered();$(this).addClass('hovered');$searchField.trigger('mouseenter');});$(d.resultBlock).on('mouseleave','.aws_result_item',function(){methods.removeHovered();});$(d.resultBlock).on('click','.aws_search_more',function(e){e.preventDefault();$searchForm.submit();});$(d.resultBlock).on('click','span[href], [data-link]',function(e){e.preventDefault();var link=$(this).data('link')?$(this).data('link'):$(this).attr('href');if(link===''||link==='#'){return;}
899e.stopPropagation();if(link){window.location=link;}});$(d.resultBlock).on('click','[data-aws-term-submit]',function(e){e.preventDefault();var term=$(this).data('aws-term-submit');var submit=$(this).data('aws-term-submit-form')?true:false;methods.forceNewSearch(term,submit);});$(self).on('click','.aws-mobile-fixed-close',function(e){methods.hideMobileLayout();});$(window).on('keydown',function(e){if(e.keyCode==40||e.keyCode==38){if(methods.isResultsVisible()){e.stopPropagation();e.preventDefault();var $item=$(d.resultBlock).find('.aws_result_item');var $hoveredItem=$(d.resultBlock).find('.aws_result_item.hovered');var $itemsList=$(d.resultBlock).find('.aws_result_scroll');if(e.keyCode==40){if($hoveredItem.length>0){methods.removeHovered();$hoveredItem.next().addClass('hovered');}else{$item.first().addClass('hovered');}}
900if(e.keyCode==38){if($hoveredItem.length>0){methods.removeHovered();$hoveredItem.prev().addClass('hovered');}else{$item.last().addClass('hovered');}}
901var activeItemOffset=$(".aws_result_item.hovered").position();if(activeItemOffset){$itemsList.animate({scrollTop:activeItemOffset.top+$itemsList.scrollTop()},400);}}}});};var awsInit=false;var awsInitAttempts=0
902setTimeout(function(){if(!awsInit){awsInitWhenReady();}},2000);function awsInitWhenReady(){awsInitAttempts++;if(awsInit||awsInitAttempts>10){return;}
903if(typeof $.fn.aws_search==='undefined'){setTimeout(awsInitWhenReady,1000);return;}
904awsInitForAll();}
905function awsInitForAll(){$(selector).each(function(){$(this).aws_search();});awsInit=true;}
906$(document).ready(function(){awsInitForAll();$('[data-avia-search-tooltip]').on('click',function(){window.setTimeout(function(){$(selector).aws_search();},1000);});var $filters_widget=$('.woocommerce.widget_layered_nav_filters');var searchQuery=window.location.search;if($filters_widget.length>0&&searchQuery){if(searchQuery.indexOf('type_aws=true')!==-1){var $filterLinks=$filters_widget.find('ul li.chosen a');if($filterLinks.length>0){var addQuery='&type_aws=true';$filterLinks.each(function(){var filterLink=$(this).attr("href");if(filterLink&&filterLink.indexOf('post_type=product')!==-1){$(this).attr("href",filterLink+addQuery);}});}}}
907$(document).on('click','[data-aws-term-submit]',function(e){e.preventDefault();var $btn=$(this);var term=$btn.data('aws-term-submit');var searchForm;if($btn.closest('.aws-search-result').length>0){return;}
908if(term&&term!==''){if($btn.data('aws-selector')!=='undefined'){var selector=$btn.data('aws-selector');searchForm=$($btn.data('aws-selector'));if(searchForm.length>0&&!searchForm.hasClass('aws-search-form')){searchForm=searchForm.find('.aws-search-form');}}else if($btn.prev('.aws-container').length>0){searchForm=$btn.prev('.aws-container').find('.aws-search-form');}else if($btn.next('.aws-container').length>0){searchForm=$btn.next('.aws-container').find('.aws-search-form');}else if($btn.closest('.aws-container').length>0){searchForm=$btn.closest('.aws-container').find('.aws-search-form');}
909if(typeof searchForm==='undefined'||!searchForm.length>0){var parentCount=0;var parentElem;do{parentCount++;parentElem=typeof parentElem!=='undefined'?parentElem.parent():$btn.parent();searchForm=parentElem.find('.aws-search-form');}while(parentCount<4&&!searchForm.length>0);if((typeof searchForm==='undefined'||!searchForm.length>0)&&$('.aws-container:visible:first').length>0){searchForm=$('.aws-container:visible:first .aws-search-form');}}
910if(searchForm&&searchForm.length>0){var $searchField=searchForm.find('.aws-search-field');$searchField.trigger('aws_search_force',[term]);}}});});})(jQuery);
911(function(){'use strict';var COOKIE_NAME='wc_facebook_signals_state';var STATE_ACTIVE='active';var STATE_HELD='held';function setCookie(name,value,days){var d=new Date();d.setTime(d.getTime()+days*86400000);document.cookie=name+'='+
912encodeURIComponent(value)+';expires='+
913d.toUTCString()+';path=/;SameSite=Lax';}
914function getCookie(name){var match=document.cookie.match(new RegExp('(?:^|;\\s*)'+name+'=([^;]*)'));return match?decodeURIComponent(match[1]):null;}
915function updateState(state){setCookie(COOKIE_NAME,state,365);var params=wc_facebook_signals_params;return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.open('POST',params.ajax_url,true);xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');xhr.onload=function(){if(xhr.status>=200&&xhr.status<300){try{var data=JSON.parse(xhr.responseText);resolve(data);}catch(e){reject(e);}}else{reject(new Error('AJAX failed: '+xhr.status));}};xhr.onerror=function(){reject(new Error('Network error'));};xhr.send('action='+
916encodeURIComponent(params.action)+'&security='+
917encodeURIComponent(params.nonce)+'&state='+
918encodeURIComponent(state));});}
919function hold(){return updateState(STATE_HELD);}
920function release(){return updateState(STATE_ACTIVE).then(function(data){if(window.FacebookSignals&&window.FacebookSignals._held){return window.FacebookSignals.release().then(function(){return data;},function(){return data;});}
921return data;});}
922function getState(){var val=getCookie(COOKIE_NAME);if(val===null){return null;}
923return val===STATE_ACTIVE?STATE_ACTIVE:STATE_HELD;}
924window.fbwcsignal=window.fbwcsignal||{};window.fbwcsignal.hold=hold;window.fbwcsignal.release=release;window.fbwcsignal.getState=getState;})();
925(function($){var wpApiSettings=window.wpApiSettings;function apiRequest(options){options=apiRequest.buildAjaxOptions(options);return apiRequest.transport(options);}
926apiRequest.buildAjaxOptions=function(options){var url=options.url;var path=options.path;var method=options.method;var namespaceTrimmed,endpointTrimmed,apiRoot;var headers,addNonceHeader,addAcceptHeader,headerName;if(typeof options.namespace==='string'&&typeof options.endpoint==='string'){namespaceTrimmed=options.namespace.replace(/^\/|\/$/g,'');endpointTrimmed=options.endpoint.replace(/^\//,'');if(endpointTrimmed){path=namespaceTrimmed+'/'+endpointTrimmed;}else{path=namespaceTrimmed;}}
927if(typeof path==='string'){apiRoot=wpApiSettings.root;path=path.replace(/^\//,'');if('string'===typeof apiRoot&&-1!==apiRoot.indexOf('?')){path=path.replace('?','&');}
928url=apiRoot+path;}
929addNonceHeader=!(options.data&&options.data._wpnonce);addAcceptHeader=true;headers=options.headers||{};for(headerName in headers){if(!headers.hasOwnProperty(headerName)){continue;}
930switch(headerName.toLowerCase()){case'x-wp-nonce':addNonceHeader=false;break;case'accept':addAcceptHeader=false;break;}}
931if(addNonceHeader){headers=$.extend({'X-WP-Nonce':wpApiSettings.nonce},headers);}
932if(addAcceptHeader){headers=$.extend({'Accept':'application/json, */*;q=0.1'},headers);}
933if(typeof method==='string'){method=method.toUpperCase();if('PUT'===method||'DELETE'===method){headers=$.extend({'X-HTTP-Method-Override':method},headers);method='POST';}}
934options=$.extend({},options,{headers:headers,url:url,method:method});delete options.path;delete options.namespace;delete options.endpoint;return options;};apiRequest.transport=$.ajax;window.wp=window.wp||{};window.wp.apiRequest=apiRequest;})(jQuery);
935/*!
936 * Variation Swatches for WooCommerce
937 *
938 * Author: Emran Ahmed ( [email protected] )
939 * Date: 6/8/2026, 9:43:24 PM
940 * Released under the GPLv3 license.
941 */
942(function(){!function(){function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
943function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}
944function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}
945function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}
946function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}
947function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
948function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}
949function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}
950function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}
951function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}
952function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}
953function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}
954function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}
955function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}
956function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}
957function _nonIterableRest(){throw new TypeError("Invalid attempt to de
957structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}
958function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}
959function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}
960function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}
961function _arrayWithHoles(r){if(Array.isArray(r))return r;}
962(function(window){'use strict';function filterBoolean(value){if(!value){return false;}
963if(typeof value==='boolean'){return value;}
964var strValue=String(value).toLowerCase().trim();var trueValues=['1','true','yes','on'];if(trueValues.includes(strValue)){return true;}
965if(value===1){return true;}
966return false;}
967function isWooVariationSwatchesAPIRequest(options){return!!options.path&&options.path.indexOf('woo-variation-swatches')!==-1||!!options.url&&options.url.indexOf('woo-variation-swatches')!==-1;}
968window.createMiddlewareForExtraQueryParams=function(){var args=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(options,next){if(isWooVariationSwatchesAPIRequest(options)&&Object.keys(args).length>0){for(var _i=0,_Object$entries=Object.entries(args);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];if(typeof options.url==='string'&&!wp.url.hasQueryArg(options.url,key)){options.url=wp.url.addQueryArgs(options.url,_defineProperty({},key,value));}
969if(typeof options.path==='string'&&!wp.url.hasQueryArg(options.path,key)){options.path=wp.url.addQueryArgs(options.path,_defineProperty({},key,value));}}}
970return next(options);};};var Plugin=function($){return function(){function _class(element,options,name){_classCallCheck(this,_class);_defineProperty(this,"defaults",{});this.name=name;this.element=element;this.$element=$(element);this.settings=$.extend(true,{},this.defaults,options);this.product_variations=this.$element.data('product_variations')||[];this.is_ajax_variation=this.product_variations.length<1;this.product_id=this.$element.data('product_id');this.reset_variations=this.$element.find('.reset_variations');this.attributeFields=this.$element.find('.variations select');this.attributeSwatchesFields=this.$element.find('ul.variable-items-wrapper');this.selected_item_template="<span class=\"woo-selected-variation-item-name\" data-default=\"\"></span>";this.$element.addClass('wvs-loaded');this.init();this.update();$(document).trigger('woo_variation_swatches_loaded',this);}
971return _createClass(_class,[{key:"isAjaxVariation",value:function isAjaxVariation(){return this.is_ajax_variation;}},{key:"init",value:function init(){this.prepareLabel();this.prepareItems();this.setupItems();this.setupEvents();this.setUpStockInfo();this.deselectNonAvailable();}},{key:"prepareLabel",value:function prepareLabel(){var _this=this;if(filterBoolean(woo_variation_swatches_options.show_variation_label)){this.$element.find('.variations .label').each(function(index,el){if($(el).find('.woo-selected-variation-item-name').length===0){$(el).append(_this.selected_item_template);}});}}},{key:"prepareItems",value:function prepareItems(){this.attributeSwatchesFields.each(function(i,el){$(el).parent().addClass('woo-variation-items-wrapper');});}},{key:"setupItems",value:function setupItems(){var _this2=this;var self=this;this.attributeSwatchesFields.each(function(i,element){var selected='';var select=$(element).parent().find('select.woo-variation-raw-select');var available_options=select.find('option');var disabled_out_of_stock_options=select.find('option:disabled');var enabled_out_of_stock_options=select.find('option.enabled.out-of-stock');var current=select.find('option:selected');var eq=select.find('option').eq(1);var attribute_name=$(element).data('attribute_name');var all_options=$(element).data('attribute_values');var current_options=[];var available_out_of_stocks=[];var disabled_out_of_stocks=[];available_options.each(function(){if($(this).val()!==''){current_options.push($(this).val());selected=current.length===0?eq.val():current.val();}});disabled_out_of_stock_options.each(function(){if($(this).val()!==''){disabled_out_of_stocks.push($(this).val());}});enabled_out_of_stock_options.each(function(){if($(this).val()!==''){available_out_of_stocks.push($(this).val());}});var in_stocks=_.difference(current_options,disabled_out_of_stocks);var disabled_values=[].concat(_toConsumableArray(_.difference(all_options,current_options)),disabled_out_of_stocks);_this2.setupItem(element,selected,in_stocks,available_out_of_stocks,disabled_values);});}},{key:"setupItem",value:function setupItem(element,selected,in_stocks,out_of_stocks,disabled_values){var _this3=this;var $selected_variation_item=$(element).parent().prev().find('.woo-selected-variation-item-name');$(element).find('li.variable-item').each(function(index,el){var attribute_value=$(el).attr('data-value');
971var attribute_title=$(el).attr('data-title');$(el).removeClass('selected disabled no-stock').addClass('disabled');$(el).attr('aria-checked','false');$(el).attr('tabindex','-1');$(el).attr('data-wvstooltip-out-of-stock','');$(el).find('input.variable-item-radio-input:radio').prop('disabled',true).prop('checked',false);if(selected.length<1&&filterBoolean(woo_variation_swatches_options.show_variation_label)){$selected_variation_item.text('');}
972if(_this3.isAjaxVariation()){$(el).find('input.variable-item-radio-input:radio').prop('disabled',false);$(el).removeClass('selected disabled no-stock');if(attribute_value===selected){$(el).addClass('selected');$(el).attr('aria-checked','true');$(el).attr('tabindex','0');$(el).find('input.variable-item-radio-input:radio').prop('disabled',false).prop('checked',true);if(filterBoolean(woo_variation_swatches_options.show_variation_label)){$selected_variation_item.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(attribute_title));}
973$(el).trigger('wvs-item-updated',[selected,attribute_value]);}}else{if(_.includes(in_stocks,attribute_value)){$(el).removeClass('selected disabled');$(el).removeAttr('aria-hidden');$(el).attr('tabindex','0');$(el).find('input.variable-item-radio-input:radio').prop('disabled',false);if(attribute_value===selected){$(el).addClass('selected');$(el).attr('aria-checked','true');$(el).find('input.variable-item-radio-input:radio').prop('checked',true);if(filterBoolean(woo_variation_swatches_options.show_variation_label)){$selected_variation_item.text("".concat(woo_variation_swatches_options.variation_label_separator," ").concat(attribute_title));}
974$(el).trigger('wvs-item-updated',[selected,attribute_value]);}}
975if(_.includes(out_of_stocks,attribute_value)){$(el).attr('data-wvstooltip-out-of-stock',woo_variation_swatches_options.out_of_stock_tooltip_text);if(filterBoolean(woo_variation_swatches_options.clickable_out_of_stock)){$(el).removeClass('disabled').addClass('no-stock');}}
976if(_.includes(disabled_values,attribute_value)){$(el).attr('data-wvstooltip-out-of-stock',woo_variation_swatches_options.unavailable_tooltip_text);}}});}},{key:"setupEvents",value:function setupEvents(){var $element=this.$element;this.attributeSwatchesFields.each(function(i,element){var select=$(element).parent().find('select.woo-variation-raw-select');if(filterBoolean(woo_variation_swatches_options.clear_on_reselect)){$(element).on('click.wvs','li.variable-item:not(.selected):not(.radio-variable-item)',function(event){event.preventDefault();event.stopPropagation();var attribute_name=$(this).data('attribute_name');var attribute_value=$(this).data('value');select.val(attribute_value).trigger('change');select.trigger('click');$(this).trigger('wvs-selected-item',[attribute_name,attribute_value,select,$element]);});$(element).on('click.wvs','li.variable-item.selected:not(.radio-variable-item)',function(event){event.preventDefault();event.stopPropagation();var attribute_name=$(this).data('attribute_name');var attribute_value=$(this).data('value');select.val('').trigger('change');select.trigger('click');$(this).trigger('wvs-unselected-item',[attribute_name,attribute_value,select,$element]);});$(element).on('click.wvs','input.variable-item-radio-input:radio',function(event){event.stopPropagation();$(this).trigger('change.wvs',{radioChange:true});});$(element).on('change.wvs','input.variable-item-radio-input:radio',function(event,params){event.preventDefault();event.stopPropagation();if(params&&params.radioChange){var attribute_name=$(this).data('attribute_name');var attribute_value=$(this).val();var is_selected=$(this).parent('li.radio-variable-item').hasClass('selected');if(is_selected){select.val('').trigger('change');$(this).closest('li.radio-variable-item').trigger('wvs-unselected-item',[attribute_name,attribute_value,select,$element]);}else{select.val(attribute_value).trigger('change');$(this).closest('li.radio-variable-item').trigger('wvs-selected-item',[attribute_name,attribute_value,select,$element]);}
977select.trigger('click');}});}else{$(element).on('click.wvs','li.variable-item:not(.radio-variable-item)',function(event){event.preventDefault();event.stopPropagation();var attribute_name=$(this).data('attribute_name');var attribute_value=$(this).data('value');select.val(attribute_value).trigger('change');select.trigger('click');$(this).trigger('wvs-selected-item',[attribute_name,attribute_value,select,$element]);});$(element).on('change.wvs','input.variable-item-radio-input:radio',function(event){event.preventDefault();event.stopPropagation();var attribute_name=$(this).data('attribute_name');var attribute_value=$(this).val();select.val(attribute_value).trigger('change');select.trigger('click');$(this).closest('li.radio-variable-item').removeClass('selected disabled no-stock').addClass('selected');$(this).closest('li.radio-variable-item').trigger('wvs-selected-item',[attribute_name,attribute_value,select,$element]);});}
978$(element).on('keydown.wvs','li.variable-item:not(.disabled)',function(event){if(event.keyCode&&32===event.keyCode||event.key&&' '===event.key||event.keyCode&&13===event.keyCode||event.key&&'enter'===event.key.toLowerCase()){event.preventDefault();$(this).trigger('click');}});});this.$element.on('click.wvs','.woo-variation-swatches-variable-item-more',function(event){event.preventDefault();$(this).parent().removeClass('enabled-display-limit-mode enabled-catalog-display-limit-mode');$(this).remove();});this.$element.find('[data-wvstooltip]').each(function(i,element){$(element).on('mouseenter',function(event){var rect=element.getBoundingClientRect();var tooltip=window.getComputedStyle(element,':before');var arrow=window.getComputedStyle(element,':after');var arrowHeight=parseInt(arrow.getPropertyValue('border-top-width'),10);var tooltipHeight=parseInt(tooltip.getPropertyValue('height'),10);var tooltipWidth=parseInt(tooltip.getPropertyValue('width'),10);var offset=2;var calculateTooltipPosition=tooltipHeight+arrowHeight+offset;element.classList.toggle('wvs-tooltip-position-bottom',rect.top<calculateTooltipPosition);var width=tooltipWidth/2;var position=rect.left+rect.width/2;var left=width-position;var isLeft=width>position;var computedRight=width+position;var isRight=document.body.clientWidth<computedRight;var right=document.body.clientWidth-computedRight;element.style.setProperty('--horizontal-position',"0px");if(isLeft){element.style.setProperty('--horizontal-position',"".concat(left+offset,"px"));}
979if(isRight){element.style.setProperty('--horizontal-position',"".concat(right-offset,"px"));}});});}},{key:"extractAttributes",value:function extractAttributes(selected){var result=new Set();var _iterator=_createForOfIteratorHelper(this.product_variations),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var variation=_step.value;var attributes=variation.attributes;
979for(var attribute_name in attributes){if(attributes[attribute_name].length>0){result.add(attribute_name);}}}}catch(err){_iterator.e(err);}finally{_iterator.f();}
980result["delete"](selected);return Array.from(result);}},{key:"getUnavailableAttributes",value:function getUnavailableAttributes(currentChosen,selected){var availableVariations=this.findMatchingVariations(this.product_variations,currentChosen).filter(function(variation){if(filterBoolean(woo_variation_swatches_options.disable_out_of_stock)){return variation.is_in_stock;}
981return true;});if(availableVariations.length===0){return this.extractAttributes(selected);}
982return[];}},{key:"deselectNonAvailable",value:function deselectNonAvailable(){var _this4=this;if(!filterBoolean(woo_variation_swatches_options.deselect_unavailable)){return;}
983this.$element.on('wvs-selected-item.wvs',function(event,attribute_name,attribute_value){var _this4$getChosenAttri=_this4.getChosenAttributes(),data=_this4$getChosenAttri.data;var currentAttribute=_objectSpread(_objectSpread({},data),{},_defineProperty({},attribute_name,attribute_value.toString()));var unavailableAttributes=_this4.getUnavailableAttributes(currentAttribute,attribute_name);if(unavailableAttributes.length>0){var _iterator2=_createForOfIteratorHelper(unavailableAttributes),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var unavailable=_step2.value;_this4.attributeSwatchesFields.find("li[data-attribute_name=\"".concat(unavailable,"\"]")).removeClass('selected');_this4.attributeFields.filter("[data-attribute_name=\"".concat(unavailable,"\"]")).each(function(i,el){$(el).val('').trigger('change');});}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}
984_this4.attributeSwatchesFields.filter("[data-attribute_name=\"".concat(attribute_name,"\"]")).each(function(){$(this).find("[data-value=\"".concat(attribute_value,"\"]")).removeClass('disabled').addClass('selected');});_this4.attributeFields.filter("[data-attribute_name=\"".concat(attribute_name,"\"]")).each(function(i,el){$(el).val(attribute_value).trigger('change');});}});}},{key:"update",value:function update(){var _this5=this;this.$element.on('woocommerce_variation_has_changed.wvs',function(event){_this5.setupItems();});}},{key:"setUpStockInfo",value:function setUpStockInfo(){var _this6=this;if(filterBoolean(woo_variation_swatches_options.show_variation_stock)){var max_stock_label=parseInt(woo_variation_swatches_options.stock_label_threshold,10);this.$element.on('wvs-selected-item.wvs',function(event){var attributes=_this6.getChosenAttributes();var variations=_this6.findStockVariations(_this6.product_variations,attributes);if(attributes.count>1&&attributes.count===attributes.chosenCount){_this6.resetStockInfo();}
985if(attributes.count>1&&attributes.count===attributes.mayChosenCount){variations.forEach(function(data){var stockInfoSelector="[data-attribute_name=\"".concat(data.attribute_name,"\"] > [data-value=\"").concat(data.attribute_value,"\"]");if(data.variation.is_in_stock&&data.variation.max_qty&&data.variation.variation_stock_left&&data.variation.max_qty<=max_stock_label){_this6.$element.find("".concat(stockInfoSelector," .wvs-stock-left-info")).attr('data-wvs-stock-info',data.variation.variation_stock_left);_this6.$element.find(stockInfoSelector).addClass('wvs-show-stock-left-info');}else{_this6.$element.find(stockInfoSelector).removeClass('wvs-show-stock-left-info');_this6.$element.find("".concat(stockInfoSelector," .wvs-stock-left-info")).attr('data-wvs-stock-info','');}});}});this.$element.on('hide_variation.wvs',function(){_this6.resetStockInfo();});}}},{key:"resetStockInfo",value:function resetStockInfo(){this.$element.find('.variable-item').removeClass('wvs-show-stock-left-info');this.$element.find('.wvs-stock-left-info').attr('data-wvs-stock-info','');}},{key:"getChosenAttributes",value:function getChosenAttributes(){var data={};var count=0;var chosen=0;this.attributeFields.each(function(){var attribute_name=$(this).data('attribute_name')||$(this).attr('name');var value=$(this).val()||'';if(value.length>0){chosen++;}
986count++;data[attribute_name]=value;});
986return{'count':count,'chosenCount':chosen,'mayChosenCount':chosen+1,'data':data};}},{key:"findStockVariations",value:function findStockVariations(allVariations,selectedAttributes){var found=[];for(var _i2=0,_Object$entries2=Object.entries(selectedAttributes.data);_i2<_Object$entries2.length;_i2++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i2],2),attribute_name=_Object$entries2$_i[0],attribute_value=_Object$entries2$_i[1];if(attribute_value.length===0){var values=this.$element.find("ul[data-attribute_name='".concat(attribute_name,"']")).data('attribute_values')||[];var _iterator3=_createForOfIteratorHelper(values),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var value=_step3.value;var compare=_.extend(selectedAttributes.data,_defineProperty({},attribute_name,value));var matched_variation=this.findMatchingVariations(allVariations,compare);if(matched_variation.length>0){var variation=matched_variation.shift();var data={};data['attribute_name']=attribute_name;data['attribute_value']=value;data['variation']=variation;found.push(data);}}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}}
987return found;}},{key:"findMatchingVariations",value:function findMatchingVariations(variations,attributes){var matching=[];for(var i=0;i<variations.length;i++){var variation=variations[i];if(this.isMatch(variation.attributes,attributes)){matching.push(variation);}}
988return matching;}},{key:"findMatchingVariations2",value:function findMatchingVariations2(variations,attributes){return variations.filter(function(variation){return Object.entries(attributes).every(function(_ref){var _ref2=_slicedToArray(_ref,2),attr_name=_ref2[0],attr_value=_ref2[1];var var_attr_value=variation.attributes[attr_name];var notMatch=var_attr_value!==undefined&&attr_value!==undefined&&var_attr_value.length!==0&&attr_value.length!==0&&var_attr_value!==attr_value;return!notMatch;});});}},{key:"isMatch",value:function isMatch(variation_attributes,attributes){var match=true;for(var attr_name in variation_attributes){if(variation_attributes.hasOwnProperty(attr_name)){var val1=variation_attributes[attr_name];var val2=attributes[attr_name];if(val1!==undefined&&val2!==undefined&&val1.length!==0&&val2.length!==0&&val1!==val2){match=false;}}}
989return match;}},{key:"destroy",value:function destroy(){this.$element.removeClass('wvs-loaded');this.$element.removeData(this.name);}}]);}();}(jQuery);var jQueryPlugin=function($){return function(PluginName,ClassName){$.fn[PluginName]=function(options){var _this7=this;for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}
990return this.each(function(index,element){var $element=$(element);var data=$element.data(PluginName);if(!data){data=new ClassName($element,$.extend({},options),PluginName);$element.data(PluginName,data);}
991if(typeof options==='string'){if(_typeof(data[options])==='object'){return data[options];}
992if(typeof data[options]==='function'){var _data;return(_data=data)[options].apply(_data,args);}}
993return _this7;});};$.fn[PluginName].Constructor=ClassName;$[PluginName]=function(options){var _$;for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){args[_key2-1]=arguments[_key2];}
994return(_$=$({}))[PluginName].apply(_$,[options].concat(args));};$.fn[PluginName].noConflict=function(){return $.fn[PluginName];};};}(jQuery);jQueryPlugin('WooVariationSwatches',Plugin);})(window);}();!function(){jQuery(function($){try{$(document).on('woo_variation_swatches_init',function(){$('.variations_form:not(.wvs-loaded)').WooVariationSwatches();$('.woo_variation_swatches_variations_form:not(.wvs-loaded)').WooVariationSwatches();$('.ywcp_inner_selected_container:not(.wvs-loaded)').WooVariationSwatches();});}catch(err){window.console.log('Variation Swatches:',err);}
995$(document).on('wc_variation_form.wvs',function(event){$(document).trigger('woo_variation_swatches_init');});$(document).ajaxComplete(function(event,request,settings){_.delay(function(){$('.variations_form:not(.wvs-loaded)').each(function(){$(this).wc_variation_form();});},1000);});$(document.body).on('wc-composite-initializing','.composite_data',function(event,composite){composite.actions.add_action('component_options_state_changed',function(self){$(self.$component_content).find('.variations_form').WooVariationSwatches('destroy');});});});}();})();
996(function(){var $=jQuery;function bind_actions(data){var container=$("#wpfront-scroll-top-container");var mouse_over=false;var hideEventID=0;var fnHide=function(){clearTimeout(hideEventID);if(container.is(":visible")){container.stop().fadeTo(data.button_fade_duration,0,function(){container.removeClass("show");mouse_over=false;});}};var fnHideEvent=function(){if(!data.auto_hide)
997return;clearTimeout(hideEventID);hideEventID=setTimeout(function(){fnHide();},data.auto_hide_after*1000);};var scrollHandled=false;var fnScroll=function(){if(scrollHandled)
998return;scrollHandled=true;if($(window).scrollTop()>data.scroll_offset){container.stop().css("opacity",mouse_over?1:data.button_opacity).addClass("show");if(!mouse_over){fnHideEvent();}}else{fnHide();}
999scrollHandled=false;};$(window).on('scroll',fnScroll);fnScroll();container.on('mouseenter',function(){clearTimeout(hideEventID);mouse_over=true;$(this).css("opacity",1);}).on('mouseleave',function(){$(this).css("opacity",data.button_opacity);mouse_over=false;fnHideEvent();}).on('click',function(e){if(data.button_action==="url"){return true;}else if(data.button_action==="element"){e.preventDefault();var element=$(data.button_action_element_selector).first();var container=$(data.button_action_container_selector);var offset=element.offset();if(offset==null)
1000return false;var contOffset=container.last().offset();if(contOffset==null)
1001return false;data.button_action_element_offset=parseInt(data.button_action_element_offset);if(isNaN(data.button_action_element_offset))
1002data.button_action_element_offset=0;var top=offset.top-contOffset.top-data.button_action_element_offset;container.animate({scrollTop:top},data.scroll_duration);return false;}
1003e.preventDefault();$("html, body").animate({scrollTop:0},data.scroll_duration);return false;});}
1004$(window).on('load',function(){function process(d){if(d.data.hide_iframe){if($(window).attr("self")!==$(window).attr("top")){return;}}
1005if(d.css!==null){$('<style>').text(d.css).appendTo('head');}
1006$('body').append(d.html);bind_actions(d.data);}
1007process(wpfront_scroll_top_data.data);});})();
1008"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
1009(function($){$.fn.tinvwl_to_wishlist=function(so){var sd={api_url:window.location.href.split('?')[0],text_create:window.tinvwl_add_to_wishlist['text_create'],text_already_in:window.tinvwl_add_to_wishlist['text_already_in'],class:{dialogbox:'.tinvwl_add_to_select_wishlist',select:'.tinvwl_wishlist',newtitle:'.tinvwl_new_input',dialogbutton:'.tinvwl_button_add'}
1009,redirectTimer:null,onPrepareList:function onPrepareList(){},onGetDialogBox:function onGetDialogBox(){},onPrepareDialogBox:function onPrepareDialogBox(){if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1010$(this).appendTo('body > .tinv-wishlist');},onCreateWishList:function onCreateWishList(wishlist){$(this).append($('<option>').html(wishlist.title).val(wishlist.ID).toggleClass('tinv_in_wishlist',wishlist.in));},onSelectWishList:function onSelectWishList(){},onDialogShow:function onDialogShow(modal){$(modal).addClass('tinv-modal-open');$(modal).removeClass('ftinvwl-pulse');},onDialogHide:function onDialogHide(element){$(this).removeClass('tinv-modal-open');$(element).removeClass('ftinvwl-pulse');},onInited:function onInited(){},onClick:function onClick(){if($(this).is('.disabled-add-wishlist')){return false;}
1011if($(this).is('.ftinvwl-animated')){$(this).addClass('ftinvwl-pulse');}
1012if(this.tinvwl_dialog){this.tinvwl_dialog.show_list.call(this);}else{s.onActionProduct.call(this);}},onPrepareDataAction:function onPrepareDataAction(a,data){$('body').trigger('tinvwl_wishlist_button_clicked',[a,data]);},filterProductAlreadyIn:function filterProductAlreadyIn(WList){var WList=WList||[],data={};$('form.cart[method=post], .woocommerce-variation-add-to-cart, form.vtajaxform[method=post]').find('input, select').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val();if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){data['form'+name_elm]=value_elm;}}else{data['form'+name_elm]=value_elm;}});data=data['formvariation_id'];return WList.filter(function(wishlist){if('object'===_typeof(wishlist.in)&&'string'===typeof data){var number=parseInt(data);
1012return 0<=wishlist.in.indexOf(number);}
1013return wishlist.in;});},onMultiProductAlreadyIn:function onMultiProductAlreadyIn(WList){var WList=WList||[];WList=s.onPrepareList.call(WList)||WList;WList=s.filterProductAlreadyIn.call(this,WList)||WList;$(this).parent().parent().find('.already-in').remove();var text='';switch(WList.length){case 0:break;default:var text=$('<ul>');$.each(WList,function(k,wishlist){text.append($('<li>').html($('<a>').html(wishlist.title).attr({href:wishlist.url})).val(wishlist.ID));});break;}
1014if(text.length){$(this).closest('.tinv-modal-inner').find('img').after($('<div>').addClass('already-in').html(s.text_already_in+' ').append(text));}},onAction:{redirect:function redirect(url){if(s.redirectTimer){clearTimeout(s.redirectTimer);}
1015s.redirectTimer=window.setTimeout(function(){window.location.href=url;},4000);},force_redirect:function force_redirect(url){window.location.href=url;},wishlists:function wishlists(wishlist){},msg:function msg(html){if(!html){return false;}
1016var $msg=$(html).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1017$('body > .tinv-wishlist').append($msg);FocusTrap('body > .tinv-wishlist');if(!s.redirectTimer){s.removeTimer=window.setTimeout(function(){$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}},tinvwl_add_to_wishlist.popup_timer);}
1018$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();if(s.redirectTimer){clearTimeout(s.redirectTimer);}
1019if(s.removeTimer){clearTimeout(s.removeTimer);}});},status:function status(_status){$('body').trigger('tinvwl_wishlist_added_status',[this,_status]);},removed:function removed(status){},make_remove:function make_remove(status){},wishlists_data:function wishlists_data(value){set_hash(JSON.stringify(value));}}};sd.onActionProduct=function(id,name){var data={form:{},tinv_wishlist_id:id||'',tinv_wishlist_name:name||'',product_type:$(this).attr('data-tinv-wl-producttype'),product_id:$(this).attr('data-tinv-wl-product')||0,product_variation:$(this).attr('data-tinv-wl-productvariation')||0,product_action:$(this).attr('data-tinv-wl-action')||'addto',redirect:window.location.href},a=this,formEl=[],hiddenFields=[],formData=new FormData();if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1020if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1021if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1022$('form.cart[method=post][data-product_id="'+$(this).attr('data-tinv-wl-product')+'"], form.vtajaxform[method=post][data-product_id="'+$(this).attr('data-tinv-wl-product')+'"]').each(function(){formEl.push($(this));});if(!formEl.length){$(a).closest('form.cart[method=post], form.vtajaxform[method=post]').each(function(){formEl.push($(this));});if(!formEl.length){formEl.push($('form.cart[method=post]'));}}
1023$('.tinv-wraper[data-tinvwl_product_id="'+$(this).attr('data-tinv-wl-product')+'"]').each(function(){formEl.push($(this));});$.each(formEl,function(index,element){$(element).find('input:not(:disabled), select:not(:disabled), textarea:not(:disabled)').each(function(){var name_elm=$(this).attr('name'),type_elm=$(this).attr('type'),value_elm=$(this).val(),count=10,_ti_merge_value=function ti_merge_value(o1,o2){if('object'===_typeof(o2)){if('undefined'===typeof o1){o1={};}
1024for(var i in o2){if(''===i){var j=-1;for(j in o1){j=j;}
1025j=parseInt(j)+1;o1[j]=_ti_merge_value(o1[i],o2[i]);}else{o1[i]=_ti_merge_value(o1[i],o2[i]);}}
1026return o1;}else{return o2;}};if('button'===type_elm||'undefined'==typeof name_elm){return;}
1027while(/^(.+)\[([^\[\]]*?)\]$/.test(name_elm)&&0<count){var n_name=name_elm.match(/^(.+)\[([^\[\]]*?)\]$/);if(3===n_name.length){var _value_elm={};_value_elm[n_name[2]]=value_elm;value_elm=_value_elm;}
1028name_elm=n_name[1];count--;}
1029if('file'===type_elm){var file_data=$(this)[0].files;if(file_data){formData.append(name_elm,file_data[0]);}}
1030if('checkbox'===type_elm||'radio'===type_elm){if($(this).is(':checked')){if(!value_elm.length&&'object'!==_typeof(value_elm)){value_elm=true;}
1031data.form[name_elm]=_ti_merge_value(data.form[name_elm],value_elm);}}else{data.form[name_elm]=_ti_merge_value(data.form[name_elm],value_elm);}
1032if('hidden'===type_elm){hiddenFields.push(name_elm);}});});data.form['tinvwl-hidden-fields']=hiddenFields;data=s.onPrepareDataAction.call(a,a,data)||data;$.each(data,function(key,value){if('form'===key){$.each(value,function(k,v){if('object'===_typeof(v)){v=JSON.stringify(v);}
1033formData.append(key+'['+k+']',v);});}else{formData.append(key,value);}});$.ajax({url:s.api_url,method:'POST',contentType:false,processData:false,data:formData}).done(function(body){$('body').trigger('tinvwl_wishlist_ajax_response',[this,body]);s.onDialogHide.call(a.tinvwl_dialog,a);if('object'===_typeof(body)){for(var k in body){if('function'===typeof s.onAction[k]){s.onAction[k].call(a,body[k]);}}}else{if('function'===typeof s.onAction.msg){s.onAction.msg.call(a,body);}}});};var s=$.extend(true,{},sd,so);return $(this).each(function(){if(!$(this).attr('data-tinv-wl-list')){return false;}
1034if(s.dialogbox){if(s.dialogbox.length){this.tinvwl_dialog=s.dialogbox;}}
1035if(!this.tinvwl_dialog){this.tinvwl_dialog=s.onGetDialogBox.call(this);}
1036if(!this.tinvwl_dialog){var _tinvwl_dialog=$(this).nextAll(s.class.dialogbox).eq(0);if(_tinvwl_dialog.length){this.tinvwl_dialog=_tinvwl_dialog;}}
1037if(this.tinvwl_dialog){s.onPrepareDialogBox.call(this.tinvwl_dialog);if('function'!==typeof this.tinvwl_dialog.update_list){this.tinvwl_dialog.update_list=function(WL){var $select=$(this).find(s.class.select).eq(0);$(this).find(s.class.newtitle).hide().val('');$select.html('');$.each(WL,function(k,v){s.onCreateWishList.call($select,v);});if(s.text_create){s.onCreateWishList.call($select,{ID:'',title:s.text_create,in:false});}
1038s.onMultiProductAlreadyIn.call($select,WL);s.onSelectWishList.call($select,WL);$(this).find(s.class.newtitle).toggle(''===$select.val());};}
1039if('function'!==typeof this.tinvwl_dialog.show_list){this.tinvwl_dialog.show_list=function(){var WList=JSON.parse($(this).attr('data-tinv-wl-list'))||[];if(WList.length){WList=s.onPrepareList.call(WList)||WList;this.tinvwl_dialog.update_list(WList);s.onDialogShow.call(this.tinvwl_dialog,this);}else{s.onActionProduct.call(this);}};}
1040var a=this;$(this.tinvwl_dialog).find(s.class.dialogbutton).off('click').on('click',function(){var b=$(a.tinvwl_dialog).find(s.class.select),c=$(a.tinvwl_dialog).find(s.class.newtitle),d;if(b.val()||c.val()){s.onActionProduct.call(a,b.val(),c.val());}else{d=c.is(':visible')?c:b;d.addClass('empty-name-wishlist');window.setTimeout(function(){d.removeClass('empty-name-wishlist');},1000);}});}
1041$(this).off('click').on('click',s.onClick);s.onInited.call(this,s);});};$(document).ready(function(){$('body').on('click keydown','.tinvwl_add_to_wishlist_button',function(e){if('keydown'===e.type){var keyD=e.key!==undefined?e.key:e.keyCode;if(!('Enter'===keyD||13===keyD||0<=['Spacebar',' '].indexOf(keyD)||32===keyD)){return;}
1042e.preventDefault();}
1043$('body').trigger('tinvwl_add_to_wishlist_button_click',[this]);if($(this).is('.disabled-add-wishlist')){e.preventDefault();window.alert(tinvwl_add_to_wishlist.i18n_make_a_selection_text);return;}
1044if($(this).is('.inited-add-wishlist')){return;}
1045$(this).tinvwl_to_wishlist({onInited:function onInited(s){$(this).addClass('inited-add-wishlist');s.onClick.call(this);}});});$('body').on('click keydown','button[name="tinvwl-remove"]',function(e){if('keydown'===e.type){var keyD=e.key!==undefined?e.key:e.keyCode;if(!('Enter'===keyD||13===keyD||0<=['Spacebar',' '].indexOf(keyD)||32===keyD)){return;}}
1046e.preventDefault();var el=$(this);if(el.is('.inited-wishlist-action')){return;}
1047el.addClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});var data={'tinvwl-product_id':el.val(),'tinvwl-action':'remove','tinvwl-security':tinvwl_add_to_wishlist.nonce,'tinvwl-paged':el.data('tinvwl_paged')||el.closest('form').data('tinvwl_paged'),'tinvwl-per-page':el.data('tinvwl_per_page')||el.closest('form').data('tinvwl_per_page'),'tinvwl-sharekey':el.data('tinvwl_sharekey')||el.closest('form').data('tinvwl_sharekey')};if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1048if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1049if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1050$.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:'POST',cache:false,data:data,beforeSend:function beforeSend(xhr){xhr.setRequestHeader('X-WP-Nonce',tinvwl_add_to_wishlist.nonce);}}).done(function(response){el.removeClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').unblock();if(response.msg){var $msg=$(response.msg).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1051$('body > .tinv-wishlist').append($msg);FocusTrap('body > .tinv-wishlist');$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();});var closeTimer;if(!closeTimer){closeTimer=window.setTimeout(function(){$msg.remove();if(closeTimer){clearTimeout(closeTimer);}}
1051,tinvwl_add_to_wishlist.popup_timer);}}
1052if(response.status){$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').replaceWith(response.content);$('.tinvwl-break-input').tinvwl_break_submit({selector:'.tinvwl-break-input-filed'});$('.tinvwl-break-checkbox').tinvwl_break_submit({selector:'table td input[type=checkbox]',validate:function validate(){return $(this).is(':checked');}});jQuery.fn.tinvwl_get_wishlist_data();}
1053if(response.wishlists_data){set_hash(JSON.stringify(response.wishlists_data));}
1054$('body').trigger('tinvwl_wishlist_ajax_response',[this,response]);});});$('body').on('click keydown','button[name="tinvwl-add-to-cart"]',function(e){if('keydown'===e.type){var keyD=e.key!==undefined?e.key:e.keyCode;if(!('Enter'===keyD||13===keyD||0<=['Spacebar',' '].indexOf(keyD)||32===keyD)){return;}}
1055e.preventDefault();var el=$(this);if(el.is('.inited-wishlist-action')){return;}
1056el.addClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});var data={'tinvwl-product_id':el.val(),'tinvwl-action':'add_to_cart_single','tinvwl-security':tinvwl_add_to_wishlist.nonce,'tinvwl-paged':el.data('tinvwl_paged')||el.closest('form').data('tinvwl_paged'),'tinvwl-per-page':el.data('tinvwl_per_page')||el.closest('form').data('tinvwl_per_page'),'tinvwl-sharekey':el.data('tinvwl_sharekey')||el.closest('form').data('tinvwl_sharekey')};if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1057if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1058if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1059$.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:'POST',cache:false,data:data,beforeSend:function beforeSend(xhr){xhr.setRequestHeader('X-WP-Nonce',tinvwl_add_to_wishlist.nonce);}}).done(function(response){el.removeClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').unblock();if(response.msg){var $msg=$(response.msg).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1060$('body > .tinv-wishlist').append($msg);FocusTrap('body > .tinv-wishlist');$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();});var closeTimer;if(!closeTimer){closeTimer=window.setTimeout(function(){$msg.remove();if(closeTimer){clearTimeout(closeTimer);}},tinvwl_add_to_wishlist.popup_timer);}}
1061$(document.body).trigger('wc_fragment_refresh');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').replaceWith(response.content);jQuery.fn.tinvwl_get_wishlist_data();if(response.wishlists_data){set_hash(JSON.stringify(response.wishlists_data));}
1062$('body').trigger('tinvwl_wishlist_ajax_response',[this,response]);if(response.redirect){window.location.href=response.redirect;}});});$('body').on('click keydown','button[name="tinvwl-action-product_all"]',function(e){if('keydown'===e.type){var keyD=e.key!==undefined?e.key:e.keyCode;if(!('Enter'===keyD||13===keyD||0<=['Spacebar',' '].indexOf(keyD)||32===keyD)){return;}}
1063e.preventDefault();var el=$(this);if(el.is('.inited-wishlist-action')){return;}
1064el.addClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});var data={'tinvwl-action':'add_to_cart_all','tinvwl-security':tinvwl_add_to_wishlist.nonce,'tinvwl-paged':el.closest('form').data('tinvwl_paged'),'tinvwl-per-page':el.closest('form').data('tinvwl_per_page'),'tinvwl-sharekey':el.closest('form').data('tinvwl_sharekey')};if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1065if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1066if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1067$.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:'POST',cache:false,data:data,beforeSend:function beforeSend(xhr){xhr.setRequestHeader('X-WP-Nonce',tinvwl_add_to_wishlist.nonce);}}).done(function(response){el.removeClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').unblock();if(response.msg){var $msg=$(response.msg).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1068$('body > .tinv-wishlist').append($msg);FocusTrap('body > .tinv-wishlist');$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();});var closeTimer;if(!closeTimer){closeTimer=window.setTimeout(function(){$msg.remove();if(closeTimer){clearTimeout(closeTimer);}}
1068,tinvwl_add_to_wishlist.popup_timer);}}
1069$(document.body).trigger('wc_fragment_refresh');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').replaceWith(response.content);jQuery.fn.tinvwl_get_wishlist_data();if(response.wishlists_data){set_hash(JSON.stringify(response.wishlists_data));}
1070$('body').trigger('tinvwl_wishlist_ajax_response',[this,response]);if(response.redirect){window.location.href=response.redirect;}});});$('body').on('click keydown','button[name="tinvwl-action-product_apply"], button[name="tinvwl-action-product_selected"]',function(e){if('keydown'===e.type){var keyD=e.key!==undefined?e.key:e.keyCode;if(!('Enter'===keyD||13===keyD||0<=['Spacebar',' '].indexOf(keyD)||32===keyD)){return;}}
1071e.preventDefault();var products=[];$('input[name="wishlist_pr[]"]:checked').each(function(){products.push(this.value);});var el=$(this);if(!products.length||'tinvwl-action-product_selected'!==el.attr('name')&&!$('select#tinvwl_product_actions option').filter(':selected').val()){alert(window.tinvwl_add_to_wishlist['tinvwl_break_submit']);return;}
1072if(el.is('.inited-wishlist-action')){return;}
1073el.addClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});var action='';if('tinvwl-action-product_selected'===el.attr('name')){action='add_to_cart_selected';}else{action=$('select#tinvwl_product_actions option').filter(':selected').val();}
1074var data={'tinvwl-products':products,'tinvwl-action':action,'tinvwl-security':tinvwl_add_to_wishlist.nonce,'tinvwl-paged':el.closest('form').data('tinvwl_paged'),'tinvwl-per-page':el.closest('form').data('tinvwl_per_page'),'tinvwl-sharekey':el.closest('form').data('tinvwl_sharekey')};if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1075if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1076if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1077$.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:'POST',cache:false,data:data,beforeSend:function beforeSend(xhr){xhr.setRequestHeader('X-WP-Nonce',tinvwl_add_to_wishlist.nonce);}}).done(function(response){el.removeClass('inited-wishlist-action');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').unblock();if(response.msg){var $msg=$(response.msg).eq(0);if(!$('body > .tinv-wishlist').length){$('body').append($('<div>').addClass('tinv-wishlist'));}
1078$('body > .tinv-wishlist').append($msg);FocusTrap('body > .tinv-wishlist');$msg.on('click','.tinv-close-modal, .tinvwl_button_close, .tinv-overlay',function(e){e.preventDefault();$msg.remove();});var closeTimer;if(!closeTimer){closeTimer=window.setTimeout(function(){$msg.remove();if(closeTimer){clearTimeout(closeTimer);}},tinvwl_add_to_wishlist.popup_timer);}}
1079if('add_to_cart_selected'===action){$(document.body).trigger('wc_fragment_refresh');}
1080$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').replaceWith(response.content);jQuery.fn.tinvwl_get_wishlist_data();if(response.wishlists_data){set_hash(JSON.stringify(response.wishlists_data));}
1081$('body').trigger('tinvwl_wishlist_ajax_response',[this,response]);if(response.redirect){window.location.href=response.redirect;}});});$(document).on('hide_variation','.variations_form',function(a){var e=$('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+$(this).data('product_id')+'"]');e.attr('data-tinv-wl-productvariation',0);var originalBlockAjaxWishlistsData=tinvwl_add_to_wishlist.block_ajax_wishlists_data;tinvwl_add_to_wishlist.block_ajax_wishlists_data=true;$.fn.tinvwl_get_wishlist_data();tinvwl_add_to_wishlist.block_ajax_wishlists_data=originalBlockAjaxWishlistsData;if(e.length&&!tinvwl_add_to_wishlist.allow_parent_variable){a.preventDefault();e.addClass('disabled-add-wishlist');}});$(document).on('show_variation','.variations_form',function(a,b,d){var e=$('.tinvwl_add_to_wishlist_button:not(.tinvwl-loop)[data-tinv-wl-product="'+$(this).data('product_id')+'"]');e.attr('data-tinv-wl-productvariation',b.variation_id);var originalBlockAjaxWishlistsData=tinvwl_add_to_wishlist.block_ajax_wishlists_data;tinvwl_add_to_wishlist.block_ajax_wishlists_data=true;$.fn.tinvwl_get_wishlist_data();tinvwl_add_to_wishlist.block_ajax_wishlists_data=originalBlockAjaxWishlistsData;a.preventDefault();e.removeClass('disabled-add-wishlist');});$(window).on('storage onstorage',function(e){if(hash_key===e.originalEvent.key&&localStorage.getItem(hash_key)!==se
1081ssionStorage.getItem(hash_key)){if(localStorage.getItem(hash_key)){var data=JSON.parse(localStorage.getItem(hash_key));if('object'===_typeof(data)&&null!==data&&(data.hasOwnProperty('products')||data.hasOwnProperty('counter'))){set_hash(localStorage.getItem(hash_key));}}}});var tinvwl_products=[],tinvwl_counter=false;$('a.tinvwl_add_to_wishlist_button').each(function(){if('undefined'!==$(this).data('tinv-wl-product')&&$(this).data('tinv-wl-product')){tinvwl_products.push($(this).data('tinv-wl-product'));}});$('.wishlist_products_counter_number').each(function(){tinvwl_counter=true;});var get_data_ajax=function get_data_ajax(refresh){if((tinvwl_products.length||tinvwl_counter)&&tinvwl_add_to_wishlist.user_interacted){var data={'tinvwl-action':'get_data','tinvwl-security':tinvwl_add_to_wishlist.nonce};if('refresh'===refresh){var form=$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear form[data-tinvwl_sharekey]');if(form.length){$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').block({message:null,overlayCSS:{background:'#fff',opacity:0.6}});data['tinvwl-paged']=form.data('tinvwl_paged');data['tinvwl-per-page']=form.data('tinvwl_per_page');data['tinvwl-sharekey']=form.data('tinvwl_sharekey');}}
1082if(tinvwl_add_to_wishlist.wpml){data.lang=tinvwl_add_to_wishlist.wpml;}
1083if(tinvwl_add_to_wishlist.wpml_default){data.lang_default=tinvwl_add_to_wishlist.wpml_default;}
1084if(tinvwl_add_to_wishlist.stats){data.stats=tinvwl_add_to_wishlist.stats;}
1085$.ajax({url:tinvwl_add_to_wishlist.wc_ajax_url,method:'POST',cache:false,data:data,beforeSend:function beforeSend(xhr){xhr.setRequestHeader('X-WP-Nonce',tinvwl_add_to_wishlist.nonce);}}).done(function(response){if('refresh'===refresh){$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').unblock();$(document.body).trigger('wc_fragment_refresh');$('div.tinv-wishlist.woocommerce.tinv-wishlist-clear').replaceWith(response.content);localStorage.setItem(hash_key+'_refresh','');}
1086if(response.wishlists_data){set_hash(JSON.stringify(response.wishlists_data));}
1087$('body').trigger('tinvwl_wishlist_ajax_response',[this,response]);});}};$.fn.tinvwl_get_wishlist_data=function(refresh){if('refresh'===refresh){get_data_ajax(refresh);return;}
1088if($supports_html5_storage){if('undefined'!==typeof Cookies&&Cookies.get('tinvwl_update_data')!==undefined){Cookies.set('tinvwl_update_data',0,{expires:-1});localStorage.setItem(hash_key,'');}
1089if(localStorage.getItem(hash_key)){var data=JSON.parse(localStorage.getItem(hash_key));if('object'===_typeof(data)&&null!==data&&(data.hasOwnProperty('products')||data.hasOwnProperty('counter'))){if(!data.hasOwnProperty('lang')&&!tinvwl_add_to_wishlist.wpml||tinvwl_add_to_wishlist.wpml&&data.lang===tinvwl_add_to_wishlist.wpml){if('undefined'!==typeof Cookies&&Cookies.get('tinvwl_wishlists_data_counter')===undefined){mark_products(data);return;}
1090if('undefined'!==typeof Cookies&&Cookies.get('tinvwl_wishlists_data_counter')==data.counter&&(!data.hasOwnProperty('stats_count')||Cookies.get('tinvwl_wishlists_data_stats')==data.stats_count)){mark_products(data);return;}}}}}
1091if(tinvwl_add_to_wishlist.block_ajax_wishlists_data){setTimeout(function(){mark_products(data);},500);return;}
1092get_data_ajax();};tinvwl_add_to_wishlist.user_interacted=false;$.fn.tinvwl_get_wishlist_data();$(document).one('click keydown scroll',function(){tinvwl_add_to_wishlist.user_interacted=true;$.fn.tinvwl_get_wishlist_data();});var observer=new MutationObserver(function(mutations){var tinvwl_products=[];mutations.forEach(function(mutation){var newNodes=mutation.addedNodes;if(null!==newNodes){var $nodes=$(newNodes);$nodes.each(function(){var $node=$(this),els=$node.find('.tinvwl_add_to_wishlist_button');if(els.length){els.each(function(){var $this=$(this),productData=$this.data('tinv-wl-product');if('undefined'!==typeof productData&&productData){tinvwl_products.push(productData);}});}});}});if(tinvwl_products.length){$.fn.tinvwl_get_wishlist_data();}});var config={childList:true,subtree:true};var targetNode=document.body;observer.observe(targetNode,config);});var $supports_html5_storage=true;var hash_key=tinvwl_add_to_wishlist.hash_key;try{$supports_html5_storage='sessionStorage'in window&&null!==window.sessionStorage;window.sessionStorage.setItem('ti','test');window.sessionStorage.removeItem('ti');window.localStorage.setItem('ti','test');window.localStorage.removeItem('ti');}catch(err){$supports_html5_storage=false;}
1093function mark_products(data){var g='1'==window.tinvwl_add_to_wishlist['simple_flow'];$('a.tinvwl_add_to_wishlist_button').each(function(){$(this).removeClass('tinvwl-product-make-remove').removeClass('tinvwl-product-in-list').attr('data-tinv-wl-action','addto').attr('data-tinv-wl-list','[]');if(data&&data.stats){$(this).find('span.tinvwl-product-stats').remove();}});$('body').trigger('tinvwl_wishlist_mark_products',[data]);$.each(data.products,function(i,item){var id=i,e=$('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+id+'"]');e.each(function(){var vid=parseInt($(this).attr('data-tinv-wl-productvariation')),vids=$(this).data('tinv-wl-productvariations')||[],j=false;for(var i in item){if(item[i].hasOwnProperty('in')&&Array.isArray(item[i].in)&&(-1<(item[i].in||[]).indexOf(id)||-1<(item[i].in||[]).indexOf(vid)||vids.some(function(r){return 0<=(item[i].in||[]).indexOf(r);}))){j=true;}}
1094$(this).attr('data-tinv-wl-list',JSON.stringify(item)).toggleClass('tinvwl-product-in-list',j).toggleClass('tinvwl-product-make-remove',j&&g).attr('data-tinv-wl-action',j&&g?'remove':'addto');$('body').trigger('tinvwl_wishlist_product_marked',[this,j]);});});if(data&&data.stats&&tinvwl_add_to_wishlist.stats){$.each(data.stats,function(i,item){var id=i,e=$('a.tinvwl_add_to_wishlist_button[data-tinv-wl-product="'+id+'"]');e.each(function(){$(this).attr('data-tinv-wl-product-stats',JSON.stringify(item));var vid=parseInt($(this).attr('data-tinv-wl-productvariation')),j=false;for(var i in item){if(-1<i.indexOf(vid)){j=true;$('body').trigger('tinvwl_wishlist_product_stats',[this,j]);$(this).append('<span class="tinvwl-product-stats">'+item[i]+'</span>');}}});});}
1095update_product_counter(data.counter);}
1096function set_hash(hash){if($supports_html5_storage){localStorage.setItem(hash_key,hash);sessionStorage.setItem(hash_key,hash);mark_products(JSON.parse(hash));}}
1097function update_product_counter(counter){if('1'==window.tinvwl_add_to_wishlist['hide_zero_counter']&&0===counter){counter='false';}
1098jQuery('i.wishlist-icon').addClass('added');if('false'!==counter){jQuery('.wishlist_products_counter_number, .theme-item-count.wishlist-item-count').html(counter);jQuery('i.wishlist-icon').attr('data-icon-label',counter);}else{jQuery('.wishlist_products_counter_number, .theme-item-count.wishlist-item-count').html('').
1098closest('span.wishlist-counter-with-products').removeClass('wishlist-counter-with-products');jQuery('i.wishlist-icon').removeAttr('data-icon-label');}
1099var has_products=!('0'==counter||'false'==counter);jQuery('.wishlist_products_counter').toggleClass('wishlist-counter-with-products',has_products);setTimeout(function(){jQuery('i.wishlist-icon').removeClass('added');},500);}
1100function FocusTrap(el){var inputs=$(el).find('select, input, textarea, button, a').filter(':visible');var firstInput=inputs.first();var lastInput=inputs.last();firstInput.focus().blur();lastInput.on('keydown',function(e){if(9===e.which&&!e.shiftKey){e.preventDefault();firstInput.focus();}});firstInput.on('keydown',function(e){if(9===e.which&&e.shiftKey){e.preventDefault();lastInput.focus();}});}})(jQuery);"use strict";(function($){$(document).ready(function(){$('.tinv-lists-nav').each(function(){if(!$(this).html().trim().length){$(this).remove();}});$('body').on('click','.social-buttons .social:not(.social-email,.social-whatsapp,.social-clipboard)',function(e){var newWind=window.open($(this).attr('href'),$(this).attr('title'),'width=420,height=320,resizable=yes,scrollbars=yes,status=yes');if(newWind){newWind.focus();e.preventDefault();}});if('undefined'!==typeof ClipboardJS){var clipboard=new ClipboardJS('.social-buttons .social.social-clipboard',{text:function text(trigger){return trigger.getAttribute('href');}});clipboard.on('success',function(e){showTooltip(e.trigger,tinvwl_add_to_wishlist.tinvwl_clipboard);});var btns=document.querySelectorAll('.social-buttons .social.social-clipboard');for(var i=0;i<btns.length;i++){btns[i].addEventListener('mouseleave',clearTooltip);btns[i].addEventListener('blur',clearTooltip);}}
1101$('body').on('click','.social-buttons .social.social-clipboard',function(e){e.preventDefault();});$('body').on('click','.tinv-wishlist .tinv-overlay, .tinv-wishlist .tinv-close-modal, .tinv-wishlist .tinvwl_button_close',function(e){e.preventDefault();$(this).parents('.tinv-modal:first').removeClass('tinv-modal-open');$('body').trigger('tinvwl_modal_closed',[this]);});$('body').on('click','.tinv-wishlist .tinvwl-btn-onclick',function(e){var url=$(this).data('url');if(url){e.preventDefault();window.location=$(this).data('url');}});var navigationButton=$('.tinv-wishlist .navigation-button');if(navigationButton.length){navigationButton.each(function(){var navigationButtons=$(this).find('> li');if(5>navigationButtons.length){navigationButtons.parent().addClass('tinvwl-btns-count-'+navigationButtons.length);}});}
1102$('.tinv-login .showlogin').off('click').on('click',function(e){e.preventDefault();$(this).closest('.tinv-login').find('.login').toggle();});$('.tinv-wishlist table.tinvwl-table-manage-list tfoot td').each(function(){$(this).toggle(!!$(this).children().not('.look_in').length||!!$(this).children('.look_in').children().length);});});})(jQuery);function showTooltip(elem,msg){elem.setAttribute('class','social social-clipboard tooltipped tooltipped-s');elem.setAttribute('aria-label',msg);}
1103function clearTooltip(e){e.currentTarget.setAttribute('class','social social-clipboard ');e.currentTarget.removeAttribute('aria-label');}"use strict";(function($){$.fn.tinvwl_break_submit=function(so){var sd={selector:'input, select, textarea',ifempty:true,invert:false,validate:function validate(){return $(this).val();},rule:function rule(){var form_elements=$(this).parents('form').eq(0).find(s.selector),trigger=s.invert;if(0===form_elements.length){return s.ifempty;}
1104form_elements.each(function(){if(trigger&&!s.invert||!trigger&&s.invert){return;}
1105trigger=Boolean(s.validate.call($(this)));});return trigger;}};var s=$.extend(true,{},sd,so);return $(this).each(function(){$(this).on('click',function(event){var ss=[];if('undefined'!==typeof $(this).attr('tinvwl_break_submit')){ss=$(this).attr('tinvwl_break_submit').split(',');}
1106if(-1!==jQuery.inArray(s.selector,ss)){ss=[];}
1107if(!s.rule.call($(this))&&0===ss.length){alert(window.tinvwl_add_to_wishlist['tinvwl_break_submit']);event.preventDefault();}
1108ss.push(s.selector);$(this).attr('tinvwl_break_submit',ss);if(s.rule.call($(this))){$(this).removeAttr('tinvwl_break_submit');}});});};$(document).ready(function(){$('body').on('click','.global-cb',function(){$(this).closest('table').eq(0).find('.product-cb input[type=checkbox], .
vendor: 5,970 bytes, lines 1108-1142
1108wishlist-cb input[type=checkbox]').prop('checked',$(this).is(':checked'));});var hash_key=tinvwl_add_to_wishlist.hash_key+'_refresh';$(document.body).on('tinvwl_wishlist_ajax_response',function(event,element,response){if((response.status||response.removed)&&['add_to_wishlist'].includes(response.action)){if(response.wishlist&&response.wishlist.share_key){localStorage.setItem(hash_key,'');localStorage.setItem(hash_key,response.wishlist.share_key);}}});});})(jQuery);
1109(function(){var $,win;$=window.jQuery;win=$(window);$.fn.stick_in_parent=function(opts){var doc,elm,enable_bottoming,fn,i,inner_scrolling,len,manual_spacer,offset_top,outer_width,parent_selector,recalc_every,sticky_class;if(opts==null){opts={};}
1110sticky_class=opts.sticky_class,inner_scrolling=opts.inner_scrolling,recalc_every=opts.recalc_every,parent_selector=opts.parent,offset_top=opts.offset_top,manual_spacer=opts.spacer,enable_bottoming=opts.bottoming;if(offset_top==null){offset_top=0;}
1111if(parent_selector==null){parent_selector=void 0;}
1112if(inner_scrolling==null){inner_scrolling=true;}
1113if(sticky_class==null){sticky_class="is_stuck";}
1114doc=$(document);if(enable_bottoming==null){enable_bottoming=true;}
1115outer_width=function(el){var _el,computed,w;if(window.getComputedStyle){_el=el[0];computed=window.getComputedStyle(el[0]);w=parseFloat(computed.getPropertyValue("width"))+parseFloat(computed.getPropertyValue("margin-left"))+parseFloat(computed.getPropertyValue("margin-right"));if(computed.getPropertyValue("box-sizing")!=="border-box"){w+=parseFloat(computed.getPropertyValue("border-left-width"))+parseFloat(computed.getPropertyValue("border-right-width"))+parseFloat(computed.getPropertyValue("padding-left"))+parseFloat(computed.getPropertyValue("padding-right"));}
1116return w;}else{return el.outerWidth(true);}};fn=function(elm,padding_bottom,parent_top,parent_height,top,height,el_float,detached){var bottomed,detach,fixed,last_pos,last_scroll_height,offset,parent,recalc,recalc_and_tick,recalc_counter,spacer,tick;if(elm.data("sticky_kit")){return;}
1117elm.data("sticky_kit",true);last_scroll_height=doc.height();parent=elm.parent();if(parent_selector!=null){parent=parent.closest(parent_selector);}
1118if(!parent.length){throw"failed to find stick parent";}
1119fixed=false;bottomed=false;spacer=manual_spacer!=null?manual_spacer&&elm.closest(manual_spacer):$("<div />");if(spacer){spacer.css('position',elm.css('position'));}
1120recalc=function(){var border_top,padding_top,restore;if(detached){return;}
1121last_scroll_height=doc.height();border_top=parseInt(parent.css("border-top-width"),10);padding_top=parseInt(parent.css("padding-top"),10);padding_bottom=parseInt(parent.css("padding-bottom"),10);parent_top=parent.offset().top+border_top+padding_top;parent_height=parent.height();if(fixed){fixed=false;bottomed=false;if(manual_spacer==null){elm.insertAfter(spacer);spacer.detach();}
1122elm.css({position:"",top:"",width:"",bottom:""}).removeClass(sticky_class);restore=true;}
1123top=elm.offset().top-(parseInt(elm.css("margin-top"),10)||0)-offset_top;height=elm.outerHeight(true);el_float=elm.css("float");if(spacer){spacer.css({width:outer_width(elm),height:height,display:elm.css("display"),"vertical-align":elm.css("vertical-align"),"float":el_float});}
1124if(restore){return tick();}};recalc();if(height===parent_height){return;}
1125last_pos=void 0;offset=offset_top;recalc_counter=recalc_every;tick=function(){var css,delta,recalced,scroll,will_bottom,win_height;if(detached){return;}
1126recalced=false;if(recalc_counter!=null){recalc_counter-=1;if(recalc_counter<=0){recalc_counter=recalc_every;recalc();recalced=true;}}
1127if(!recalced&&doc.height()!==last_scroll_height){recalc();recalced=true;}
1128scroll=win.scrollTop();if(last_pos!=null){delta=scroll-last_pos;}
1129last_pos=scroll;if(fixed){if(enable_bottoming){will_bottom=scroll+height+offset>parent_height+parent_top;if(bottomed&&!will_bottom){bottomed=false;elm.css({position:"fixed",bottom:"",top:offset}).trigger("sticky_kit:unbottom");}}
1130if(scroll<top){fixed=false;offset=offset_top;if(manual_spacer==null){if(el_float==="left"||el_float==="right"){elm.insertAfter(spacer);}
1131spacer.detach();}
1132css={position:"",width:"",top:""};elm.css(css).removeClass(sticky_class).trigger("sticky_kit:unstick");}
1133if(inner_scrolling){win_height=win.height();if(height+offset_top>win_height){if(!bottomed){offset-=delta;offset=Math.max(win_height-height,offset);offset=Math.min(offset_top,offset);if(fixed){elm.css({top:offset+"px"});}}}}}else{if(scroll>top){fixed=true;css={position:"fixed",top:offset};css.width=elm.css("box-sizing")==="border-box"?elm.outerWidth()+"px":elm.width()+"px";elm.css(css).addClass(sticky_class);if(manual_spacer==null){elm.after(spacer);if(el_float==="left"||el_float==="right"){spacer.append(elm);}}
1134elm.trigger("sticky_kit:stick");}}
1135if(fixed&&enable_bottoming){if(will_bottom==null){will_bottom=scroll+height+offset>parent_height+parent_top;}
1136if(!bottomed&&will_bottom){bottomed=true;if(parent.css("position")==="static"){parent.css({position:"relative"});}
1137return elm.css({position:"absolute",bottom:padding_bottom,top:"auto"}).trigger("sticky_kit:bottom");}}};recalc_and_tick=function(){recalc();return tick();};detach=function(){detached=true;win.off("touchmove",tick);win.off("scroll",tick);win.off("resize",recalc_and_tick);$(document.body).off("sticky_kit:recalc",recalc_and_tick);elm.off("sticky_kit:detach",detach);elm.removeData("sticky_kit");elm.css({position:"",bottom:"",top:"",width:""});parent.position("position","");if(fixed){if(manual_spacer==null){if(el_float==="left"||el_float==="right"){elm.insertAfter(spacer);}
1138spacer.remove();}
1139return elm.removeClass(sticky_class);}};win.on("touchmove",tick);win.on("scroll",tick);win.on("resize",recalc_and_tick);$(document.body).on("sticky_kit:recalc",recalc_and_tick);elm.on("sticky_kit:detach",detach);return setTimeout(tick,0);};for(i=0,len=this.length;i<len;i++){elm=this[i];fn($(elm));}
1140return this;};}).call(this);
1141/*!
1142 * jQuery serializeObject - v0.2-wp - 1/20/2010
1143 * http://benalman.com/projects/jquery-misc-plugins/
1144 *
1145 * Copyright (c) 2010 "Cowboy" Ben Alman
1146 * Dual licensed under the MIT and GPL licenses.
1147 * http://benalman.com/about/license/
1148 */
1149(function($,undefined){'$:nomunge';$.fn.serializeObject=function(){var obj={};$.each(this.serializeArray(),function(i,o){var n=o.name,v=o.value;obj[n]=obj[n]===undefined?v:Array.isArray(obj[n])?obj[n].concat(v):[obj[n],v];});return obj;};})(jQuery);
1150/*!
1151 * Back Ground Color Thief
1152 * by Srinivas Dasari - http://www.sodhanalibrary.com
1153 *
1154 * License
1155 * -------
1156 * Creative Commons Attribution 2.5 License:
1157 * http://creativecommons.org/licenses/by/2.5/
1158 *
1159 * Thanks
1160 * ------
1161 * Nick Rabinowitz - For creating quantize.js.
1162 * John Schulz - For clean up and optimization. @JFSIII
1163 * Nathan Spady - For adding drag and drop support to the demo page.
1164 * Lokesh Dhakar - For color theif - inspiration
1165 */
1166var CanvasImage=function(image){this.canvas=document.createElement('canvas');this.canvas.classList.add('bct-canvas-image');this.context=this.canvas.getContext('2d');document.body.appendChild(this.canvas);this.width=this.canvas.width=image.width;this.height=this.canvas.height=image.height;this.context.drawImage(image,0,0,this.width,this.height);};CanvasImage.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height);};CanvasImage.prototype.update=function(imageData){this.context.putImageData(imageData,0,0);};CanvasImage.prototype.getPixelCount=function(){return this.width*this.height;};CanvasImage.prototype.getWidth=function(){return this.width;};CanvasImage.prototype.getHeight=function(){return this.height;};CanvasImage.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height);};CanvasImage.prototype.removeCanvas=function(){this.canvas.parentNode.removeChild(this.canvas);};CanvasImage.prototype.markPixels=function(pixels){var imageData=this.context.getImageData(0,0,this.width,this.height);for(var i=0;i<pixels.length;i++){var pos=pixels[i];imageData.data[pos++]=255;imageData.data[pos++]=0;imageData.data[pos++]=0;imageData.data[pos++]=255;}
1167this.context.putImageData(imageData,0,0);};
1167var BackgroundColorTheif=function(){};BackgroundColorTheif.prototype.getBackGroundColor=function(sourceImage,quality){var palette=this.getPalette(sourceImage,5,quality);var backGroundColor=palette[0];return backGroundColor;};BackgroundColorTheif.prototype.getPalette=function(sourceImage,colorCount,quality){if(typeof colorCount==='undefined'){colorCount=10;}
1168if(typeof quality==='undefined'){quality=10;}
1169var image=new CanvasImage(sourceImage);var imageData=image.getImageData();var pixels=imageData.data;var pixelCount;var widthLimit=Math.round(image.getWidth()*(0.1));var heightLimit=Math.round(image.getHeight()*(0.1));var pixelArray=[];var pixelsNum=[];pixelCount=heightLimit*image.getWidth();for(var i=0,offset,r,g,b,a;i<pixelCount;i=i+quality){offset=i*4;r=pixels[offset+0];g=pixels[offset+1];b=pixels[offset+2];a=pixels[offset+3];if(a>=125){pixelArray.push([r,g,b]);pixelsNum.push(offset);}}
1170pixelCount=image.getHeight()*image.getWidth();for(var i=((image.getHeight()-heightLimit)*image.getWidth()),offset,r,g,b,a;i<pixelCount;i=i+quality){offset=i*4;r=pixels[offset+0];g=pixels[offset+1];b=pixels[offset+2];a=pixels[offset+3];if(a>=125){pixelArray.push([r,g,b]);pixelsNum.push(offset);}}
1171quality=4;pixelCount=(image.getHeight()-heightLimit)*image.getWidth();for(var i=(heightLimit*image.getWidth()),offset,r,g,b,a,j=0,k=0;i<pixelCount;i=i+quality){offset=i*4;r=pixels[offset+0];g=pixels[offset+1];b=pixels[offset+2];a=pixels[offset+3];if(a>=125){pixelArray.push([r,g,b]);pixelsNum.push(offset);}
1172j=j+quality;if(j>=widthLimit){k=k+quality;i=(heightLimit+k)*image.getWidth();j=0;}}
1173pixelCount=(image.getHeight()-heightLimit)*image.getWidth();for(var i=((heightLimit*image.getWidth())+(image.getWidth()-widthLimit-quality)),offset,r,g,b,a,j=0,k=0;i<pixelCount;i=i+quality){offset=i*4;r=pixels[offset+0];g=pixels[offset+1];b=pixels[offset+2];a=pixels[offset+3];if(a>=125){pixelArray.push([r,g,b]);pixelsNum.push(offset);}
1174j=j+quality;if(j>=widthLimit){k=k+quality;i=((heightLimit+k)*image.getWidth())+(image.getWidth()-widthLimit-quality);j=0;}}
1175var cmap=MMCQ.quantize(pixelArray,colorCount);var palette=cmap.palette();image.removeCanvas();return palette;};
1176/*!
1177 * quantize.js Copyright 2008 Nick Rabinowitz.
1178 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
1179 */
1180/*!
1181 * Block below copied from Protovis: http://mbostock.github.com/protovis/
1182 * Copyright 2010 Stanford Visualization Group
1183 * Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php
1184 */
1185if(!pv){var pv={map:function(array,f){var o={};return f?array.map(function(d,i){o.index=i;return f.call(o,d);}):array.slice();},naturalOrder:function(a,b){return(a<b)?-1:((a>b)?1:0);},sum:function(array,f){var o={};return array.reduce(f?function(p,d,i){o.index=i;return p+f.call(o,d);}:function(p,d){return p+d;},0);},max:function(array,f){return Math.max.apply(null,f?pv.map(array,f):array);}};}
1186var MMCQ=(function(){var sigbits=5,rshift=8-sigbits,maxIterations=1000,fractByPopulations=0.75;function getColorIndex(r,g,b){return(r<<(2*sigbits))+(g<<sigbits)+b;}
1187function PQueue(comparator){var contents=[],sorted=false;function sort(){contents.sort(comparator);sorted=true;}
1188return{push:function(o){contents.push(o);sorted=false;},peek:function(index){if(!sorted)sort();if(index===undefined)index=contents.length-1;return contents[index];},pop:function(){if(!sorted)sort();return contents.pop();},size:function(){return contents.length;},map:function(f){return contents.map(f);},debug:function(){if(!sorted)sort();return contents;}};}
1189function VBox(r1,r2,g1,g2,b1,b2,histo){var vbox=this;vbox.r1=r1;vbox.r2=r2;vbox.g1=g1;vbox.g2=g2;vbox.b1=b1;vbox.b2=b2;vbox.histo=histo;}
1190VBox.prototype={volume:function(force){var vbox=this;if(!vbox._volume||force){vbox._volume=((vbox.r2-vbox.r1+1)*(vbox.g2-vbox.g1+1)*(vbox.b2-vbox.b1+1));}
1191return vbox._volume;},count:function(force){var vbox=this,histo=vbox.histo;if(!vbox._count_set||force){var npix=0,i,j,k;for(i=vbox.r1;i<=vbox.r2;i++){for(j=vbox.g1;j<=vbox.g2;j++){for(k=vbox.b1;k<=vbox.b2;k++){index=getColorIndex(i,j,k);npix+=(histo[index]||0);}}}
1192vbox._count=npix;vbox._count_set=true;}
1193return vbox._count;},copy:function(){var vbox=this;return new VBox(vbox.r1,vbox.r2,vbox.g1,vbox.g2,vbox.b1,vbox.b2,vbox.histo);},avg:function(force){var vbox=this,histo=vbox.histo;
1193if(!vbox._avg||force){var ntot=0,mult=1<<(8-sigbits),rsum=0,gsum=0,bsum=0,hval,i,j,k,histoindex;for(i=vbox.r1;i<=vbox.r2;i++){for(j=vbox.g1;j<=vbox.g2;j++){for(k=vbox.b1;k<=vbox.b2;k++){histoindex=getColorIndex(i,j,k);hval=histo[histoindex]||0;ntot+=hval;rsum+=(hval*(i+0.5)*mult);gsum+=(hval*(j+0.5)*mult);bsum+=(hval*(k+0.5)*mult);}}}
1194if(ntot){vbox._avg=[~~(rsum/ntot),~~(gsum/ntot),~~(bsum/ntot)];}else{vbox._avg=[~~(mult*(vbox.r1+vbox.r2+1)/2),~~(mult*(vbox.g1+vbox.g2+1)/2),~~(mult*(vbox.b1+vbox.b2+1)/2)];}}
1195return vbox._avg;},contains:function(pixel){var vbox=this,rval=pixel[0]>>rshift;gval=pixel[1]>>rshift;bval=pixel[2]>>rshift;return(rval>=vbox.r1&&rval<=vbox.r2&&gval>=vbox.g1&&gval<=vbox.g2&&bval>=vbox.b1&&bval<=vbox.b2);}};function CMap(){this.vboxes=new PQueue(function(a,b){return pv.naturalOrder(a.vbox.count()*a.vbox.volume(),b.vbox.count()*b.vbox.volume());});}
1196CMap.prototype={push:function(vbox){this.vboxes.push({vbox:vbox,color:vbox.avg()});},palette:function(){return this.vboxes.map(function(vb){return vb.color;});},size:function(){return this.vboxes.size();},map:function(color){var vboxes=this.vboxes;for(var i=0;i<vboxes.size();i++){if(vboxes.peek(i).vbox.contains(color)){return vboxes.peek(i).color;}}
1197return this.nearest(color);},nearest:function(color){var vboxes=this.vboxes,d1,d2,pColor;for(var i=0;i<vboxes.size();i++){d2=Math.sqrt(Math.pow(color[0]-vboxes.peek(i).color[0],2)+
1198Math.pow(color[1]-vboxes.peek(i).color[1],2)+
1199Math.pow(color[2]-vboxes.peek(i).color[2],2));if(d2<d1||d1===undefined){d1=d2;pColor=vboxes.peek(i).color;}}
1200return pColor;},forcebw:function(){var vboxes=this.vboxes;vboxes.sort(function(a,b){return pv.naturalOrder(pv.sum(a.color),pv.sum(b.color));});var lowest=vboxes[0].color;if(lowest[0]<5&&lowest[1]<5&&lowest[2]<5)
1201vboxes[0].color=[0,0,0];var idx=vboxes.length-1,highest=vboxes[idx].color;if(highest[0]>251&&highest[1]>251&&highest[2]>251)
1202vboxes[idx].color=[255,255,255];}};function getHisto(pixels){var histosize=1<<(3*sigbits),histo=new Array(histosize),index,rval,gval,bval;pixels.forEach(function(pixel){rval=pixel[0]>>rshift;gval=pixel[1]>>rshift;bval=pixel[2]>>rshift;index=getColorIndex(rval,gval,bval);histo[index]=(histo[index]||0)+1;});return histo;}
1203function vboxFromPixels(pixels,histo){var rmin=1000000,rmax=0,gmin=1000000,gmax=0,bmin=1000000,bmax=0,rval,gval,bval;pixels.forEach(function(pixel){rval=pixel[0]>>rshift;gval=pixel[1]>>rshift;bval=pixel[2]>>rshift;if(rval<rmin)rmin=rval;else if(rval>rmax)rmax=rval;if(gval<gmin)gmin=gval;else if(gval>gmax)gmax=gval;if(bval<bmin)bmin=bval;else if(bval>bmax)bmax=bval;});return new VBox(rmin,rmax,gmin,gmax,bmin,bmax,histo);}
1204function medianCutApply(histo,vbox){if(!vbox.count())return;var rw=vbox.r2-vbox.r1+1,gw=vbox.g2-vbox.g1+1,bw=vbox.b2-vbox.b1+1,maxw=pv.max([rw,gw,bw]);if(vbox.count()==1){return[vbox.copy()];}
1205var total=0,partialsum=[],lookaheadsum=[],i,j,k,sum,index;if(maxw==rw){for(i=vbox.r1;i<=vbox.r2;i++){sum=0;for(j=vbox.g1;j<=vbox.g2;j++){for(k=vbox.b1;k<=vbox.b2;k++){index=getColorIndex(i,j,k);sum+=(histo[index]||0);}}
1206total+=sum;partialsum[i]=total;}}
1207else if(maxw==gw){for(i=vbox.g1;i<=vbox.g2;i++){sum=0;for(j=vbox.r1;j<=vbox.r2;j++){for(k=vbox.b1;k<=vbox.b2;k++){index=getColorIndex(j,i,k);sum+=(histo[index]||0);}}
1208total+=sum;partialsum[i]=total;}}
1209else{for(i=vbox.b1;i<=vbox.b2;i++){sum=0;for(j=vbox.r1;j<=vbox.r2;j++){for(k=vbox.g1;k<=vbox.g2;k++){index=getColorIndex(j,k,i);sum+=(histo[index]||0);}}
1210total+=sum;partialsum[i]=total;}}
1211partialsum.forEach(function(d,i){lookaheadsum[i]=total-d;});function doCut(color){var dim1=color+'1',dim2=color+'2',left,right,vbox1,vbox2,d2,count2=0;for(i=vbox[dim1];i<=vbox[dim2];i++){if(partialsum[i]>total/2){vbox1=vbox.copy();vbox2=vbox.copy();left=i-vbox[dim1];right=vbox[dim2]-i;if(left<=right)
1212d2=Math.min(vbox[dim2]-1,~~(i+right/2));else d2=Math.max(vbox[dim1],~~(i-1-left/2));while(!partialsum[d2])d2++;count2=lookaheadsum[d2];while(!count2&&partialsum[d2-1])count2=lookaheadsum[--d2];vbox1[dim2]=d2;vbox2[dim1]=vbox1[dim2]+1;return[vbox1,vbox2];}}}
1213return maxw==rw?doCut('r'):maxw==gw?doCut('g'):doCut('b');}
1214function quantize(pixels,maxcolors){if(!pixels.length||maxcolors<2||maxcolors>256){return false;}
1215var histo=getHisto(pixels),histosize=1<<(3*sigbits);var nColors=0;histo.forEach(function(){nColors++;});if(nColors<=maxcolors){}
1216var vbox=vboxFromPixels(pixels,histo),pq=new PQueue(function(a,b){return pv.naturalOrder(a.count(),b.count());});pq.push(vbox);function iter(lh,target){var ncolors=1,niters=0,vbox;while(niters<maxIterations){vbox=lh.pop();if(!vbox.count()){lh.push(vbox);niters++;continue;}
1217var vboxes=medianCutApply(histo,vbox),vbox1=vboxes[0],vbox2=vboxes[1];if(!vbox1){return;}
1218lh.push(vbox1);if(vbox2){lh.push(vbox2);ncolors++;}
1219if(ncolors>=target)return;if(niters++>maxIterations){return;}}}
1220iter(pq,fractByPopulations*maxcolors);var pq2=new PQueue(function(a,b){return pv.naturalOrder(a.count()*a.volume(),b.count()*b.volume());});while(pq.size()){pq2.push(pq.pop());}
1221iter(pq2,maxcolors-pq2.size());var cmap=new CMap();while(pq2.size()){cmap.push(pq2.pop());}
1222return cmap;}
1223return{quantize:quantize};})();
1224/*! This file is auto-generated */
1225/*!
1226 * imagesLoaded PACKAGED v5.0.0
1227 * JavaScript is all like "You images are done yet or what?"
1228 * MIT License
1229 */
1230!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
1231/*!
1232 * imagesLoaded v5.0.0
1233 * JavaScript is all like "You images are done yet or what?"
1234 * MIT License
1235 */
1236function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;
vendor: 4,803 bytes, lines 1236-1237
1236function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
1237;(function(factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports!=='undefined'){module.exports=factory(require('jquery'));}else{factory(jQuery);}}(function($){'use strict';var Slick=window.Slick||{};Slick=(function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:true,adaptiveHeight:false,appendArrows:$(element),appendDots:$(element),arrows:true,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>
1237',autoplay:false,autoplaySpeed:3000,centerMode:false,centerPadding:'50px',cssEase:'ease',customPaging:function(slider,i){return $('<button type="button" />').text(i+1);},dots:false,dotsClass:'slick-dots',draggable:true,easing:'linear',edgeFriction:0.35,fade:false,focusOnSelect:false,focusOnChange:false,infinite:true,initialSlide:0,lazyLoad:'ondemand',mobileFirst:false,pauseOnHover:true,pauseOnFocus:true,pauseOnDotsHover:false,respondTo:'window',responsive:null,rows:1,rtl:false,slide:'',slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:true,swipeToSlide:false,touchMove:true,touchThreshold:5,useCSS:true,useTransform:true,variableWidth:false,vertical:false,verticalSwiping:false,waitForAnimate:true,zIndex:1000};_.initials={animating:false,dragging:false,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:false,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:false,slideOffset:0,swipeLeft:null,swiping:false,$list:null,touchObject:{},transformsEnabled:false,unslicked:false};$.extend(_,_.initials);_.activeBreakpoint=null;_.animType=null;_.animProp=null;_.breakpoints=[];_.breakpointSettings=[];_.cssTransitions=false;_.focussed=false;_.interrupted=false;_.hidden='hidden';_.paused=true;_.positionProp=null;_.respondTo=null;_.rowCount=1;_.shouldClick=true;_.$slider=$(element);_.$slidesCache=null;_.transformType=null;_.transitionType=null;_.visibilityChange='visibilitychange';_.windowWidth=0;_.windowTimer=null;dataSettings=$(element).data('slick')||{};_.options=$.extend({},_.defaults,settings,dataSettings);_.currentSlide=_.options.initialSlide;_.originalSettings=_.options;if(typeof document.mozHidden!=='undefined'){_.hidden='mozHidden';_.visibilityChange='mozvisibilitychange';}else if(typeof document.webkitHidden!=='undefined'){_.hidden='webkitHidden';_.visibilityChange='webkitvisibilitychange';}
1238_.autoPlay=$.proxy(_.autoPlay,_);_.autoPlayClear=$.proxy(_.autoPlayClear,_);_.autoPlayIterator=$.proxy(_.autoPlayIterator,_);_.changeSlide=$.proxy(_.changeSlide,_);_.clickHandler=$.proxy(_.clickHandler,_);_.selectHandler=$.proxy(_.selectHandler,_);_.setPosition=$.proxy(_.setPosition,_);_.swipeHandler=$.proxy(_.swipeHandler,_);_.dragHandler=$.proxy(_.dragHandler,_);_.keyHandler=$.proxy(_.keyHandler,_);_.instanceUid=instanceUid++;_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;_.registerBreakpoints();_.init(true);}
1239return Slick;}());Slick.prototype.activateADA=function(){var _=this;_.$slideTrack.find('.slick-active').attr({'aria-hidden':'false'}).find('a, input, button, select').attr({'tabindex':'0'});};Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if(typeof(index)==='boolean'){addBefore=index;index=null;}else if(index<0||(index>=_.slideCount)){return false;}
1240_.unload();if(typeof(index)==='number'){if(index===0&&_.$slides.length===0){$(markup).appendTo(_.$slideTrack);}else if(addBefore){$(markup).insertBefore(_.$slides.eq(index));}else{$(markup).insertAfter(_.$slides.eq(index));}}else{if(addBefore===true){$(markup).prependTo(_.$slideTrack);}else{$(markup).appendTo(_.$slideTrack);}}
1241_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slides.each(function(index,element){$(element).attr('data-slick-index',index);});_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.animateHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.animate({height:targetHeight},_.options.speed);}};Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight();if(_.options.rtl===true&&_.options.vertical===false){targetLeft=-targetLeft;}
1242if(_.transformsEnabled===false){if(_.options.vertical===false){_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback);}else{_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback);}}else{if(_.cssTransitions===false){if(_.options.rtl===true){_.currentLeft=-(_.currentLeft);}
1243$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now);if(_.options.vertical===false){animProps[_.animType]='translate('+
1244now+'px, 0px)';_.$slideTrack.css(animProps);}else{animProps[_.animType]='translate(0px,'+
1245now+'px)';_.$slideTrack.css(animProps);}},complete:function(){if(callback){callback.call();}}});}else{_.applyTransition();targetLeft=Math.ceil(targetLeft);if(_.options.vertical===false){animProps[_.animType]='translate3d('+targetLeft+'px, 0px, 0px)';}else{animProps[_.animType]='translate3d(0px,'+targetLeft+'px, 0px)';}
1246_.$slideTrack.css(animProps);if(callback){setTimeout(function(){_.disableTransition();callback.call();},_.options.speed);}}}};Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;if(asNavFor&&asNavFor!==null){asNavFor=$(asNavFor).not(_.$slider);}
1247return asNavFor;};Slick.prototype.asNavFor=function(index){var _=this,asNavFor=_.getNavTarget();if(asNavFor!==null&&typeof asNavFor==='object'){asNavFor.each(function(){var target=$(this).slick('getSlick');
1247if(!target.unslicked){target.slideHandler(index,true);}});}};Slick.prototype.applyTransition=function(slide){var _=this,transition={};if(_.options.fade===false){transition[_.transitionType]=_.transformType+' '+_.options.speed+'ms '+_.options.cssEase;}else{transition[_.transitionType]='opacity '+_.options.speed+'ms '+_.options.cssEase;}
1248if(_.options.fade===false){_.$slideTrack.css(transition);}else{_.$slides.eq(slide).css(transition);}};Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear();if(_.slideCount>_.options.slidesToShow){_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed);}};Slick.prototype.autoPlayClear=function(){var _=this;if(_.autoPlayTimer){clearInterval(_.autoPlayTimer);}};Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;if(!_.paused&&!_.interrupted&&!_.focussed){if(_.options.infinite===false){if(_.direction===1&&(_.currentSlide+1)===(_.slideCount-1)){_.direction=0;}
1249else if(_.direction===0){slideTo=_.currentSlide-_.options.slidesToScroll;if(_.currentSlide-1===0){_.direction=1;}}}
1250_.slideHandler(slideTo);}};Slick.prototype.buildArrows=function(){var _=this;if(_.options.arrows===true){_.$prevArrow=$(_.options.prevArrow).addClass('slick-arrow');_.$nextArrow=$(_.options.nextArrow).addClass('slick-arrow');if(_.slideCount>_.options.slidesToShow){_.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');_.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.prependTo(_.options.appendArrows);}
1251if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.appendTo(_.options.appendArrows);}
1252if(_.options.infinite!==true){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');}}else{_.$prevArrow.add(_.$nextArrow).addClass('slick-hidden').attr({'aria-disabled':'true','tabindex':'-1'});}}};Slick.prototype.buildDots=function(){var _=this,i,dot;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$slider.addClass('slick-dotted');dot=$('<ul />').addClass(_.options.dotsClass);for(i=0;i<=_.getDotCount();i+=1){dot.append($('<li />').append(_.options.customPaging.call(this,_,i)));}
1253_.$dots=dot.appendTo(_.options.appendDots);_.$dots.find('li').first().addClass('slick-active');}};Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+':not(.slick-cloned)').addClass('slick-slide');_.slideCount=_.$slides.length;_.$slides.each(function(index,element){$(element).attr('data-slick-index',index).data('originalStyling',$(element).attr('style')||'');});_.$slider.addClass('slick-slider');_.$slideTrack=(_.slideCount===0)?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent();_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent();_.$slideTrack.css('opacity',0);if(_.options.centerMode===true||_.options.swipeToSlide===true){_.options.slidesToScroll=1;}
1254$('img[data-lazy]',_.$slider).not('[src]').addClass('slick-loading');_.setupInfinite();_.buildArrows();_.buildDots();_.updateDots();_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);if(_.options.draggable===true){_.$list.addClass('draggable');}};Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;newSlides=document.createDocumentFragment();originalSlides=_.$slider.children();if(_.options.rows>0){slidesPerSection=_.options.slidesPerRow*_.options.rows;numOfSlides=Math.ceil(originalSlides.length/slidesPerSection);for(a=0;a<numOfSlides;a++){var slide=document.createElement('div');for(b=0;b<_.options.rows;b++){var row=document.createElement('div');for(c=0;c<_.options.slidesPerRow;c++){var target=(a*slidesPerSection+((b*_.options.slidesPerRow)+c));if(originalSlides.get(target)){row.appendChild(originalSlides.get(target));}}
1255slide.appendChild(row);}
1256newSlides.appendChild(slide);}
1257_.$slider.empty().append(newSlides);_.$slider.children().children().children().css({'width':(100/_.options.slidesPerRow)+'%','display':'inline-block'});}};Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakp
1257oint,respondToWidth,triggerBreakpoint=false;var sliderWidth=_.$slider.width();var windowWidth=window.innerWidth||$(window).width();if(_.respondTo==='window'){respondToWidth=windowWidth;}else if(_.respondTo==='slider'){respondToWidth=sliderWidth;}else if(_.respondTo==='min'){respondToWidth=Math.min(windowWidth,sliderWidth);}
1258if(_.options.responsive&&_.options.responsive.length&&_.options.responsive!==null){targetBreakpoint=null;for(breakpoint in _.breakpoints){if(_.breakpoints.hasOwnProperty(breakpoint)){if(_.originalSettings.mobileFirst===false){if(respondToWidth<_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint];}}else{if(respondToWidth>_.breakpoints[breakpoint]){targetBreakpoint=_.breakpoints[breakpoint];}}}}
1259if(targetBreakpoint!==null){if(_.activeBreakpoint!==null){if(targetBreakpoint!==_.activeBreakpoint||forceUpdate){_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint);}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide;}
1260_.refresh(initial);}
1261triggerBreakpoint=targetBreakpoint;}}else{_.activeBreakpoint=targetBreakpoint;if(_.breakpointSettings[targetBreakpoint]==='unslick'){_.unslick(targetBreakpoint);}else{_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]);if(initial===true){_.currentSlide=_.options.initialSlide;}
1262_.refresh(initial);}
1263triggerBreakpoint=targetBreakpoint;}}else{if(_.activeBreakpoint!==null){_.activeBreakpoint=null;_.options=_.originalSettings;if(initial===true){_.currentSlide=_.options.initialSlide;}
1264_.refresh(initial);triggerBreakpoint=targetBreakpoint;}}
1265if(!initial&&triggerBreakpoint!==false){_.$slider.trigger('breakpoint',[_,triggerBreakpoint]);}}};Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;if($target.is('a')){event.preventDefault();}
1266if(!$target.is('li')){$target=$target.closest('li');}
1267unevenOffset=(_.slideCount%_.options.slidesToScroll!==0);indexOffset=unevenOffset?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll;switch(event.data.message){case'previous':slideOffset=indexOffset===0?_.options.slidesToScroll:_.options.slidesToShow-indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide-slideOffset,false,dontAnimate);}
1268break;case'next':slideOffset=indexOffset===0?_.options.slidesToScroll:indexOffset;if(_.slideCount>_.options.slidesToShow){_.slideHandler(_.currentSlide+slideOffset,false,dontAnimate);}
1269break;case'index':var index=event.data.index===0?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),false,dontAnimate);$target.children().trigger('focus');break;default:return;}};Slick.prototype.checkNavigable=function(index){var _=this,navigables,prevNavigable;navigables=_.getNavigableIndexes();prevNavigable=0;if(index>navigables[navigables.length-1]){index=navigables[navigables.length-1];}else{for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break;}
1270prevNavigable=navigables[n];}}
1271return index;};Slick.prototype.cleanUpEvents=function(){var _=this;if(_.options.dots&&_.$dots!==null){$('li',_.$dots).off('click.slick',_.changeSlide).off('mouseenter.slick',$.proxy(_.interrupt,_,true)).off('mouseleave.slick',$.proxy(_.interrupt,_,false));if(_.options.accessibility===true){_.$dots.off('keydown.slick',_.keyHandler);}}
1272_.$slider.off('focus.slick blur.slick');if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow&&_.$prevArrow.off('click.slick',_.changeSlide);_.$nextArrow&&_.$nextArrow.off('click.slick',_.changeSlide);if(_.options.accessibility===true){_.$prevArrow&&_.$prevArrow.off('keydown.slick',_.keyHandler);_.$nextArrow&&_.$nextArrow.off('keydown.slick',_.keyHandler);}}
1273_.$list.off('touchstart.slick mousedown.slick',_.swipeHandler);_.$list.off('touchmove.slick mousemove.slick',_.swipeHandler);_.$list.off('touchend.slick mouseup.slick',_.swipeHandler);
1273_.$list.off('touchcancel.slick mouseleave.slick',_.swipeHandler);_.$list.off('click.slick',_.clickHandler);$(document).off(_.visibilityChange,_.visibility);_.cleanUpSlideEvents();if(_.options.accessibility===true){_.$list.off('keydown.slick',_.keyHandler);}
1274if(_.options.focusOnSelect===true){$(_.$slideTrack).children().off('click.slick',_.selectHandler);}
1275$(window).off('orientationchange.slick.slick-'+_.instanceUid,_.orientationChange);$(window).off('resize.slick.slick-'+_.instanceUid,_.resize);$('[draggable!=true]',_.$slideTrack).off('dragstart',_.preventDefault);$(window).off('load.slick.slick-'+_.instanceUid,_.setPosition);};Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.off('mouseleave.slick',$.proxy(_.interrupt,_,false));};Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;if(_.options.rows>0){originalSlides=_.$slides.children().children();originalSlides.removeAttr('style');_.$slider.empty().append(originalSlides);}};Slick.prototype.clickHandler=function(event){var _=this;if(_.shouldClick===false){event.stopImmediatePropagation();event.stopPropagation();event.preventDefault();}};Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear();_.touchObject={};_.cleanUpEvents();$('.slick-cloned',_.$slider).detach();if(_.$dots){_.$dots.remove();}
1276if(_.$prevArrow&&_.$prevArrow.length){_.$prevArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove();}}
1277if(_.$nextArrow&&_.$nextArrow.length){_.$nextArrow.removeClass('slick-disabled slick-arrow slick-hidden').removeAttr('aria-hidden aria-disabled tabindex').css('display','');if(_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove();}}
1278if(_.$slides){_.$slides.removeClass('slick-slide slick-active slick-center slick-visible slick-current').removeAttr('aria-hidden').removeAttr('data-slick-index').each(function(){$(this).attr('style',$(this).data('originalStyling'));});_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.detach();_.$list.detach();_.$slider.append(_.$slides);}
1279_.cleanUpRows();_.$slider.removeClass('slick-slider');_.$slider.removeClass('slick-initialized');_.$slider.removeClass('slick-dotted');_.unslicked=true;if(!refresh){_.$slider.trigger('destroy',[_]);}};Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]='';if(_.options.fade===false){_.$slideTrack.css(transition);}else{_.$slides.eq(slide).css(transition);}};Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex});_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex});if(callback){setTimeout(function(){_.disableTransition(slideIndex);callback.call();},_.options.speed);}}};Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;if(_.cssTransitions===false){_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing);}else{_.applyTransition(slideIndex);_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2});}};Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;if(filter!==null){_.$slidesCache=_.$slides;_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.filter(filter).appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.focusHandler=function(){var _=this;_.$slider.off('focus.slick blur.slick').on('focus.slick','*',function(event){var $sf=$(this);setTimeout(function(){if(_.options.pauseOnFocus){if($sf.is(':focus')){_.focussed=true;_.autoPlay();}}},0);}).on('blur.slick','*',function(event){var $sf=$(this);if(_.options.pauseOnFocus){_.focussed=false;_.autoPlay();}});};Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _=this;return _.currentSlide;};Slick.prototype.getDotCount=function(){var _=this;var breakPoint=0;var counter=0;var pagerQty=0;if(_.options.infinite===true){if(_.slideCount<=_.options.slidesToShow){++pagerQty;}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}}}else if(_.options.centerMode===true){pagerQty=_.slideCount;}else if(!_.options.asNavFor){pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);}else{while(breakPoint<_.slideCount){++pagerQty;breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}}
1280return pagerQty-1;};Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;_.slideOffset=0;verticalHeight=_.$slides.first().outerHeight(true);if(_.options.infinite===true){if(_.slideCount>_.options.slidesToShow){_.slideOffset=(_.slideWidth*_.options.slidesToShow)*-1;coef=-1
1281if(_.options.vertical===true&&_.options.centerMode===true){if(_.options.slidesToShow===2){coef=-1.5;}else if(_.options.slidesToShow===1){coef=-2}}
1282verticalOffset=(verticalHeight*_.options.slidesToShow)*coef;}
1283if(_.slideCount%_.options.slidesToScroll!==0){if(slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow){if(slideIndex>_.slideCount){_.slideOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth)*-1;verticalOffset=((_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight)*-1;}else{_.slideOffset=((_.slideCount%_.options.slidesToScroll)*_.slideWidth)*-1;verticalOffset=((_.slideCount%_.options.slidesToScroll)*verticalHeight)*-1;}}}}else{if(slideIndex+_.options.slidesToShow>_.slideCount){_.slideOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*_.slideWidth;verticalOffset=((slideIndex+_.options.slidesToShow)-_.slideCount)*verticalHeight;}}
1284if(_.slideCount<=_.options.slidesToShow){_.slideOffset=0;verticalOffset=0;}
1285if(_.options.centerMode===true&&_.slideCount<=_.options.slidesToShow){_.slideOffset=((_.slideWidth*Math.floor(_.options.slidesToShow))/2)-((_.slideWidth*_.slideCount)/2);}else if(_.options.centerMode===true&&_.options.infinite===true){_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth;}else if(_.options.centerMode===true){_.slideOffset=0;_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2);}
1286if(_.options.vertical===false){targetLeft=((slideIndex*_.slideWidth)*-1)+_.slideOffset;}else{targetLeft=((slideIndex*verticalHeight)*-1)+verticalOffset;}
1287if(_.options.variableWidth===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow);}
1288if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;}else{targetLeft=0;}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;}
1289if(_.options.centerMode===true){if(_.slideCount<=_.options.slidesToShow||_.options.infinite===false){targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex);}else{targetSlide=_.$slideTrack.children('.slick-slide').eq(slideIndex+_.options.slidesToShow+1);}
1290if(_.options.rtl===true){if(targetSlide[0]){targetLeft=(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width())*-1;}else{targetLeft=0;}}else{targetLeft=targetSlide[0]?targetSlide[0].offsetLeft*-1:0;}
1291targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2;}}
1292return targetLeft;};Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _=this;return _.options[option];};Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;if(_.options.infinite===false){max=_.slideCount;}else{breakPoint=_.options.slidesToScroll*-1;counter=_.options.slidesToScroll*-1;max=_.slideCount*2;}
1293while(breakPoint<max){indexes.push(breakPoint);breakPoint=counter+_.options.slidesToScroll;counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;}
1294return indexes;};Slick.prototype.getSlick=function(){return this;};Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,swipeTarget,centerOffset;centerOffset=_.options.centerMode===true?Math.floor(_.$list.width()/2):0;swipeTarget=(_.swipeLeft*-1)+centerOffset;if(_.options.swipeToSlide===true){_.$slideTrack.find('.slick-slide').each(function(index,slide){var slideOuterWidth,slideOffset,slideRightBoundary;slideOuterWidth=$(slide).outerWidth();slideOffset=slide.offsetLeft;if(_.options.centerMode!==true){slideOffset+=(slideOuterWidth/2);}
1295slideRightBoundary=slideOffset+(slideOuterWidth);if(swipeTarget<slideRightBoundary){swipedSlide=slide;return false;}});slidesTraversed=Math.abs($(swipedSlide).attr('data-slick-index')-_.currentSlide)||1;return slidesTraversed;}else{return _.options.slidesToScroll;}};Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _=this;_.changeSlide({data:{message:'index',index:parseInt(slide)}},dontAnimate);};Slick.prototype.init=function(creation){var _=this;if(!$(_.$slider).hasClass('slick-initialized')){$(_.$slider).addClass('slick-initialized');_.buildRows();_.buildOut();_.setProps();_.startLoad();_.loadSlider();_.initializeEvents();_.updateArrows();_.updateDots();_.checkResponsive(true);_.focusHandler();}
1296if(creation){_.$slider.trigger('init',[_]);}
1297if(_.options.accessibility===true){_.initADA();}
1298if(_.options.autoplay){_.paused=false;_.autoPlay();}};Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter(function(val){return(val>=0)&&(val<_.slideCount);});_.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({'aria-hidden':'true','tabindex':'-1'}).find('a, input, button, select').attr({'tabindex':'-1'});if(_.$dots!==null){_.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i){var slideControlIndex=tabControlIndexes.indexOf(i);$(this).attr({'role':'tabpanel','id':'slick-slide'+_.instanceUid+i,'tabindex':-1});if(slideControlIndex!==-1){var ariaButtonControl='slick-slide-control'+_.instanceUid+slideControlIndex
1299if($('#'+ariaButtonControl).length){$(this).attr({'aria-describedby':ariaButtonControl});}}});_.$dots.attr('role','tablist').find('li').each(function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({'role':'presentation'});$(this).find('button').first().attr({'role':'tab','id':'slick-slide-control'+_.instanceUid+i,'aria-controls':'slick-slide'+_.instanceUid+mappedSlideIndex,'aria-label':(i+1)+' of '+numDotGroups,'aria-selected':null,'tabindex':'-1'});}).eq(_.currentSlide).find('button').attr({'aria-selected':'true','tabindex':'0'}).end();}
1300for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++){if(_.options.focusOnChange){_.$slides.eq(i).attr({'tabindex':'0'});}else{_.$slides.eq(i).removeAttr('tabindex');}}
1301_.activateADA();};Slick.prototype.initArrowEvents=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.off('click.slick').on('click.slick',{message:'previous'},_.changeSlide);_.$nextArrow.off('click.slick').on('click.slick',{message:'next'},_.changeSlide);
1301if(_.options.accessibility===true){_.$prevArrow.on('keydown.slick',_.keyHandler);_.$nextArrow.on('keydown.slick',_.keyHandler);}}};Slick.prototype.initDotEvents=function(){var _=this;if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){$('li',_.$dots).on('click.slick',{message:'index'},_.changeSlide);if(_.options.accessibility===true){_.$dots.on('keydown.slick',_.keyHandler);}}
1302if(_.options.dots===true&&_.options.pauseOnDotsHover===true&&_.slideCount>_.options.slidesToShow){$('li',_.$dots).on('mouseenter.slick',$.proxy(_.interrupt,_,true)).on('mouseleave.slick',$.proxy(_.interrupt,_,false));}};Slick.prototype.initSlideEvents=function(){var _=this;if(_.options.pauseOnHover){_.$list.on('mouseenter.slick',$.proxy(_.interrupt,_,true));_.$list.on('mouseleave.slick',$.proxy(_.interrupt,_,false));}};Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents();_.initDotEvents();_.initSlideEvents();_.$list.on('touchstart.slick mousedown.slick',{action:'start'},_.swipeHandler);_.$list.on('touchmove.slick mousemove.slick',{action:'move'},_.swipeHandler);_.$list.on('touchend.slick mouseup.slick',{action:'end'},_.swipeHandler);
1302_.$list.on('touchcancel.slick mouseleave.slick',{action:'end'},_.swipeHandler);_.$list.on('click.slick',_.clickHandler);$(document).on(_.visibilityChange,$.proxy(_.visibility,_));if(_.options.accessibility===true){_.$list.on('keydown.slick',_.keyHandler);}
1303if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on('click.slick',_.selectHandler);}
1304$(window).on('orientationchange.slick.slick-'+_.instanceUid,$.proxy(_.orientationChange,_));$(window).on('resize.slick.slick-'+_.instanceUid,$.proxy(_.resize,_));$('[draggable!=true]',_.$slideTrack).on('dragstart',_.preventDefault);$(window).on('load.slick.slick-'+_.instanceUid,_.setPosition);$(_.setPosition);};Slick.prototype.initUI=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.show();_.$nextArrow.show();}
1305if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.show();}};Slick.prototype.keyHandler=function(event){var _=this;if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')){if(event.keyCode===37&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?'next':'previous'}});}else if(event.keyCode===39&&_.options.accessibility===true){_.changeSlide({data:{message:_.options.rtl===true?'previous':'next'}});}}};Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$('img[data-lazy]',imagesScope).each(function(){var image=$(this),imageSource=$(this).attr('data-lazy'),imageSrcSet=$(this).attr('data-srcset'),imageSizes=$(this).attr('data-sizes')||_.$slider.attr('data-sizes'),imageToLoad=document.createElement('img');imageToLoad.onload=function(){image.animate({opacity:0}
1305,100,function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes);}}
1306image.attr('src',imageSource).animate({opacity:1},200,function(){image.removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');});_.$slider.trigger('lazyLoaded',[_,image,imageSource]);});};imageToLoad.onerror=function(){image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);};imageToLoad.src=imageSource;});}
1307if(_.options.centerMode===true){if(_.options.infinite===true){rangeStart=_.currentSlide+(_.options.slidesToShow/2+1);rangeEnd=rangeStart+_.options.slidesToShow+2;}else{rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1));rangeEnd=2+(_.options.slidesToShow/2+1)+_.currentSlide;}}else{rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide;rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow);if(_.options.fade===true){if(rangeStart>0)rangeStart--;if(rangeEnd<=_.slideCount)rangeEnd++;}}
1308loadRange=_.$slider.find('.slick-slide').slice(rangeStart,rangeEnd);if(_.options.lazyLoad==='anticipated'){var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find('.slick-slide');for(var i=0;i<_.options.slidesToScroll;i++){if(prevSlide<0)prevSlide=_.slideCount-1;loadRange=loadRange.add($slides.eq(prevSlide));loadRange=loadRange.add($slides.eq(nextSlide));prevSlide--;nextSlide++;}}
1309loadImages(loadRange);if(_.slideCount<=_.options.slidesToShow){cloneRange=_.$slider.find('.slick-slide');loadImages(cloneRange);}else
1310if(_.currentSlide>=_.slideCount-_.options.slidesToShow){cloneRange=_.$slider.find('.slick-cloned').slice(0,_.options.slidesToShow);loadImages(cloneRange);}else if(_.currentSlide===0){cloneRange=_.$slider.find('.slick-cloned').slice(_.options.slidesToShow*-1);loadImages(cloneRange);}};Slick.prototype.loadSlider=function(){var _=this;_.setPosition();_.$slideTrack.css({opacity:1});_.$slider.removeClass('slick-loading');_.initUI();if(_.options.lazyLoad==='progressive'){_.progressiveLazyLoad();}};Slick.prototype.next=Slick.prototype.slickNext=function(){var _=this;_.changeSlide({data:{message:'next'}});};Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive();_.setPosition();};Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear();_.paused=true;};Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay();_.options.autoplay=true;_.paused=false;_.focussed=false;_.interrupted=false;};Slick.prototype.postSlide=function(index){var _=this;if(!_.unslicked){_.$slider.trigger('afterChange',[_,index]);_.animating=false;if(_.slideCount>_.options.slidesToShow){_.setPosition();}
1311_.swipeLeft=null;if(_.options.autoplay){_.autoPlay();}
1312if(_.options.accessibility===true){_.initADA();if(_.options.focusOnChange){var $currentSlide=$(_.$slides.get(_.currentSlide));$currentSlide.attr('tabindex',0).focus();}}}};Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _=this;_.changeSlide({data:{message:'previous'}});};Slick.prototype.preventDefault=function(event){event.preventDefault();};Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$('img[data-lazy]',_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;if($imgsToLoad.length){image=$imgsToLoad.first();imageSource=image.attr('data-lazy');imageSrcSet=image.attr('data-srcset');imageSizes=image.attr('data-sizes')||_.$slider.attr('data-sizes');imageToLoad=document.createElement('img');imageToLoad.onload=function(){if(imageSrcSet){image.attr('srcset',imageSrcSet);if(imageSizes){image.attr('sizes',imageSizes);}}
1312
1313image.attr('src',imageSource).removeAttr('data-lazy data-srcset data-sizes').removeClass('slick-loading');if(_.options.adaptiveHeight===true){_.setPosition();}
1314_.$slider.trigger('lazyLoaded',[_,image,imageSource]);_.progressiveLazyLoad();};imageToLoad.onerror=function(){if(tryCount<3){setTimeout(function(){_.progressiveLazyLoad(tryCount+1);},500);}else{image.removeAttr('data-lazy').removeClass('slick-loading').addClass('slick-lazyload-error');_.$slider.trigger('lazyLoadError',[_,image,imageSource]);_.progressiveLazyLoad();}};imageToLoad.src=imageSource;}else{_.$slider.trigger('allImagesLoaded',[_]);}};Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow;if(!_.options.infinite&&(_.currentSlide>lastVisibleIndex)){_.currentSlide=lastVisibleIndex;}
1315if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0;}
1316currentSlide=_.currentSlide;_.destroy(true);$.extend(_,_.initials,{currentSlide:currentSlide});_.init();if(!initializing){_.changeSlide({data:{message:'index',index:currentSlide}},false);}};Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if($.type(responsiveSettings)==='array'&&responsiveSettings.length){_.respondTo=_.options.respondTo||'window';for(breakpoint in responsiveSettings){l=_.breakpoints.length-1;if(responsiveSettings.hasOwnProperty(breakpoint)){currentBreakpoint=responsiveSettings[breakpoint].breakpoint;while(l>=0){if(_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint){_.breakpoints.splice(l,1);}
1317l--;}
1318_.breakpoints.push(currentBreakpoint);_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings;}}
1319_.breakpoints.sort(function(a,b){return(_.options.mobileFirst)?a-b:b-a;});}};Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass('slick-slide');_.slideCount=_.$slides.length;if(_.currentSlide>=_.slideCount&&_.currentSlide!==0){_.currentSlide=_.currentSlide-_.options.slidesToScroll;}
1320if(_.slideCount<=_.options.slidesToShow){_.currentSlide=0;}
1321_.registerBreakpoints();_.setProps();_.setupInfinite();_.buildArrows();_.updateArrows();_.initArrowEvents();_.buildDots();_.updateDots();_.initDotEvents();_.cleanUpSlideEvents();_.initSlideEvents();_.checkResponsive(false,true);if(_.options.focusOnSelect===true){$(_.$slideTrack).children().on('click.slick',_.selectHandler);}
1322_.setSlideClasses(typeof _.currentSlide==='number'?_.currentSlide:0);_.setPosition();_.focusHandler();_.paused=!_.options.autoplay;_.autoPlay();_.$slider.trigger('reInit',[_]);};Slick.prototype.resize=function(){var _=this;if($(window).width()!==_.windowWidth){clearTimeout(_.windowDelay);_.windowDelay=window.setTimeout(function(){_.windowWidth=$(window).width();_.checkResponsive();if(!_.unslicked){_.setPosition();}},50);}};Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(typeof(index)==='boolean'){removeBefore=index;index=removeBefore===true?0:_.slideCount-1;}else{index=removeBefore===true?--index:index;}
1323if(_.slideCount<1||index<0||index>_.slideCount-1){return false;}
1324_.unload();if(removeAll===true){_.$slideTrack.children().remove();}else{_.$slideTrack.children(this.options.slide).eq(index).remove();}
1325_.$slides=_.$slideTrack.children(this.options.slide);_.$slideTrack.children(this.options.slide).detach();_.$slideTrack.append(_.$slides);_.$slidesCache=_.$slides;_.reinit();};Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;if(_.options.rtl===true){position=-position;}
1326x=_.positionProp=='left'?Math.ceil(position)+'px':'0px';y=_.positionProp=='top'?Math.ceil(position)+'px':'0px';positionProps[_.positionProp]=position;if(_.transformsEnabled===false){_.$slideTrack.css(positionProps);}else{positionProps={};if(_.cssTransitions===false){positionProps[_.animType]='translate('+x+', '+y+')';_.$slideTrack.css(positionProps);}else{positionProps[_.animType]='translate3d('+x+', '+y+', 0px)';_.$slideTrack.css(positionProps);}}};Slick.prototype.setDimensions=function(){var _=this;if(_.options.vertical===false){if(_.options.centerMode===true){_.$list.css({padding:('0px '+_.options.centerPadding)});}}else{_.$list.height(_.$slides.first().outerHeight(true)*_.options.slidesToShow);if(_.options.centerMode===true){_.$list.css({padding:(_.options.centerPadding+' 0px')}
1326);}}
1327_.listWidth=_.$list.width();_.listHeight=_.$list.height();if(_.options.vertical===false&&_.options.variableWidth===false){_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow);_.$slideTrack.width(Math.ceil((_.slideWidth*_.$slideTrack.children('.slick-slide').length)));}else if(_.options.variableWidth===true){_.$slideTrack.width(5000*_.slideCount);}else{_.slideWidth=Math.ceil(_.listWidth);_.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true)*_.$slideTrack.children('.slick-slide').length)));}
1328var offset=_.$slides.first().outerWidth(true)-_.$slides.first().width();if(_.options.variableWidth===false)_.$slideTrack.children('.slick-slide').width(_.slideWidth-offset);};Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each(function(index,element){targetLeft=(_.slideWidth*index)*-1;if(_.options.rtl===true){$(element).css({position:'relative',right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0});}else{$(element).css({position:'relative',left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}
1328);}});_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1});};Slick.prototype.setHeight=function(){var _=this;if(_.options.slidesToShow===1&&_.options.adaptiveHeight===true&&_.options.vertical===false){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(true);_.$list.css('height',targetHeight);}};Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=false,type;if($.type(arguments[0])==='object'){option=arguments[0];refresh=arguments[1];type='multiple';}else if($.type(arguments[0])==='string'){option=arguments[0];value=arguments[1];refresh=arguments[2];if(arguments[0]==='responsive'&&$.type(arguments[1])==='array'){type='responsive';}else if(typeof arguments[1]!=='undefined'){type='single';}}
1329if(type==='single'){_.options[option]=value;}else if(type==='multiple'){$.each(option,function(opt,val){_.options[opt]=val;});}else if(type==='responsive'){for(item in value){if($.type(_.options.responsive)!=='array'){_.options.responsive=[value[item]];}else{l=_.options.responsive.length-1;while(l>=0){if(_.options.responsive[l].breakpoint===value[item].breakpoint){_.options.responsive.splice(l,1);}
1330l--;}
1331_.options.responsive.push(value[item]);}}}
1332if(refresh){_.unload();_.reinit();}};Slick.prototype.setPosition=function(){var _=this;_.setDimensions();_.setHeight();if(_.options.fade===false){_.setCSS(_.getLeft(_.currentSlide));}else{_.setFade();}
1333_.$slider.trigger('setPosition',[_]);};Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=_.options.vertical===true?'top':'left';if(_.positionProp==='top'){_.$slider.addClass('slick-vertical');}else{_.$slider.removeClass('slick-vertical');}
1334if(bodyStyle.WebkitTransition!==undefined||bodyStyle.MozTransition!==undefined||bodyStyle.msTransition!==undefined){if(_.options.useCSS===true){_.cssTransitions=true;}}
1335if(_.options.fade){if(typeof _.options.zIndex==='number'){if(_.options.zIndex<3){_.options.zIndex=3;}}else{_.options.zIndex=_.defaults.zIndex;}}
1336if(bodyStyle.OTransform!==undefined){_.animType='OTransform';_.transformType='-o-transform';_.transitionType='OTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}
1337if(bodyStyle.MozTransform!==undefined){_.animType='MozTransform';_.transformType='-moz-transform';_.transitionType='MozTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.MozPerspective===undefined)_.animType=false;}
1338if(bodyStyle.webkitTransform!==undefined){_.animType='webkitTransform';_.transformType='-webkit-transform';_.transitionType='webkitTransition';if(bodyStyle.perspectiveProperty===undefined&&bodyStyle.webkitPerspective===undefined)_.animType=false;}
1339if(bodyStyle.msTransform!==undefined){_.animType='msTransform';_.transformType='-ms-transform';_.transitionType='msTransition';if(bodyStyle.msTransform===undefined)_.animType=false;}
1340if(bodyStyle.transform!==undefined&&_.animType!==false){_.animType='transform';_.transformType='transform';_.transitionType='transition';}
1341_.transformsEnabled=_.options.useTransform&&(_.animType!==null&&_.animType!==false);};Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find('.slick-slide').removeClass('slick-active slick-center slick-current').attr('aria-hidden','true');_.$slides.eq(index).addClass('slick-current');if(_.options.centerMode===true){var evenCoef=_.options.slidesToShow%2===0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.infinite===true){if(index>=centerOffset&&index<=(_.slideCount-1)-centerOffset){_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass('slick-active').attr('aria-hidden','false');}else{indexOffset=_.options.slidesToShow+index;allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass('slick-active').attr('aria-hidden','false');}
1342if(index===0){allSlides.eq(_.options.slidesToShow+_.slideCount+1).addClass('slick-center');}else if(index===_.slideCount-1){allSlides.eq(_.options.slidesToShow).addClass('slick-center');}}
1343_.$slides.eq(index).addClass('slick-center');}else{if(index>=0&&index<=(_.slideCount-_.options.slidesToShow)){_.$slides.slice(index,index+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');}else if(allSlides.length<=_.options.slidesToShow){allSlides.addClass('slick-active').attr('aria-hidden','false');}else{remainder=_.slideCount%_.options.slidesToShow;indexOffset=_.options.infinite===true?_.options.slidesToShow+index:index;if(_.options.slidesToShow==_.options.slidesToScroll&&(_.slideCount-index)<_.options.slidesToShow){allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass('slick-active').attr('aria-hidden','false');}else{allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass('slick-active').attr('aria-hidden','false');}}}
1344if(_.options.lazyLoad==='ondemand'||_.options.lazyLoad==='anticipated'){_.lazyLoad();}};Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(_.options.fade===true){_.options.centerMode=false;}
1345if(_.options.infinite===true&&_.options.fade===false){slideIndex=null;if(_.slideCount>_.options.slidesToShow){if(_.options.centerMode===true){infiniteCount=_.options.slidesToShow+1;}else{infiniteCount=_.options.slidesToShow;}
1346for(i=_.slideCount;i>(_.slideCount-
1347infiniteCount);i-=1){slideIndex=i-1;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass('slick-cloned');}
1348for(i=0;i<infiniteCount+_.slideCount;i+=1){slideIndex=i;$(_.$slides[slideIndex]).clone(true).attr('id','').attr('data-slick-index',slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass('slick-cloned');}
1349_.$slideTrack.find('.slick-cloned').find('[id]').each(function(){$(this).attr('id','');});}}};Slick.prototype.interrupt=function(toggle){var _=this;if(!toggle){_.autoPlay();}
1350_.interrupted=toggle;};Slick.prototype.selectHandler=function(event){var _=this;var targetElement=$(event.target).is('.slick-slide')?$(event.target):$(event.target).parents('.slick-slide');
1350var index=parseInt(targetElement.attr('data-slick-index'));if(!index)index=0;if(_.slideCount<=_.options.slidesToShow){_.slideHandler(index,false,true);return;}
1351_.slideHandler(index);};Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;sync=sync||false;if(_.animating===true&&_.options.waitForAnimate===true){return;}
1352if(_.options.fade===true&&_.currentSlide===index){return;}
1353if(sync===false){_.asNavFor(index);}
1354targetSlide=index;targetLeft=_.getLeft(targetSlide);slideLeft=_.getLeft(_.currentSlide);_.currentLeft=_.swipeLeft===null?slideLeft:_.swipeLeft;if(_.options.infinite===false&&_.options.centerMode===false&&(index<0||index>_.getDotCount()*_.options.slidesToScroll)){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});}else{_.postSlide(targetSlide);}}
1355return;}else if(_.options.infinite===false&&_.options.centerMode===true&&(index<0||index>(_.slideCount-_.options.slidesToScroll))){if(_.options.fade===false){targetSlide=_.currentSlide;if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(slideLeft,function(){_.postSlide(targetSlide);});}else{_.postSlide(targetSlide);}}
1356return;}
1357if(_.options.autoplay){clearInterval(_.autoPlayTimer);}
1358if(targetSlide<0){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=_.slideCount-(_.slideCount%_.options.slidesToScroll);}else{animSlide=_.slideCount+targetSlide;}}else if(targetSlide>=_.slideCount){if(_.slideCount%_.options.slidesToScroll!==0){animSlide=0;}else{animSlide=targetSlide-_.slideCount;}}else{animSlide=targetSlide;}
1359_.animating=true;_.$slider.trigger('beforeChange',[_,_.currentSlide,animSlide]);oldSlide=_.currentSlide;_.currentSlide=animSlide;_.setSlideClasses(_.currentSlide);if(_.options.asNavFor){navTarget=_.getNavTarget();navTarget=navTarget.slick('getSlick');if(navTarget.slideCount<=navTarget.options.slidesToShow){navTarget.setSlideClasses(_.currentSlide);}}
1360_.updateDots();_.updateArrows();if(_.options.fade===true){if(dontAnimate!==true){_.fadeSlideOut(oldSlide);_.fadeSlide(animSlide,function(){_.postSlide(animSlide);});}else{_.postSlide(animSlide);}
1361_.animateHeight();return;}
1362if(dontAnimate!==true&&_.slideCount>_.options.slidesToShow){_.animateSlide(targetLeft,function(){_.postSlide(animSlide);});}else{_.postSlide(animSlide);}};Slick.prototype.startLoad=function(){var _=this;if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow){_.$prevArrow.hide();_.$nextArrow.hide();}
1363if(_.options.dots===true&&_.slideCount>_.options.slidesToShow){_.$dots.hide();}
1364_.$slider.addClass('slick-loading');};Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;xDist=_.touchObject.startX-_.touchObject.curX;yDist=_.touchObject.startY-_.touchObject.curY;r=Math.atan2(yDist,xDist);swipeAngle=Math.round(r*180/Math.PI);if(swipeAngle<0){swipeAngle=360-Math.abs(swipeAngle);}
1365if((swipeAngle<=45)&&(swipeAngle>=0)){return(_.options.rtl===false?'left':'right');}
1366if((swipeAngle<=360)&&(swipeAngle>=315)){return(_.options.rtl===false?'left':'right');}
1367if((swipeAngle>=135)&&(swipeAngle<=225)){return(_.options.rtl===false?'right':'left');}
1368if(_.options.verticalSwiping===true){if((swipeAngle>=35)&&(swipeAngle<=135)){return'down';}else{return'up';}}
1369return'vertical';};Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;_.dragging=false;_.swiping=false;if(_.scrolling){_.scrolling=false;return false;}
1370_.interrupted=false;_.shouldClick=(_.touchObject.swipeLength>10)?false:true;if(_.touchObject.curX===undefined){return false;}
1371if(_.touchObject.edgeHit===true){_.$slider.trigger('edge',[_,_.swipeDirection()]);}
1372if(_.touchObject.swipeLength>=_.touchObject.minSwipe){direction=_.swipeDirection();switch(direction){case'left':case'down':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount();_.currentDirection=0;break;case'right':case'up':slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount();_.currentDirection=1;break;default:}
1373if(direction!='vertical'){_.slideHandler(slideCount);_.touchObject={};_.$slider.trigger('swipe',[_,direction]);}}else{if(_.touchObject.startX!==_.touchObject.curX){_.slideHandler(_.currentSlide);_.touchObject={};}}};Slick.prototype.swipeHandler=function(event){var _=this;if((_.options.swipe===false)||('ontouchend'in document&&_.options.swipe===false)){return;}else if(_.options.draggable===false&&event.type.indexOf('mouse')!==-1){return;}
1374_.touchObject.fingerCount=event.originalEvent&&event.originalEvent.touches!==undefined?event.originalEvent.touches.length:1;_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold;if(_.options.verticalSwiping===true){_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold;}
1375switch(event.data.action){case'start':_.swipeStart(event);break;case'move':_.swipeMove(event);break;case'end':_.swipeEnd(event);break;}};Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=false,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;touches=event.originalEvent!==undefined?event.originalEvent.touches:null;if(!_.dragging||_.scrolling||touches&&touches.length!==1){return false;}
1376curLeft=_.getLeft(_.currentSlide);_.touchObject.curX=touches!==undefined?touches[0].pageX:event.clientX;_.touchObject.curY=touches!==undefined?touches[0].pageY:event.clientY;_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2)));verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)));if(!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4){_.scrolling=true;return false;}
1377if(_.options.verticalSwiping===true){_.touchObject.swipeLength=verticalSwipeLength;}
1378swipeDirection=_.swipeDirection();if(event.originalEvent!==undefined&&_.touchObject.swipeLength>4){_.swiping=true;event.preventDefault();}
1379positionOffset=(_.options.rtl===false?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1);if(_.options.verticalSwiping===true){positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1;}
1380swipeLength=_.touchObject.swipeLength;_.touchObject.edgeHit=false;if(_.options.infinite===false){if((_.currentSlide===0&&swipeDirection==='right')||(_.currentSlide>=_.getDotCount()&&swipeDirection==='left')){swipeLength=_.touchObject.swipeLength*_.options.edgeFriction;_.touchObject.edgeHit=true;}}
1381if(_.options.vertical===false){_.swipeLeft=curLeft+swipeLength*positionOffset;}else{_.swipeLeft=curLeft+(swipeLength*(_.$list.height()/_.listWidth))*positionOffset;}
1382if(_.options.verticalSwiping===true){_.swipeLeft=curLeft+swipeLength*positionOffset;}
1383if(_.options.fade===true||_.options.touchMove===false){return false;}
1384if(_.animating===true){_.swipeLeft=null;return false;}
1385_.setCSS(_.swipeLeft);};Slick.prototype.swipeStart=function(event){var _=this,touches;_.interrupted=true;if(_.touchObject.fingerCount!==1||_.slideCount<=_.options.slidesToShow){_.touchObject={};return false;}
1386if(event.originalEvent!==undefined&&event.originalEvent.touches!==undefined){touches=event.originalEvent.touches[0];}
1387_.touchObject.startX=_.touchObject.curX=touches!==undefined?touches.pageX:event.clientX;_.touchObject.startY=_.touchObject.curY=touches!==undefined?touches.pageY:event.clientY;_.dragging=true;};Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;if(_.$slidesCache!==null){_.unload();_.$slideTrack.children(this.options.slide).detach();_.$slidesCache.appendTo(_.$slideTrack);_.reinit();}};Slick.prototype.unload=function(){var _=this;$('.slick-cloned',_.$slider).remove();if(_.$dots){_.$dots.remove();}
1388if(_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)){_.$prevArrow.remove();}
1389if(_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)){_.$nextArrow.remove();}
1390_.$slides.removeClass('slick-slide slick-active slick-visible slick-current').attr('aria-hidden','true').css('width','');};
1390Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger('unslick',[_,fromBreakpoint]);_.destroy();};Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2);if(_.options.arrows===true&&_.slideCount>_.options.slidesToShow&&!_.options.infinite){_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');if(_.currentSlide===0){_.$prevArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$nextArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else if(_.currentSlide>=_.slideCount-_.options.slidesToShow&&_.options.centerMode===false){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}else if(_.currentSlide>=_.slideCount-1&&_.options.centerMode===true){_.$nextArrow.addClass('slick-disabled').attr('aria-disabled','true');_.$prevArrow.removeClass('slick-disabled').attr('aria-disabled','false');}}};Slick.prototype.updateDots=function(){var _=this;if(_.$dots!==null){_.$dots.find('li').removeClass('slick-active').end();_.$dots.find('li').eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass('slick-active');}};Slick.prototype.visibility=function(){var _=this;if(_.options.autoplay){if(document[_.hidden]){_.interrupted=true;}else{_.interrupted=false;}}};$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++){if(typeof opt=='object'||typeof opt=='undefined')
1391_[i].slick=new Slick(_[i],opt);else
1392ret=_[i].slick[opt].apply(_[i].slick,args);if(typeof ret!='undefined')return ret;}
1393return _;};}));
1394/*!
1395 * perfect-scrollbar v1.5.0
1396 * Copyright 2020 Hyunje Jun, MDBootstrap and Contributors
1397 * Licensed under MIT
1398 */
1399(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=global||self,global.PerfectScrollbar=factory());}(this,(function(){'use strict';function get(element){return getComputedStyle(element);}
1400function set(element,obj){for(var key in obj){var val=obj[key];if(typeof val==='number'){val=val+"px";}
1401element.style[key]=val;}
1402return element;}
1403function div(className){var div=document.createElement('div');div.className=className;return div;}
1404var elMatches=typeof Element!=='undefined'&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function matches(element,query){if(!elMatches){throw new Error('No element matching method supported');}
1405return elMatches.call(element,query);}
1406function remove(element){if(element.remove){element.remove();}else{if(element.parentNode){element.parentNode.removeChild(element);}}}
1407function queryChildren(element,selector){return Array.prototype.filter.call(element.children,function(child){return matches(child,selector);});}
1408var cls={main:'ps',rtl:'ps__rtl',element:{thumb:function(x){return("ps__thumb-"+x);},rail:function(x){return("ps__rail-"+x);},consuming:'ps__child--consume',},state:{focus:'ps--focus',clicking:'ps--clicking',active:function(x){return("ps--active-"+x);},scrolling:function(x){return("ps--scrolling-"+x);},},};var scrollingClassTimeout={x:null,y:null};function addScrollingClass(i,x){var classList=i.element.classList;var className=cls.state.scrolling(x);if(classList.contains(className)){clearTimeout(scrollingClassTimeout[x]);}else{classList.add(className);}}
1409function removeScrollingClass(i,x){scrollingClassTimeout[x]=setTimeout(function(){return i.isAlive&&i.element.classList.remove(cls.state.scrolling(x));},i.settings.scrollingThreshold);}
1410function setScrollingClassInstantly(i,x){addScrollingClass(i,x);removeScrollingClass(i,x);}
1411var EventElement=function EventElement(element){this.element=element;this.handlers={};};var prototypeAccessors={isEmpty:{configurable:true}};EventElement.prototype.bind=function bind(eventName,handler){if(typeof this.handlers[eventName]==='undefined'){this.handlers[eventName]=[];}
1412this.handlers[eventName].push(handler);this.element.addEventListener(eventName,handler,false);};EventElement.prototype.unbind=function unbind(eventName,target){var this$1=this;this.handlers[eventName]=this.handlers[eventName].filter(function(handler){if(target&&handler!==target){return true;}
1413this$1.element.removeEventListener(eventName,handler,false);return false;});};EventElement.prototype.unbindAll=function unbindAll(){for(var name in this.handlers){this.unbind(name);}};prototypeAccessors.isEmpty.get=function(){var this$1=this;return Object.keys(this.handlers).every(function(key){return this$1.handlers[key].length===0;});};Object.defineProperties(EventElement.prototype,prototypeAccessors);var EventManager=function EventManager(){this.eventElements=[];};EventManager.prototype.eventElement=function eventElement(element){var ee=this.eventElements.filter(function(ee){return ee.element===element;})[0];if(!ee){ee=new EventElement(element);this.eventElements.push(ee);}
1414return ee;};EventManager.prototype.bind=function bind(element,eventName,handler){this.eventElement(element).bind(eventName,handler);};EventManager.prototype.unbind=function unbind(element,eventName,handler){var ee=this.eventElement(element);ee.unbind(eventName,handler);if(ee.isEmpty){this.eventElements.splice(this.eventElements.indexOf(ee),1);}};EventManager.prototype.unbindAll=function unbindAll(){this.eventElements.forEac
vendor: 5,413 bytes, lines 1414-1442
1414h(function(e){return e.unbindAll();});this.eventElements=[];};EventManager.prototype.once=function once(element,eventName,handler){var ee=this.eventElement(element);var onceHandler=function(evt){ee.unbind(eventName,onceHandler);handler(evt);};ee.bind(eventName,onceHandler);};function createEvent(name){if(typeof window.CustomEvent==='function'){return new CustomEvent(name);}else{var evt=document.createEvent('CustomEvent');evt.initCustomEvent(name,false,false,undefined);return evt;}}
1415function processScrollDiff(i,axis,diff,useScrollingClass,forceFireReachEvent){if(useScrollingClass===void 0)useScrollingClass=true;if(forceFireReachEvent===void 0)forceFireReachEvent=false;var fields;if(axis==='top'){fields=['contentHeight','containerHeight','scrollTop','y','up','down'];}else if(axis==='left'){fields=['contentWidth','containerWidth','scrollLeft','x','left','right'];}else{throw new Error('A proper axis should be provided');}
1416processScrollDiff$1(i,diff,fields,useScrollingClass,forceFireReachEvent);}
1417function processScrollDiff$1(i,diff,ref,useScrollingClass,forceFireReachEvent){var contentHeight=ref[0];var containerHeight=ref[1];var scrollTop=ref[2];var y=ref[3];var up=ref[4];var down=ref[5];if(useScrollingClass===void 0)useScrollingClass=true;if(forceFireReachEvent===void 0)forceFireReachEvent=false;var element=i.element;i.reach[y]=null;if(element[scrollTop]<1){i.reach[y]='start';}
1418if(element[scrollTop]>i[contentHeight]-i[containerHeight]-1){i.reach[y]='end';}
1419if(diff){element.dispatchEvent(createEvent(("ps-scroll-"+y)));if(diff<0){element.dispatchEvent(createEvent(("ps-scroll-"+up)));}else if(diff>0){element.dispatchEvent(createEvent(("ps-scroll-"+down)));}
1420if(useScrollingClass){setScrollingClassInstantly(i,y);}}
1421if(i.reach[y]&&(diff||forceFireReachEvent)){element.dispatchEvent(createEvent(("ps-"+y+"-reach-"+(i.reach[y]))));}}
1422function toInt(x){return parseInt(x,10)||0;}
1423function isEditable(el){return(matches(el,'input,[contenteditable]')||matches(el,'select,[contenteditable]')||matches(el,'textarea,[contenteditable]')||matches(el,'button,[contenteditable]'));}
1424function outerWidth(element){var styles=get(element);return(toInt(styles.width)+
1425toInt(styles.paddingLeft)+
1426toInt(styles.paddingRight)+
1427toInt(styles.borderLeftWidth)+
1428toInt(styles.borderRightWidth));}
1429var env={isWebKit:typeof document!=='undefined'&&'WebkitAppearance'in document.documentElement.style,supportsTouch:typeof window!=='undefined'&&('ontouchstart'in window||('maxTouchPoints'in window.navigator&&window.navigator.maxTouchPoints>0)||(window.DocumentTouch&&document instanceof window.DocumentTouch)),supportsIePointer:typeof navigator!=='undefined'&&navigator.msMaxTouchPoints,isChrome:typeof navigator!=='undefined'&&/Chrome/i.test(navigator&&navigator.userAgent),};function updateGeometry(i){var element=i.element;var roundedScrollTop=Math.floor(element.scrollTop);var rect=element.getBoundingClientRect();i.containerWidth=Math.ceil(rect.width);i.containerHeight=Math.ceil(rect.height);i.contentWidth=element.scrollWidth;i.contentHeight=element.scrollHeight;if(!element.contains(i.scrollbarXRail)){queryChildren(element,cls.element.rail('x')).forEach(function(el){return remove(el);});element.appendChild(i.scrollbarXRail);}
1430if(!element.contains(i.scrollbarYRail)){queryChildren(element,cls.element.rail('y')).forEach(function(el){return remove(el);});element.appendChild(i.scrollbarYRail);}
1431if(!i.settings.suppressScrollX&&i.containerWidth+i.settings.scrollXMarginOffset<i.contentWidth){i.scrollbarXActive=true;i.railXWidth=i.containerWidth-i.railXMarginWidth;i.railXRatio=i.containerWidth/i.railXWidth;i.scrollbarXWidth=getThumbSize(i,toInt((i.railXWidth*i.containerWidth)/i.contentWidth));i.scrollbarXLeft=toInt(((i.negativeScrollAdjustment+element.scrollLeft)*(i.railXWidth-i.scrollbarXWidth))/(i.contentWidth-i.containerWidth));}else{i.scrollbarXActive=false;}
1432if(!i.settings.suppressScrollY&&i.containerHeight+i.settings.scrollYMarginOffset<i.contentHeight){i.scrollbarYActive=true;i.railYHeight=i.containerHeight-i.railYMarginHeight;i.railYRatio=i.containerHeight/i.railYHeight;i.scrollbarYHeight=getThumbSize(i,toInt((i.railYHeight*i.containerHeight)/i.contentHeight));i.scrollbarYTop=toInt((roundedScrollTop*(i.railYHeight-i.scrollbarYHeight))/(i.contentHeight-i.containerHeight));}else{i.scrollbarYActive=false;}
1433if(i.scrollbarXLeft>=i.railXWidth-i.scrollbarXWidth){i.scrollbarXLeft=i.railXWidth-i.scrollbarXWidth;}
1434if(i.scrollbarYTop>=i.railYHeight-i.scrollbarYHeight){i.scrollbarYTop=i.railYHeight-i.scrollbarYHeight;}
1435updateCss(element,i);if(i.scrollbarXActive){element.classList.add(cls.state.active('x'));}else{element.classList.remove(cls.state.active('x'));i.scrollbarXWidth=0;i.scrollbarXLeft=0;element.scrollLeft=i.isRtl===true?i.contentWidth:0;}
1436if(i.scrollbarYActive){element.classList.add(cls.state.active('y'));}else{element.classList.remove(cls.state.active('y'));i.scrollbarYHeight=0;i.scrollbarYTop=0;element.scrollTop=0;}}
1437function getThumbSize(i,thumbSize){if(i.settings.minScrollbarLength){thumbSize=Math.max(thumbSize,i.settings.minScrollbarLength);}
1438if(i.settings.maxScrollbarLength){thumbSize=Math.min(thumbSize,i.settings.maxScrollbarLength);}
1439return thumbSize;}
1440function updateCss(element,i){var xRailOffset={width:i.railXWidth};var roundedScrollTop=Math.floor(element.scrollTop);if(i.isRtl){xRailOffset.left=i.negativeScrollAdjustment+
1441element.scrollLeft+
1442i.containerWidth-
vendor: 12,840 bytes, lines 1443-1534
1443i.contentWidth;}else{xRailOffset.left=element.scrollLeft;}
1444if(i.isScrollbarXUsingBottom){xRailOffset.bottom=i.scrollbarXBottom-roundedScrollTop;}else{xRailOffset.top=i.scrollbarXTop+roundedScrollTop;}
1445set(i.scrollbarXRail,xRailOffset);var yRailOffset={top:roundedScrollTop,height:i.railYHeight};if(i.isScrollbarYUsingRight){if(i.isRtl){yRailOffset.right=i.contentWidth-
1446(i.negativeScrollAdjustment+element.scrollLeft)-
1447i.scrollbarYRight-
1448i.scrollbarYOuterWidth-
14499;}else{yRailOffset.right=i.scrollbarYRight-element.scrollLeft;}}else{if(i.isRtl){yRailOffset.left=i.negativeScrollAdjustment+
1450element.scrollLeft+
1451i.containerWidth*2-
1452i.contentWidth-
1453i.scrollbarYLeft-
1454i.scrollbarYOuterWidth;}else{yRailOffset.left=i.scrollbarYLeft+element.scrollLeft;}}
1455set(i.scrollbarYRail,yRailOffset);set(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth,});set(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth,});}
1456function clickRail(i){var element=i.element;i.event.bind(i.scrollbarY,'mousedown',function(e){return e.stopPropagation();});i.event.bind(i.scrollbarYRail,'mousedown',function(e){var positionTop=e.pageY-
1457window.pageYOffset-
1458i.scrollbarYRail.getBoundingClientRect().top;var direction=positionTop>i.scrollbarYTop?1:-1;i.element.scrollTop+=direction*i.containerHeight;updateGeometry(i);e.stopPropagation();});i.event.bind(i.scrollbarX,'mousedown',function(e){return e.stopPropagation();});i.event.bind(i.scrollbarXRail,'mousedown',function(e){var positionLeft=e.pageX-
1459window.pageXOffset-
1460i.scrollbarXRail.getBoundingClientRect().left;var direction=positionLeft>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=direction*i.containerWidth;updateGeometry(i);e.stopPropagation();});}
1461function dragThumb(i){bindMouseScrollHandler(i,['containerWidth','contentWidth','pageX','railXWidth','scrollbarX','scrollbarXWidth','scrollLeft','x','scrollbarXRail']);bindMouseScrollHandler(i,['containerHeight','contentHeight','pageY','railYHeight','scrollbarY','scrollbarYHeight','scrollTop','y','scrollbarYRail']);}
1462function bindMouseScrollHandler(i,ref){var containerHeight=ref[0];var contentHeight=ref[1];var pageY=ref[2];var railYHeight=ref[3];var scrollbarY=ref[4];var scrollbarYHeight=ref[5];var scrollTop=ref[6];var y=ref[7];var scrollbarYRail=ref[8];var element=i.element;var startingScrollTop=null;var startingMousePageY=null;var scrollBy=null;function mouseMoveHandler(e){if(e.touches&&e.touches[0]){e[pageY]=e.touches[0].pageY;}
1463element[scrollTop]=startingScrollTop+scrollBy*(e[pageY]-startingMousePageY);addScrollingClass(i,y);updateGeometry(i);e.stopPropagation();e.preventDefault();}
1464function mouseUpHandler(){removeScrollingClass(i,y);i[scrollbarYRail].classList.remove(cls.state.clicking);i.event.unbind(i.ownerDocument,'mousemove',mouseMoveHandler);}
1465function bindMoves(e,touchMode){startingScrollTop=element[scrollTop];if(touchMode&&e.touches){e[pageY]=e.touches[0].pageY;}
1466startingMousePageY=e[pageY];scrollBy=(i[contentHeight]-i[containerHeight])/(i[railYHeight]-i[scrollbarYHeight]);if(!touchMode){i.event.bind(i.ownerDocument,'mousemove',mouseMoveHandler);i.event.once(i.ownerDocument,'mouseup',mouseUpHandler);e.preventDefault();}else{i.event.bind(i.ownerDocument,'touchmove',mouseMoveHandler);}
1467i[scrollbarYRail].classList.add(cls.state.clicking);e.stopPropagation();}
1468i.event.bind(i[scrollbarY],'mousedown',function(e){bindMoves(e);});i.event.bind(i[scrollbarY],'touchstart',function(e){bindMoves(e,true);});}
1469function keyboard(i){var element=i.element;var elementHovered=function(){return matches(element,':hover');};var scrollbarFocused=function(){return matches(i.scrollbarX,':focus')||matches(i.scrollbarY,':focus');};function shouldPreventDefault(deltaX,deltaY){var scrollTop=Math.floor(element.scrollTop);if(deltaX===0){if(!i.scrollbarYActive){return false;}
1470if((scrollTop===0&&deltaY>0)||(scrollTop>=i.contentHeight-i.containerHeight&&deltaY<0)){return!i.settings.wheelPropagation;}}
1471var scrollLeft=element.scrollLeft;if(deltaY===0){if(!i.scrollbarXActive){return false;}
1472if((scrollLeft===0&&deltaX<0)||(scrollLeft>=i.contentWidth-i.containerWidth&&deltaX>0)){return!i.settings.wheelPropagation;}}
1473return true;}
1474i.event.bind(i.ownerDocument,'keydown',function(e){if((e.isDefaultPrevented&&e.isDefaultPrevented())||e.defaultPrevented){return;}
1475if(!elementHovered()&&!scrollbarFocused()){return;}
1476var activeElement=document.activeElement?document.activeElement:i.ownerDocument.activeElement;if(activeElement){if(activeElement.tagName==='IFRAME'){activeElement=activeElement.contentDocument.activeElement;}else{while(activeElement.shadowRoot){activeElement=activeElement.shadowRoot.activeElement;}}
1477if(isEditable(activeElement)){return;}}
1478var deltaX=0;var deltaY=0;switch(e.which){case 37:if(e.metaKey){deltaX=-i.contentWidth;}else if(e.altKey){deltaX=-i.containerWidth;}else{deltaX=-30;}
1479break;case 38:if(e.metaKey){deltaY=i.contentHeight;}else if(e.altKey){deltaY=i.containerHeight;}else{deltaY=30;}
1480break;case 39:if(e.metaKey){deltaX=i.contentWidth;}else if(e.altKey){deltaX=i.containerWidth;}else{deltaX=30;}
1481break;case 40:if(e.metaKey){deltaY=-i.contentHeight;}else if(e.altKey){deltaY=-i.containerHeight;}else{deltaY=-30;}
1482break;case 32:if(e.shiftKey){deltaY=i.containerHeight;}else{deltaY=-i.containerHeight;}
1483break;case 33:deltaY=i.containerHeight;break;case 34:deltaY=-i.containerHeight;break;case 36:deltaY=i.contentHeight;break;case 35:deltaY=-i.contentHeight;break;default:return;}
1484if(i.settings.suppressScrollX&&deltaX!==0){return;}
1485if(i.settings.suppressScrollY&&deltaY!==0){return;}
1486element.scrollTop-=deltaY;element.scrollLeft+=deltaX;updateGeometry(i);if(shouldPreventDefault(deltaX,deltaY)){e.preventDefault();}});}
1487function wheel(i){var element=i.element;function shouldPreventDefault(deltaX,deltaY){var roundedScrollTop=Math.floor(element.scrollTop);var isTop=element.scrollTop===0;var isBottom=roundedScrollTop+element.offsetHeight===element.scrollHeight;var isLeft=element.scrollLeft===0;var isRight=element.scrollLeft+element.offsetWidth===element.scrollWidth;var hitsBound;if(Math.abs(deltaY)>Math.abs(deltaX)){hitsBound=isTop||isBottom;}else{hitsBound=isLeft||isRight;}
1488return hitsBound?!i.settings.wheelPropagation:true;}
1489function getDeltaFromEvent(e){var deltaX=e.deltaX;var deltaY=-1*e.deltaY;if(typeof deltaX==='undefined'||typeof deltaY==='undefined'){deltaX=(-1*e.wheelDeltaX)/6;deltaY=e.wheelDeltaY/6;}
1490if(e.deltaMode&&e.deltaMode===1){deltaX*=10;deltaY*=10;}
1491if(deltaX!==deltaX&&deltaY!==deltaY){deltaX=0;deltaY=e.wheelDelta;}
1492if(e.shiftKey){return[-deltaY,-deltaX];}
1493return[deltaX,deltaY];}
1494function shouldBeConsumedByChild(target,deltaX,deltaY){if(!env.isWebKit&&element.querySelector('select:focus')){return true;}
1495if(!element.contains(target)){return false;}
1496var cursor=target;while(cursor&&cursor!==element){if(cursor.classList.contains(cls.element.consuming)){return true;}
1497var style=get(cursor);if(deltaY&&style.overflowY.match(/(scroll|auto)/)){var maxScrollTop=cursor.scrollHeight-cursor.clientHeight;if(maxScrollTop>0){if((cursor.scrollTop>0&&deltaY<0)||(cursor.scrollTop<maxScrollTop&&deltaY>0)){return true;}}}
1498if(deltaX&&style.overflowX.match(/(scroll|auto)/)){var maxScrollLeft=cursor.scrollWidth-cursor.clientWidth;if(maxScrollLeft>0){if((cursor.scrollLeft>0&&deltaX<0)||(cursor.scrollLeft<maxScrollLeft&&deltaX>0)){return true;}}}
1499cursor=cursor.parentNode;}
1500return false;}
1501function mousewheelHandler(e){var ref=getDeltaFromEvent(e);var deltaX=ref[0];var deltaY=ref[1];if(shouldBeConsumedByChild(e.target,deltaX,deltaY)){return;}
1502var shouldPrevent=false;if(!i.settings.useBothWheelAxes){element.scrollTop-=deltaY*i.settings.wheelSpeed;element.scrollLeft+=deltaX*i.settings.wheelSpeed;}else if(i.scrollbarYActive&&!i.scrollbarXActive){if(deltaY){element.scrollTop-=deltaY*i.settings.wheelSpeed;}else{element.scrollTop+=deltaX*i.settings.wheelSpeed;}
1503shouldPrevent=true;}else if(i.scrollbarXActive&&!i.scrollbarYActive){if(deltaX){element.scrollLeft+=deltaX*i.settings.wheelSpeed;}else{element.scrollLeft-=deltaY*i.settings.wheelSpeed;}
1504shouldPrevent=true;}
1505updateGeometry(i);shouldPrevent=shouldPrevent||shouldPreventDefault(deltaX,deltaY);if(shouldPrevent&&!e.ctrlKey){e.stopPropagation();e.preventDefault();}}
1506if(typeof window.onwheel!=='undefined'){i.event.bind(element,'wheel',mousewheelHandler);}else if(typeof window.onmousewheel!=='undefined'){i.event.bind(element,'mousewheel',mousewheelHandler);}}
1507function touch(i){if(!env.supportsTouch&&!env.supportsIePointer){return;}
1508var element=i.element;function shouldPrevent(deltaX,deltaY){var scrollTop=Math.floor(element.scrollTop);var scrollLeft=element.scrollLeft;var magnitudeX=Math.abs(deltaX);var magnitudeY=Math.abs(deltaY);if(magnitudeY>magnitudeX){if((deltaY<0&&scrollTop===i.contentHeight-i.containerHeight)||(deltaY>0&&scrollTop===0)){return window.scrollY===0&&deltaY>0&&env.isChrome;}}else if(magnitudeX>magnitudeY){if((deltaX<0&&scrollLeft===i.contentWidth-i.containerWidth)||(deltaX>0&&scrollLeft===0)){return true;}}
1509return true;}
1510function applyTouchMove(differenceX,differenceY){element.scrollTop-=differenceY;element.scrollLeft-=differenceX;updateGeometry(i);}
1511var startOffset={};var startTime=0;var speed={};var easingLoop=null;function getTouch(e){if(e.targetTouches){return e.targetTouches[0];}else{return e;}}
1512function shouldHandle(e){if(e.pointerType&&e.pointerType==='pen'&&e.buttons===0){return false;}
1513if(e.targetTouches&&e.targetTouches.length===1){return true;}
1514if(e.pointerType&&e.pointerType!=='mouse'&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE){return true;}
1515return false;}
1516function touchStart(e){if(!shouldHandle(e)){return;}
1517var touch=getTouch(e);startOffset.pageX=touch.pageX;startOffset.pageY=touch.pageY;startTime=new Date().getTime();if(easingLoop!==null){clearInterval(easingLoop);}}
1518function shouldBeConsumedByChild(target,deltaX,deltaY){if(!element.contains(target)){return false;}
1519var cursor=target;while(cursor&&cursor!==element){if(cursor.classList.contains(cls.element.consuming)){return true;}
1520var style=get(cursor);if(deltaY&&style.overflowY.match(/(scroll|auto)/)){var maxScrollTop=cursor.scrollHeight-cursor.clientHeight;if(maxScrollTop>0){if((cursor.scrollTop>0&&deltaY<0)||(cursor.scrollTop<maxScrollTop&&deltaY>0)){return true;}}}
1521if(deltaX&&style.overflowX.match(/(scroll|auto)/)){var maxScrollLeft=cursor.scrollWidth-cursor.clientWidth;if(maxScrollLeft>0){if((cursor.scrollLeft>0&&deltaX<0)||(cursor.scrollLeft<maxScrollLeft&&deltaX>0)){return true;}}}
1522cursor=cursor.parentNode;}
1523return false;}
1524function touchMove(e){if(shouldHandle(e)){var touch=getTouch(e);var currentOffset={pageX:touch.pageX,pageY:touch.pageY};var differenceX=currentOffset.pageX-startOffset.pageX;var differenceY=currentOffset.pageY-startOffset.pageY;if(shouldBeConsumedByChild(e.target,differenceX,differenceY)){return;}
1525applyTouchMove(differenceX,differenceY);startOffset=currentOffset;var currentTime=new Date().getTime();var timeGap=currentTime-startTime;if(timeGap>0){speed.x=differenceX/timeGap;speed.y=differenceY/timeGap;startTime=currentTime;}
1526if(shouldPrevent(differenceX,differenceY)){e.preventDefault();}}}
1527function touchEnd(){if(i.settings.swipeEasing){clearInterval(easingLoop);easingLoop=setInterval(function(){if(i.isInitialized){clearInterval(easingLoop);return;}
1528if(!speed.x&&!speed.y){clearInterval(easingLoop);return;}
1529if(Math.abs(speed.x)<0.01&&Math.abs(speed.y)<0.01){clearInterval(easingLoop);return;}
1530applyTouchMove(speed.x*30,speed.y*30);speed.x*=0.8;speed.y*=0.8;},10);}}
1531if(env.supportsTouch){i.event.bind(element,'touchstart',touchStart);i.event.bind(element,'touchmove',touchMove);i.event.bind(element,'touchend',touchEnd);}else if(env.supportsIePointer){if(window.PointerEvent){i.event.bind(element,'pointerdown',touchStart);i.event.bind(element,'pointermove',touchMove);i.event.bind(element,'pointerup',touchEnd);}else if(window.MSPointerEvent){i.event.bind(element,'MSPointerDown',touchStart);i.event.bind(element,'MSPointerMove',touchMove);i.event.bind(element,'MSPointerUp',touchEnd);}}}
1532var defaultSettings=function(){return({handlers:['click-rail','drag-thumb','keyboard','wheel','touch'],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1000,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:false,suppressScrollY:false,swipeEasing:true,useBothWheelAxes:false,wheelPropagation:true,wheelSpeed:1,});};var handlers={'click-rail':clickRail,'drag-thumb':dragThumb,keyboard:keyboard,wheel:wheel,touch:touch,};var PerfectScrollbar=function PerfectScrollbar(element,userSettings){var this$1=this;if(userSettings===void 0)userSettings={};if(typeof element==='string'){element=document.querySelector(element);}
1533if(!element||!element.nodeName){throw new Error('no element is specified to initialize PerfectScrollbar');}
1534this.element=element;element.classList.add(cls.main);this.settings=defaultSettings();
vendor: 4,978 bytes, lines 1534-1544
1534for(var key in userSettings){this.settings[key]=userSettings[key];}
1535this.containerWidth=null;this.containerHeight=null;this.contentWidth=null;this.contentHeight=null;var focus=function(){return element.classList.add(cls.state.focus);};var blur=function(){return element.classList.remove(cls.state.focus);};this.isRtl=get(element).direction==='rtl';if(this.isRtl===true){element.classList.add(cls.rtl);}
1536this.isNegativeScroll=(function(){var originalScrollLeft=element.scrollLeft;var result=null;element.scrollLeft=-1;result=element.scrollLeft<0;element.scrollLeft=originalScrollLeft;return result;})();this.negativeScrollAdjustment=this.isNegativeScroll?element.scrollWidth-element.clientWidth:0;this.event=new EventManager();this.ownerDocument=element.ownerDocument||document;this.scrollbarXRail=div(cls.element.rail('x'));element.appendChild(this.scrollbarXRail);this.scrollbarX=div(cls.element.thumb('x'));this.scrollbarXRail.appendChild(this.scrollbarX);this.scrollbarX.setAttribute('tabindex',0);this.event.bind(this.scrollbarX,'focus',focus);this.event.bind(this.scrollbarX,'blur',blur);this.scrollbarXActive=null;this.scrollbarXWidth=null;this.scrollbarXLeft=null;var railXStyle=get(this.scrollbarXRail);this.scrollbarXBottom=parseInt(railXStyle.bottom,10);if(isNaN(this.scrollbarXBottom)){this.isScrollbarXUsingBottom=false;this.scrollbarXTop=toInt(railXStyle.top);}else{this.isScrollbarXUsingBottom=true;}
1537this.railBorderXWidth=toInt(railXStyle.borderLeftWidth)+toInt(railXStyle.borderRightWidth);set(this.scrollbarXRail,{display:'block'});this.railXMarginWidth=toInt(railXStyle.marginLeft)+toInt(railXStyle.marginRight);set(this.scrollbarXRail,{display:''});this.railXWidth=null;this.railXRatio=null;this.scrollbarYRail=div(cls.element.rail('y'));element.appendChild(this.scrollbarYRail);this.scrollbarY=div(cls.element.thumb('y'));this.scrollbarYRail.appendChild(this.scrollbarY);this.scrollbarY.setAttribute('tabindex',0);this.event.bind(this.scrollbarY,'focus',focus);this.event.bind(this.scrollbarY,'blur',blur);this.scrollbarYActive=null;this.scrollbarYHeight=null;this.scrollbarYTop=null;var railYStyle=get(this.scrollbarYRail);this.scrollbarYRight=parseInt(railYStyle.right,10);if(isNaN(this.scrollbarYRight)){this.isScrollbarYUsingRight=false;this.scrollbarYLeft=toInt(railYStyle.left);}else{this.isScrollbarYUsingRight=true;}
1538this.scrollbarYOuterWidth=this.isRtl?outerWidth(this.scrollbarY):null;this.railBorderYWidth=toInt(railYStyle.borderTopWidth)+toInt(railYStyle.borderBottomWidth);set(this.scrollbarYRail,{display:'block'});this.railYMarginHeight=toInt(railYStyle.marginTop)+toInt(railYStyle.marginBottom);set(this.scrollbarYRail,{display:''});this.railYHeight=null;this.railYRatio=null;this.reach={x:element.scrollLeft<=0?'start':element.scrollLeft>=this.contentWidth-this.containerWidth?'end':null,y:element.scrollTop<=0?'start':element.scrollTop>=this.contentHeight-this.containerHeight?'end':null,};this.isAlive=true;this.settings.handlers.forEach(function(handlerName){return handlers[handlerName](this$1);});this.lastScrollTop=Math.floor(element.scrollTop);this.lastScrollLeft=element.scrollLeft;this.event.bind(this.element,'scroll',function(e){return this$1.onScroll(e);});updateGeometry(this);};PerfectScrollbar.prototype.update=function update(){if(!this.isAlive){return;}
1539this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0;set(this.scrollbarXRail,{display:'block'});set(this.scrollbarYRail,{display:'block'});this.railXMarginWidth=toInt(get(this.scrollbarXRail).marginLeft)+
1540toInt(get(this.scrollbarXRail).marginRight);this.railYMarginHeight=toInt(get(this.scrollbarYRail).marginTop)+
1541toInt(get(this.scrollbarYRail).marginBottom);set(this.scrollbarXRail,{display:'none'});set(this.scrollbarYRail,{display:'none'});updateGeometry(this);processScrollDiff(this,'top',0,false,true);processScrollDiff(this,'left',0,false,true);set(this.scrollbarXRail,{display:''});set(this.scrollbarYRail,{display:''});};PerfectScrollbar.prototype.onScroll=function onScroll(e){if(!this.isAlive){return;}
1542updateGeometry(this);processScrollDiff(this,'top',this.element.scrollTop-this.lastScrollTop);processScrollDiff(this,'left',this.element.scrollLeft-this.lastScrollLeft);this.lastScrollTop=Math.floor(this.element.scrollTop);this.lastScrollLeft=this.element.scrollLeft;};PerfectScrollbar.prototype.destroy=function destroy(){if(!this.isAlive){return;}
1543this.event.unbindAll();remove(this.scrollbarX);remove(this.scrollbarY);remove(this.scrollbarXRail);remove(this.scrollbarYRail);this.removePsClasses();this.element=null;this.scrollbarX=null;this.scrollbarY=null;this.scrollbarXRail=null;this.scrollbarYRail=null;this.isAlive=false;};PerfectScrollbar.prototype.removePsClasses=function removePsClasses(){this.element.className=this.element.className.split(' ').filter(function(name){return!name.match(/^ps([-_].+|)$/);}).join(' ');};return PerfectScrollbar;})));
1544var konte=konte||{};(function($){'use strict';
1544konte.init=function(){this.data=konteData||{};this.preloader();this.focusSearchField();this.instantSearch();this.ajaxSearch();this.toggleListDropdown();this.addWishlistCounter();this.toggleHamburgerScreen();this.toggleHamburgerMenu();this.toggleVerticalMenu();this.toggleOffCanvas();this.calculateMenuAccessibleArea();this.toggleModals();this.loadMorePosts();this.fetchPostTotalShare();this.featuredContentCarousel();this.postsSliderWidget();this.stickySidebar();this.closeTopbar();this.stickyHeader();this.pageHeaderHeight();this.scrollDown();this.closeWCMessages();this.productQuantityButtons();this.singleProductAjaxAddToCart();this.stickyAddToCart();this.cartPanel();this.reviewProduct();this.productLightBox();this.toggleProductTabs();this.productVariationSwatches();this.relatedProductsCarousel();this.productGalleryCarousel();this.productGalleryThumbnailCarousel();this.singleProductV1();this.singleProductV2();this.singleProductV3();this.singleProductV4();this.singleProductV5();this.singleProductV6();this.singleProductV7();this.formFieldFocus();this.loginTabs();this.loginPanel();this.loginPanelAuthenticate();this.productsMasonry();this.productsCarousel();this.productThumbnailsSlider();this.productThumbnailZoom();this.productQuickView();this.emptyQuickViewOnClose();this.autoCloseQuickView();this.loadMoreProducts();this.productsQuickSearch();this.productsTools();this.cartWidget();this.shopNotifications();this.pageTemplateSplit();this.videoBackground();this.pageTemplateFlexPosts();this.stickyScrollDown();this.stickySocials();this.openShareLinks();this.popup();this.fixVCRowsWithVerticalHeader();this.mobileMenu();this.responsiveProductGallery();this.responsiveProductV3();this.portfolioMasonry();this.portfolioFilter();this.backToTop();this.lazyLoadImages();this.supportJetpackLazyLoadImagesOnProductGallery();this.updateCheckout();this.mainMenuTabs();$(document.body).trigger('konte_initialized',this);};konte.updateCheckout=function(){if(!$(document.body).hasClass('woocommerce-checkout')){return;}
1545$(document.body).on('wc_fragments_loaded wc_fragments_refreshed',function(){$(document.body).trigger('update_checkout');});}
1546konte.focusSearchField=function(){$('.header-search .search-field').on('focus',function(){var $quicklinks=$(this).closest('.header-search').find('.quick-links');if($quicklinks.length){$quicklinks.addClass('open');}
1547$(this).addClass('focused').closest('.header-search').addClass('input-focused');});$(document.body).on('click','div',function(event){var $target=$(event.target);if($target.is('.header-search')||$target.closest('.header-search').length){return;}
1548var $headerSearch=$('.header-search');$headerSearch.removeClass('input-focused');$('.quick-links',$headerSearch).removeClass('open');$('.search-field',$headerSearch).removeClass('focused');});};konte.instantSearch=function(){var xhr=null,term='',searchCache={},debounceTimeout=null,$modal=$('#search-modal'),$header=$modal.find('.modal-header'),$content=$modal.find('.modal-content'),$form=$modal.find('form'),$search=$form.find('input.search-field'),$result=$modal.find('.search-result'),$button=$result.find('.view-more a'),$quicklinks=$modal.find('.quick-links'),post_type=$modal.find('input[name=post_type]').val();if(!$modal.length){return;}
1549$(document.body).on('konte_modal_opened',function(event,target){if(target.is('#search-modal')){$search.focus();}});new PerfectScrollbar($result.find('.searched-items').get(0),{suppressScrollX:true});$modal.on('keyup','.search-field',function(e){var valid=false;if(typeof e.which==='undefined'){valid=true;}else if(typeof e.which==='number'&&e.which>0){valid=!e.ctrlKey&&!e.metaKey&&!e.altKey;}
1550if(!valid){return;}
1551$quicklinks.fadeOut(400);if(debounceTimeout){clearTimeout(debounceTimeout);}
1552debounceTimeout=setTimeout(function(){search();},800);}).on('click','.search-reset',function(){if(xhr){xhr.abort();}
1553$quicklinks.fadeIn(400);$modal.addClass('reset');$result.fadeOut(function(){$modal.removeClass('searching searched search-found search-not-found invalid-length reset');$content.removeAttr('style');});}).on('focusout','.search-field',function(){if($search.val().length<2){$quicklinks.fadeIn(400);$result.fadeOut(function(){$modal.removeClass('searching searched search-found search-not-found invalid-length');$content.removeAttr('style');});}});function search(){var keyword=$search.val(),key=keyword;if(term===keyword){return;}
1554term=keyword;if(keyword.length<2){$modal.removeClass('searched searching search-found search-not-found');return;}
1555var url=$form.attr('action')+'?'+$form.serialize();$('.view-more-results',$result).slideUp(10);$modal.removeClass('search-found search-not-found searched').addClass('searching');if(key in searchCache){showResult(searchCache[key]);}else{xhr=$.post(url,{search_columns:6,konte_search_nonce:konte.data.product_search_nonce},function(response){if(!response){$modal.removeClass('searching');return;}
1556var $primary=$('#primary',response);if('product'===post_type){var $products=$('ul.products',$primary);if($products.length){searchCache[key]={found:true,items:$products,url:url};}else{searchCache[key]={found:false,text:$('.woocommerce-info',$primary).text()};}}else{var $posts=$('#main article',$primary);if($posts.length){$posts.addClass('col-md-4');searchCache[key]={found:true,items:$('<div class="posts row" />').append($posts),url:url};}else{searchCache[key]={found:false,text:$('.no-results .nothing-found-message',$primary).text()};}}
1557showResult(searchCache[key]);},'html');}}
1558function showResult(result){var extraClass='product'===post_type?'woocommerce':'',$container=$result.find('.searched-items');$modal.removeClass('searching');$content.css('top',$header.outerHeight()+65);if(result.found){var grid=result.items.clone(),items=grid.children();$modal.addClass('search-found');$button.attr('href',result.url);$container.addClass(extraClass).html(grid).append($result.find('.view-more').clone());if('product'===post_type){$(document.body).trigger('konte_loaded_products',[items]);}
1559for(var index=0;index<items.length;index++){$(items[index]).css('animation-delay',index*100+'ms');}
1560items.addClass('animated konteFadeInUp');$container.find('.view-more').css('animation-delay',++index*100+'ms').addClass('animated konteFadeInUp');$result.slideDown();}else{$modal.addClass('search-not-found');$container.removeClass(extraClass).html($('<div class="not-found" />').text(result.text));$button.attr('href','#');$result.slideDown();}
1561$modal.addClass('searched');$(document.body).trigger('konte_lazy_load_images');}};konte.ajaxSearch=function(){if(!konte.data.header_search_ajax){return;}
1562var debounceTimeout=null,cachedResults={};$('<div class="header-search__results" />').insertAfter('.header-search form');$('.header-search input[name="s"]').on('input',function(){var $input=$(this),$search=$input.closest('.header-search'),$results=$search.find('.header-search__results'),term=$input.val();if(!term){if(debounceTimeout){clearTimeout(debounceTimeout);}
1563$search.removeClass('ajax-loading');$results.html('');$search.removeClass('show-results');return;}
1564if(cachedResults[term]){$results.html(cachedResults[term]);$search.addClass('show-results');return;}
1565if(debounceTimeout){clearTimeout(debounceTimeout);}
1566debounceTimeout=setTimeout(function(){var data=$input.closest('form').serializeArray();data.push({name:'action',value:'konte_header_search'});$.ajax({type:'POST',url:konte.data.ajax_url,data:data,beforeSend:function(){$search.addClass('ajax-loading');},success:function(response){if(!response.success){return;}
1567cachedResults[term]=response.data;if(response.data){$results.html(response.data);$search.addClass('show-results');}else{$results.html('');$search.removeClass('show-results');}},complete:function(){$search.removeClass('ajax-loading');},dataType:'json'});},800);});}
1568konte.toggleListDropdown=function(){$(document.body).on('click','.list-dropdown ul li',function(){var $selected=$(this);$selected.closest('.list-dropdown').removeClass('open').find('.current .selected').text($selected.find('.name').text());});if('ontouchstart'in document.documentElement){$(document.body).on('click','.list-dropdown .current',function(event){event.preventDefault();$(this).closest('.list-dropdown').toggleClass('open');}).on('click','.list-dropdown ul li',function(){var $selected=$(this);$selected.closest('.list-dropdown').removeClass('open').find('.current .selected').text($selected.find('.name').text());}).on('click',function(event){var $target=$(event.target);if($target.is('.list-dropdown')||$target.closest('.list-dropdown').length){return;}
1569$('.list-dropdown').removeClass('open');});}};konte.addWishlistCounter=function(){$('.woocommerce-MyAccount-navigation-link--wishlist, .account-link--wishlist').append('<span class="counter wishlist-counter">'+konte.data.wishlist_count+'</span>');};konte.calculateMenuAccessibleArea=function(){$('.main-navigation','#masthead').each(function(){var $menu=$(this),$firstItem=$menu.children('ul').children('li:first'),accessibleGap=($firstItem.height()-$firstItem.children('a ').height())/2;$menu.css({'--submenu-offset':accessibleGap.toString()+'px'});});};konte.toggleHamburgerScreen=function(){$(document.body).on('click','.header-hamburger',function(event){event.preventDefault();var $el=$(this),$screen=$('#'+$el.data('target'));if(!$screen.length){return;}
1570var $menu=$('#fullscreen-menu',$screen),$widgets=$('.filter-widgets',$screen),$socials=$('.social-icons',$screen),$currency=$('.currency',$screen),$language=$('.language',$screen),step=100,count=0;if(!$screen.hasClass('content-animation-none')){if($screen.hasClass('content-animation-fade')){step=160;}
1571if($menu.length&&!$menu.data('delay')){$('.menu > li',$menu).each(function(){$(this).css('animation-delay',count*step+'ms');count++;});$menu.data('delay',count);}else if($widgets.length&&!$widgets.data('delay')){$('.widget',$widgets).each(function(){$(this).css('animation-delay',count*step+'ms');count++;});$widgets.data('delay',count);}
1572count=1;if($socials.length&&!$socials.data('delay')){$('.menu > li',$socials).each(function(){$(this).css('animation-delay',count*step+'ms');count++;});$socials.data('delay',count);}
1573if($currency.length&&!$currency.data('delay')){$currency.css('animation-delay',count*step+'ms');$currency.data('delay',count);count++;}
1574if($language.length&&!$language.data('delay')){$language.css('animation-delay',count*step+'ms');$language.data('delay',count);count++;}}
1575$screen.fadeToggle(function(){$('.hamburger-menu',$screen).addClass('active');});$screen.addClass('open');}).on('click','#hamburger-fullscreen .button-close',function(event){event.stopPropagation();var $el=$(this),$screen=$('#hamburger-fullscreen');$el.removeClass('active');$screen.removeClass('open');setTimeout(function(){$screen.fadeOut();},420);});if(typeof PerfectScrollbar!=='undefined'){var $hamburgerScreen=$('#hamburger-fullscreen');if($hamburgerScreen.length){new PerfectScrollbar($('.hamburger-screen-content',$hamburgerScreen).get(0));}}
1575};konte.toggleHamburgerMenu=function(){var $menu=$('#fullscreen-menu');if(!$menu.length){return;}
1576if($menu.hasClass('click-open')){$menu.on('click','.menu li.menu-item-has-children > a',function(event){event.preventDefault();var $item=$(this).parent();$item.toggleClass('active').siblings().removeClass('active').children('ul').removeClass('open');$item.children('ul').toggleClass('open');if($item.closest('ul').hasClass('sub-menu')){$item.children('ul').slideToggle();$item.siblings().find('ul').slideUp();}});}};konte.toggleVerticalMenu=function(){var $menu=$('.header-vertical .main-navigation');if(!$menu.length){return;}
1577var dropdown=$menu.children('.menu').hasClass('nav-menu--submenu-slidedown');$menu.on('click','li.menu-item-has-children > a',function(event){var $item=$(this).parent();$item.toggleClass('active').siblings().removeClass('active').children('ul').removeClass('open');$item.children('ul').toggleClass('open');if(dropdown||$item.closest('ul').hasClass('sub-menu')){$item.children('ul').slideToggle();$item.siblings().find('ul').slideUp();event.preventDefault();}});};konte.toggleOffCanvas=function(){$(document.body).on('click','[data-toggle="off-canvas"]',function(event){var target='#'+$(this).data('target');if($(target).hasClass('open')){konte.closeOffCanvas(target);}else if(konte.openOffCanvas(target)){event.preventDefault();}}).on('click','.offscreen-panel .button-close, .offscreen-panel .backdrop',function(event){event.preventDefault();konte.closeOffCanvas(this);}).on('keyup',function(e){if(e.keyCode===27){konte.closeOffCanvas();}});};konte.openOffCanvas=function(target){var $target=$(target);if(!$target.length){return false;}
1578$target.fadeIn();$target.addClass('open');$(document.body).addClass('offcanvas-opened '+$target.attr('id')+'-opened').trigger('konte_off_canvas_opened',[$target]);return true;}
1579konte.closeOffCanvas=function(target){if(!target){$('.offscreen-panel').each(function(){var $panel=$(this);if(!$panel.hasClass('open')){return;}
1580$panel.removeClass('open').fadeOut();$(document.body).removeClass($panel.attr('id')+'-opened');});}else{target=$(target).closest('.offscreen-panel');target.removeClass('open').fadeOut();$(document.body).removeClass(target.attr('id')+'-opened');}
1581$(document.body).removeClass('offcanvas-opened').trigger('konte_off_canvas_closed',[target]);}
1582konte.toggleModals=function(){$(document.body).on('click','[data-toggle="modal"]',function(event){var target='#'+$(this).data('target');if($(target).hasClass('open')){konte.closeModal(target);}else if(konte.openModal(target)){event.preventDefault();}}).on('click','.modal .button-close, .modal .backdrop',function(event){event.preventDefault();konte.closeModal(this);}).on('keyup',function(e){if(e.keyCode===27){konte.closeModal();}});};konte.openModal=function(target){var $target=$(target);if(!$target.length){return false;}
1583$target.fadeIn();$target.addClass('open');$(document.body).addClass('modal-opened '+$target.attr('id')+'-opened').trigger('konte_modal_opened',[$target]);return true;}
1584konte.closeModal=function(target){if(!target){$('.modal').removeClass('open').fadeOut();$('.modal').each(function(){var $modal=$(this);if(!$modal.hasClass('open')){return;}
1585$modal.removeClass('open').fadeOut();$(document.body).removeClass($modal.attr('id')+'-opened');});}else{target=$(target).closest('.modal');target.removeClass('open').fadeOut();$(document.body).removeClass(target.attr('id')+'-opened');}
1586$(document.body).removeClass('modal-opened').trigger('konte_modal_closed',[target]);}
1587konte.featuredContentCarousel=function(){var $featured=$('#featured-content-carousel'),options={rtl:!!konte.data.rtl,prevArrow:'<span class="slick-prev slick-arrow svg-icon icon-left icon-small"><svg width="16" height="16"><use xlink:href="#left"></use></svg></span>',nextArrow:'<span class="slick-next slick-arrow svg-icon icon-right icon-small"><svg width="16" height="16"><use xlink:href="#right"></use></svg></span>'};if(!$featured.length){return;}
1588if($featured.hasClass('carousel')){options.infinite=false;options.slidesToShow=3;options.slidesToScroll=3;options.responsive=[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}];$featured.on('init reInit breakpoint',function(event,slick){slick.$slides.each(function(){loadBackgroun
1588dImage(this);});});}else{if('fade'===$featured.data('effect')){options.fade=true;}
1589$featured.on('beforeChange',function(event,slick,currentSlide,nextSlide){loadBackgroundImage(slick.$slides.get(nextSlide));});$featured.on('init reInit breakpoint',function(event,slick){loadBackgroundImage(slick.$slides.get(slick.currentSlide));});}
1590$featured.slick(options);function loadBackgroundImage(el){var $el=$(el).find('.featured-item');if($el.data('lazy')){$el.css('background-image','url('+$el.data('lazy')+')');}
1591$el.data('lazy_loaded',true).removeClass('loading');}};konte.loadMorePosts=function(){if($(document.body).hasClass('page-template-flex-posts')){return;}
1592$(document.body).on('click','.navigation.next-posts-navigation a',function(event){event.preventDefault();var $el=$(this),$navigation=$el.closest('.navigation'),url=$el.attr('href');if($el.hasClass('loading')){return;}
1593$el.addClass('loading');$.get(url,function(response){var $content=$('#main',response),$posts=$('.hentry',$content),$nav=$('.next-posts-navigation',$content);$posts.each(function(index,post){$(post).css('animation-delay',index*100+'ms');});if($navigation.prev('.posts-wrapper').length){$posts.appendTo($navigation.prev('.posts-wrapper'));}else{$posts.insertBefore($navigation);}
1594$posts.addClass('animated konteFadeInUp');if($nav.length){$el.replaceWith($('a',$nav));}else{$el.removeClass('loading');$navigation.fadeOut();}
1595if($navigation.hasClass('next-projects-navigation')){if(konte.data.portfolio_nav_ajax_url_change){window.history.pushState(null,'',url);}}else if(konte.data.blog_nav_ajax_url_change){window.history.pushState(null,'',url);}
1596$(document.body).trigger('konte_posts_loaded',[$posts,true]);});});};konte.fetchPostTotalShare=function(){$('.total-shares.fetching:visible').each(function(){var $share=$(this),post_id=$share.data('post_id');if(!post_id){return;}
1597$.post(konte.data.ajax_url,{action:'konte_get_total_shares',post_id:post_id,security:konte.data.share_nonce},function(response){$share.removeClass('fetching');if(response.success){$('.count',$share).html(response.data);}});});};konte.postsSliderWidget=function(){$('.posts-slider-widget .posts-slider').slick({rtl:!!konte.data.rtl,adaptiveHeight:true,autoplay:true,autoplaySpeed:3000,prevArrow:'<span class="slick-prev slick-arrow svg-icon icon-left icon-small"><svg width="16" height="16"><use xlink:href="#left"></use></svg></span>',nextArrow:'<span class="slick-next slick-arrow svg-icon icon-right icon-small"><svg width="16" height="16"><use xlink:href="#right"></use></svg></span>'});};konte.stickySidebar=function(){if($.fn.stick_in_parent&&$(window).width()>767){$('#secondary.sticky-sidebar').stick_in_parent();}
1598$(document.body).on('wc_fragments_refreshed post-load konte_products_loaded',function(){$(document.body).trigger('sticky_kit:recalc');});};konte.closeTopbar=function(){$(document.body).on('click','.close-topbar',function(event){event.preventDefault();$('#topbar').slideUp();});};konte.stickyHeader=function(){if(!konte.data.sticky_header||'none'===konte.data.sticky_header){return;}
1599var $window=$(window),$header=$('#masthead'),$sticker=$header,$topbar=$('#to
1599pbar'),offset=0;if($header.hasClass('header-v10')){$sticker=$header.find('.header-main .header-right-items');}
1600if(!$sticker.length){return;}
1601if($topbar.length){offset+=$topbar.outerHeight();}
1602if('smart'===konte.data.sticky_header){offset+=$topbar.length?0:$sticker.outerHeight();var stickyHeader=new Headroom($sticker.get(0),{offset:offset});stickyHeader.init();}else{sticky(offset);$window.on('scroll',function(){sticky(offset);});}
1603function sticky(topSpacing){if($sticker.hasClass('sticky--ignore')){return;}
1604topSpacing=topSpacing?topSpacing:0;if($window.scrollTop()>topSpacing){$sticker.addClass('sticky');}else{$sticker.removeClass('sticky');}}};konte.pageHeaderHeight=function(){var $pageHeader=$('.page .page-header.full-height');if(!$pageHeader.length){return;}
1605var $topbar=$('#topbar'),$header=$('#masthead'),height=$(window).height();if($topbar.length){height-=$topbar.outerHeight();}
1606if(!$header.hasClass('transparent')){height-=$header.outerHeight();$pageHeader.css('marginTop','-'+$('#content').css('paddingTop'));}
1607if($pageHeader.hasClass('title-front')){$pageHeader.height(height);}else{$pageHeader.find('.entry-thumbnail').height(height);}};konte.scrollDown=function(){$(document.body).on('click','.scroll',function(event){event.preventDefault();var offset=$(this).parent().next().offset().top;$('html, body').animate({scrollTop:offset});});};konte.closeWCMessages=function(){$(document.body).on('click','.woocommerce-message .close-message, .woocommerce-error .close-message, .woocommerce-info .close-message',function(event){event.preventDefault();$(this).closest('div').fadeOut();});$(document.body).on('click','.wc-block-components-notice-banner__close',function(event){event.preventDefault();$(this).closest('.wc-block-components-notice-banner').fadeOut();});};konte.productQuantityButtons=function(){$(document.body).on('click','.quantity .increase, .quantity .decrease',function(event){event.preventDefault();var $this=$(this),$qty=$this.siblings('.qty'),current=parseFloat($qty.val()),min=parseFloat($qty.attr('min')),max=parseFloat($qty.attr('max')),step=parseFloat($qty.attr('step'));current=current?current:0;min=min?min:0;max=max?max:current+1;step=step?step:1;if($this.hasClass('decrease')&&current>min){$qty.val(current-step);$qty.trigger('change');}
1608if($this.hasClass('increase')&&current<max){$qty.val(current+step);$qty.trigger('change');}});};konte.singleProductAjaxAddToCart=function(){if('1'!==konte.data.product_ajax_addtocart){return;}
1609$(document.body).on('submit','form.cart',function(event){var $form=$(this);if($form.closest('div.product').hasClass('product-type-external')||$form.data('with_ajax')){return;}
1610event.preventDefault();var	$button=$form.find('.single_add_to_cart_button'),formData=new FormData(this);if(formData.has('add-to-cart')){formData.delete('add-to-cart');}
1611formData.append('konte-add-to-cart',$form.find('[name="add-to-cart"]').val());$.ajax({url:woocommerce_params.wc_ajax_url.toString().replace('%%endpoint%%','konte_ajax_add_to_cart'),data:formData,method:'POST',contentType:false,processData:false,beforeSend:function(){$button.removeClass('added').addClass('loading disabled').prop('disabled',true);},complete:function(response){$button.removeClass('loading disabled').addClass('added').prop('disabled',false);response=response.responseJSON;if(!response){return;}
1612if(response.error&&response.product_url){window.location=response.product_url;return;}
1613var $notices=$(response.fragments.notices_html),isAdded=$notices.hasClass('woocommerce-message')||$notices.hasClass('is-success');if(isAdded){$(document.body).trigger('added_to_cart',[response.fragments,response.cart_hash,$button]);if('undefined'===typeof wc_add_to_cart_params){$(document.body).trigger('wc_fragment_refresh');}}
1614if(konte.data.cart_open_after_added!=='1'||!isAdded){konte.displayAlertBar(response.fragments.notices_html);}
1615if('undefined'!==typeof wc_add_to_cart_params&&wc_add_to_cart_params.cart_redirect_after_add==='yes'){window.location=wc_add_to_cart_params.cart_url;return;}},error:function(){$form.data('with_ajax',false).trigger('submit');}});});};konte.displayAlertBar=function(message,duration){if(!message){return;}
1616if(typeof duration!=="number"){duration=5000;}
1617if(!konte.alertTimeout){konte.alertTimeout=null;}
1618var $alert=$('#konte-woocommerce-alert');if(!$alert.length){$alert=$('<div id="konte-woocommerce-alert" class="konte-woocommerce-alert"></div>');
1618$(document.body).append($alert);}
1619$alert.html(message);setTimeout(function(){$alert.addClass('active');},100);$alert.one('click','.close-message, .wc-block-components-notice-banner__close',function(e){e.preventDefault();$alert.removeClass('active');});if(duration){clearTimeout(konte.alertTimeout);konte.alertTimeout=setTimeout(function(){$alert.removeClass('active');},duration);}}
1620konte.stickyAddToCart=function(){var $sticky=$('.sticky-cart-form');if(!$sticky.length){return;}
1621$sticky.find('.add-to-wishlist-button, .wcboost-wishlist-button, .wcboost-products-compare-button, .product-share').remove();var $forms=$('form.cart',$sticky.closest('div.product')),$originalForm=$forms.first(),$image=$sticky.find('.sticky-cart-form__product-image img'),$price=$sticky.find('.sticky-cart-form__product-summary .price'),$stickyHeader=$('#masthead'),stickyPosition=$sticky.data('position'),offset=0,doingSync=false;if($stickyHeader.hasClass('header-v10')){$stickyHeader=$stickyHeader.find('.header-main .header-right-items');}
1622if(konte.data.sticky_header&&'none'!==konte.data.sticky_header){offset=$stickyHeader.height();}
1623$forms.on('reset_data',function(){$image.attr('src',$image.data('o_src'));
1623$price.show().siblings('.variation-price, .stock').remove();}).on('found_variation',function(event,variation){if(variation.image&&variation.image.gallery_thumbnail_src&&variation.image.gallery_thumbnail_src.length>1){$image.attr('src',variation.image.gallery_thumbnail_src);}
1624if(variation.availability_html&&variation.availability_html.length){$price.hide().siblings('.stock, .variation-price').remove();$price.after(variation.availability_html);}else{$price.siblings('.stock').remove();if(variation.price_html&&variation.price_html.length){$price.hide().siblings('.variation-price').remove();$price.after($(variation.price_html).addClass('variation-price'));}}}).on('change',':input',function(){if(doingSync){return;}
1625doingSync=true;var $currentForm=$(this).closest('form.cart'),$targetForm=$forms.not($currentForm);$targetForm.find(':input[name="'+this.name+'"]').val(this.value).trigger('change');doingSync=false;});$sticky.on('click','.grouped_form .single_add_to_cart_button, .bundle_form .single_add_to_cart_button',function(){$('html, body').animate({scrollTop:$originalForm.offset().top-offset},800);return false;}).on('click','.sticky-cart-form__mobile-button',function(event){event.preventDefault();if(this.dataset.product_type==='simple'||this.dataset.product_type==='grouped'||this.dataset.product_type==='external'){$sticky.find('.single_add_to_cart_button').trigger('click');}else{$('html, body').animate({scrollTop:$originalForm.offset().top-offset},800);}});var	lastKnownScrollPosition=window.scrollY,ticking=false,rAF=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame;var checkFormVisibility=function(position){if(position>=($originalForm.offset().top+$originalForm.height()-offset)){$sticky.attr('aria-hidden',false).removeClass('sticky-cart-form--unpin').addClass('sticky-cart-form--pin');document.body.classList.add('sticky-cart-form-pinned-'+stickyPosition);if('top'===$sticky.data('position')&&konte.data.sticky_header&&'none'!==konte.data.sticky_header){$stickyHeader.addClass('sticky--ignore');}}else{$sticky.attr('aria-hidden',true).removeClass('sticky-cart-form--pin').addClass('sticky-cart-form--unpin');document.body.classList.remove('sticky-cart-form-pinned-'+stickyPosition);if('top'===$sticky.data('position')&&konte.data.sticky_header&&'none'!==konte.data.sticky_header){$stickyHeader.removeClass('sticky--ignore');}}};document.addEventListener('scroll',function(){lastKnownScrollPosition=window.scrollY;if(!ticking){rAF(function(){checkFormVisibility(lastKnownScrollPosition);ticking=false;});ticking=true;}});rAF(function(){checkFormVisibility(lastKnownScrollPosition);ticking=false;});if('bottom'===$sticky.data('position')){$('#colophon').css('margin-bottom',$sticky.outerHeight());}}
1626konte.cartPanel=function(){var $panel=$('#cart-panel');if(!$panel.length){return;}
1627if(typeof PerfectScrollbar!=='undefined'){new PerfectScrollbar($panel.find('.panel-content').get(0));}
1628if('1'===konte.data.cart_open_after_added){$(document.body).on('added_to_cart',function(){if($('#cart
1628-panel').hasClass('open')){return;}
1629konte.closeOffCanvas(false);setTimeout(function(){konte.openOffCanvas('#cart-panel');},0);});}};konte.reviewProduct=function(){setTimeout(function(){$('#respond p.stars a').prepend('<span class="svg-icon icon-star"><svg><use xlink:href="#star"></use></svg></span>');},100);$(document.body).on('click','.add-review',function(event){event.preventDefault();var $reviews=$(this).closest('#reviews');$('#review_form_wrapper',$reviews).fadeIn();$('#comments',$reviews).fadeOut();}).on('click','.cancel-review a',function(event){event.preventDefault();var $reviews=$(this).closest('#reviews');$('#review_form_wrapper',$reviews).fadeOut();$('#comments',$reviews).fadeIn();});$('#review_form').on('focus','input, textarea',function(){$(this).parent().addClass('focused');}).on('blur','input, textarea',function(){if($(this).val()===''){$(this).parent().removeClass('focused');}}).find('input, textarea').each(function(){if($(this).val()!==''){$(this).parent().addClass('focused');}});};konte.toggleProductTabs=function(){var $product=$('div.product');if($product.hasClass('layout-v6')||$product.hasClass('layout-v7')){return;}
1630$(document.body).off('click','.woocommerce-tabs.panels-offscreen .wc-tabs li a, .woocommerce-tabs.panels-offscreen ul.tabs li a').on('click','.woocommerce-tabs.panels-offscreen .wc-tabs li a',function(event){event.preventDefault();var $el=$(this),$wrapper=$el.closest('.wc-tabs-wrapper, .woocommerce-tabs'),$tabs=$wrapper.find('.wc-tabs, ul.tabs'),$panels=$wrapper.find('.panels'),$target=$wrapper.find($el.attr('href'));$tabs.find('li').removeClass('active');$el.closest('li').addClass('active');$panels.find('.panel').show();$panels.fadeIn();$target.addClass('open');$(document.body).addClass('offcanvas-opened');}).on('click','.woocommerce-tabs .backdrop, .woocommerce-tabs .button-close',function(event){event.preventDefault();var $wrapper=$(this).closest('.wc-tabs-wrapper, .woocommerce-tabs'),$panels=$wrapper.find('.panels'),$opened=$panels.find('.panel.open');$opened.removeClass('open');$wrapper.find('.tabs').children('li').removeClass('active');$panels.fadeOut();if($opened.is('#tab-reviews')){$opened.find('#review_form_wrapper').fadeOut();$opened.find('#comments').fadeIn();}
1631$(document.body).removeClass('offcanvas-opened');}).on('keyup',function(e){if(e.keyCode===27){var $wrapper=$('.wc-tabs-wrapper, .woocommerce-tabs'),$panels=$wrapper.find('.panels'),$opened=$panels.find('.panel.open');$opened.removeClass('open');$wrapper.find('.tabs').children('li').removeClass('active');$panels.fadeOut();if($opened.is('#tab-reviews')){$opened.find('#review_form_wrapper').fadeOut();$opened.find('#comments').fadeIn();}
1632$(document.body).removeClass('offcanvas-opened');}});$product.find('.wc-tabs, ul.tabs').first().find('li.active').removeClass('active');if(window.location.hash){var $tabLink=$product.find('.wc-tabs, ul.tabs').first().find('li a[href="'+window.location.hash+'"]');if($tabLink.length){$tabLink.trigger('click');}}};konte.productFullWidth=function($product){var $window=$(window);changeProductWidth();$window.on('resize',function(){changeProductWidth();});function changeProductWidth(){var width=$window.width();width-=konte.getVerticalHeaderWidth();$product.width(width);if(konte.data.rtl){$product.css('marginRight',-width/2);}else{$product.css('marginLeft',-width/2);}}};konte.productLightBox=function(){if(typeof wc_single_product_params==='undefined'||wc_single_product_params.photoswipe_enabled!=='1'){return;}
1633$('.woocommerce-product-gallery').on('click','.zoomImg',function(){if(wc_single_product_params.flexslider_enabled){$(this).closest('.woocommerce-product-gallery').children('.woocommerce-product-gallery__trigger').trigger('click');}else{$(this).prev('a').trigger('click');}});};konte.productBackgroundFromGallery=function($product){if(typeof BackgroundColorTheif=='undefined'){return;}
1634var $gallery=$product.find('.woocommerce-product-gallery'),$image=$gallery.find('.wp-post-image'),imageColor=new BackgroundColorTheif();$image.one('load',function(){setTimeout(function(){changeProductBackground($image.get(0));},100);}).each(function(){this.crossOrigin='Anonymous';if(this.complete){$(this).trigger('load');}});setTimeout(function(){var slider=$gallery.data('flexslider');if(!slider){return;}
1635slider.vars.before=function(slider){setTimeout(function(){changeProductBackgroun
1635d(slider.slides.filter('.flex-active-slide').find('a img').get(0));},150);};},150);$gallery.on('jetpack-lazy-loaded-image','.wp-post-image',function(){$(this).one('load',function(){changeProductBackground(this);});});$gallery.on('woocommerce_gallery_reset_slide_position',function(){changeProductBackground($image.get(0));});function changeProductBackground(image){if(image.src===''){return;}
1636if(image.classList.contains('jetpack-lazy-image')){if(!image.dataset['lazyLoaded']){return;}}
1637var rgb=imageColor.getBackGroundColor(image);$product.get(0).style.backgroundColor='rgb('+rgb[0]+','+rgb[1]+','+rgb[2]+')';}}
1638konte.productVariationSwatches=function(){$(document.body).on('tawcvs_initialized',function(){var $form=$('.variations_form');konte.modifyVariationSwatches($form);});};konte.productGalleryCarousel=function(){var $product=$('div.product');if(!$product.length){return;}
1639var $gallery=$('.woocommerce-product-gallery',$product);if(!$gallery.length){return;}
1640setTimeout(function(){$gallery.each(function(){konte.addIndexToCarouselControlNav(this);})},100);};konte.addIndexToCarouselControlNav=function(carousel){$('.flex-control-nav > li',carousel).each(function(index,el){$(el).append($('<span class="flex-nav-index"/>').text(index+1));});}
1641konte.singleProductV1=function(){var $product=$('div.product.layout-v1');if(!$product.length){return;}
1642konte.productFullWidth($product);$product.css({paddingTop:$('#masthead').height()});if(!$product.hasClass('background-set')&&konte.data.product_auto_background==='1'){try{konte.productBackgroundFromGallery($product);}catch(e){console.warn(e);}}
1643var $gallery=$('.woocommerce-product-gallery',$product);$(window).on('resize',function(){var slider=$gallery.data('flexslider');if(slider){setTimeout(function(){var setHeight=$('.woocommerce-product-gallery__image:eq(0)',$gallery).height();$gallery.height(setHeight);},100);}
1644$product.css({paddingTop:$('#masthead').height()});});};konte.singleProductV2=function(){var $product=$('div.product.layout-v2');if(!$product.length){return;}
1645var $window=$(window),$summary=$product.find('.summary'),summarySticky=false;konte.productFullWidth($product);if('1'===konte.data.product_image_zoom){$product.find('.woocommerce-product-gallery .woocommerce-product-gallery__image').each(function(){konte.zoomSingleProductImage(this);});}
1646if($.fn.stick_in_parent&&konte.data.product_sticky_summary&&konte.data.product_summary_sticky_mode=='advanced'){$summary.on('sticky_kit:bottom',function(){$(this).parent().css('position','static');});stickySummary();$window.on('resize',stickySummary);}
1647function stickySummary(){var options={};if(konte.data.sticky_header==='normal'){var offset=$('#masthead').height(),$topbar=$('#to
1647pbar');if($topbar.length){offset+=$topbar.height();}
1648options={recalc_every:1,offset_top:offset}}
1649if($window.width()>991){if(!summarySticky){$summary.stick_in_parent(options);}
1650summarySticky=true;}else{$summary.trigger('sticky_kit:detach');summarySticky=false;}}}
1651konte.singleProductV3=function(){var $product=$('div.product.layout-v3');if(!$product.length){return;}
1652var $header=$('#masthead');$product.css({paddingTop:$header.height()});$('.product-toolbar').css({top:$header.height()});if(!$product.hasClass('background-set')&&konte.data.product_auto_background==='1'){konte.productBackgroundFromGallery($product);}
1653$('.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:eq(0) .wp-post-image').one('load',setGalleryHeight);setTimeout(function(){setGalleryHeight();},200);$(window).on('resize',setGalleryHeight);function setGalleryHeight(){var height=$(window).height()-$header.outerHeight()-$('#colophon').outerHeight()+19,$topbar=$('#topbar'),$footer=$('.footer-main');if($topbar.length){height-=$topbar.outerHeight();}
1654if($footer.length){height-=parseFloat($footer.css('padding-top'));}
1655$product.find('.woocommerce-product-gallery').css({maxHeight:height,height:height});}}
1656konte.singleProductV4=function(){var $product=$('div.product.layout-v4');if(!$product.length){return;}
1657if('dropdown'===konte.data.product_quantity_input_style){$product.find('.summary .quantity .qty').quantityDropdown();}}
1658konte.singleProductV5=function(){var $product=$('div.product.layout-v5'),$summary=$product.find('.summary'),$summaryInner=$summary.children('.summary-inner'),$window=$(window),headerHeight=$('#masthead').height(),summarySticky=false;if(!$product.length){return;}
1659productWidth();$window.on('resize',function(){productWidth();});$summary.css({paddingTop:headerHeight});if(konte.data.product_image_zoom){$product.find('.product-gallery-thumbnails .woocommerce-product-gallery__image').each(function(){konte.zoomSingleProductImage(this);});}
1660if($.fn.stick_in_parent&&konte.data.product_sticky_summary&&konte.data.product_summary_sticky_mode=='advanced'){$summaryInner.css('max-height',$window.height()-headerHeight);$summaryInner.on('sticky_kit:bottom',function(){$(this).closest('.product-gallery-summary').addClass('summary-sticky-bottom');}).on('sticky_kit:unbottom',function(){$(this).closest('.product-gallery-summary').removeClass('summary-sticky-bottom');});setTimeout(function(){stickySummary();},100);$window.on('resize',stickySummary);}
1661function productWidth(){var width=$window.width(),bonus=width>1440?60:0;width-=konte.getVerticalHeaderWidth();$product.width(width);if(konte.data.rtl){$product.css('margin-right',-width/2);$summary.css('padding-left',width/2-$('.konte-container').width()/2+bonus);}else{$product.css('margin-left',-width/2);$summary.css('padding-right',width/2-$('.konte-container').width()/2+bonus);}}
1662function stickySummary(){var options={parent:$product.get(0)};if(konte.data.sticky_header==='normal'){var offset=$('#masthead').height(),$topbar=$('#to
1662pbar');if($topbar.length){offset+=$topbar.height();}
1663options={recalc_every:1,offset_top:offset,parent:$product.get(0)}}
1664if($window.width()>991){if(!summarySticky){$summaryInner.stick_in_parent(options);}
1665summarySticky=true;}else{$summaryInner.trigger('sticky_kit:detach');summarySticky=false;}}};konte.singleProductV6=function(){var $product=$('div.product.layout-v6');if(!$product.length){return;}};konte.singleProductV7=function(){var $product=$('div.product.layout-v7');if(!$product.length){return;}};konte.productGalleryThumbnailCarousel=function(options){var $product=$('div.product');if(!$product.length){return;}
1666var $gallery=$('.woocommerce-product-gallery',$product),$thumbnails=$gallery.find('.flex-control-thumbs'),options={rtl:!!konte.data.rtl,vertical:false,verticalSwiping:false,swipeToSlide:true,touchThreshold:100,infinite:false,slidesToShow:4,slidesToScroll:1,prevArrow:'<span class="slick-prev slick-arrow svg-icon icon-left icon-small"><svg width="16" height="16"><use xlink:href="#left"></use></svg></span>',nextArrow:'<span class="slick-next slick-arrow svg-icon icon-right icon-small"><svg width="16" height="16"><use xlink:href="#right"></use></svg></span>'};if($product.hasClass('layout-v4')){options.vertical=true,options.verticalSwiping=true;}else if($product.hasClass('layout-v6')){options.vertical=true,options.verticalSwiping=true;}else if($product.hasClass('layout-v7')){options.adaptiveHeight=true;}
1667var isVertical=options.vertical?true:false;if($gallery.hasClass('woocommerce-product-gallery--mobile-nav-dots')){options.responsive=[{breakpoint:991,settings:'unslick'}];}else if($gallery.hasClass('woocommerce-product-gallery--mobile-nav-thumbnails')){options.mobileFirst=true;options.responsive=[{breakpoint:0,settings:{variableWidth:true,vertical:false,verticalSwiping:false,}}];var desktopOptions={breakpoint:992,settings:{}}
1668if($gallery.hasClass('woocommerce-product-gallery--nav-thumbnails')){desktopOptions.settings={vertical:options.vertical,verticalSwiping:options.verticalSwiping};delete options.vertical;delete options.verticalSwiping;}else{desktopOptions.settings='unslick';}
1669options.responsive.push(desktopOptions);}
1670var initGalleryThumbsCarousel=function(){var slidesToShow=0;if(isVertical){if(options.mobileFirst&&window.innerWidth<992){slidesToShow=parseInt($gallery.width()/($thumbnails.find('li:eq(0) > img').width()+10));}else{slidesToShow=parseInt($gallery.height()/($thumbnails.find('li:eq(0) > img').height()));}}else{slidesToShow=parseInt($gallery.width()/($thumbnails.find('li:eq(0)').width()+10));}
1671if(!options.mobileFirst||window.innerWidth>=992||!isVertical){options.slidesToShow=slidesToShow;}
1672if(!$thumbnails.hasClass('slick-initialized')&&slidesToShow&&$thumbnails.children().length>slidesToShow){$thumbnails.slick(options);}};setTimeout(function(){if(!$thumbnails.length){$gallery=$('.woocommerce-product-gallery',$product);$thumbnails=$gallery.find('.flex-control-thumbs');}
1673var firstThumb=$thumbnails.children().first().find('img').get(0);if(!firstThumb){return;}
1674if(firstThumb.complete){initGalleryThumbsCarousel();}else{firstThumb.addEventListener('load',initGalleryThumbsCarousel);}},200);$(window).on('resize',function(){setTimeout(function(){if(!$.contains(document.documentElement,$thumbnails.get(0))){$gallery=$('.woocommerce-product-gallery',$product);$thumbnails=$gallery.find('.flex-control-thumbs');}
1675initGalleryThumbsCarousel();},200);});}
1676konte.responsiveProductGallery=function(){if(konte.data.product_gallery_slider||!$.fn.wc_product_gallery){return;}
1677var $window=$(window),$product=$('.woocommerce div.product'),default_flexslider_enabled=false,default_flexslider_options={};if(!$product.length){return;}
1678var $gallery=$('.woocommerce-product-gallery',$product),$originalGallery=$gallery.clone(),sliderActive=$gallery.find('.flex-viewport').length;$originalGallery.children('.woocommerce-product-gallery__trigger').remove();$originalGallery.off();if(typeof wc_single_product_params!==undefined){default_flexslider_enabled=wc_single_product_params.flexslider_enabled;default_flexslider_options=wc_single_product_params.flexslider;}
1679initProductGallery();$window.on('resize',initProductGallery);function initProductGallery(){if($window.width()>991){if(!sliderActive){return;}
1680if(typeof wc_single_product_params!==undefined){wc_single_product_params.flexslider_enabled=default_flexslider_enabled;wc_single_product_params.flexslider=default_flexslider_options;}
1681$gallery.replaceWith($originalGallery.clone());$gallery=$('.woocommerce-product-gallery',$product);$gallery.each(function(){$(this).wc_product_gallery();});$('form.variations_form select',$product).trigger('change');if('1'===konte.data.product_image_zoom&&$product.hasClass('layout-v2')){$gallery.find('.woocommerce-product-gallery__image').each(function(){konte.zoomSingleProductImage(this);});}
1682sliderActive=false;}else{if(sliderActive){return;}
1683if(typeof wc_single_product_params!==undefined){wc_single_product_params.flexslider_enabled=true;}
1684$gallery.replaceWith($originalGallery.clone());$gallery=$('.woocommerce-product-gallery',$product);$(document.body).trigger('konte_lazy_load_images');setTimeout(function(){$gallery.each(function(){$(this).wc_product_gallery();konte.addIndexToCarouselControlNav(this);});},100);$('form.variations_form select',$product).trigger('change');sliderActive=true;}}};konte.relatedProductsCarousel=function(){if(typeof Swiper==='undefined'){return;}
1685var $related=$('.products.related, .products.upsells');if(!$related.length){return;}
1686var $products=$related.find('ul.products');$products.wrap('<div class="konte-swiper-container swiper-container linked-products-carousel" style="opacity: 0;"></div>');$products.after('<div class="swiper-pagination"></div>');$products.addClass('swiper-wrapper');$products.find('li.product').addClass('swiper-slide');var carousel=new Swiper('.linked-products-carousel',{loop:false,slidesPerView:1,slidesPerGroup:1,spaceBetween:40,speed:800,watchOverflow:true,pagination:{el:'.
1686swiper-pagination',type:'bullets',clickable:true,renderBullet:function(index,className){return'<span class="'+className+'"><span></span></span>';}},on:{init:function(){this.$el.css('opacity',1);}},breakpoints:{360:{spaceBetween:20,slidesPerView:2,slidesPerGroup:2},768:{spaceBetween:20,slidesPerView:2,slidesPerGroup:2},992:{slidesPerView:3,slidesPerGroup:3},1200:{slidesPerView:4,slidesPerGroup:4}}});};konte.zoomSingleProductImage=function(zoomTarget){if(typeof wc_single_product_params=='undefined'||!$.fn.zoom){return;}
1687var $target=$(zoomTarget),width=$target.width(),zoomEnabled=false;$target.each(function(index,target){var $image=$(target).find('img');if($image.data('large_image_width')>width){zoomEnabled=true;return false;}});if(zoomEnabled){var zoom_options=$.extend({touch:false},wc_single_product_params.zoom_options);if('ontouchstart'in document.documentElement){zoom_options.on='click';}
1688$target.trigger('zoom.destroy');$target.zoom(zoom_options);}}
1689konte.formFieldFocus=function(){$(document.body).on('focus','.form-row .input-text, .wpcf7-form-control',function(){$(this).parent().addClass('focused');if($(this).is('.wpcf7-form-control')){$(this).closest('label').addClass('focused');}else{$(this).closest('.form-row').addClass('focused');}}).on('blur','.form-row  .input-text, .wpcf7-form-control',function(){if($(this).val()===''){if($(this).is('.wpcf7-form-control')){$(this).closest('label').removeClass('focused');}else{$(this).closest('.form-row').removeClass('focused');}}}).find('.form-row .input-text, .wpcf7-form-control').each(function(){if($(this).val()!=''){if($(this).is('.wpcf7-form-control')){$(this).closest('label').addClass('focused');}else{$(this).closest('.form-row').addClass('focused');}}});};konte.loginTabs=function(){$(document.body).on('click','.login-tabs-nav .tab-nav',function(event){event.preventDefault();var $tab=$(this),$panels=$tab.parent().siblings('.u-columns');if($tab.hasClass('active')){return;}
1690$tab.addClass('active').siblings().removeClass('active');$panels.children().eq($tab.index()).addClass('active').siblings().removeClass('active');});};konte.loginPanel=function(){$(document.body).on('click','#login-panel .create-account',function(event){event.preventDefault();$(this).closest('form.login').fadeOut(function(){$(this).next('form.register').fadeIn();});}).on('click','#login-panel a.login',function(event){event.preventDefault();$(this).closest('form.register').fadeOut(function(){$(this).prev('form.login').fadeIn();});}).on('click','[data-toggle="off-canvas"][data-target="login-panel"]',function(){$('#login-panel').find('form').hide().filter('.login').show();});};konte.loginPanelAuthenticate=function(){$('#login-panel').on('submit','form.login',function authenticate(event){var username=$('input[name=username]',this).val(),password=$('input[name=password]',this).val(),remember=$('input[name=rememberme]',this).is(':checked'),nonce=$('input[name=woocommerce-login-nonce]',this).val(),$button=$('[type=submit]',this),$form=$(this),$box=$form.next('.woocommerce-error');if(!username){$('input[name=username]',this).focus();return false;}
1691if(!password){$('input[name=password]',this).focus();return false;}
1692$form.find('.woocommerce-error').remove();if($form.data('validated')){return true;}
1693$button.html('<span class="spinner"></span>');if($box.length){$box.fadeOut();}
1694$.post(konte.data.ajax_url,{action:'konte_login_authenticate',security:nonce,username:username,password:password,remember:remember},function(response){if(!response.success){if(!$box.length){$box=$('<div class="woocommerce-error" role="alert"/>');$box.append('<span class="svg-icon icon-error size-normal message-icon"><svg role="img"><use href="#error" xlink:href="#error"></use></svg></span>').append('<ul class="error-message" />').append('<span class="svg-icon icon-close size-normal close-message"><svg role="img"><use href="#close" xlink:href="#close"></use></svg></span>');$box.hide().prependTo($form);}
1695$box.find('.error-message').html('<li>'+response.data+'</li>');$box.fadeIn();$button.html($button.attr('value'));}else{$form.data('validated',true).submit();$button.html($button.data('signed'));}});event.preventDefault();}).on('click','.woocommerce-error .close-message',function(){$(this).closest('.woocommerce-error').fadeOut(function(){$(this).remove();});return false;});};konte.productsMasonry=function(){var $container=$('ul.products.layout-masonry'),$window=$(window);
1695if(!$.fn.masonry||!$container.length){return;}
1696$container.on('layoutComplete',layoutMasonry);initMansonry();$window.on('resize',initMansonry);$(document.body).on('post-load konte_products_loaded',function(event,products,appended){if($window.width()<992){return;}
1697if(appended){$container.masonry('appended',products).masonry();}else{$container=$('ul.products.layout-masonry');$container.on('layoutComplete',layoutMasonry);initMansonry();}});function initMansonry(){if($container.children().length<=1){return;}
1698if($window.width()<992){$container.each(function(){var $this=$(this);if($this.hasClass('masonry')){$this.masonry('destroy');}});}else{$container.each(function(){var $this=$(this),options={itemSelector:'li.product',columnWidth:'li.product:nth-child(2)',percentPosition:true,transitionDuration:0,isRTL:!!konte.data.rtl};if(!$this.hasClass('masonry')){$this.masonry(options);$this.imagesLoaded().progress(function(){$this.masonry('layout');});}});}}
1699function layoutMasonry(){var prop=konte.data.rtl?'right':'left';$container.children(':nth-child(10n+1), :nth-child(10n+6), :nth-child(10n+9)').css(prop,'0').end().children(':nth-child(10n+2), :nth-child(10n+4)').css(prop,'50%').end().children(':nth-child(10n+3), :nth-child(10n+5), :nth-child(10n+8), :nth-child(10n)').css(prop,'75%').end().children(':nth-child(10n+7)').css(prop,'25%');}};konte.productsCarousel=function(){var $container=$('.products-carousel');
1699if(!$container.length){return;}
1700$container.find('ul.products li.product').addClass('swiper-slide');var carousel=new Swiper('.products-carousel',{loop:false,slidesPerView:1,spaceBetween:40,scrollbar:{el:'.swiper-scrollbar',hide:false,draggable:true},on:{init:function(){$container.css('opacity',1);}},breakpoints:{360:{slidesPerView:2},992:{slidesPerView:3},1200:{slidesPerView:4}}});var xhr;carousel.on('reachEnd',function(){var $nav=$('.woocommerce-navigation.ajax-navigation');if(!$nav.length){return;}
1701if(xhr){return;}
1702var loadingHolder=document.createElement('li');$(loadingHolder).addClass('swiper-slide loading-placeholder').css({height:carousel.height-140}).append('<span class="spinner"></span>');carousel.appendSlide(loadingHolder);carousel.update();xhr=$.get($nav.find('a').attr('href'),function(response){var $content=$('#main',response),$list=$('ul.products',$content),$products=$list.children(),$newNav=$('.woocommerce-navigation.ajax-navigation',$content);if($newNav.length){$nav.find('a').replaceWith($('a',$newNav));}else{$nav.fadeOut(function(){$nav.remove();});}
1703$(loadingHolder).remove();$products.css({opacity:0});carousel.appendSlide($products.addClass('swiper-slide').get());carousel.update();$products.animate({opacity:1});xhr=false;$(document.body).trigger('konte_products_loaded',[$products,true]);});});};konte.productThumbnailsSlider=function(){var options={slidesToShow:1,slidesToScroll:1,infinite:false,lazyLoad:'ondemand',dots:false,swipe:false,rtl:!!konte.data.rtl,prevArrow:'<span class="slick-prev slick-arrow svg-icon icon-left icon-small"><svg width="16" height="16"><use xlink:href="#left"></use></svg></span>',nextArrow:'<span class="slick-next slick-arrow svg-icon icon-right icon-small"><svg width="16" height="16"><use xlink:href="#right"></use></svg></span>'}
1704if(konte.data.rtl){$('.product-thumbnails--slider').attr('dir','rtl');}
1705$('.product-thumbnails--slider').slick(options);$(document.body).on('post-load',function(){if(konte.data.rtl){$('.product-thumbnails--slider','ul.products.hover-slider').attr('dir','rtl');}
1706$('.product-thumbnails--slider','ul.products.hover-slider').slick(options);})
1707$(document.body).on('konte_products_loaded',function(event,products){if(konte.data.rtl){$('.product-thumbnails--slider',products).attr('dir','rtl');}
1708$('.product-thumbnails--slider',products).slick(options);});};konte.productThumbnailZoom=function(){$('.product-thumbnail-zoom').each(function(){var $el=$(this);$el.zoom({url:$el.attr('data-zoom_image')});});$(document.body).on('post-load',function(){$('.product-thumbnail-zoom','ul.products.hover-zoom').each(function(){var $el=$(this);$el.zoom({url:$el.attr('data-zoom_image')});});});$(document.body).on('konte_products_loaded',function(event,products){$('.product-thumbnail-zoom',products).each(function(){var $el=$(this);$el.zoom({url:$el.attr('data-zoom_image')});});});};konte.productQuickView=function(){$(document.body).on('click','.quick_view_button',function(event){event.preventDefault();var $el=$(this),product_id=$el.data('product_id'),$target=$('#'+$el.data('target')),$container=$target.find('.woocommerce'),ajax_url=woocommerce_params?woocommerce_params.wc_ajax_url.toString().replace('%%endpoint%%','product_quick_view'):konte.data.ajax_url;$target.addClass('loading');$container.find('.product').html('');$.post(ajax_url,{action:'konte_get_product_quickview',product_id:product_id,security:konte.data.product_quickview_nonce},function(response){$container.find('.product').replaceWith(response.data);if(response.success){update_quickview();if('modal'==$el.data('toggle')){update_quickview_modal();}else{update_quickview_panel();}}
1709$target.removeClass('loading');$(document.body).trigger('konte_product_quickview_loaded',[response,product_id,konte]);}).fail(function(){window.location.herf=$el.attr('href');});function update_quickview(){var $product=$container.find('.product'),$gallery=$product.find('.woocommerce-product-gallery'),$variations=$product.find('.variations_form');$gallery.on('click','.woocommerce-product-gallery__image a',function(event){event.preventDefault();});if($gallery.find('.woocommerce-product-gallery__image').length>1){$gallery.flexslider({selector:'.woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image',animation:'slide',animationLoop:false,animationSpeed:500,controlNav:true,directionNav:true,prevText:'<span class="svg-icon icon-left icon-small"><svg width="16" height="16"><use xlink:href="#left"></use></svg></span>',nextText:'<span class="svg-icon icon-right icon-small"><svg width="16" height="16"><use xlink:href="#right"></use></svg></span>',slideshow:false,rtl:!!konte.data.rtl,start:function(){$gallery.css('opacity',1);},});}else{$gallery.css('opacity',1);}
1710$product.find('.summary iframe').wrap('<figure class="wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper"/></div>');if($variations.length){$variations.wc_variation_form().find('.variations select:eq(0)').change();if($gallery.data('flexslider')){$variations.on('reset_image found_variation',function(){$gallery.flexslider(0);});}
1711if($.fn.tawcvs_variation_swatches_form){$variations.tawcvs_variation_swatches_form();konte.modifyVariationSwatches($variations);}
1712$(document.body).trigger('init_variation_swatches');}}
1713function update_quickview_modal(){var $product=$container.find('.product'),$gallery=$product.find('.woocommerce-product-gallery');$gallery.find('img').css('height',$product.outerHeight());if(konte.data.product_quickview_auto_background&&!$product.hasClass('background-set')){try{$product.imagesLoaded(function(){konte.productBackgroun
1713dFromGallery($product);});}catch(e){console.warn(e);}}
1714if(typeof PerfectScrollbar!=='undefined'){new PerfectScrollbar($product.find('.summary').get(0));}}
1715function update_quickview_panel(){if(typeof PerfectScrollbar!=='undefined'){new PerfectScrollbar($container.find('.product').get(0));}}});};konte.emptyQuickViewOnClose=function(){$(document.body).on('konte_off_canvas_closed konte_modal_closed',function(event,target){var $quickview=$(target);if(!$quickview.is('#quick-view-modal')&&!$quickview.is('#quick-view-panel')){return;}
1716$quickview.find('.product').html('');});};konte.autoCloseQuickView=function(){$(document.body).on('added_to_cart',function(){if('1'===konte.data.product_quickview_auto_close||'1'===konte.data.cart_open_after_added){konte.closeOffCanvas('#quick-view-modal');konte.closeModal('#quick-view-modal');}});};konte.modifyVariationSwatches=function($form){var hasSwatches=false;if($form.find('.tawcvs-swatches').length){hasSwatches=true;}
1717if(!hasSwatches){$form.removeClass('swatches-support');}
1718$form.off('tawcvs_no_matching_variations');$form.on('tawcvs_no_matching_variations',function(event){event.preventDefault();$form.find('.woocommerce-variation.single_variation').show();if(typeof wc_add_to_cart_variation_params!=='undefined'){$form.find('.single_variation').stop(true,true).slideDown().html('<p class="invalid-variation-combination">'+wc_add_to_cart_variation_params.i18n_no_matching_variations_text+'</p>');}});};konte.loadMoreProducts=function(){$(document.body).on('click','.woocommerce-navigation.ajax-navigation a',function(event){event.preventDefault();var $el=$(this);if($el.hasClass('loading')){return;}
1719$el.addClass('loading');loadProducts($(this));});if($(document.body).hasClass('woocommerce-nav-infinite')){var waiting=false,endScrollHandle;$(window).on('scroll',function(){if(waiting){return;}
1720waiting=true;clearTimeout(endScrollHandle);infiniteScoll();setTimeout(function(){waiting=false;},100);endScrollHandle=setTimeout(function(){waiting=false;infiniteScoll();},200);});}
1721function infiniteScoll(){var $navigation=$('.woocommerce-navigation.ajax-navigation'),$button=$('a',$navigation);if(konte.isVisible($navigation)&&$button.length&&!$button.hasClass('loading')){$button.addClass('loading');loadProducts($button,function(respond){$button=$navigation.find('a');});}}
1722function loadProducts($el,callback){var $nav=$el.closest('.woocommerce-navigation'),url=$el.attr('href');$.get(url,function(response){var $content=$('#main',response),$list=$('ul.products',$content),$products=$list.children(),$newNav=$('.woocommerce-navigation.ajax-navigation',$content);$products.each(function(index,product){$(product).css('animation-delay',index*100+'ms');});$products.appendTo($nav.siblings('ul.products').not('.product-categories').last());$products.addClass('animated konteFadeInUp');if($newNav.length){$el.replaceWith($('a',$newNav));}else{$nav.fadeOut(function(){$nav.remove();});}
1723if('function'===typeof callback){callback(response);}
1724$(document.body).trigger('konte_products_loaded',[$products,true]);if(konte.data.shop_nav_ajax_url_change){window.history.pushState(null,'',url);}});}};konte.isVisible=function(el){if(el instanceof jQuery){el=el[0];}
1725if(!el){return false;}
1726var rect=el.getBoundingClientRect();return rect.bottom>0&&rect.right>0&&rect.left<(window.innerWidth||document.documentElement.clientWidth)&&rect.top<(window.innerHeight||document.documentElement.clientHeight);};konte.productsQuickSearch=function(){var $form=$('.products-quick-search-form');if($.fn.select2){$form.find('select').select2({dir:konte.data.rtl?'rtl':'ltr',width:'auto',minimumResultsForSearch:-1,dropdownCssClass:'products-quick-search-options',dropdownParent:$('.products-quick-search-form')}).on('change',function(){$form.addClass('changed');});}
1727$form.find('select').on('change',function(){$form.addClass('changed');});$form.on('submit',function(event){event.preventDefault();var $container=$('ul.products.main-products'),$inputs=$form.find(':input:not(:checkbox):not(:button)'),url=$form.attr('action'),separator=url.indexOf('?')!==-1?'&':'?',params=$inputs.filter(function(){return $(this).val()!=0;}).serialize();if(params){url+=separator+params;}
1728if($container.hasClass('layout-carousel')){window.location.href=url;return false;}
1729if(!$container.length){$container=$('<ul class="products"/>');$form.closest('.products-toolbar').siblings('.woocommerce-info').replaceWith($container);}
1730$form.addClass('filtering');$form.find('select').prop('disabled',true);$container.addClass('loading').append('<li class="loading-screen"><span class="spinner"></span></li>');$(document.body).trigger('konte_quick_search_products_before_send_request',$container);$.get(url,function(response){var $html=$(response),$products=$html.find('#main ul.products'),$pagination=$container.next('nav');if(!$products.length){$products=$html.find('#main .woocommerce-info');$('.products-tools').addClass('out');$pagination.fadeOut();$container.replaceWith($products);}
1730else{var $nav=$products.next('nav'),$order=$('form.woocommerce-ordering');if($nav.length){if($pagination.length){$pagination.replaceWith($nav).fadeIn();}else{$container.after($nav);}}else{$pagination.fadeOut();}
1731$inputs.each(function(){var $input=$(this),name=$input.attr('name'),value=$input.val();if(name==='orderby'){return;}
1732$order.find('input[name="'+name+'"]').remove();if(value!==''&&value!=0){$('<input type="hidden" name="'+name+'">').val(value).appendTo($order);}});$('.products-toolbar .columns-switcher').replaceWith($html.find('.products-toolbar .columns-switcher'));$('.products-toolbar .woocommerce-result-count').replaceWith($html.find('.products-toolbar .woocommerce-result-count'));$('.products-toolbar .products-tabs').replaceWith($html.find('.products-toolbar .products-tabs'));$('.products-tools').removeClass('out');$products.children().each(function(index,product){$(product).css('animation-delay',index*100+'ms');});$container.replaceWith($products);$products.find('li.product').addClass('animated konteFadeInUp');$(document.body).trigger('konte_products_loaded',[$products.children(),false]);}
1733$form.removeClass('changed filtering');$form.find('select').prop('disabled',false);window.history.pushState(null,'',url);$(document.body).trigger('konte_products_quick_search_request_success',[$products.children()]);});});};konte.productsTools=function(){var $window=$(window),$tools=$('.products-tools');if($.fn.select2){$tools.find('.woocommerce-ordering select').select2({dir:konte.data.rtl?'rtl':'ltr',width:'auto',minimumResultsForSearch:-1,dropdownCssClass:'products-ordering',dropdownParent:$tools.find('.woocommerce-ordering')});}
1734var $filter=$tools.find('#products-filter');if($filter.length&&$filter.hasClass('dropdown-panel')){setDropdownFilterPosition();$window.on('resize',setDropdownFilterPosition);}
1735$(document.body).on('click','.products-tools .toggle-filters[data-toggle="dropdown"]',function(event){event.preventDefault();$($(this).attr('href')).fadeToggle(function(){$(this).toggleClass('open');});}).on('click','.products-filter.dropdown-panel .button-close',function(event){event.preventDefault();$(this).closest('.products-filter').fadeOut(function(){$(this).removeClass('open');});});$(document.body).on('konte_products_filter_before_send_request konte_products_filter_reseted',function(){if($filter.hasClass('offscreen-panel')){konte.closeOffCanvas($filter);}else{$filter.fadeOut(function(){$filter.removeClass('open');});}});$('.products-tools .products-filter-toggle').on('click','a.remove-filtered',function(event){event.preventDefault();var $el=$(this);$('.products-filter__activated a.remove-filtered[data-name="'+$el.data('name')+'"][data-value="'+$el.data('value')+'"]','#products-filter').trigger('click');$el.remove();});if($filter.hasClass('dropdown-panel')){displayFilteredField(null,null);$(document.body).on('konte_products_filter_widget_updated',displayFilteredField);}
1736function displayFilteredField(event,form){var $widget=form?$(form).closest('.products-filter-widget'):$('.products-filter-widget','#products-filter');if(!$widget.length){return;}
1737var $toggle=$('.products-tools .products-filter-toggle');$toggle.find('.remove-filtered').remove();$widget.find('.products-filter__activated a.remove-filtered').clone().appendTo($toggle);}
1738function setDropdownFilterPosition(){var $sidebar=$('#secondary'),windowWidth=$window.width();if(windowWidth>=992){windowWidth-=konte.getVerticalHeaderWidth();}
1739$filter.width(windowWidth);var prop='margin-left';var value=-windowWidth/2;if(konte.data.rtl){prop='margin-right';}
1740if(windowWidth>=992){if($sidebar.length){if($(document.body).hasClass('sidebar-left')){value=konte.data.rtl?value+($sidebar.outerWidth()/2):value-($sidebar.outerWidth()/2);}else{value=konte.data.rtl?value-($sidebar.outerWidth()/2):value+($sidebar.outerWidth()/2);}
1741$filter.css(prop,value);}else{$filter.css(prop,value);}}else{$filter.css(prop,value);}}};konte.cartWidget=function(){if(typeof woocommerce_params==='undefined'){$('.woocommerce-mini-cart-item .quantity .qty').prop('disabled',true);$(document.body).on('wc_fragments_refreshed removed_from_cart',function(){$('.woocommerce-mini-cart-item .quantity .qty').prop('disabled',true);});return;}
1742var options={onChange:function(data){var $row=data.$quantity.closest('.woocommerce-mini-cart-item'),key=$row.find('a.remove').data('cart_item_key'),nonce=$row.find('.woocommerce-mini-cart-item__qty').data('nonce'),aja
1742x_url=woocommerce_params.wc_ajax_url.toString().replace('%%endpoint%%','update_cart_item');if($.fn.block){$row.block({message:null,overlayCSS:{opacity:0.6,background:'#fff'}});}
1743$.post(ajax_url,{cart_item_key:key,qty:data.current,security:nonce},function(response){if(!response||!response.fragments){return;}
1744if($.fn.unblock){$row.unblock();}
1745$(document.body).trigger('added_to_cart',[response.fragments,response.cart_hash]);if('undefined'===typeof wc_add_to_cart_params){$(document.body).trigger('wc_fragment_refresh');}},'json').fail(function(){if($.fn.unblock){$row.unblock();}
1746return;});}};if($.fn.quantityDropdown){$('.woocommerce-mini-cart-item .quantity .qty').quantityDropdown(options);$(document.body).on('wc_fragments_refreshed wc_fragments_loaded removed_from_cart added_to_cart',function(){$('.woocommerce-mini-cart-item .quantity .qty').quantityDropdown(options);});}};konte.shopNotifications=function(){if(!$.fn.notify){return;}
1747$.notify.addStyle('konte',{html:'<div><span class="svg-icon icon-success size-normal message-icon"><svg role="img"><use href="#success" xlink:href="#success"></use></svg></span><span data-notify-text/></div>'});if(konte.data.added_to_cart_notice){$(document.body).on('added_to_cart',function(){$.notify(konte.data.added_to_cart_message,{position:konte.data.rtl?'top left':'top right',autoHideDelay:2000,className:'success',style:'konte',showAnimation:'fadeIn',hideAnimation:'fadeOut'});});}
1748if(konte.data.added_to_wishlist_notice){$(document.body).on('added_to_wishlist',function(){$.notify(konte.data.added_to_wishlist_message,{autoHideDelay:2000,className:'success',style:'konte',showAnimation:'fadeIn',hideAnimation:'fadeOut'});});}};konte.pageTemplateSplit=function(){if(!$(document.body).hasClass('page-template-split')){return;}
1749var $window=$(window),$topbar=$('#topbar'),ps=null;if($window.width()>=992){ps=new PerfectScrollbar($('.split-page-content .entry-content').get(0));}
1750$window.on('resize',function(){$('.split-page.page').height(fullHeight());if($window.width()<992){if(ps){ps.destroy();}
1751ps=null;}else{ps=new PerfectScrollbar($('.split-page-content .entry-content').get(0));}});$('.split-page.page').height(fullHeight());function fullHeight(){var height=$window.height();if($topbar.length){height-=$topbar.outerHeight();}
1752return height;}};konte.videoBackground=function(){var $player=$('.video-background');if(!$player.length){return;}
1753var player=null;var $screen=$player.parent();var scaleVideo=function(){if(!player||!player.setSize||typeof player.setSize!=='function'){return;}
1754var width=$screen.width(),pWidth,height=$screen.height(),pHeight,ratio=16/9,$iframe=$screen.find('.video-background');try{if(width/ratio<height){pWidth=Math.ceil(height*ratio);player.setSize(pWidth,height);$iframe.css({left:(width-pWidth)/2,top:0});}else{pHeight=Math.ceil(width/ratio);player.setSize(width,pHeight);$iframe.css({left:0,top:(height-pHeight)/2});}}catch(e){console.warn('Failed to scale video:',e);}};var initPlayer=function(){var mute=$player.data('mute');player=new YT.Player($player.attr('id'),{videoId:$player.data('video_id'),events:{'onReady':function(event){setTimeout(function(){scaleVideo();$screen.find('.video-background').css('opacity',1);event.target.mute();event.target.playVideo();},100);},'onStateChange':function(event){if(event.data===YT.PlayerState.ENDED){event.target.playVideo();}}}
1754,playerVars:{autoplay:1,loop:1,mute:1,autohide:1,modestbranding:0,rel:0,showinfo:0,controls:0,disablekb:1,enablejsapi:1,iv_load_policy:3,playsinline:1}});};var resizeTimeout;$(window).on('resize',function(){clearTimeout(resizeTimeout);resizeTimeout=setTimeout(scaleVideo,150);});if(typeof YT==='undefined'||typeof YT.Player==='undefined'){window.onYouTubeIframeAPIReady=function(){initPlayer();};var tag=document.createElement('script');tag.src='https://www.youtube.com/iframe_api';var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);}else{initPlayer();}};konte.pageTemplateFlexPosts=function(){var $posts=$('#flex-posts'),$window=$(window);if(!$posts.length||!$.fn.masonry){return;}
1755var options={itemSelector:'.flex_post',percentPosition:true,transitionDuration:0,isRTL:!!konte.data.rtl};$posts.on('layoutComplete',function(event){var $items=$posts.children();if(konte.data.rtl){$items.filter(function(){return parseInt($(this).get(0).style.right)===0;}).removeClass('left-item').addClass('right-item');$items.filter(function(){return $(this).get(0).style.right==='50%';}).removeClass('right-item').addClass('left-item');}else{$items.filter(function(){return parseInt($(this).get(0).style.left)===0;}).removeClass('right-item').addClass('left-item');$items.filter(function(){return $(this).get(0).style.left==='50%';}).removeClass('left-item').addClass('right-item');}});initFlexPostsMasonry();$window.on('resize',initFlexPostsMasonry);var layoutHandle;$posts.on('jetpack-lazy-loaded-image','img',function(){if(!$posts.hasClass('masonry')){initFlexPostsMasonry();}
1756clearTimeout(layoutHandle);layoutHandle=setTimeout(function(){$posts.masonry('layout');},100);});$('body.page-template-flex-posts').on('click','.navigation.next-posts-navigation a',function(event){event.preventDefault();var $el=$(this),url=$el.attr('href');if($el.hasClass('loading')){return;}
1757$el.addClass('loading');$.get(url,function(response){var $content=$('#main',response),$_posts=$('.flex_post',$content),$nav=$('.next-posts-navigation',$content);$_posts.addClass('animated').appendTo($posts);;$posts.masonry('appended',$_posts).masonry();$_posts.imagesLoaded().progress(function(){$posts.masonry('layout');});if($nav.length){$el.replaceWith($('a',$nav));}else{$el.removeClass('loading').closest('.next-posts-navigation').fadeOut();}
1758window.history.pushState(null,'',url);if(typeof trigger!==undefined){$_posts.attr('data-scroll','');trigger.bind($_posts.get());}
1759$(document.body).trigger('konte_flex_posts_loaded',[$_posts]);});});if(typeof ScrollTrigger!==undefined){$posts.children().attr('data-scroll','').addClass('animated');var trigger=new ScrollTrigger({toggle:{visible:'konteFadeInUp',hidden:''},offset:{x:0,y:-20},once:true},document.body,window);}
1760function initFlexPostsMasonry(){if($window.width()>=992){if($posts.hasClass('masonry')){return;}
1761$posts.masonry(options);$posts.imagesLoaded().progress(function(){$posts.masonry('layout');});}else{if(!$posts.hasClass('masonry')){return;}
1762$posts.masonry('destroy');}}};konte.stickyScrollDown=function(){var $window=$(window),$arrow=$('.sticky-scrolldown'),waiting=false,endScrollHandle,offset=$('#masthead').height();if(!$arrow.length){return;}
1763$arrow.on('click',function(){$('html, body').animate({scrollTop:$window.scrollTop()+$window.height()},800);});toggleArrow();$window.on('scroll',function(){if(waiting){return;}
1764if($window.width()<1440){return;}
1765waiting=true;clearTimeout(endScrollHandle);toggleArrow();setTimeout(function(){waiting=false;},100);endScrollHandle=setTimeout(function(){waiting=false;toggleArrow();},200);});function toggleArrow(){if($window.scrollTop()>=offset){$arrow.fadeOut();}else{$arrow.fadeIn();}}};konte.stickySocials=function(){var $footer=$('#colophon'),$socials=$('#sticky-socials'),$window=$(window),waiting=false,endScrollHandle;if(!$socials.length){return;}
1766toggleSocials();$window.on('scroll',function(){if(waiting){return;}
1767if($window.width()<1440){return;}
1768waiting=true;clearTimeout(endScrollHandle);toggleSocials();setTimeout(function(){waiting=false;},100);endScrollHandle=setTimeout(function(){waiting=false;toggleSocials();},200);});function toggleSocials(){if($window.scrollTop()+$window.height()>=$footer.offset().top-200){$socials.fadeOut();}else{$socials.fadeIn();}}};konte.openShareLinks=function(){var $window=$(window);$(document.body).on('click','.social-share-link',function(event){if($window.width()<=1024){return;}
1769event.preventDefault();popupShare($(this).attr('href'),'',500,550);});function popupShare(url,title,w,h){var dualScreenLeft=window.screenLeft!=u
1769ndefined?window.screenLeft:window.screenX,dualScreenTop=window.screenTop!=undefined?window.screenTop:window.screenY,width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width,height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height,systemZoom=width/window.screen.availWidth,left=(width-w)/2/systemZoom+dualScreenLeft,top=(height-h)/2/systemZoom+dualScreenTop;var newWindow=window.open(url,title,'scrollbars=yes, width='+w/systemZoom+', height='+h/systemZoom+', top='+top+', left='+left);if(window.focus){newWindow.focus();}}};konte.fixVCRowsWithVerticalHeader=function(){if(!$(document.body).hasClass('header-vertical')){return;}
1770$(document).on('vc-full-width-row-single',function(event,data){var width=konte.getVerticalHeaderWidth();data.el.css({width:data.width-width,left:data.offset+width});if(konte.data.rtl){data.el.css({right:data.offset+width});}else{data.el.css({left:data.offset+width});}});};konte.getVerticalHeaderWidth=function(){var width=0;if($(document.body).hasClass('header-vertical')){var $header=$('#masthead');if($header.hasClass('header-v10')){$header=$header.find('.header-main .header-left-items');}
1771if($header.is(':visible')){width=$header.outerWidth();}
1772return width;}
1773return width;};konte.responsiveVideos=function(){if(!$.fn.fitVids){return;}
1774$('.entry-content').fitVids();};konte.popup=function(){if(!konte.data.popup){return;}
1775var days=parseInt(konte.data.popup_frequency),delay=parseInt(konte.data.popup_visible_delay);if(days>0&&document.cookie.match(/^(.*;)?\s*konte_popup\s*=\s*[^;]+(.*)?$/)){return;}
1776delay=Math.max(delay,0);delay='delay'===konte.data.popup_visible?delay:0;$(window).on('load',function(){setTimeout(function(){konte.openModal('#popup-modal');},delay*1000);});$(document.body).on('konte_modal_closed',function(event,modal){if(!$(modal).closest('.modal').hasClass('popup-modal')){return;}
1777var date=new Date(),value=date.getTime();date.setTime(date.getTime()+(days*24*60*60*1000));document.cookie='konte_popup='+value+';expires='+date.toGMTString()+';path=/';});$(document.body).on('click','.popup-modal .close-popup-trigger',function(){konte.closeModal('.popup-modal');});};konte.preloader=function(){var $preloader=$('#preloader');if(!$preloader.length){return;}
1778var ignorePreloader=false;$(document.body).on('click','a[href^=mailto], a[href^=tel]',function(){ignorePreloader=true;});$(window).on('beforeunload',function(event){if(!ignorePreloader){$preloader.fadeIn();}
1779ignorePreloader=false;});setTimeout(function(){$preloader.fadeOut();},200);window.onpageshow=function(event){if(event.persisted){setTimeout(function(){$preloader.fadeOut();},200);}};};konte.mobileMenu=function(){var $mobileMenu=$('#mobile-menu');$mobileMenu.find('')
1780$mobileMenu.find('.menu > .menu-item-has-children, .menu > li > ul > .menu-item-has-children').filter(function(){return $(this).hasClass('current-menu-item')||$(this).hasClass('current-menu-ancestor');}).addClass('open');$mobileMenu.on('click','.menu-item-has-children > a',function(event){var $li=$(this).parent();if($li.hasClass('open')&&$li.hasClass('clicked')&&'#'!==$(this).attr('href')){return true;}
1781event.stopPropagation();event.preventDefault();$li.addClass('clicked');$li.toggleClass('open').children('ul').slideToggle();$li.siblings('.open').removeClass('open clicked').children('ul').slideUp();}).on('click','.menu-item-has-children > .toggle',function(event){event.stopPropagation();event.preventDefault();var $li=$(this).parent();$li.toggleClass('open').children('ul').slideToggle();$li.siblings('.open').removeClass('open').children('ul').slideUp();});$mobileMenu.on('click','[data-toggle="off-canvas"], [data-toggle="modal"]',function(){if('mobile-menu'!==$(this).data('target')){konte.closeModal();konte.closeOffCanvas();}});};konte.responsiveProductV3=function(){var $window=$(window),$product=$('.woocommerce div.product.layout-v3');if(!$product.length){return;}
1782updateLayout();$window.on('resize',updateLayout);function updateLayout(){if($window.width()<1200){$('.woocommerce-product-cart form.cart',$product).insertBefore($('.summary > .product_meta',$product));}else{$('.summary > form.cart',$product).appendTo($('.woocommerce-product-cart',$product));}}}
1783konte.portfolioMasonry=function(){var $portfolio=$('.portfolio-projects--masonry');if(!$portfolio.length||!$.fn.masonry){return;}
1784var $window=$(window),options={itemSelector:'.portfolio',percentPosition:true,transitionDuration:0,isRTL:!!konte.data.rtl};initPortfolioMasonry();$window.on('resize',initPortfolioMasonry);$(document.body).on('konte_posts_loaded',function(event,$posts,append){if($window.width()<767){return;}
1785if(append){$portfolio.masonry('appended',$posts);}else{$portfolio.masonry('reloadItems');}
1786setTimeout(function(){$portfolio.masonry('layout');},$posts.length*50+50);$posts.imagesLoaded().progress(function(){$portfolio.masonry('layout');});});var layoutHandle;$portfolio.on('jetpack-lazy-loaded-image','img',function(){if(!$portfolio.hasClass('masonry')){initPortfolioMasonry();}
1787clearTimeout(layoutHandle);layoutHandle=setTimeout(function(){$portfolio.masonry('layout');},100);});function initPortfolioMasonry(){if($window.width()>=767){if($portfolio.hasClass('masonry')){$portfolio.masonry('layout');}
1788$portfolio.masonry(options);$portfolio.imagesLoaded().progress(function(){$portfolio.masonry('layout');});}else{if(!$portfolio.hasClass('masonry')){return;}
1789$portfolio.masonry('destroy');}}};konte.portfolioFilter=function(){var $filter=$('.portfolio-filter'),$portfolio=$('.portfolio-projects'),$nav=$portfolio.siblings('.navigation');if(!$filter.length||!$portfolio.length){return;}
1790$filter.on('click','a',function(event){event.preventDefault();var $link=$(this),$active=$link.siblings('.active'),url=$link.attr('href');if($link.hasClass('active')){return;}
1791$link.addClass('active');$active.removeClass('active');$portfolio.fadeIn().addClass('loading').append('<div class="loading-screen"><span class="spinner"></span></div>');$.get(url,function(response){var $_portfolio=$('.portfolio-projects',response),$_projects=$('.hentry',$_portfolio),$_nav=$_portfolio.siblings('.navigation');$portfolio.html('').removeClass('loading');if(!$_portfolio.length){$portfolio.fadeOut();$nav.fadeOut();return;}
1792$_projects.each(function(index,project){$(project).css('animation-delay',index*100+'ms');});$portfolio.append($_projects);$_projects.addClass('animated konteFadeInUp');if($_nav.length){if($nav.length){$nav.html($_nav.html()).fadeIn();}else{$portfolio.after($_nav);$nav=$_nav;}}
1792else{$nav.fadeOut();}
1793window.history.pushState(null,'',url);$(document.body).trigger('konte_posts_loaded',[$_projects,false]);}).fail(function(){$link.removeClass('active');$active.addClass('active');$portfolio.children('.loading-screen').remove();$portfolio.removeClass('loading');});});};konte.backToTop=function(){var $button=$('#gotop'),$window=$(window),waiting=false,endScrollHandle;$button.on('click',function(e){e.preventDefault();$('html, body').animate({scrollTop:0},800);});if($button.length){toggleButton();$window.on('scroll',function(){if(waiting){return;}
1794waiting=true;clearTimeout(endScrollHandle);toggleButton();setTimeout(function(){waiting=false;},100);endScrollHandle=setTimeout(function(){waiting=false;toggleButton();},200);});}
1795function toggleButton(){if($window.scrollTop()<$window.height()*1.5){$button.fadeOut();}else{$button.fadeIn();}}};konte.lazyLoadImages=function(){var lazyLoadImagesEvent;$(document.body).on('post-load konte_posts_loaded konte_products_loaded konte_products_quick_search_request_success konte_flex_posts_loaded konte_product_quickview_loaded konte_lazy_load_images',function(){try{lazyLoadImagesEvent=new Event('jetpack-lazy-images-load',{bubbles:true,cancelable:true});}catch(e){lazyLoadImagesEvent=document.createEvent('Event')
1796lazyLoadImagesEvent.initEvent('jetpack-lazy-images-load',true,true);}
1797setTimeout(function(){document.body.dispatchEvent(lazyLoadImagesEvent);},100);});};konte.supportJetpackLazyLoadImagesOnProductGallery=function(){$('div.product').each(function(){var $product=$(this);if($product.hasClass('layout-v2')||$product.hasClass('layout-v5')){return;}
1798$('.woocommerce-product-gallery',$product).one('jetpack-lazy-loaded-image load','.wp-post-image',function(){var $image=$(this);if($image){setTimeout(function(){var setHeight=$image.closest('.woocommerce-product-gallery__image').height();var $viewport=$image.closest('.flex-viewport');if(!$viewport.length){$viewport=$image.closest('.woocommerce-product-gallery');}
1799if(setHeight&&$viewport.length){$viewport.height(setHeight);}},100);}});});}
1800konte.mainMenuTabs=function(){$('.main-navigation').on('click','.menu-item--tab, .menu-item--tab a',function(event){event.preventDefault();event.stopPropagation();var $tab=$(this).closest('.menu-item--tab');if($tab.hasClass('active')){return;}
1801$tab.addClass('active').attr('aria-selected','true').siblings().removeClass('active').attr('aria-selected','false');$tab.closest('.menu-item-mega').find('#'+$tab.attr('aria-controls')).addClass('active').siblings().removeClass('active');});}
1802$(function(){konte.init();});})(jQuery);
1803(function($,_){var KonteProductsFilterWidget=function(){var self=this;self.ajax=null;self.init();self.init=self.init.bind(self);self.initDropdowns=self.initDropdowns.bind(self);self.removeSliderInputs=self.removeSliderInputs.bind(self);self.sendAjaxRequest=self.sendAjaxRequest.bind(self);self.checkToggleCollapse=self.checkToggleCollapse.bind(self);$('.products-filter-widget').on('input','.products-filter__search-box',{widget:self},self.searchTerms).on('click','.products-filter__option-name, .products-filter__options .swatch',{widget:self},self.toggleItem).on('click','.products-filter--collapsible .products-filter__option-toggler',{widget:self},self.toggleCollapse).on('change','input, select',{widget:self},self.triggerItemChange).on('click','.reset-button',{widget:self},self.resetFilters).on('click','.remove-filtered',{widget:self},self.removeFiltered).on('submit','form.ajax-filter',{widget:self},self.ajaxSearch);$(document.body).on('price_slider_create',self.addListenerToSlider).on('konte_products_filter_change',{widget:self},self.instantSearch).on('konte_products_filter_request_success',{widget:self},self.updateURL).on('konte_products_filter_request_success',{widget:self},self.updateForm).on('konte_products_filter_widget_updated',{widget:self},self.initDropdowns).on('konte_products_filter_widget_updated',{widget:self},self.initSliders);};KonteProductsFilterWidget.prototype.init=function(){var self=this;self.initDropdowns();self.removeSliderInputs();}
1804KonteProductsFilterWidget.prototype.initDropdowns=function(event,form){if(!$.fn.select2){return;}
1805var $container=form?$(form):$('.products-filter-widget'),direction=$(document.body).hasClass('rtl')?'rtl':'ltr';$('select',$container).each(function(){var $select=$(this),$searchBoxText=$select.prev('.products-filter__search-box'),searchText=$searchBoxText.length?$searchBoxText.text():false;$select.select2({dir:direction,width:'100%',minimumResultsForSearch:searchText?3:-1,dropdownCssClass:'products-filter-dropdown',dropdownParent:$select.parent()});});}
1806KonteProductsFilterWidget.prototype.initSliders=function(event,form){$(document.body).trigger('init_price_filter');event.data.widget.removeSliderInputs(form);}
1807KonteProductsFilterWidget.prototype.removeSliderInputs=function(form){var $container=form?$(form):$('.products-filter-widget');$('.widget_price_filter',$container).find('input[type=hidden]').not('[name=min_price], [name=max_price]').remove();}
1808KonteProductsFilterWidget.prototype.searchTerms=function(event){var $this=$(this),term=$this.val().toLowerCase(),$list=$this.next('.products-filter__options').find('.products-filter__option');if(term){$list.hide().filter(function(){return $('.name',this).text().toLowerCase().indexOf(term)!==-1;}).show();}else{$list.show();}}
1809KonteProductsFilterWidget.prototype.toggleCollapse=function(event){var $option=$(this).closest('.products-filter__option'),$children=$option.children('ul');if(!$children.length){return;}
1810event.preventDefault();$children.stop(true,true).slideToggle(function(){$option.toggleClass('active');});}
1811KonteProductsFilterWidget.prototype.checkToggleCollapse=function($item){var $children=$item.children('ul');if(!$children.length){return;}
1812if($item.hasClass('selected')&&!$item.hasClass('active')){$children.stop(true,true).slideDown(function(){$item.addClass('active');});}
1813if(!$item.hasClass('selected')&&$item.hasClass('active')){if($item.find('.products-filter__option.selected').length){return;}
1814$children.stop(true,true).slideUp(function(){$item.removeClass('active');});}}
1815KonteProductsFilterWidget.prototype.toggleItem=function(event){event.preventDefault();var $item=$(this).closest('.products-filter__option'),$filter=$item.closest('.filter'),$input=$item.closest('.products-filter__options').next('input[type=hidden]'),current=$input.val(),value=$item.data('value'),form=$item.closest('form').get(0),index=-1;if($filter.hasClass('multiple')){current=current?current.split(','):[];index=current.indexOf(value);if(-1===index){value=value.toString();index=current.indexOf(value);}
1816if(index!==-1){current=_.without(current,value);}else{current.push(value);}
1817$input.val(current.join(','));$item.toggleClass('selected');$input.prop('disabled',current.length<=0);if($filter.hasClass('attribute')){var $queryTypeInput=$input.next('input[name^=query_type_]');if($queryTypeInput.length){$queryTypeInput.prop('disabled',current.length<=1);}}}else{if($item.hasClass('selected')){$item.removeClass('selected');$input.val('').prop('disabled',true);if($filter.hasClass('ranges')){$input.next('input[type=hidden]').val('').prop('disabled',true);}}else{$filter.find('.products-filter__option.selected').removeClass('selected');$item.addClass('selected');$input.val(value).prop('disabled',false);if($filter.hasClass('ranges')){$input.val(value.min).prop('disabled',!value.min);$input.next('input[type=hidden]').val(value.max).prop('disabled',!value.max);}}}
1818if($filter.hasClass('products-filter--collapsible')&&$item.children('ul').length){event.data.widget.checkToggleCollapse($item);}
1819$(document.body).trigger('konte_products_filter_change',[form]);}
1820KonteProductsFilterWidget.prototype.triggerItemChange=function(){var form=$(this).closest('form').get(0);$(document.body).trigger('konte_products_filter_change',[form]);}
1821KonteProductsFilterWidget.prototype.addListenerToSlider=function(){var $slider=$('.products-filter-widget .price_slider.ui-slider');$slider.each(function(){var $el=$(this),form=$el.closest('form').get(0),onChange=$el.slider('option','change');$el.slider('option','change',function(event,ui){onChange(event,ui);$(document.body).trigger('konte_products_filter_change',[form]);});});}
1822KonteProductsFilterWidget.prototype.resetFilters=function(){var $form=$(this).closest('form');$form.get(0).reset();$form.find('.selected').removeClass('selected');$form.find(':input').not('[type="button"], [type="submit"], [type="reset"]').val('').trigger('change').filter('[type="hidden"]').prop('disabled',true);$form.trigger('submit');$(document.body).trigger('konte_products_filter_reseted');}
1823KonteProductsFilterWidget.prototype.removeFiltered=function(event){event.preventDefault();var self=event.data.widget,$el=$(this),$widget=$el.closest('.products-filter-widget'),$form=$widget.find('form'),name=$el.data('name'),value=$el.data('value'),$filter=$widget.find('.filter.'+name);$el.remove();if($filter.length){var $input=$filter.find(':input[name='+name+']'),current=$input.val();if($input.is('select')){$input.prop('selectedIndex',0);$input.trigger('change');}else{current=current.replace(','+value,'');current=current.replace(value,'');$input.val(current);if(''==current){$input.prop('disabled',true);}
1824$filter.find('[data-value="'+value+'"]').removeClass('selected');}
1825$form.trigger('submit');}}
1826KonteProductsFilterWidget.prototype.ajaxSearch=function(event){event.data.widget.sendAjaxRequest(this);return false;}
1827KonteProductsFilterWidget.prototype.instantSearch=function(event,form){var settings=$(form).data('settings');if(!settings.instant){return;}
1828event.data.widget.sendAjaxRequest(form);}
1829KonteProductsFilterWidget.prototype.updateURL=function(event,response,url,form){var self=event.data.widget;var settings=$(form).data('settings');var filterURL=self.ajax.getResponseHeader('Konte-Filter-Link');if(filterURL){history.pushState(null,'',filterURL);return;}
1830if(!settings.change_url){return;}
1831if('?'===url.slice(-1)){url=url.slice(0,-1);}
1832url=url.replace(/%2C/g,',');history.pushState(null,'',url);}
1833KonteProductsFilterWidget.prototype.updateForm=function(event,response,url,form){var $widget=$(form).closest('.widget.products-filter-widget'),widgetId=$widget.attr('id'),$newWidget=$('#'+widgetId,response);if(!$newWidget.length){return;}
1834$('.filters',form).html($('.filters',$newWidget).html());$('.products-filter__activated',$widget).html($('.products-filter__activated',$newWidget).html());$(document.body).trigger('konte_products_filter_widget_updated',[form]);}
1835KonteProductsFilterWidget.prototype.sendAjaxRequest=function(form){var self=this,$form=$(form),$container=$('ul.products.main-products'),$inputs=$form.find(':input:not(:checkbox):not(:button)'),params={},action=$form.attr('action'),separator=action.indexOf('?')!==-1?'&':'?',url=action;params=$inputs.filter(function(){return this.value!=''&&this.name!='';}).serializeObject();if(params.min_price&&params.min_price==$inputs.filter('[name=min_price]').data('min')){delete params.min_price;}
1836if(params.max_price&&params.max_price==$inputs.filter('[name=max_price]').data('max')){delete params.max_price;}
1837if(_.size(params)>1){url+=separator+$.param(params,true);}
1838if($container.hasClass('layout-carousel')){window.location.href=url;return false;}
1839if(!$container.length){$container=$('<ul class="products"/>');$('#main .woocommerce-info').replaceWith($container);}
1840if(self.ajax){self.ajax.abort();}
1841$form.addClass('filtering');$container.addClass('loading').append('<li class="loading-screen"><span class="spinner"></span></li>');$(document.body).trigger('konte_products_filter_before_send_request',$container);self.ajax=$.post(url,{filter_time:Date.now()},function(response){var $html=$(response),$products=$html.find('ul.products.main-products'),$pagination=$container.next('nav'),$nav=$html.find('.woocommerce-navigation, .woocomerce-pagination');if(!$products.length){$products=$html.find('#main .woocommerce-info');$pagination.fadeOut();$container.replaceWith($products);}
1841else{var $nav=$products.next('nav'),$order=$('form.woocommerce-ordering');if($nav.length){if($pagination.length){$pagination.replaceWith($nav).fadeIn();}else{$container.after($nav);}}else{$pagination.fadeOut();}
1842$products.children().each(function(index,product){$(product).css('animation-delay',index*100+'ms');});$inputs.each(function(){var $input=$(this),name=$input.attr('name'),value=$input.val();if(name==='orderby'){return;}
1843if('min_price'===name&&value==$input.data('min')){$order.find('input[name="min_price"]').remove();return;}
1844if('max_price'===name&&value==$input.data('max')){$order.find('input[name="max_price"]').remove();return;}
1845$order.find('input[name="'+name+'"]').remove();if(value!==''&&value!=0){$('<input type="hidden" name="'+name+'">').val(value).appendTo($order);}});$('.products-toolbar .columns-switcher').replaceWith($html.find('.products-toolbar .columns-switcher'));$('.products-toolbar .woocommerce-result-count').replaceWith($html.find('.products-toolbar .woocommerce-result-count'));$('.products-toolbar .products-tabs').replaceWith($html.find('.products-toolbar .products-tabs'));$container.replaceWith($products);$products.find('li.product').addClass('animated konteFadeInUp');$(document.body).trigger('konte_products_loaded',[$products.children(),false]);}
1846$form.removeClass('filtering');$(document.body).trigger('konte_products_filter_request_success',[response,url,form]);});}
1847$(function(){new KonteProductsFilterWidget();})})(jQuery,_);
1848!function(){var e;(e=jQuery)(document).ready((function(){$discontinued_products=e(".product.discontinued"),$discontinued_label='<span class="discontinued-label">'+params.discontinued_label_text+"</span>",$discontinued_products.each((function(){e(".theme-enfold.archive").length&&(e(this).find(".discontinued-label").remove(),$archive_featured_image=e(this).find(".woocommerce-LoopProduct-link"),$archive_featured_image.length||($archive_featured_image=e(this).find(".product-image-link")),$archive_featured_image.append($discontinued_label)),e(this).hasClass("wp-block-post")&&(e(this).find(".discontinued-label").remove(),$archive_featured_image=e(this).find(".wc-block-components-product-image"),$archive_featured_image.append($discontinued_label)),$single_featured_image=e(this).find(".woocommerce-product-gallery"),$single_featured_image.parent().css("position","relative"),$single_featured_image.append($discontinued_label)}))}))}();
1849!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.sbjs=e()}}(function(){var define,module,exports;return(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){"use strict";var init=_dereq_('./init');var sbjs={init:function(prefs){this.get=init(prefs);if(prefs&&prefs.callback&&typeof prefs.callback==='function'){prefs.callback(this.get);}}};module.exports=sbjs;},{"./init":6}],2:[function(_dereq_,module,exports){"use strict";var terms=_dereq_('./terms'),utils=_dereq_('./helpers/utils');var data={containers:{current:'sbjs_current',current_extra:'sbjs_current_add',first:'sbjs_first',first_extra:'sbjs_first_add',session:'sbjs_session',udata:'sbjs_udata',promocode:'sbjs_promo'},service:{migrations:'sbjs_migrations'},delimiter:'|||',aliases:{main:{type:'typ',source:'src',medium:'mdm',campaign:'cmp',content:'cnt',term:'trm',id:'id',platform:'plt',format:'fmt',tactic:'tct'},extra:{fire_date:'fd',entrance_point:'ep',referer:'rf'},session:{pages_seen:'pgs',current_page:'cpg'},udata:{visits:'vst',ip:'uip',agent:'uag'},promo:'code'},pack:{main:function(sbjs){return(data.aliases.main.type+'='+sbjs.type+data.delimiter+
1850data.aliases.main.source+'='+sbjs.source+data.delimiter+
1851data.aliases.main.medium+'='+sbjs.medium+data.delimiter+
1852data.aliases.main.campaign+'='+sbjs.campaign+data.delimiter+
1853data.aliases.main.content+'='+sbjs.content+data.delimiter+
1854data.aliases.main.term+'='+sbjs.term+data.delimiter+
1855data.aliases.main.id+'='+sbjs.id+data.delimiter+
1856data.aliases.main.platform+'='+sbjs.platform+data.delimiter+
1857data.aliases.main.format+'='+sbjs.format+data.delimiter+
1858data.aliases.main.tactic+'='+sbjs.tactic);},extra:function(timezone_offset){return(data.aliases.extra.fire_date+'='+utils.setDate(new Date,timezone_offset)+data.delimiter+
1859data.aliases.extra.entrance_point+'='+document.location.href+data.delimiter+
1860data.aliases.extra.referer+'='+(document.referrer||terms.none));},user:function(visits,user_ip){return(data.aliases.udata.visits+'='+visits+data.delimiter+
1861data.aliases.udata.ip+'='+user_ip+data.delimiter+
1862data.aliases.udata.agent+'='+navigator.userAgent);},session:function(pages){return(data.aliases.session.pages_seen+'='+pages+data.delimiter+
1863data.aliases.session.current_page+'='+document.location.href);},promo:function(promo){return(data.aliases.promo+'='+utils.setLeadingZeroToInt(utils.randomInt(promo.min,promo.max),promo.max.toString().length));}}};module.exports=data;},{"./helpers/utils":5,"./terms":9}],3:[function(_dereq_,module,exports){"use strict";var delimiter=_dereq_('../data').delimiter;module.exports={useBase64:false,setBase64Flag:function(value){this.useBase64=value;},encodeData:function(s){return encodeURIComponent(s).replace(/\!/g,'%21').replace(/\~/g,'%7E').replace(/\*/g,'%2A').replace(/\'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29');},decodeData:function(s){try{return decodeURIComponent(s).replace(/\%21/g,'!').replace(/\%7E/g,'~').replace(/\%2A/g,'*').replace(/\%27/g,"'").replace(/\%28/g,'(').replace(/\%29/g,')');}catch(err1){try{return unescape(s);}catch(err2){return'';}}},set:function(name,value,minutes,domain,excl_subdomains){var expires,basehost;if(minutes){var date=new Date();date.setTime(date.getTime()+(minutes*60*1000));expires='; expires='+date.toGMTString();}else{expires='';}
1864if(domain&&!excl_subdomains){basehost=';domain=.'+domain;}else{basehost='';}
1865var cookie_content=this.encodeData(value);if(this.useBase64){cookie_content=btoa(cookie_content).replace(/=+$/,'');}
1866document.cookie=this.encodeData(name)+'='+cookie_content+expires+basehost+'; path=/';},get:function(name){var nameEQ=this.encodeData(name)+'=',ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
1867if(c.indexOf(nameEQ)===0){var cookie_content=c.substring(nameEQ.length,c.length);if(/^[A-Za-z0-9+/]+$/.test(cookie_content)){try{cookie_content=atob(cookie_content.padEnd(Math.ceil(cookie_content.length/4)*4,"="));}catch(error){}}
1868return this.decodeData(cookie_content);}}
1869return null;},destroy:function(name,domain,excl_subdomains){this.set(name,'',-1,domain,excl_subdomains);},parse:function(yummy){var cookies=[],data={};if(typeof yummy==='string'){cookies.push(yummy);}else{for(var prop in yummy){if(yummy.hasOwnProperty(prop)){cookies.push(yummy[prop]);}}}
1870for(var i1=0;i1<cookies.length;i1++){var cookie_array;data[this.unsbjs(cookies[i1])]={};if(this.get(cookies[i1])){cookie_array=this.get(cookies[i1]).split(delimiter);}else{cookie_array=[];}
1871for(var i2=0;i2<cookie_array.length;i2++){var tmp_array=cookie_array[i2].split('='),result_array=tmp_array.splice(0,1);result_array.push(tmp_array.join('='));data[this.unsbjs(cookies[i1])][result_array[0]]=this.decodeData(result_array[1]);}}
1872return data;},unsbjs:function(string){return string.replace('sbjs_','');}};},{"../data":2}],4:[function(_dereq_,module,exports){"use strict";module.exports={parse:function(str){var o=this.parseOptions,m=o.parser[o.strictMode?'strict':'loose'].exec(str),uri={},i=14;while(i--){uri[o.key[i]]=m[i]||'';}
1873uri[o.q.name]={};uri[o.key[12]].replace(o.q.parser,function($0,$1,$2){if($1){uri[o.q.name][$1]=$2;}});return uri;},parseOptions:{strictMode:false,key:['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'],q:{name:'queryKey',parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(custom_params){var query_string={},query=custom_params?custom_params:window.location.search.substring(1),vars=query.split('&');for(var i=0;i<vars.length;i++){var pair=vars[i].split('=');if(typeof query_string[pair[0]]==='undefined'){query_string[pair[0]]=pair[1];}else if(typeof query_string[pair[0]]==='string'){var arr=[query_string[pair[0]],pair[1]];query_string[pair[0]]=arr;}else{query_string[pair[0]].push(pair[1]);}}
vendor: 11,145 bytes, lines 1873-1898
1873
1874return query_string;},getHost:function(request){return this.parse(request).host.replace('www.','');}};},{}],5:[function(_dereq_,module,exports){"use strict";module.exports={escapeRegexp:function(string){return string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");},setDate:function(date,offset){var utc_offset=date.getTimezoneOffset()/60,now_hours=date.getHours(),custom_offset=offset||offset===0?offset:-utc_offset;date.setHours(now_hours+utc_offset+custom_offset);var year=date.getFullYear(),month=this.setLeadingZeroToInt(date.getMonth()+1,2),day=this.setLeadingZeroToInt(date.getDate(),2),hour=this.setLeadingZeroToInt(date.getHours(),2),minute=this.setLeadingZeroToInt(date.getMinutes(),2),second=this.setLeadingZeroToInt(date.getSeconds(),2);return(year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second);},setLeadingZeroToInt:function(num,size){var s=num+'';while(s.length<size){s='0'+s;}
1875return s;},randomInt:function(min,max){return Math.floor(Math.random()*(max-min+1))+min;}};},{}],6:[function(_dereq_,module,exports){"use strict";var data=_dereq_('./data'),terms=_dereq_('./terms'),cookies=_dereq_('./helpers/cookies'),uri=_dereq_('./helpers/uri'),utils=_dereq_('./helpers/utils'),params=_dereq_('./params'),migrations=_dereq_('./migrations');module.exports=function(prefs){var p=params.fetch(prefs);var get_param=uri.getParam();var domain=p.domain.host,isolate=p.domain.isolate,lifetime=p.lifetime;cookies.setBase64Flag(p.base64);migrations.go(lifetime,domain,isolate);var __sbjs_type,__sbjs_source,__sbjs_medium,__sbjs_campaign,__sbjs_content,__sbjs_term,__sbjs_id,__sbjs_platform,__sbjs_format,__sbjs_tactic;function mainData(){var sbjs_data;if(typeof get_param.utm_source!=='undefined'||typeof get_param.utm_medium!=='undefined'||typeof get_param.utm_campaign!=='undefined'||typeof get_param.utm_content!=='undefined'||typeof get_param.utm_term!=='undefined'||typeof get_param.utm_id!=='undefined'||typeof get_param.utm_source_platform!=='undefined'||typeof get_param.utm_creative_format!=='undefined'||typeof get_param.utm_marketing_tactic!=='undefined'||typeof get_param.gclid!=='undefined'||typeof get_param.yclid!=='undefined'||typeof get_param[p.campaign_param]!=='undefined'||typeof get_param[p.term_param]!=='undefined'||typeof get_param[p.content_param]!=='undefined'){setFirstAndCurrentExtraData();sbjs_data=getData(terms.traffic.utm);}else if(checkReferer(terms.traffic.organic)){setFirstAndCurrentExtraData();sbjs_data=getData(terms.traffic.organic);}else if(!cookies.get(data.containers.session)&&checkReferer(terms.traffic.referral)){setFirstAndCurrentExtraData();sbjs_data=getData(terms.traffic.referral);}else if(!cookies.get(data.containers.first)&&!cookies.get(data.containers.current)){setFirstAndCurrentExtraData();sbjs_data=getData(terms.traffic.typein);}else{return cookies.get(data.containers.current);}
1876return sbjs_data;}
1877function getData(type){switch(type){case terms.traffic.utm:__sbjs_type=terms.traffic.utm;if(typeof get_param.utm_source!=='undefined'){__sbjs_source=get_param.utm_source;}else if(typeof get_param.gclid!=='undefined'){__sbjs_source='google';}else if(typeof get_param.yclid!=='undefined'){__sbjs_source='yandex';}else{__sbjs_source=terms.none;}
1878if(typeof get_param.utm_medium!=='undefined'){__sbjs_medium=get_param.utm_medium;}else if(typeof get_param.gclid!=='undefined'){__sbjs_medium='cpc';}else if(typeof get_param.yclid!=='undefined'){__sbjs_medium='cpc';}else{__sbjs_medium=terms.none;}
1879if(typeof get_param.utm_campaign!=='undefined'){__sbjs_campaign=get_param.utm_campaign;}else if(typeof get_param[p.campaign_param]!=='undefined'){__sbjs_campaign=get_param[p.campaign_param];}else if(typeof get_param.gclid!=='undefined'){__sbjs_campaign='google_cpc';}else if(typeof get_param.yclid!=='undefined'){__sbjs_campaign='yandex_cpc';}else{__sbjs_campaign=terms.none;}
1880if(typeof get_param.utm_content!=='undefined'){__sbjs_content=get_param.utm_content;}else if(typeof get_param[p.content_param]!=='undefined'){__sbjs_content=get_param[p.content_param];}else{__sbjs_content=terms.none;}
1881__sbjs_id=get_param.utm_id||terms.none;__sbjs_platform=get_param.utm_source_platform||terms.none;__sbjs_format=get_param.utm_creative_format||terms.none;__sbjs_tactic=get_param.utm_marketing_tactic||terms.none;if(typeof get_param.utm_term!=='undefined'){__sbjs_term=get_param.utm_term;}else if(typeof get_param[p.term_param]!=='undefined'){__sbjs_term=get_param[p.term_param];}else{__sbjs_term=getUtmTerm()||terms.none;}
1882break;case terms.traffic.organic:__sbjs_type=terms.traffic.organic;__sbjs_source=__sbjs_source||uri.getHost(document.referrer);__sbjs_medium=terms.referer.organic;__sbjs_campaign=terms.none;__sbjs_content=terms.none;__sbjs_term=terms.none;__sbjs_id=terms.none;__sbjs_platform=terms.none;__sbjs_format=terms.none;__sbjs_tactic=terms.none;break;case terms.traffic.referral:__sbjs_type=terms.traffic.referral;__sbjs_source=__sbjs_source||uri.getHost(document.referrer);__sbjs_medium=__sbjs_medium||terms.referer.referral;__sbjs_campaign=terms.none;__sbjs_content=uri.parse(document.referrer).path;__sbjs_term=terms.none;__sbjs_id=terms.none;__sbjs_platform=terms.none;__sbjs_format=terms.none;__sbjs_tactic=terms.none;break;case terms.traffic.typein:__sbjs_type=terms.traffic.typein;__sbjs_source=p.typein_attributes.source;__sbjs_medium=p.typein_attributes.medium;__sbjs_campaign=terms.none;__sbjs_content=terms.none;__sbjs_term=terms.none;__sbjs_id=terms.none;__sbjs_platform=terms.none;__sbjs_format=terms.none;__sbjs_tactic=terms.none;break;default:__sbjs_type=terms.oops;__sbjs_source=terms.oops;__sbjs_medium=terms.oops;__sbjs_campaign=terms.oops;__sbjs_content=terms.oops;__sbjs_term=terms.oops;__sbjs_id=terms.oops;__sbjs_platform=terms.oops;__sbjs_format=terms.oops;__sbjs_tactic=terms.oops;}
1883var sbjs_data={type:__sbjs_type,source:__sbjs_source,medium:__sbjs_medium,campaign:__sbjs_campaign,content:__sbjs_content,term:__sbjs_term,id:__sbjs_id,platform:__sbjs_platform,format:__sbjs_format,tactic:__sbjs_tactic};return data.pack.main(sbjs_data);}
1884function getUtmTerm(){var referer=document.referrer;if(get_param.utm_term){return get_param.utm_term;}else if(referer&&uri.parse(referer).host&&uri.parse(referer).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)){try{return uri.getParam(uri.parse(document.referrer).query).text;}catch(err){return false;}}else{return false;}}
1885function checkReferer(type){var referer=document.referrer;switch(type){case terms.traffic.organic:return(!!referer&&checkRefererHost(referer)&&isOrganic(referer));case terms.traffic.referral:return(!!referer&&checkRefererHost(referer)&&isReferral(referer));default:return false;}}
1886function checkRefererHost(referer){if(p.domain){if(!isolate){var host_regex=new RegExp('^(?:.*\\.)?'+utils.escapeRegexp(domain)+'$','i');return!(uri.getHost(referer).match(host_regex));}else{return(uri.getHost(referer)!==uri.getHost(domain));}}else{return(uri.getHost(referer)!==uri.getHost(document.location.href));}}
1887function isOrganic(referer){var y_host='yandex',y_param='text',g_host='google';var y_host_regex=new RegExp('^(?:.*\\.)?'+utils.escapeRegexp(y_host)+'\\..{2,9}$'),y_param_regex=new RegExp('.*'+utils.escapeRegexp(y_param)+'=.*'),g_host_regex=new RegExp('^(?:www\\.)?'+utils.escapeRegexp(g_host)+'\\..{2,9}$');if(!!uri.parse(referer).query&&!!uri.parse(referer).host.match(y_host_regex)&&!!uri.parse(referer).query.match(y_param_regex)){__sbjs_source=y_host;return true;}else if(!!uri.parse(referer).host.match(g_host_regex)){__sbjs_source=g_host;return true;}else if(!!uri.parse(referer).query){for(var i=0;i<p.organics.length;i++){if(uri.parse(referer).host.match(new RegExp('^(?:.*\\.)?'+utils.escapeRegexp(p.organics[i].host)+'$','i'))&&uri.parse(referer).query.match(new RegExp('.*'+utils.escapeRegexp(p.organics[i].param)+'=.*','i'))){__sbjs_source=p.organics[i].display||p.organics[i].host;return true;}
1888if(i+1===p.organics.length){return false;}}}else{return false;}}
1889function isReferral(referer){if(p.referrals.length>0){for(var i=0;i<p.referrals.length;i++){if(uri.parse(referer).host.match(new RegExp('^(?:.*\\.)?'+utils.escapeRegexp(p.referrals[i].host)+'$','i'))){__sbjs_source=p.referrals[i].display||p.referrals[i].host;__sbjs_medium=p.referrals[i].medium||terms.referer.referral;return true;}
1890if(i+1===p.referrals.length){__sbjs_source=uri.getHost(referer);return true;}}}else{__sbjs_source=uri.getHost(referer);return true;}}
1891function setFirstAndCurrentExtraData(){cookies.set(data.containers.current_extra,data.pack.extra(p.timezone_offset),lifetime,domain,isolate);if(!cookies.get(data.containers.first_extra)){cookies.set(data.containers.first_extra,data.pack.extra(p.timezone_offset),lifetime,domain,isolate);}}
1892(function setData(){cookies.set(data.containers.current,mainData(),lifetime,domain,isolate);if(!cookies.get(data.containers.first)){cookies.set(data.containers.first,cookies.get(data.containers.current),lifetime,domain,isolate);}
1893var visits,udata;if(!cookies.get(data.containers.udata)){visits=1;udata=data.pack.user(visits,p.user_ip);}else{visits=parseInt(cookies.parse(data.containers.udata)[cookies.unsbjs(data.containers.udata)][data.aliases.udata.visits])||1;visits=cookies.get(data.containers.session)?visits:visits+1;udata=data.pack.user(visits,p.user_ip);}
1894cookies.set(data.containers.udata,udata,lifetime,domain,isolate);var pages_count;if(!cookies.get(data.containers.session)){pages_count=1;}else{pages_count=parseInt(cookies.parse(data.containers.session)[cookies.unsbjs(data.containers.session)][data.aliases.session.pages_seen])||1;pages_count+=1;}
1895cookies.set(data.containers.session,data.pack.session(pages_count),p.session_length,domain,isolate);if(p.promocode&&!cookies.get(data.containers.promocode)){cookies.set(data.containers.promocode,data.pack.promo(p.promocode),lifetime,domain,isolate);}})();return cookies.parse(data.containers);};},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(_dereq_,module,exports){"use strict";var data=_dereq_('./data'),cookies=_dereq_('./helpers/cookies');module.exports={go:function(lifetime,domain,isolate){var migrate=this.migrations,_with={l:lifetime,d:domain,i:isolate};var i;if(!cookies.get(data.containers.first)&&!cookies.get(data.service.migrations)){var mids=[];for(i=0;i<migrate.length;i++){mids.push(migrate[i].id);}
1896var advance='';for(i=0;i<mids.length;i++){advance+=mids[i]+'=1';if(i<mids.length-1){advance+=data.delimiter;}}
1897cookies.set(data.service.migrations,advance,_with.l,_with.d,_with.i);}else if(!cookies.get(data.service.migrations)){for(i=0;i<migrate.length;i++){migrate[i].go(migrate[i].id,_with);}}},migrations:[{id:'1418474375998',version:'1.0.0-beta',go:function(mid,_with){var success=mid+'=1',fail=mid+'=0';var safeReplace=function($0,$1,$2){return($1||$2?$0:data.delimiter);};try{var _in=[];for(var prop in data.containers){if(data.containers.hasOwnProperty(prop)){_in.push(data.containers[prop]);}}
1898for(var i=0;i<_in.length;i++){if(cookies.get(_in[i])){var buffer=cookies.get(_in[i]).replace(/(\|)?\|(\|)?/g,safeReplace);cookies.destroy(_in[i],_with.d,_with.i);cookies.destroy(_in[i],_with.d,!_with.i);
1898cookies.set(_in[i],buffer,_with.l,_with.d,_with.i);}}
1899if(cookies.get(data.containers.session)){cookies.set(data.containers.session,data.pack.session(0),_with.l,_with.d,_with.i);}
1900cookies.set(data.service.migrations,success,_with.l,_with.d,_with.i);}catch(err){cookies.set(data.service.migrations,fail,_with.l,_with.d,_with.i);}}}]};},{"./data":2,"./helpers/cookies":3}],8:[function(_dereq_,module,exports){"use strict";var terms=_dereq_('./terms'),uri=_dereq_('./helpers/uri');module.exports={fetch:function(prefs){var user=prefs||{},params={};params.lifetime=this.validate.checkFloat(user.lifetime)||6;params.lifetime=parseInt(params.lifetime*30*24*60);params.session_length=this.validate.checkInt(user.session_length)||30;params.timezone_offset=this.validate.checkInt(user.timezone_offset);params.base64=user.base64||false;params.campaign_param=user.campaign_param||false;params.term_param=user.term_param||false;params.content_param=user.content_param||false;params.user_ip=user.user_ip||terms.none;if(user.promocode){params.promocode={};params.promocode.min=parseInt(user.promocode.min)||100000;params.promocode.max=parseInt(user.promocode.max)||999999;}else{params.promocode=false;}
1901if(user.typein_attributes&&user.typein_attributes.source&&user.typein_attributes.medium){params.typein_attributes={};params.typein_attributes.source=user.typein_attributes.source;params.typein_attributes.medium=user.typein_attributes.medium;}else{params.typein_attributes={source:'(direct)',medium:'(none)'};}
1902if(user.domain&&this.validate.isString(user.domain)){params.domain={host:user.domain,isolate:false};}else if(user.domain&&user.domain.host){params.domain=user.domain;}else{params.domain={host:uri.getHost(document.location.hostname),isolate:false};}
1903params.referrals=[];if(user.referrals&&user.referrals.length>0){for(var ir=0;ir<user.referrals.length;ir++){if(user.referrals[ir].host){params.referrals.push(user.referrals[ir]);}}}
1904params.organics=[];if(user.organics&&user.organics.length>0){for(var io=0;io<user.organics.length;io++){if(user.organics[io].host&&user.organics[io].param){params.organics.push(user.organics[io]);}}}
1905params.organics.push({host:'bing.com',param:'q',display:'bing'});params.organics.push({host:'yahoo.com',param:'p',display:'yahoo'});params.organics.push({host:'about.com',param:'q',display:'about'});params.organics.push({host:'aol.com',param:'q',display:'aol'});params.organics.push({host:'ask.com',param:'q',display:'ask'});params.organics.push({host:'globososo.com',param:'q',display:'globo'});params.organics.push({host:'go.mail.ru',param:'q',display:'go.mail.ru'});params.organics.push({host:'rambler.ru',param:'query',display:'rambler'});params.organics.push({host:'tut.by',param:'query',display:'tut.by'});params.referrals.push({host:'t.co',display:'twitter.com'});params.referrals.push({host:'plus.url.google.com',display:'plus.google.com'});return params;},validate:{checkFloat:function(v){return v&&this.isNumeric(parseFloat(v))?parseFloat(v):false;},checkInt:function(v){return v&&this.isNumeric(parseInt(v))?parseInt(v):false;},isNumeric:function(v){return!isNaN(v);},isString:function(v){return Object.prototype.toString.call(v)==='[object String]';}}};},{"./helpers/uri":4,"./terms":9}],9:[function(_dereq_,module,exports){"use strict";module.exports={traffic:{utm:'utm',organic:'organic',referral:'referral',typein:'typein'},referer:{referral:'referral',organic:'organic',social:'social'},none:'(none)',oops:'(Houston, we have a problem)'};},{}]},{},[1])(1)});
1906(function(wc_order_attribution){'use strict';const params=wc_order_attribution.params;const $=document.querySelector.bind(document);const propertyAccessor=(obj,path)=>path.split('.').reduce((acc,part)=>acc&&acc[part],obj);const returnNull=()=>null;const stringifyFalsyInputValue=(value)=>value===null||value===undefined?'':value;const CHECKOUT_STORE_KEY='wc/store/checkout';wc_order_attribution.getAttributionData=function(){const accessor=params.allowTracking&&isSbjsAvailable()?propertyAccessor:returnNull;const getter=isSbjsAvailable()?sbjs.get:{};const entries=Object.entries(wc_order_attribution.fields).map(([key,property])=>[key,accessor(getter,property)]);return Object.fromEntries(entries);}
1907function removeDuplicateInputGroups(){document.querySelectorAll('wc-order-attribution-inputs').forEach((group,index)=>{if(index>0){group.remove();}});}
1908function updateFormValues(values){removeDuplicateInputGroups();for(const element of document.querySelectorAll('wc-order-attribution-inputs')){element.values=values;}};function updateCheckoutBlockData(values){if(window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData){window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData('woocommerce/order-attribution',values,true);}}
1909function isSbjsAvailable(){return typeof sbjs!=='undefined';}
1910wc_order_attribution.setOrderTracking=function(allow){params.allowTracking=allow;if(!allow){removeTrackingCookies();}else if(!isSbjsAvailable()){return;}else{sbjs.init({lifetime:Number(params.lifetime),session_length:Number(params.session),base64:Boolean(params.base64),timezone_offset:'0',});}
1911const values=wc_order_attribution.getAttributionData();updateFormValues(values);updateCheckoutBlockData(values);}
1912function removeTrackingCookies(){const domain=window.location.hostname;const sbCookies=['sbjs_current','sbjs_current_add','sbjs_first','sbjs_first_add','sbjs_session','sbjs_udata','sbjs_migrations','sbjs_promo'];
1912sbCookies.forEach((name)=>{document.cookie=`${name}=; path=/; max-age=-999; domain=.${domain};`;});}
1913wc_order_attribution.setOrderTracking(params.allowTracking);function eventuallyInitializeCheckoutBlock(){if(window.wp&&window.wp.data&&typeof window.wp.data.subscribe==='function'){const unsubscribe=window.wp.data.subscribe(function(){unsubscribe();updateCheckoutBlockData(wc_order_attribution.getAttributionData());},CHECKOUT_STORE_KEY);}};if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",eventuallyInitializeCheckoutBlock);}else{eventuallyInitializeCheckoutBlock();}
1914window.customElements.define('wc-order-attribution-inputs',class extends HTMLElement{constructor(){super();this._fieldNames=Object.keys(wc_order_attribution.fields);if(this.hasOwnProperty('_values')){let values=this.values;delete this.values;this.values=values||{};}}
1915connectedCallback(){this.innerHTML='';const inputs=new DocumentFragment();for(const fieldName of this._fieldNames){const input=document.createElement('input');input.type='hidden';input.name=`${params.prefix}${fieldName}`;input.value=stringifyFalsyInputValue((this.values&&this.values[fieldName])||'');inputs.appendChild(input);}
1916this.appendChild(inputs);}
1917set values(values){this._values=values;if(this.isConnected){for(const fieldName of this._fieldNames){const input=this.querySelector(`input[name="${params.prefix}${fieldName}"]`);if(input){input.value=stringifyFalsyInputValue(this.values[fieldName]);}else{console.warn(`Field "${fieldName}" not found. `+`Most likely, the '<wc-order-attribution-inputs>' element was manipulated.`);}}}}
1918get values(){return this._values;}});}(window.wc_order_attribution));
1919(function(){'use strict';var data=(typeof wc_facebook_pixel_data!=='undefined'&&wc_facebook_pixel_data)?wc_facebook_pixel_data:{eventQueue:[]};window.wcFacebookPixelFiredEvents=window.wcFacebookPixelFiredEvents||{};var firedEvents=window.wcFacebookPixelFiredEvents;function buildEventData(event){return{method:event.method||'track',name:event.name,params:event.params||{},eventId:event.eventId||null};}
1920function shouldSkipEvent(eventId){return eventId&&firedEvents[eventId];}
1921function markEventFired(eventId){if(eventId){firedEvents[eventId]=true;}}
1922function logWarning(message,data){if(typeof console!=='undefined'&&console.warn){console.warn('[FB Pixel]',message,data);}}
1923function fireEvent(event){var eventData=buildEventData(event);if(shouldSkipEvent(eventData.eventId)){return;}
1924try{var params=eventData.params;if(window.FacebookSignals&&typeof window.FacebookSignals.trackEvent==='function'){window.FacebookSignals.trackEvent(eventData.name,params,null,eventData.method,eventData.eventId);}else{if(typeof fbq!=='function'){logWarning('fbq not available, skipping event:',eventData.name);return;}
1925if(eventData.eventId){fbq(eventData.method,eventData.name,params,{eventID:eventData.eventId});}else{fbq(eventData.method,eventData.name,params);}}
1926markEventFired(eventData.eventId);}catch(e){logWarning('Event error: '+eventData.name,e);}}
1927function fireQueuedEvents(){var events=data.eventQueue;if(!events||!Array.isArray(events)){return;}
1928for(var i=0;i<events.length;i++){try{fireEvent(events[i]);}catch(e){logWarning('fireQueuedEvents loop error:',e);}}
1929data.eventQueue=[];}
1930function processStoreApiEvent(eventData){if(!eventData||!eventData.event){return;}
1931var params=eventData.params||{};var event={method:'track',name:eventData.event,params:params,eventId:params.event_id||null};fireEvent(event);}
1932function getRequestUrl(input){if(typeof input==='string'){return input;}
1933if(input&&typeof input.url==='string'){return input.url;}
1934return'';}
1935function isStoreApiAddItemRequest(url){return typeof url==='string'&&(url.indexOf('/wc/store/v1/cart/add-item')!==-1||url.indexOf('/wc/store/cart/add-item')!==-1);}
1936function isStoreApiBatchRequest(url){return typeof url==='string'&&(url.indexOf('/wc/store/v1/batch')!==-1||url.indexOf('/wc/store/batch')!==-1);}
1937function processStoreApiResponseData(responseData){if(!responseData||typeof responseData!=='object'){return;}
1938if(responseData.extensions&&responseData.extensions['facebook-for-woocommerce']){processStoreApiEvent(responseData.extensions['facebook-for-woocommerce']);}else if(Array.isArray(responseData.responses)){for(var i=0;i<responseData.responses.length;i++){var item=responseData.responses[i];if(item&&item.body&&item.body.extensions&&item.body.extensions['facebook-for-woocommerce']&&item.status>=200&&item.status<300){processStoreApiEvent(item.body.extensions['facebook-for-woocommerce']);}}}}
1939function setupFetchInterceptor(){var originalFetch=window.fetch;if(!originalFetch){return;}
1940window.fetch=function(){var args=arguments;var url=getRequestUrl(args[0]);var isAddToCartRequest=isStoreApiAddItemRequest(url);var isBatchRequest=isStoreApiBatchRequest(url);return originalFetch.apply(this,args).then(function(response){if((isAddToCartRequest||isBatchRequest)&&response.ok){response.clone().json().then(function(responseData){processStoreApiResponseData(responseData);}).catch(function(e){logWarning('Store API JSON parse error:',e);});}
1941return response;});};}
1942function init(){setupFetchInterceptor();if(typeof fbq==='function'){fireQueuedEvents();return;}
1943var _fbq=window.fbq;Object.defineProperty(window,'fbq',{configurable:true,enumerable:true,get:function(){return _fbq;},set:function(value){_fbq=value;if(typeof value==='function'){Object.defineProperty(window,'fbq',{configurable:true,enumerable:true,writable:true,value:value});setTimeout(fireQueuedEvents,0);}}});}
1944if(document.readyState==='complete'){init();}else{window.addEventListener('load',init);}})();
1945/*! This file is auto-generated */
1946/*!
1947 * Masonry PACKAGED v4.2.2
1948 * Cascading grid layout library
1949 * https://masonry.desandro.com
1950 * MIT License
1951 * by David DeSandro
1952 */
vendor: 23,967 bytes, lines 1952-1953
1952
1953!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
1953
1954/*!
1955 * Masonry v2 shim
1956 * to maintain backwards compatibility
1957 * as of Masonry v3.1.2
1958 *
1959 * Cascading grid layout library
1960 * http://masonry.desandro.com
1961 * MIT License
1962 * by David DeSandro
1963 */
1964!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&&(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&&b.duration;c&&(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&&(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&&"function"==typeof a&&(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);
1965/*!
1966 * The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/)
1967 * Copyright (c) 2016 Edson Hilios
1968 * 
1969 * Permission is hereby granted, free of charge, to any person obtaining a copy of
1970 * this software and associated documentation files (the "Software"), to deal in
1971 * the Software without restriction, including without limitation the rights to
1972 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1973 * the Software, and to permit persons to whom the Software is furnished to do so,
1974 * subject to the following conditions:
1975 * 
1976 * The above copyright notice and this permission notice shall be included in all
1977 * copies or substantial portions of the Software.
1978 * 
1979 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1980 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1981 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1982 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1983 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1984 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1985 */
1986!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";function b(a){if(a instanceof Date)return a;
1986if(String(a).match(g))return String(a).match(/^[0-9]*$/)&&(a=Number(a)),String(a).match(/\-/)&&(a=String(a).replace(/\-/g,"/")),new Date(a);throw new Error("Couldn't cast `"+a+"` to a date object.")}function c(a){var b=a.toString().replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");return new RegExp(b)}function d(a){return function(b){var d=b.match(/%(-|!)?[A-Z]{1}(:[^;]+;)?/gi);if(d)for(var f=0,g=d.length;f<g;++f){var h=d[f].match(/%(-|!)?([a-zA-Z]{1})(:[^;]+;)?/),j=c(h[0]),k=h[1]||"",l=h[3]||"",m=null;h=h[2],i.hasOwnProperty(h)&&(m=i[h],m=Number(a[m])),null!==m&&("!"===k&&(m=e(l,m)),""===k&&m<10&&(m="0"+m.toString()),b=b.replace(j,m.toString()))}return b=b.replace(/%%/,"%")}}function e(a,b){var c="s",d="";return a&&(a=a.replace(/(:|;|\s)/gi,"").split(/\,/),1===a.length?c=a[0]:(d=a[0],c=a[1])),Math.abs(b)>1?c:d}var f=[],g=[],h={precision:100,elapse:!1,defer:!1};g.push(/^[0-9]*$/.source),g.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source),g=new RegExp(g.join("|"));var i={Y:"years",m:"months",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHours",N:"totalMinutes",T:"totalSeconds"},j=function(b,c,d){this.el=b,this.$el=a(b),this.interval=null,this.offset={},this.options=a.extend({},h),this.firstTick=!0,this.instanceNumber=f.length,f.push(this),this.$el.data("countdown-instance",this.instanceNumber),d&&("function"==typeof d?(this.$el.on("update.countdown",d),this.$el.on("stoped.countdown",d),this.$el.on("finish.countdown",d)):this.options=a.extend({},h,d)),this.setFinalDate(c),this.options.defer===!1&&this.start()};a.extend(j.prototype,{start:function(){null!==this.interval&&clearInterval(this.interval);var a=this;this.update(),this.interval=setInterval(function(){a.update.call(a)},this.options.precision)},stop:function(){clearInterval(this.interval),this.interval=null,this.dispatchEvent("stoped")},toggle:function(){this.interval?this.stop():this.start()},pause:function(){this.stop()},resume:function(){this.start()},remove:function(){this.stop.call(this),f[this.instanceNumber]=null,delete this.$el.data().countdownInstance},setFinalDate:function(a){this.finalDate=b(a)},update:function(){if(0===this.$el.closest("html").length)return void this.remove();var a,b=new Date;return a=this.finalDate.getTime()-b.getTime(),a=Math.ceil(a/1e3),a=!this.options.elapse&&a<0?0:Math.abs(a),this.totalSecsLeft===a||this.firstTick?void(this.firstTick=!1):(this.totalSecsLeft=a,this.elapsed=b>=this.finalDate,this.offset={seconds:this.totalSecsLeft%60,minutes:Math.floor(this.totalSecsLeft/60)%60,hours:Math.floor(this.totalSecsLeft/60/60)%24,days:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToWeek:Math.floor(this.totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(this.totalSecsLeft/60/60/24%30.4368),weeks:Math.floor(this.totalSecsLeft/60/60/24/7),weeksToMonth:Math.floor(this.totalSecsLeft/60/60/24/7)%4,months:Math.floor(this.totalSecsLeft/60/60/24/30.4368),years:Math.abs(this.finalDate.getFullYear()-b.getFullYear()),totalDays:Math.floor(this.totalSecsLeft/60/60/24),totalHours:Math.floor(this.totalSecsLeft/60/60),totalMinutes:Math.floor(this.totalSecsLeft/60),totalSeconds:this.totalSecsLeft},void(this.options.elapse||0!==this.totalSecsLeft?this.dispatchEvent("update"):(this.stop(),this.dispatchEvent("finish"))))},dispatchEvent:function(b){var c=a.Event(b+".countdown");c.finalDate=this.finalDate,c.elapsed=this.elapsed,c.offset=a.extend({},this.offset),c.strftime=d(this.offset),this.$el.trigger(c)}}),a.fn.countdown=function(){var b=Array.prototype.slice.call(arguments,0);return this.each(function(){var c=a(this).data("countdown-instance");if(void 0!==c){var d=f[c],e=b[0];j.prototype.hasOwnProperty(e)?d[e].apply(d,b.slice(1)):null===String(e).match(/^[$A-Z_][0-9A-Z_$]*$/i)?(d.setFinalDate.call(d,e),d.start()):a.error("Method %s does not exist on jQuery.countdown".replace(/\%s/gi,e))}else new j(this,b[0],b[1])})}});
1987
1988!function(i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("object"==typeof module&&module.exports){var t=require("jquery");i(t),module.exports=t}else i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("<canvas>")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("<canvas>")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,o=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],h=n.createLinearGradient.apply(n,o),c=0;c<s.length;c++){var d=s[c],u=c/(s.length-1);i.isArray(d)&&(u=d[1],d=d[0]),h.addColorStop(u,d)}this.arcFill=h}}if(a.image){var g;a.image instanceof Image?g=a.image:(g=new Image,g.src=a.image),g.complete?t():g.onload=t}},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(i){this.lastFrameValue=i,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(i),this.drawArc(i)},drawArc:function(i){if(0!==i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;t.save(),t.beginPath(),this.reverse?t.arc(e,e,e-a/2,n-2*Math.PI*i,n):t.arc(e,e,e-a/2,n,n+2*Math.PI*i),t.lineWidth=a,t.lineCap=this.lineCap,t.strokeStyle=this.arcFill,t.stroke(),t.restore(
1988)}},drawEmptyArc:function(i){var t=this.ctx,e=this.radius,a=this.getThickness(),n=this.startAngle;i<1&&(t.save(),t.beginPath(),i<=0?t.arc(e,e,e-a/2,0,2*Math.PI):this.reverse?t.arc(e,e,e-a/2,n,n-2*Math.PI*i):t.arc(e,e,e-a/2,n+2*Math.PI*i,n),t.lineWidth=a,t.strokeStyle=this.emptyFill,t.stroke(),t.restore())},drawAnimated:function(t){var e=this,a=this.el,n=i(this.canvas);n.stop(!0,!1),a.trigger("circle-animation-start"),n.css({animationProgress:0}).animate({animationProgress:1},i.extend({},this.animation,{step:function(i){var n=e.animationStartValue*(1-i)+t*i;e.drawFrame(n),a.trigger("circle-animation-progress",[i,n])}})).promise().always(function(){a.trigger("circle-animation-end")})},getThickness:function(){return i.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(i){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=i,this.draw()}},i.circleProgress={defaults:t.prototype},i.easing.circleProgressEasing=function(i){return i<.5?(i=2*i,.5*i*i*i):(i=2-2*i,1-.5*i*i*i)},i.fn.circleProgress=function(e,a){var n="circle-progress",r=this.data(n);if("widget"==e){if(!r)throw Error('Calling "widget" method on not initialized instance is forbidden');return r.canvas}if("value"==e){if(!r)throw Error('Calling "value" method on not initialized instance is forbidden');if("undefined"==typeof a)return r.getValue();var s=arguments[1];return this.each(function(){i(this).data(n).setValue(s)})}return this.each(function(){var a=i(this),r=a.data(n),s=i.isPlainObject(e)?e:{};if(r)r.init(s);else{var l=i.extend({},a.data());"string"==typeof l.fill&&(l.fill=JSON.parse(l.fill)),"string"==typeof l.animation&&(l.animation=JSON.parse(l.animation)),s=i.extend(l,s),s.el=a,r=new t(s),a.data(n,r)}})}});
1989jQuery(document).ready(function($){"use strict";$('.konte-map').each(function(){var $map=$(this),latitude=$map.data('lat'),longitude=$map.data('lng'),zoom=$map.data('zoom'),marker_icon=$map.data('marker'),info=$map.html();var mapOptions={zoom:zoom,disableDefaultUI:true,scrollwheel:false,navigationControl:true,mapTypeControl:false,scaleControl:false,draggable:true,center:new google.maps.LatLng(latitude,longitude),mapTypeId:google.maps.MapTypeId.ROADMAP};switch($map.data('color')){case'grey':mapOptions.styles=[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}];break;case'black':mapOptions.styles=[{"featureType":"all","elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"featureType":"all","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]}];break;case'vista-blue':mapOptions.styles=[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#a0d6d1"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#dedede"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#dedede"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f1f1f1"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}];break;case'blue':mapOptions.styles=[{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#444444"}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#f2f2f2"}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"all","stylers":[{"saturation":-100},{"lightness":45}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#b2d6eb"},{"visibility":"on"}]}];}
1990var map=new google.maps.Map(this,mapOptions);if(marker_icon){var marker=new google.maps.Marker({position:new google.maps.LatLng(latitude,longitude),map:map,icon:marker_icon,animation:google.maps.Animation.DROP});}
1991if(info){var infoWindow=new google.maps.InfoWindow({content:'<div class="info_content">'+info+'</div>'});if(typeof marker===undefined){var marker=new google.maps.Marker({position:new google.maps.LatLng(latitude,longitude),map:map,animation:google.maps.Animation.DROP});}
1992marker.addListener('click',function(){infoWindow.open(map,marker);});}});$('.konte-carousel:not(.konte-carousel--elementor)').on('init',function(event,slick){if(slick.$slider.hasClass('konte-carousel--show-index')){slick.$slides.each(function(index,$slide){var number=++index<10?'0'+index.toString():index.toString();$('<span class="konte-dash konte-carousel__slide-index"><span class="konte-dash__line text-default"></span><span class="konte-carousel__slide-index-number">'+number+'</span></span>').appendTo($slide);});setTimeout(function(){slick.$slider.addClass('indexs-initialized');},500);}
1993setTimeout(function(){slick.$slider.slick('slickSetOption','responsive',[{breakpoint:1199,settings:{slidesToShow:Math.min(slick.options.slidesToShow,2),slidesToScroll:1}},{breakpoint:767,settings:{centerMode:true,slidesToShow:1,slidesToScroll:1}}],true);},1);}).slick({rtl:$(document.body).hasClass('rtl'),prevArrow:'<button type="button" class="slick-prev konte-carousel__arrow"><span class="svg-icon icon-left icon-small"><svg><use xlink:href="#left"></use></svg></span></button>
1993',nextArrow:'<button type="button" class="slick-next konte-carousel__arrow"><span class="svg-icon icon-right icon-small"><svg><use xlink:href="#right"></use></svg></span></button>'});$('.konte-chart:not(.konte-chart--elementor)').circleProgress({emptyFill:'rgba(227,231,232,1)',startAngle:-Math.PI/2});$('.konte-post-carousel:not(.konte-post-carousel--elementor)').slick({rtl:$(document.body).hasClass('rtl'),responsive:[{breakpoint:1199,settings:{slidesToShow:2,slidesToScroll:1,}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,}}]});$(document.body).on('click','.konte-message-box .close',function(e){e.preventDefault();$(this).parent().fadeOut();});$(document).on('vc-full-width-row-single',function(event,section){if(!section.el.hasClass('section_stretch_side')){return;}
1994if(section.el.hasClass('section_stretch_left')){section.el.css({paddingRight:0,width:section.width+section.offset});}
1995if(section.el.hasClass('section_stretch_left_no_padding')){section.el.css({paddingRight:0,paddingLeft:0,width:section.width+section.offset});}
1996if(section.el.hasClass('section_stretch_right')){section.el.css({left:'auto',paddingLeft:0,width:section.width+section.offset});}
1997if(section.el.hasClass('section_stretch_right_no_padding')){section.el.css({left:'auto',paddingleft:0,paddingRight:0,width:section.width+section.offset});}});$('.konte-testimonial-carousel__photos').slick({rtl:$(document.body).hasClass('rtl'),slidesToShow:1,slidesToScroll:1,arrows:false,fade:true});$('.konte-testimonial-carousel__testimonials').slick({rtl:$(document.body).hasClass('rtl'),slidesToShow:1,slidesToScroll:1,arrows:false,dots:true});$('.konte-countdown:not(.konte-countdown--elementor)').each(function(){var $el=$(this),$timers=$el.find('.timers'),output='';$timers.countdown($timers.data('date'),function(event){output='';var day=event.strftime('%D');for(var i=0;i<day.length;i++){output+='<span>'+day[i]+'</span>';}
1998$timers.find('.day').html(output);output='';var hour=event.strftime('%H');for(i=0;i<hour.length;i++){output+='<span>'+hour[i]+'</span>';}
1999$timers.find('.hour').html(output);output='';var minu=event.strftime('%M');for(i=0;i<minu.length;i++){output+='<span>'+minu[i]+'</span>';}
2000$timers.find('.min').html(output);output='';var secs=event.strftime('%S');for(i=0;i<secs.length;i++){output+='<span>'+secs[i]+'</span>';}
2001$timers.find('.secs').html(output);});});$('.konte-product-carousel:not(.konte-product-carousel--elementor)').each(function(){var $carousel=$(this);initProductCarousel($carousel);});function initProductCarousel($carousel){var $products=$carousel.find('ul.products'),itemsCount=$('li.product',$products).length,options=$carousel.data('slick'),navStyle=$carousel.data('nav_style'),navText={};if('angle'===navStyle){navText.prev='<button type="button" class="slick-prev product-carousel-arrow"><span class="svg-icon icon-left"><svg><use xlink:href="#left"></use></svg></span></button>';navText.next='<button type="button" class="slick-next product-carousel-arrow"><span class="svg-icon icon-right"><svg><use xlink:href="#right"></use></svg></span></button>';}else{navText.prev='<button type="button" class="slick-prev product-carousel-arrow"><span class="svg-icon icon-arrow-left"><svg><use xlink:href="#arrow-left"></use></svg></span></button>';navText.next='<button type="button" class="slick-next product-carousel-arrow"><span class="svg-icon icon-arrow-left"><svg><use xlink:href="#arrow-left"></use></svg></span></button>';}
2002options=$.extend(options,{dots:true,arrows:true,speed:400,rtl:$(document.body).hasClass('rtl'),prevArrow:navText.prev,nextArrow:navText.next,responsive:[{breakpoint:1199,settings:{slidesToShow:Math.min(3,options.slidesToShow),slidesToScroll:Math.min(3,options.slidesToShow),dots:(Math.min(3,options.slidesToShow)<itemsCount)}},{breakpoint:991,settings:{slidesToShow:Math.min(2,options.slidesToShow),slidesToScroll:Math.min(2,options.slidesToShow),dots:(Math.min(2,options.slidesToShow)<itemsCount)}},{breakpoint:320,settings:{slidesToShow:1,slidesToScroll:1,dots:(1<itemsCount)}}]});$products.css('opacity',0).attr('dir',$(document.body).hasClass('rtl')?'rtl':'').
2002css('opacity',0).on('init',function(event){$(event.target).css('opacity',1);}).slick(options);}
2003var konteMansonryActive=false;$('.konte-product-masonry:not(.konte-product-masonry--elementor) ul.products').on('layoutComplete',function(event){var $container=$(event.currentTarget);if($container.closest('.konte-product-masonry').hasClass('has-heading')){var top=$container.children(':nth-child(5)').css('top');$container.children(':nth-child(4)').css('top',top);}});initProductMansonry();$(window).on('resize',initProductMansonry);function initProductMansonry(){if($(window).width()<992){if(konteMansonryActive){$('.konte-product-masonry:not(.konte-product-masonry--elementor) ul.products').masonry('destroy');}
2004konteMansonryActive=false;}else if(!konteMansonryActive){$('.konte-product-masonry:not(.konte-product-masonry--elementor) ul.products').masonry({itemSelector:'li.product',columnWidth:'li.product',percentPosition:true,transitionDuration:0,originLeft:!$(document.body).hasClass('rtl')}).imagesLoaded(function(instance){$(instance.elements).masonry('layout');});konteMansonryActive=true;}}
2005$('.konte-tabs:not( .konte-tabs--elementor )').on('click','.konte-tabs__nav li',function(){var $tab=$(this),index=$tab.data('target'),$panels=$tab.closest('.konte-tabs').find('.konte-tabs__panels'),$panel=$panels.find('.konte-tabs__panel[data-panel="'+index+'"]');if($tab.hasClass('active')){return;}
2006$tab.addClass('active').siblings('li.active').removeClass('active');if($panel.length){$panel.addClass('active').siblings('.konte-tabs__panel.active').removeClass('active');}});$('.konte-product-tabs:not( .konte-product-tabs--elementor )').on('click','.konte-tabs__nav li',function(){var $tab=$(this),atts=$tab.data('atts'),index=$tab.data('target'),$panels=$tab.parent().next('.konte-tabs__panels'),$panel=$panels.find('.konte-tabs__panel[data-panel="'+index+'"]'),ajax_url=wc_add_to_cart_params?wc_add_to_cart_params.wc_ajax_url.toString().replace('%%endpoint%%','konte_products_shortcode'):konteData.ajax_url;if($panel.length){return;}
2007if(!atts){return;}
2008$panels.addClass('loading');$.post(ajax_url,{action:'konte_products_shortcode',atts:atts},function(response){if(!response.success){$panels.removeClass('loading');return;}
2009var $newPanel=$panels.children('.konte-tabs__panel').first().clone();$newPanel.html(response.data);$newPanel.attr('data-panel',index);$newPanel.addClass('active');$newPanel.appendTo($panels);$newPanel.siblings('.konte-tabs__panel.active').removeClass('active');if($tab.closest('.konte-product-tabs').hasClass('tabs-carousel')){initProductCarousel($newPanel);}
2010$(document.body).trigger('konte_products_loaded',[$newPanel.find('li.product'),false]);setTimeout(function(){$panels.removeClass('loading');},700);}).fail(function(){window.location.herf=$tab.data('href');});;});$('.konte-product-carousel2:not( .konte-product-carousel2--elementor )').each(function(){var $carousel=$(this);var options=$carousel.data('slick'),navText={};navText.prev='<button type="button" class="slick-prev"><span class="svg-icon icon-left"><svg><use xlink:href="#left"></use></svg></span></button>';navText.next='<button type="button" class="slick-next"><span class="svg-icon icon-right"><svg><use xlink:href="#right"></use></svg></span></button>';options=$.extend(options,{dots:false,arrows:true,speed:400,slidesToShow:1,slidesToScroll:1,rtl:$(document.body).hasClass('rtl'),prevArrow:navText.prev,nextArrow:navText.next,variableWidth:true,touchThreshold:10,responsive:[{breakpoint:1279,settings:{slidesToShow:1}}]});$carousel.find('ul.products').attr('dir',$(document.body).hasClass('rtl')?'rlt':'').css('opacity',0).on('init',function(event){$(event.target).css('opacity',1);}).slick(options);});$('.konte-instagram-carousel:not(.konte-instagram-carousel--elementor)').each(function(){var $carousel=$(this);var options=$carousel.data('slick');options.prevArrow='<button type="button" class="slick-prev konte-instagram-carousel__arrow"><span class="svg-icon icon-left icon-small"><svg><use xlink:href="#left"></use></svg></span></button>';
2010options.nextArrow='<button type="button" class="slick-next konte-instagram-carousel__arrow"><span class="svg-icon icon-right icon-small"><svg><use xlink:href="#right"></use></svg></span></button>';options=$.extend(options,{appendDots:$carousel,responsive:[{breakpoint:1200,settings:{slidesToShow:Math.min(5,options.slidesToShow),slidesToScroll:Math.min(5,options.slidesToScroll),arrows:false}},{breakpoint:992,settings:{slidesToShow:Math.min(3,options.slidesToShow),slidesToScroll:Math.min(3,options.slidesToScroll),arrows:false}},{breakpoint:768,settings:{slidesToShow:Math.min(2,options.slidesToShow),slidesToScroll:Math.min(2,options.slidesToScroll),arrows:false}}]});$carousel.find('.konte-instagram__list').slick(options);})});
2011document.addEventListener("DOMContentLoaded",(e=>{var t;wpcf7_recaptcha={...null!==(t=wpcf7_recaptcha)&&void 0!==t?t:{}};const c=wpcf7_recaptcha.sitekey,{homepage:n,contactform:a}=wpcf7_recaptcha.actions,o=e=>{const{action:t,func:n,params:a}=e;grecaptcha.execute(c,{action:t}).then((e=>{const c=new CustomEvent("wpcf7grecaptchaexecuted",{detail:{action:t,token:e}});document.dispatchEvent(c)})).then((()=>{"function"==typeof n&&n(...a)})).catch((e=>console.error(e)))};if(grecaptcha.ready((()=>{o({action:n})})),document.addEventListener("change",(e=>{o({action:a})})),"undefined"!=typeof wpcf7&&"function"==typeof wpcf7.submit){const e=wpcf7.submit;wpcf7.submit=(t,c={})=>{o({action:a,func:e,params:[t,c]})}}document.addEventListener("wpcf7grecaptchaexecuted",(e=>{const t=document.querySelectorAll('form.wpcf7-form input[name="_wpcf7_recaptcha_response"]');for(let c=0;c<t.length;c++)t[c].setAttribute("value",e.detail.token)}))}));
2012(function(e){typeof define=="function"&&define.amd?define(["jquery"],e):typeof module=="object"&&module.exports?module.exports=function(t,n){return n===undefined&&(typeof window!="undefined"?n=require("jquery"):n=require("jquery")(t)),e(n),n}:e(jQuery)})(function(e){function A(t,n,i){typeof i=="string"&&(i={className:i}),this.options=E(w,e.isPlainObject(i)?i:{}),this.loadHTML(),this.wrapper=e(h.html),this.options.clickToHide&&this.wrapper.addClass(r+"-hidable"),this.wrapper.data(r,this),this.arrow=this.wrapper.find("."+r+"-arrow"),this.container=this.wrapper.find("."+r+"-container"),this.container.append(this.userContainer),t&&t.length&&(this.elementType=t.attr("type"),this.originalElement=t,this.elem=N(t),this.elem.data(r,this),this.elem.before(this.wrapper)),this.container.hide(),this.run(n)}var t=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},n="notify",r=n+"js",i=n+"!blank",s={t:"top",m:"middle",b:"bottom",l:"left",c:"center",r:"right"},o=["l","c","r"],u=["t","m","b"],a=["t","b","l","r"],f={t:"b",m:null,b:"t",l:"r",c:null,r:"l"},l=function(t){var n;return n=[],e.each(t.split(/\W+/),function(e,t){var r;r=t.toLowerCase().charAt(0);if(s[r])return n.push(r)}),n},c={},h={name:"core",html:'<div class="'+r+'-wrapper">\n	<div class="'+r+'-arrow"></div>\n	<div class="'+r+'-container"></div>\n</div>',css:"."+r+"-corner {\n	position: fixed;\n	margin: 5px;\n	z-index: 1050;\n}\n\n."+r+"-corner ."+r+"-wrapper,\n."+r+"-corner ."+r+"-container {\n	position: relative;\n	display: block;\n	height: inherit;\n	width: inherit;\n	margin: 3px;\n}\n\n."+r+"-wrapper {\n	z-index: 1;\n	position: absolute;\n	display: inline-block;\n	height: 0;\n	width: 0;\n}\n\n."+r+"-container {\n	display: none;\n	z-index: 1;\n	position: absolute;\n}\n\n."+r+"-hidable {\n	cursor: pointer;\n}\n\n[data-notify-text],[data-notify-html] {\n	position: relative;\n}\n\n."+r+"-arrow {\n	position: absolute;\n	z-index: 2;\n	width: 0;\n	height: 0;\n}"},p={"border-radius":["-webkit-","-moz-"]},d=function(e){return c[e]},v=function(e){if(!e)throw"Missing Style name";c[e]&&delete c[e]},m=function(t,i){if(!t)throw"Missing Style name";if(!i)throw"Missing Style definition";if(!i.html)throw"Missing Style HTML";var s=c[t];s&&s.cssElem&&(window.console&&console.warn(n+": overwriting style '"+t+"'"),c[t].cssElem.remove()),i.name=t,c[t]=i;var o="";i.classes&&e.each(i.classes,function(t,n){return o+="."+r+"-"+i.name+"-"+t+" {\n",e.each(n,function(t,n){return p[t]&&e.each(p[t],function(e,r){return o+="	"+r+t+": "+n+";\n"}),o+="	"+t+": "+n+";\n"}),o+="}\n"}),i.css&&(o+="/* styles for "+i.name+" */\n"+i.css),o&&(i.cssElem=g(o),i.cssElem.attr("id","notify-"+i.name));var u={},a=e(i.html);y("html",a,u),y("text",a,u),i.fields=u},g=function(t){var n,r,i;r=x("style"),r.attr("type","text/css"),e("head").append(r);try{r.html(t)}
2012catch(s){r[0].styleSheet.cssText=t}return r},y=function(t,n,r){var s;return t!=="html"&&(t="text"),s="data-notify-"+t,b(n,"["+s+"]").each(function(){var n;n=e(this).attr(s),n||(n=i),r[n]=t})},b=function(e,t){return e.is(t)?e:e.find(t)},w={clickToHide:!0,autoHide:!0,autoHideDelay:5e3,arrowShow:!0,arrowSize:5,breakNewLines:!0,elementPosition:"bottom",globalPosition:"top right",style:"bootstrap",className:"error",showAnimation:"slideDown",showDuration:400,hideAnimation:"slideUp",hideDuration:200,gap:5},E=function(t,n){var r;return r=function(){},r.prototype=t,e.extend(!0,new r,n)},S=function(t){return e.extend(w,t)},x=function(t){return e("<"+t+"></"+t+">")},T={},N=function(t){var n;return t.is("[type=radio]")&&(n=t.parents("form:first").find("[type=radio]").filter(function(n,r){return e(r).attr("name")===t.attr("name")}),t=n.first()),t},C=function(e,t,n){var r,i;if(typeof n=="string")n=parseInt(n,10);else if(typeof n!="number")return;if(isNaN(n))return;return r=s[f[t.charAt(0)]],i=t,e[r]!==undefined&&(t=s[r.charAt(0)],n=-n),e[t]===undefined?e[t]=n:e[t]+=n,null},k=function(e,t,n){if(e==="l"||e==="t")return 0;if(e==="c"||e==="m")return n/2-t/2;if(e==="r"||e==="b")return n-t;throw"Invalid alignment"},L=function(e){return L.e=L.e||x("div"),L.e.text(e).html()};A.prototype.loadHTML=function(){var t;t=this.getStyle(),this.userContainer=e(t.html),this.userFields=t.fields},A.prototype.show=function(e,t){var n,r,i,s,o;r=function(n){return function(){!e&&!n.elem&&n.destroy();if(t)return t()}}(this),o=this.container.parent().parents(":hidden").length>0,i=this.container.add(this.arrow),n=[];if(o&&e)s="show";else if(o&&!e)s="hide";else if(!o&&e)s=this.options.showAnimation,n.push(this.options.showDuration);else{if(!!o||!!e)return r();s=this.options.hideAnimation,n.push(this.options.hideDuration)}return n.push(r),i[s].apply(i,n)},A.prototype.setGlobalPosition=function(){var t=this.getPosition(),n=t[0],i=t[1],o=s[n],u=s[i],a=n+"|"+i,f=T[a];if(!f||!document.body.contains(f[0])){f=T[a]=x("div");var l={};l[o]=0,u==="middle"?l.top="45%":u==="center"?l.left="45%":l[u]=0,f.css(l).addClass(r+"-corner"),e("body").append(f)}return f.prepend(this.wrapper)},A.prototype.setElementPosition=function(){var n,r,i,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,L,A,O,M,_,D,P,H,B,j;H=this.getPosition(),_=H[0],O=H[1],M=H[2],g=this.elem.position(),d=this.elem.outerHeight(),y=this.elem.outerWidth(),v=this.elem.innerHe
2012ight(),m=this.elem.innerWidth(),j=this.wrapper.position(),c=this.container.height(),h=this.container.width(),T=s[_],L=f[_],A=s[L],p={},p[A]=_==="b"?d:_==="r"?y:0,C(p,"top",g.top-j.top),C(p,"left",g.left-j.left),B=["top","left"];for(w=0,S=B.length;w<S;w++)D=B[w],N=parseInt(this.elem.css("margin-"+D),10),N&&C(p,D,N);b=Math.max(0,this.options.gap-(this.options.arrowShow?i:0)),C(p,A,b);if(!this.options.arrowShow)this.arrow.hide();else{i=this.options.arrowSize,r=e.extend({},p),n=this.userContainer.css("border-color")||this.userContainer.css("border-top-color")||this.userContainer.css("background-color")||"white";for(E=0,x=a.length;E<x;E++){D=a[E],P=s[D];if(D===L)continue;l=P===T?n:"transparent",r["border-"+P]=i+"px solid "+l}C(p,s[L],i),t.call(a,O)>=0&&C(r,s[O],i*2)}t.call(u,_)>=0?(C(p,"left",k(O,h,y)),r&&C(r,"left",k(O,i,m))):t.call(o,_)>=0&&(C(p,"top",k(O,c,d)),r&&C(r,"top",k(O,i,v))),this.container.is(":visible")&&(p.display="block"),this.container.removeAttr("style").css(p);if(r)return this.arrow.removeAttr("style").css(r)},A.prototype.getPosition=function(){var e,n,r,i,s,f,c,h;h=this.options.position||(this.elem?this.options.elementPosition:this.options.globalPosition),e=l(h),e.length===0&&(e[0]="b");if(n=e[0],t.call(a,n)<0)throw"Must be one of ["+a+"]";if(e.length===1||(r=e[0],t.call(u,r)>=0)&&(i=e[1],t.call(o,i)<0)||(s=e[0],t.call(o,s)>=0)&&(f=e[1],t.call(u,f)<0))e[1]=(c=e[0],t.call(o,c)>=0)?"m":"l";return e.length===2&&(e[2]=e[1]),e},A.prototype.getStyle=function(e){var t;e||(e=this.options.style),e||(e="default"),t=c[e];if(!t)throw"Missing style: "+e;return t},A.prototype.updateClasses=function(){var t,n;return t=["base"],e.isArray(this.options.className)?t=t.concat(this.options.className):this.options.className&&t.push(this.options.className),n=this.getStyle(),t=e.map(t,function(e){return r+"-"+n.name+"-"+e}).join(" "),this.userContainer.attr("class",t)},A.prototype.run=function(t,n){var r,s,o,u,a;e.isPlainObject(n)?e.extend(this.options,n):e.type(n)==="string"&&(this.options.className=n);if(this.container&&!t){this.show(!1);return}if(!this.container&&!t)return;s={},e.isPlainObject(t)?s=t:s[i]=t;for(o in s){r=s[o],u=this.userFields[o];if(!u)continue;u==="text"&&(r=L(r),this.options.breakNewLines&&(r=r.replace(/\n/g,"<br/>"))),a=o===i?"":"="+o,b(this.userContainer,"[data-notify-"+u+a+"]").html(r)}this.updateClasses(),this.elem?this.setElementPosition():this.setGlobalPosition(),this.show(!0),this.options.autoHide&&(clearTimeout(this.autohideTimer),this.autohideTimer=setTimeout(this.show.bind(this,!1),this.options.autoHideDelay))},A.prototype.destroy=function(){this.wrapper.data(r,null),this.wrapper.remove()},e[n]=function(t,r,i){return t&&t.nodeName||t.jquery?e(t)[n](r,i):(i=r,r=t,new A(null,r,i)),t},e.fn[n]=function(t,n){return e(this).each(function(){var i=N(e(this)).data(r);i&&i.destroy();var s=new A(e(this),t,n)}),this},e.extend(e[n],{defaults:S,addStyle:m,removeStyle:v,pluginOptions:w,getStyle:d,insertCSS:g}),m("bootstrap",{html:"<div>\n<span data-notify-text></span>\n</div>",classes:{base:{"font-weight":"bold",padding:"8px 15px 8px 14px","text-shadow":"0 1px 0 rgba(255, 255, 255, 0.5)","background-color":"#fcf8e3",border:"1px solid #fbeed5","border-radius":"4px","white-space":"nowrap","padding-left":"25px","background-repeat":"no-repeat","background-position":"3px 7px"},error:{color:"#B94A48","background-color":"#F2DEDE","border-color":"#EED3D7","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtRJREFUeNqkVc1u00AQHq+dOD+0poIQfkIjalW0SEGqRMuRnHos3DjwAH0ArlyQeANOOSMeAA5VjyBxKBQhgSpVUKKQNGloFdw4cWw2jtfMOna6JOUArDTazXi/b3dm55socPqQhFka++aHBsI8GsopRJERNFlY88FCEk9Yiwf8RhgRyaHFQpPHCDmZG5oX2ui2yilkcTT1AcDsbYC1NMAyOi7zTX2Agx7A9luAl88BauiiQ/cJaZQfIpAlngDcvZZMrl8vFPK5+XktrWlx3/ehZ5r9+t6e+WVnp1pxnNIjgBe4/6dAysQc8dsmHwPcW9C0h3fW1hans1ltwJhy0GxK7XZbUlMp5Ww2eyan6+ft/f2FAqXGK4CvQk5HueFz7D6GOZtIrK+srupdx1GRBBqNBtzc2AiMr7nPplRdKhb1q6q6zjFhrklEFOUutoQ50xcX86ZlqaZpQrfbBdu2R6/G19zX6XSgh6RX5ubyHCM8nqSID6ICrGiZjGYYxojEsiw4PDwMSL5VKsC8Yf4VRYFzMzMaxwjlJSlCyAQ9l0CW44PBADzXhe7xMdi9HtTrdYjFYkDQL0cn4Xdq2/EAE+InCnvADTf2eah4Sx9vExQjkqXT6aAERICMewd/UAp/IeYANM2joxt+q5VI+ieq2i0Wg3l6DNzHwTERPgo1ko7XBXj3vdlsT2F+UuhIhYkp7u7CarkcrFOCtR3H5JiwbAIeImjT/YQKKBtGjRFCU5IUgFRe7fF4cCNVIPMYo3VKqxwjyNAXNepuopyqnld602qVsfRpEkkz+GFL1wPj6ySXBpJtWVa5xlhpcyhBNwpZHmtX8AGgfIExo0ZpzkWVTBGiXCSEaHh62/PoR0p/vHaczxXGnj4bSo+G78lELU80h1uogBwWLf5YlsPmgDEd4M236xjm+8nm4IuE/9u+/PH2JXZfbwz4zw1WbO+SQPpXfwG/BBgAhCNZiSb/pOQAAAAASUVORK5CYII=)"},success:{color:"#468847","background-color":"#DFF0D8","border-color":"#D6E9C6","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAutJREFUeNq0lctPE0Ecx38zu/RFS1EryqtgJFA08YCiMZIAQQ4eRG8eDGdPJiYeTIwHTfwPiAcvXIwXLwoXPaDxkWgQ6islKlJLS
2012QWLUraPLTv7Gme32zoF9KSTfLO7v53vZ3d/M7/fIth+IO6INt2jjoA7bjHCJoAlzCRw59YwHYjBnfMPqAKWQYKjGkfCJqAF0xwZjipQtA3MxeSG87VhOOYegVrUCy7UZM9S6TLIdAamySTclZdYhFhRHloGYg7mgZv1Zzztvgud7V1tbQ2twYA34LJmF4p5dXF1KTufnE+SxeJtuCZNsLDCQU0+RyKTF27Unw101l8e6hns3u0PBalORVVVkcaEKBJDgV3+cGM4tKKmI+ohlIGnygKX00rSBfszz/n2uXv81wd6+rt1orsZCHRdr1Imk2F2Kob3hutSxW8thsd8AXNaln9D7CTfA6O+0UgkMuwVvEFFUbbAcrkcTA8+AtOk8E6KiQiDmMFSDqZItAzEVQviRkdDdaFgPp8HSZKAEAL5Qh7Sq2lIJBJwv2scUqkUnKoZgNhcDKhKg5aH+1IkcouCAdFGAQsuWZYhOjwFHQ96oagWgRoUov1T9kRBEODAwxM2QtEUl+Wp+Ln9VRo6BcMw4ErHRYjH4/B26AlQoQQTRdHWwcd9AH57+UAXddvDD37DmrBBV34WfqiXPl61g+vr6xA9zsGeM9gOdsNXkgpEtTwVvwOklXLKm6+/p5ezwk4B+j6droBs2CsGa/gNs6RIxazl4Tc25mpTgw/apPR1LYlNRFAzgsOxkyXYLIM1V8NMwyAkJSctD1eGVKiq5wWjSPdjmeTkiKvVW4f2YPHWl3GAVq6ymcyCTgovM3FzyRiDe2TaKcEKsLpJvNHjZgPNqEtyi6mZIm4SRFyLMUsONSSdkPeFtY1n0mczoY3BHTLhwPRy9/lzcziCw9ACI+yql0VLzcGAZbYSM5CCSZg1/9oc/nn7+i8N9p/8An4JMADxhH+xHfuiKwAAAABJRU5ErkJggg==)"},info:{color:"#3A87AD","background-color":"#D9EDF7","border-color":"#BCE8F1","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QYFAhkSsdes/QAAA8dJREFUOMvVlGtMW2UYx//POaWHXg6lLaW0ypAtw1UCgbniNOLcVOLmAjHZolOYlxmTGXVZdAnRfXQm+7SoU4mXaOaiZsEpC9FkiQs6Z6bdCnNYruM6KNBw6YWewzl9z+sHImEWv+vz7XmT95f/+3/+7wP814v+efDOV3/SoX3lHAA+6ODeUFfMfjOWMADgdk+eEKz0pF7aQdMAcOKLLjrcVMVX3xdWN29/GhYP7SvnP0cWfS8caSkfHZsPE9Fgnt02JNutQ0QYHB2dDz9/pKX8QjjuO9xUxd/66HdxTeCHZ3rojQObGQBcuNjfplkD3b19Y/6MrimSaKgSMmpGU5WevmE/swa6Oy73tQHA0Rdr2Mmv/6A1n9w9suQ7097Z9lM4FlTgTDrzZTu4StXVfpiI48rVcUDM5cmEksrFnHxfpTtU/3BFQzCQF/2bYVoNbH7zmItbSoMj40JSzmMyX5qDvriA7QdrIIpA+3cdsMpu0nXI8cV0MtKXCPZev+gCEM1S2NHPvWfP/hL+7FSr3+0p5RBEyhEN5JCKYr8XnASMT0xBNyzQGQeI8fjsGD39RMPk7se2bd5ZtTyoFYXftF6y37gx7NeUtJJOTFlAHDZLDuILU3j3+H5oOrD3yWbIztugaAzg
2012nBKJuBLpGfQrS8wO4FZgV+c1IxaLgWVU0tMLEETCos4xMzEIv9cJXQcyagIwigDGwJgOAtHAwAhisQUjy0ORGERiELgG4iakkzo4MYAxcM5hAMi1WWG1yYCJIcMUaBkVRLdGeSU2995TLWzcUAzONJ7J6FBVBYIggMzmFbvdBV44Corg8vjhzC+EJEl8U1kJtgYrhCzgc/vvTwXKSib1paRFVRVORDAJAsw5FuTaJEhWM2SHB3mOAlhkNxwuLzeJsGwqWzf5TFNdKgtY5qHp6ZFf67Y/sAVadCaVY5YACDDb3Oi4NIjLnWMw2QthCBIsVhsUTU9tvXsjeq9+X1d75/KEs4LNOfcdf/+HthMnvwxOD0wmHaXr7ZItn2wuH2SnBzbZAbPJwpPx+VQuzcm7dgRCB57a1uBzUDRL4bfnI0RE0eaXd9W89mpjqHZnUI5Hh2l2dkZZUhOqpi2qSmpOmZ64Tuu9qlz/SEXo6MEHa3wOip46F1n7633eekV8ds8Wxjn37Wl63VVa+ej5oeEZ/82ZBETJjpJ1Rbij2D3Z/1trXUvLsblCK0XfOx0SX2kMsn9dX+d+7Kf6h8o4AIykuffjT8L20LU+w4AZd5VvEPY+XpWqLV327HR7DzXuDnD8r+ovkBehJ8i+y8YAAAAASUVORK5CYII=)"},warn:{color:"#C09853","background-color":"#FCF8E3","border-color":"#FBEED5","background-image":"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABJlBMVEXr6eb/2oD/wi7/xjr/0mP/ykf/tQD/vBj/3o7/uQ//vyL/twebhgD/4pzX1K3z8e349vK6tHCilCWbiQymn0jGworr6dXQza3HxcKkn1vWvV/5uRfk4dXZ1bD18+/52YebiAmyr5S9mhCzrWq5t6ufjRH54aLs0oS+qD751XqPhAybhwXsujG3sm+Zk0PTwG6Shg+PhhObhwOPgQL4zV2nlyrf27uLfgCPhRHu7OmLgAafkyiWkD3l49ibiAfTs0C+lgCniwD4sgDJxqOilzDWowWFfAH08uebig6qpFHBvH/aw26FfQTQzsvy8OyEfz20r3jAvaKbhgG9q0nc2LbZxXanoUu/u5WSggCtp1anpJKdmFz/zlX/1nGJiYmuq5Dx7+sAAADoPUZSAAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfdBgUBGhh4aah5AAAAlklEQVQY02NgoBIIE8EUcwn1FkIXM1Tj5dDUQhPU502Mi7XXQxGz5uVIjGOJUUUW81HnYEyMi2HVcUOICQZzMMYmxrEyMylJwgUt5BljWRLjmJm4pI1hYp5SQLGYxDgmLnZOVxuooClIDKgXKMbN5ggV1ACLJcaBxNgcoiGCBiZwdWxOETBDrTyEFey0jYJ4eHjMGWgEAIpRFRCUt08qAAAAAElFTkSuQmCC)"}}}),e(function(){g(h.css).attr("id","core-notify"),e(document).on("click","."+r+"-hidable",function(t){e(this).trigger("notify-hide")}),e(document).on("notify-hide","."+r+"-wrapper",function(t){var n=e(this).data(r);n&&n.show(!1)})})});
2013(function($){'use strict';var QuantityDropdown=function(input,options){var self=this;self.options=$.extend({},$.fn.quantityDropdown.defaults,options);self.$input=input;self.$quantity=self.$input.closest('.quantity');self.$form=self.$input.closest('form');if(self.$quantity.hasClass('quantity-dropdown')){return;}
2014self.init=self.init.bind(self);self.destroy=self.destroy.bind(self);self.refresh=self.refresh.bind(self);self.scroll=self.scroll.bind(self);self.increase=self.increase.bind(self);self.openDropdown=self.openDropdown.bind(self);self.closeDropdown=self.closeDropdown.bind(self);self.setValue=self.setValue.bind(self);self.$quantity.on('click.quantity-dropdown','.qty-dropdown .current',{quantityDropdown:self},self.toggleDropdown);self.$quantity.on('click.quantity-dropdown','.qty-options li',{quantityDropdown:self},self.onSelect);self.$quantity.on('change.quantity-dropdown','input.qty',{quantityDropdown:self},self.onQuantityChange);self.$quantity.on('mousewheel.quantity-dropdown','.qty-options',{quantityDropdown:self},self.onScroll);self.$quantity.on('swipeup.quantity-dropdown','.qty-options',{quantityDropdown:self},self.onSwipeUp);self.$quantity.on('swipedown.quantity-dropdown','.qty-options',{quantityDropdown:self},self.onSwipeDown);if(self.$form.length){self.$form.on('found_variation.quantity-dropdown',self.onFoundVariation);}
2015self.init();};QuantityDropdown.prototype.init=function(){var self=this;self.$list=$('<ul/>');self.$dropdown=$('<div class="qty-dropdown"/>');self.current=parseFloat(self.$input.val());self.min=parseFloat(self.$input.attr('min'));self.max=parseFloat(self.$input.attr('max'));self.step=parseFloat(self.$input.attr('step'));self.maxItems=self.options.maxItems;self.infinite=false;self.values=[];self.visible=[];self.step=self.step?self.step:1;self.min=self.min?self.min:0;self.current=self.current?self.current:self.min;if(!self.max){self.max=Math.max(self.maxItems,self.current);self.infinite=true;}else if(self.max<self.maxItems){self.maxItems=self.max;}
2016for(var i=self.min;i<=self.max;i+=self.step){if(self.current==i){$('<li class="active">'+i+'</li>').appendTo(self.$list);}else{$('<li>'+i+'</li>').appendTo(self.$list);}
2017self.values.push(i);}
2018self.$dropdown.append('<span class="current"><span class="value">'+self.current+'</span><span class="svg-icon icon-arrow-dropdown icon-smaller"><svg><use xlink:href="#arrow-dropdown"></use></svg></span></span>').append(self.$list).appendTo(self.$quantity);self.$list.wrap('<div class="qty-options"/>');self.$quantity.addClass('quantity-dropdown');};QuantityDropdown.prototype.destroy=function(){this.$quantity.off('.quantity-dropdown').removeData('quantityDropdown');this.$form.off('.quantity-dropdown');this.$quantity.removeData('quantityDropdown');this.$quantity.removeClass('quantity-dropdown');this.$quantity.find('.qty-dropdown').remove();this.$dropdown.detach().remove();};QuantityDropdown.prototype.refresh=function(){var self=this;self.$quantity.find('.qty-dropdown').detach().remove();self.$dropdown.detach().remove();self.init();};QuantityDropdown.prototype.toggleDropdown=function(event){event.preventDefault();var self=event.data.quantityDropdown;self.scroll();if(self.$dropdown.hasClass('opened')){self.closeDropdown();}else{self.openDropdown();}};QuantityDropdown.prototype.openDropdown=function(){var self=this,$options=self.$dropdown.find('.qty-options'),height=self.$dropdown.find('.current').outerHeight();
2018$options.css('height',self.maxItems*height);$options.fadeIn();self.$dropdown.addClass('opened');$(document).on('click.quantity-dropdown',closeDropdownOnFocusOutside);};QuantityDropdown.prototype.closeDropdown=function(){this.$quantity.find('.qty-options').fadeOut();this.$dropdown.removeClass('opened');};QuantityDropdown.prototype.onSelect=function(event){event.preventDefault();var self=event.data.quantityDropdown;self.$input.val(parseFloat(event.target.innerText)).trigger('change');self.closeDropdown();if(typeof self.options.onChange==='function'){self.options.onChange(self);}};QuantityDropdown.prototype.onQuantityChange=function(event){var self=event.data.quantityDropdown;self.current=parseFloat(event.target.value);self.$dropdown.find('.current .value').text(self.current);self.$list.children('.active').removeClass('active');var $listItem=self.$list.children().filter(function(){return self.current===parseFloat(this.innerText);});if($listItem.length){$listItem.addClass('active');}else{self.scroll(self.current);self.$list.children().last().addClass('active');}}
2019QuantityDropdown.prototype.onScroll=function(event){if(event.originalEvent.wheelDelta/120>0){event.data.quantityDropdown.scroll('up');}else{event.data.quantityDropdown.increase();}
2020return false;};QuantityDropdown.prototype.onSwipeUp=function(event){event.data.quantityDropdown.increase();};QuantityDropdown.prototype.onSwipeDown=function(event){event.data.quantityDropdown.scroll('up');};QuantityDropdown.prototype.scroll=function(value){var self=this,height=self.$quantity.find('.current').outerHeight(),minVisible=Math.min.apply(null,self.visible),maxVisible=Math.max.apply(null,self.visible),distance=0;if('up'===value){if(minVisible<=self.min){return;}
2021distance=-self.values.indexOf(minVisible-self.step)*height;self.visible.pop();self.visible.unshift(minVisible-self.step);}else if('down'===value){if(maxVisible>=self.max){return;}
2022distance=-self.values.indexOf(minVisible+self.step)*height;self.visible.shift();self.visible.push(maxVisible+1);}else{var value=value?value:self.current,index=self.values.indexOf(value),middle=Math.floor(self.maxItems/2);if(index>middle){index=index-middle;}else{index=0;}
2023self.visible=[];for(var i=index;i<index+self.maxItems;i++){if(i in self.values){self.visible.push(self.values[i]);}else if(self.infinite){self.max=self.max+self.step;self.values.push(self.max);self.visible.push(self.max);self.$list.append('<li>'+self.max+'</li>');}}
2024distance=-index*height;}
2025self.$list.css('transform','translate3d(0, '+distance+'px, 0)');}
2026QuantityDropdown.prototype.setValue=function(value){this.current=value;this.$input.val(value).trigger('change');}
2027QuantityDropdown.prototype.increase=function(){var self=this,maxVisible=Math.max.apply(null,self.visible);if(maxVisible>=self.max&&self.infinite){self.max+=self.step;self.values.push(self.max);self.$list.append('<li>'+self.max+'</li>');}
2028self.scroll('down');}
2029QuantityDropdown.prototype.onFoundVariation=function(event){var $qty=$(event.target).find('.single_variation_wrap .quantity .qty');setTimeout(function(){$qty.quantityDropdown('refresh');},100);};$(document).on('click.quantity-dropdown',closeDropdownOnFocusOutside);function closeDropdownOnFocusOutside(event){var $target=$(event.target).closest('.qty-dropdown');if($target.length===0){$('.qty-options').fadeOut();$('.qty-dropdown.opened').removeClass('opened');$(document).off('click.quantity-dropdown');}else{$('.qty-dropdown.opened').not($target).removeClass('opened').find('.qty-options').fadeOut();}}
2030$.fn.quantityDropdown=function(option){var options=typeof option=='object'&&option;return this.each(function(){var $this=$(this),$quantity=$this.closest('.quantity');if(!$quantity.length){return this;}
2031var plugin=$quantity.data('quantityDropdown');if(!plugin){plugin=new QuantityDropdown($this,options);$quantity.data('quantityDropdown',plugin);}
2032if(typeof option=='string'&&typeof plugin[option]=='function'){plugin[option]();}});};$.fn.quantityDropdown.defaults={maxItems:5,onChange:null,onInit:null};})(jQuery);(function($){function is_touch_device(){var prefixes=' -webkit- -moz- -o- -ms- '.split(' ');var mq=function(query){return window.matchMedia(query).matches;}
2033if(('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch){return true;}
2034var query=['(',prefixes.join('touch-enabled),('),'heartz',')'].join('');
2034return mq(query);}
2035var supportTouch=is_touch_device(),touchStartEvent=supportTouch?"touchstart":"mousedown",touchStopEvent=supportTouch?"touchend":"mouseup",touchMoveEvent=supportTouch?"touchmove":"mousemove";$.event.special.swipeupdown={setup:function(){var thisObject=this;var $this=$(thisObject);$this.bind(touchStartEvent,function(event){var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,start={time:(new Date).getTime(),coords:[data.pageX,data.pageY],origin:$(event.target)},stop;function moveHandler(event){if(!start){return;}
2036var data=event.originalEvent.touches?event.originalEvent.touches[0]:event;stop={time:(new Date).getTime(),coords:[data.pageX,data.pageY]};if(Math.abs(start.coords[1]-stop.coords[1])>10){event.preventDefault();}}
2037$this.bind(touchMoveEvent,moveHandler).one(touchStopEvent,function(event){$this.unbind(touchMoveEvent,moveHandler);if(start&&stop){if(stop.time-start.time<1000&&Math.abs(start.coords[1]-stop.coords[1])>30&&Math.abs(start.coords[0]-stop.coords[0])<75){start.origin.trigger("swipeupdown").trigger(start.coords[1]>stop.coords[1]?"swipeup":"swipedown");}}
2038start=stop=undefined;});});}};$.each({swipedown:"swipeupdown",swipeup:"swipeupdown"},function(event,sourceEvent){$.event.special[event]={setup:function(){$(this).bind(sourceEvent,$.noop);}};$.fn[event]=function(fn){return fn?this.bind(event,fn):this.trigger(event);};});})(jQuery);
2039(()=>{"use strict";const e="email",t="phone",n="name",l={[e]:["email","e-mail","mail","email address"],[t]:["phone","tel","mobile","cell","telephone","phone number"],[n]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function r(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function a(e){const t=r(e),n=t.lastIndexOf("@");if(-1===n)return t;const l=t.slice(n+1);return["gmail.com","googlemail.com"].includes(l)?`${t.slice(0,n).replace(/\./g,"")}@${l}`:t}function i(e){const t=r(e),n=t.replace(/\D/g,"");return t.startsWith("+")?`+${n}`:n}function s(e){const t=e.filter(e=>{let{type:t}=e;return t===n}).map(e=>{let{value:t}=e;return r(t)}).filter(Boolean);if(!t.length)return;const[l,...a]=1===t.length?t[0].split(" "):t;return{first_name:l,...a?.length>0?{last_name:a.join(" ")}:{}}}function u(t){return t.find(t=>{let{type:n}=t;return n===e})?.value}function o(e){return e.find(e=>{let{type:n}=e;return n===t})?.value}globalThis.document.addEventListener("wpcf7mailsent",m=>{const c=globalThis._googlesitekit?.gtagUserData,f=c?function(m){if(!(m&&m instanceof HTMLFormElement))return;const c=new FormData(m);return function(e){const t=[["address",s(e)],["email",u(e)],["phone_number",o(e)]].filter(e=>{let[,t]=e;return t});if(0!==t.length)return Object.fromEntries(t)}(Array.from(c.entries()).map(s=>{let[u,o]=s;const c=m.querySelector(`[name='${u}']`),f=c?.type;return"hidden"===f||"submit"===f?null:function(s){let{type:u,name:o,value:m,label:c}=s||{};switch(u=r(u),o=r(o),m=r(m),c=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(c),u){case"email":return{type:e,value:a(m)};case"tel":return{type:t,value:i(m)}}return function(e){if(!e)return!1;const t=a(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(m)||l[e].includes(o)||l[e].includes(c)?{type:e,value:a(m)}:l[t].includes(o)||l[t].includes(c)?{type:t,value:i(m)}:l[n].includes(o)||l[n].includes(c)?{type:n,value:r(m)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=i(e);if(!/^\+?\d{7,}$/.test(t))return!1;const n=/[\s\-()+.]/.test(e),l=e.trim().startsWith("+");return!(!n&&!l)}(m)?{type:t,value:i(m)}:null}({type:f,label:c?.id?m.querySelector(`label[for='${c?.id}']`)?.textContent:void 0,name:u,value:o})}).filter(Boolean))}(m.target):null;globalThis._googlesitekit?.gtagEvent?.("contact",{event_category:m.detail.contactFormId,event_label:m.detail.unitTag,...f?{user_data:f}:{}})})})();
2040(t=>{if(!t)return;const{currency:e,products:o,purchase:a,add_to_cart:i,eventsToTrack:n}=globalThis._googlesitekit?.wcdata||{},c=n?.includes("add_to_cart"),r=n?.includes("purchase");if(i&&c){const{price:t}=i,o=d(t,e,i);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",o)}if(a&&r){const{id:t,totals:e,items:o,user_data:i}=a,n=d(e.total_price,e.currency_code,o,t,e.shipping_total,e.tax_total);globalThis._googlesitekit?.gtagUserData&&i&&(n.user_data=i),globalThis._googlesitekit?.gtagEvent?.("purchase",n)}const s=t("body");function d(t,e,o){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;const c={value:u(t),currency:e,items:[]};if(a&&(c.transaction_id=a),"number"==typeof i&&(c.shipping=i),"number"==typeof n&&(c.tax=n),o&&o.length)for(const t of o)c.items.push(l(t));else o&&o.id&&(c.items=[l(o)]);return c}function l(t){const{id:e,name:o,price:a,variation:i,quantity:n,categories:c}=t,r={item_id:e,item_name:o,price:u(a)};if(n&&(r.quantity=n),i&&(r.item_variant=i),c&&c?.length){let t=1;for(const e of c)r[t>1?`item_category${t}`:"item_category"]=e.name,t++}return r}function u(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return parseInt(t,10)/10**e}c&&(s.on("added_to_cart",(t,a,i,n)=>{if(!n?.jquery)return;const c=parseInt(n.data("product_id"),10);if(!c)return;const r=o?.find(t=>t?.id===c)||{},{price:s}=r,l=d(s,e,r);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",l)}),t(".products-block-post-template .product, .wc-block-product-template .product").each(function(){const a=t(this),i=parseInt(a.find("[data-product_id]").attr("data-product_id"),10);i&&a.on("click",a=>{const n=t(a.target).closest(".wc-block-components-product-button [data-product_id]");if(!n.length||!n.hasClass("add_to_cart_button")||n.hasClass("product_type_variable"))return;const c=o?.find(t=>t?.id===i)||{},{price:r}=c,s=d(r,e,c);globalThis._googlesitekit?.gtagEvent?.("add_to_cart",s)})}))})(globalThis.jQuery);
2041"use strict";
2041 var cwginstock_iti, cwginstock_ajax_url = cwginstock.ajax_url, cwginstock_security_error = cwginstock.security_error, cwginstock_userid = cwginstock.user_id, cwginstock_emptyname = cwginstock.empty_name, cwginstock_emptyemail = cwginstock.empty_email, cwginstock_emptyquantity = cwginstock.empty_quantity, cwginstock_invalidemail = cwginstock.invalid_email, cwginstock_get_bot_type = cwginstock.get_bot_type, cwginstock_recaptcha_enabled = cwginstock.enable_recaptcha, cwginstock_recaptcha_site_key = cwginstock.recaptcha_site_key, cwginstock_recaptcha_verify_enabled = cwginstock.enable_recaptcha_verify, cwginstock_recaptcha_secret_present = cwginstock.recaptcha_secret_present, cwginstock_turnstile_enabled = cwginstock.enable_turnstile, cwginstock_turnstile_site_key = cwginstock.turnstile_site_key, cwginstock_is_iagree = cwginstock.is_iagree_enable, cwginstock_iagree_error = cwginstock.iagree_error, cwginstock_is_v3_recaptcha = cwginstock.is_v3_recaptcha, cwginstock_is_popup = cwginstock.is_popup, cwginstock_googlerecaptcha_widget_id = null, cwginstock_turnstile_widget_id = null, cwginstock_gtoken = "", cwginstock_phone_field = cwginstock.phone_field, cwginstock_subscriber_phone = "", cwginstock_phone_meta_data = "", cwginstock_phone_error = cwginstock.phone_field_error, cwginstock_is_phone_field_optional = cwginstock.is_phone_field_optional, cwginstock_is_quantity_field_optional = cwginstock.is_quantity_field_optional, cwginstock_hide_country_placeholder = cwginstock.hide_country_placeholder, cwginstock_default_country_code = cwginstock.default_country_code; function cwginstock_recaptcha_callback(t) { document.getElementsByClassName("cwgstock_button")[0].disabled = !1, "1" == cwginstock_recaptcha_verify_enabled && "yes" == cwginstock_recaptcha_secret_present && (document.getElementsByClassName("cwg-security")[0].value = t) } function cwginstock_turnstile_callback(t) { document.getElementsByClassName("cwgstock_button")[0].disabled = !1, document.getElementsByClassName("cwg-security")[0].value = t } function cwgdetectTurnstileByHiddenInput(t = 4e3) { let c = 0; const e = setInterval((() => { if (document.querySelector('input[name="cf-turnstile-response"][id^="cf-chl-widget-"]')) clearInterval(e); else if (c >= t) { clearInterval(e); const t = document.querySelector(".cf-turnstile"); if (t) { const c = document.createElement("div"); c.id = "cwg-turnstile-captcha", t.replaceWith(c), instock_notifier.turnstilecallback() } } c += 100 }), 100) } "turnstile" == cwginstock_get_bot_type && "1" == cwginstock_turnstile_enabled && window.addEventListener("load", cwgdetectTurnstileByHiddenInput); var instock_notifier = { init: function () { "no" == cwginstock_is_popup && instock_notifier.generate_v3_response(), jQuery(document).on("click", ".cwgstock_button", this.submit_form), jQuery(".single_variation_wrap").on("show_variation", this.perform_upon_show_variation), "1" == cwginstock_phone_field && instock_notifier.initialize_phone() }, initialize_phone: function () { var t = document.querySelector(".cwgstock_phone"); t && (cwginstock_iti = window.intlTelInput(t, { allowDropdown: !0, formatOnDisplay: !0, autoHideDialCode: !1, separateDialCode: !0, initialCountry: cwginstock_default_country_code, customPlaceholder: function (t, c) { return (cwginstock_default_country_code = cwginstock_default_country_code.toLowerCase()) == c.iso2 && "2" == cwginstock.hide_country_placeholder ? "" != cwginstock.custom_country_placeholder ? cwginstock.custom_country_placeholder : t : "" } })) }, perform_upon_show_variation: function (t, c) { var e = c.variation_id; jQuery(".cwginstock-subscribe-form").hide(), jQuery(".cwginstock-subscribe-form-" + e).show(), "recaptcha" == cwginstock_get_bot_type ? "1" == cwginstock_recaptcha_enabled && instock_notifier.onloadcallback() : "1" == cwginstock_turnstile_enabled && instock_notifier.turnstilecallback(), "1" == cwginstock_phone_field && instock_notifier.initialize_phone() }, generate_v3_response: function () { "recaptcha" == cwginstock_get_bot_type && "1" == cwginstock_recaptcha_enabled && "yes" == cwginstock_is_v3_recaptcha && grecaptcha.ready((function () { grecaptcha.execute(cwginstock_recaptcha_site_key, { action: "subscribe_form" }).then((function (t) { document.getElementsByClassName("cwg-security").length > 0 && (document.getElementsByClassName("cwg-security")[0].value = t, document.getElementsByClassName("cwgstock_button")[0].disabled = !1, cwginstock_gtoken = t) })) })) }, is_email: function (t) { return /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(t) }, submit_form: function (t) { t.preventDefault(), t.stopPropagation(); var c = jQuery(this), e = jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_name").val(), s = jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_email").val(), i = jQuery(this).closest(".cwginstock-subscribe-form").find(".add_quantity_field").val(); if (("" === i || i <= 0) && "2" == cwginstock_is_quantity_field_optional) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_emptyquantity + "</div>"), !1; if ("1" == cwginstock_phone_field) { var o = cwginstock_iti.getNumber(); if (cwginstock_phone_meta_data = cwginstock_iti.getSelectedCountryData(), !cwginstock_iti.isValidNumber()) { var n = cwginstock_iti.getValidationError(), r = cwginstock_phone_error[n]; if (-99 == n && (r = cwginstock_phone_error[0]), -99 != n && "1" == cwginstock_is_phone_field_optional || "2" == cwginstock_is_phone_field_optional) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + r + "</div>"), !1 } } var a = jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-product-id").val(), _ = jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-variation-id").val(); if ("" == e) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_emptyname + "</div>"), !1; if ("" == s) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_emptyemail + "</div>"), !1; if (!instock_notifier.is_email(s)) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>
2041" + cwginstock_invalidemail + "</div>"), !1; if ("1" == cwginstock_is_iagree && !jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg_iagree_checkbox_input").is(":checked")) return jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(), jQuery(this).closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_iagree_error + "</div>"), !1; var l = jQuery(this).closest(".cwginstock-subscribe-form").find(".cwg-security").val(), g = { action: "cwginstock_product_subscribe", product_id: a, variation_id: _, subscriber_name: e, subscriber_phone: o, subscriber_phone_meta: JSON.stringify(cwginstock_phone_meta_data), user_email: s, user_id: cwginstock_userid, security: l, dataobj: cwginstock, custom_quantity: i }; jQuery.fn.block ? c.closest(".cwginstock-subscribe-form").block({ message: null }) : jQuery('<div id="cwg-bis-overlay"> </div>').appendTo(c.closest(".cwginstock-subscribe-form")), instock_notifier.perform_ajax(g, c) }, recaptcha_callback: function (t) { document.getElementsByClassName("cwg-security").length > 0 && (document.getElementsByClassName("cwgstock_button")[0].disabled = !1, "1" == cwginstock_recaptcha_verify_enabled && "yes" == cwginstock_recaptcha_secret_present && (document.getElementsByClassName("cwg-security")[0].value = t)) }, turnstile_callback: function (t) { document.getElementsByClassName("cwg-security").length > 0 && (document.getElementsByClassName("cwgstock_button")[0].disabled = !1, document.getElementsByClassName("cwg-security")[0].value = t) }, onloadcallback: function () { "recaptcha" == cwginstock_get_bot_type && "1" == cwginstock_recaptcha_enabled && ("no" == cwginstock_is_v3_recaptcha ? jQuery("#cwg-google-recaptcha").length && (null === cwginstock_googlerecaptcha_widget_id ? cwginstock_googlerecaptcha_widget_id = grecaptcha.render("cwg-google-recaptcha", { sitekey: cwginstock_recaptcha_site_key, callback: this.recaptcha_callback }) : (grecaptcha.reset(cwginstock_googlerecaptcha_widget_id), this.recaptcha_callback(), cwginstock_googlerecaptcha_widget_id = null, instock_notifier.onloadcallback())) : instock_notifier.generate_v3_response()) }, turnstilecallback: function () { "turnstile" == cwginstock_get_bot_type && "1" == cwginstock_turnstile_enabled && jQuery("#cwg-turnstile-captcha").length && (null === cwginstock_turnstile_widget_id ? cwginstock_turnstile_widget_id = turnstile.render("#cwg-turnstile-captcha", { sitekey: cwginstock_turnstile_site_key, theme: "light", callback: this.turnstile_callback }) : (turnstile.reset(cwginstock_turnstile_widget_id), this.turnstile_callback(), cwginstock_turnstile_widget_id = null, instock_notifier.turnstilecallback())) }, resetcallback: function () { "recaptcha" == cwginstock_get_bot_type ? "1" == cwginstock_recaptcha_enabled && ("no" == cwginstock_is_v3_recaptcha ? (grecaptcha.reset(), document.getElementsByClassName("cwgstock_button")[0].disabled = !0) : instock_notifier.generate_v3_response()) : "1" == cwginstock_turnstile_enabled && (turnstile.reset(), document.getElementsByClassName("cwgstock_button")[0].disabled = !0) }, perform_ajax: function (t, c) { jQuery.ajax({ type: "post", url: cwginstock_ajax_url, data: t, beforeSend: function (t) { t.setRequestHeader("X-WP-Nonce", cwginstock.security) }, success: function (e) { e = e.msg, c.closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(2e3), c.closest(".cwginstock-subscribe-form").find(".cwgstock_output").html(e), jQuery.fn.block ? c.closest(".cwginstock-subscribe-form").unblock() : c.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").fadeOut(400, (function () { c.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").remove() })), instock_notifier.resetcallback(), jQuery(document).trigger("cwginstock_success_ajax", t) }, error: function (e, s, i) { if (void 0 !== e.responseJSON && e.responseJSON.hasOwnProperty("code") && void 0 !== e.responseJSON.code && ("rest_cookie_invalid_nonce" != e.responseJSON.code && "cwg_nonce_verify_failed" != e.responseJSON.c
2041ode || (e.responseText = -1)), "-1" !== e.responseText && -1 !== e.responseText || (c.closest(".cwginstock-subscribe-form").find(".cwgstock_output").fadeIn(2e3), c.closest(".cwginstock-subscribe-form").find(".cwgstock_output").html("<div class='cwginstockerror' style='color:red;'>" + cwginstock_security_error + "</div>")), 403 === e.status) { let t = e.responseText; try { let c = JSON.parse(e.responseText); !c.msg || "-1" === c.msg && -1 === c.msg || (t = c.msg) } catch (c) { t = e.responseText } if ("-1" !== t || -1 !== t) { let e = c.closest(".cwginstock-subscribe-form").find(".cwgstock_output"); e.fadeIn(2e3), e.html("<div class='cwginstockerror' style='color:red;'>" + t + "</div>") } } jQuery.fn.block ? c.closest(".cwginstock-subscribe-form").unblock() : c.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").fadeOut(400, (function () { c.closest(".cwginstock-subscribe-form").find("#cwg-bis-overlay").remove() })), instock_notifier.resetcallback(), jQuery(document).trigger("cwginstock_error_ajax", t) } }) } }; instock_notifier.init();
2042!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = t || self).Sweetalert2 = e() }(this, function () { "use strict"; function r(t) { return (r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t })(t) } function a(t, e) { if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") } function o(t, e) { for (var n = 0; n < e.length; n++) { var o = e[n]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o) } } function s(t, e, n) { return e && o(t.prototype, e), n && o(t, n), t } function u() { return (u = Object.assign || function (t) { for (var e = 1; e < arguments.length; e++) { var n, o = arguments[e]; for (n in o) Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]) } return t }).apply(this, arguments) } function c(t) { return (c = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t) })(t) } function l(t, e) { return (l = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t })(t, e) } function d() { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () { })), !0 } catch (t) { return !1 } } function i(t, e, n) { return (i = d() ? Reflect.construct : function (t, e, n) { var o = [null]; o.push.apply(o, e); o = new (Function.bind.apply(t, o)); return n && l(o, n.prototype), o }).apply(null, arguments) } function p(t, e) { return !e || "object" != typeof e && "function" != typeof e ? function (t) { if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return t }(t) : e } function f(t, e, n) { return (f = "undefined" != typeof Reflect && Reflect.get ? Reflect.get : function (t, e, n) { t = function (t, e) { for (; !Object.prototype.hasOwnProperty.call(t, e) && null !== (t = c(t));); return t }(t, e); if (t) { e = Object.getOwnPropertyDescriptor(t, e); return e.get ? e.get.call(n) : e.value } })(t, e, n || t) } function m(t) { return t.charAt(0).toUpperCase() + t.slice(1) } function h(e) { return Object.keys(e).map(function (t) { return e[t] }) } function g(t) { return Array.prototype.slice.call(t) } function v(t, e) { e = '"'.concat(t, '" is deprecated and will be removed in the next major release. Please use "').concat(e, '" instead.'), -1 === Y.indexOf(e) && (Y.push(e), W(e)) } function b(t) { return t && "function" == typeof t.toPromise } function y(t) { return b(t) ? t.toPromise() : Promise.resolve(t) } function w(t) { return t && Promise.resolve(t) === t } function C(t) { return t instanceof Element || "object" === r(t = t) && t.jquery } function k() { return document.body.querySelector(".".concat($.container)) } function e(t) { var e = k(); return e ? e.querySelector(t) : null } function t(t) { return e(".".concat(t)) } function A() { return t($.popup) } function x() { return t($.icon) } function B() { return t($.title) } function P() { return t($.content) } function O() { return t($["html-container"]) } function E() { return t($.image) } function n() { return t($["progress-steps"]) } function S() { return t($["validation-message"]) } function T() { return e(".".concat($.actions, " .").concat($.confirm)) } function L() { return e(".".concat($.actions, " .").concat($.deny)) } function D() { return e(".".concat($.loader)) } function q() { return e(".".concat($.actions, " .").concat($.cancel)) } function j() { return t($.actions) } function M() { return t($.header) } function I() { return t($.footer) } function H() { return t($["timer-progress-bar"]) } function V() { return t($.close) }
2042 function R() { var t = g(A().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function (t, e) { return t = parseInt(t.getAttribute("tabindex")), (e = parseInt(e.getAttribute("tabindex"))) < t ? 1 : t < e ? -1 : 0 }), e = g(A().querySelectorAll('\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n')).filter(function (t) { return "-1" !== t.getAttribute("tabindex") }); return function (t) { for (var e = [], n = 0; n < t.length; n++)-1 === e.indexOf(t[n]) && e.push(t[n]); return e }(t.concat(e)).filter(function (t) { return wt(t) }) } function N() { return !G() && !document.body.classList.contains($["no-backdrop"]) } function U(e, t) { e.textContent = "", t && (t = (new DOMParser).parseFromString(t, "text/html"), g(t.querySelector("head").childNodes).forEach(function (t) { e.appendChild(t) }), g(t.querySelector("body").childNodes).forEach(function (t) { e.appendChild(t) })) } function _(t, e) { if (e) { for (var n = e.split(/\s+/), o = 0; o < n.length; o++)if (!t.classList.contains(n[o])) return; return 1 } } function F(t, e, n) { var o, i; if (i = e, g((o = t).classList).forEach(function (t) { -1 === h($).indexOf(t) && -1 === h(X).indexOf(t) && -1 === h(i.showClass).indexOf(t) && o.classList.remove(t) }), e.customClass && e.customClass[n]) { if ("string" != typeof e.customClass[n] && !e.customClass[n].forEach) return W("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(r(e.customClass[n]), '"')); vt(t, e.customClass[n]) } } var z = "SweetAlert2:", W = function (t) { console.warn("".concat(z, " ").concat("object" === r(t) ? t.join(" ") : t)) }, K = function (t) { console.error("".concat(z, " ").concat(t)) }, Y = [], Z = function (t) { return "function" == typeof t ? t() : t }, Q = Object.freeze({ cancel: "cancel", backdrop: "backdrop", close: "close", esc: "esc", timer: "timer" }), J = function (t) { var e, n = {}; for (e in t) n[t[e]] = "swal2-" + t[e]; return n }, $ = J(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "toast-column", "show", "hide", "close", "title", "header", "content", "html-container", "actions", "confirm", "deny", "cancel", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), X = J(["success", "warning", "info", "question", "error"]), G = function () { return document.body.classList.contains($["toast-shown"]) }, tt = { previousBodyPadding: null }; function et(t, e) { if (!e) return null; switch (e) { case "select": case "textarea": case "file": return yt(t, $[e]); case "checkbox": return t.querySelector(".".concat($.checkbox, " input")); case "radio": return t.querySelector(".".concat($.radio, " input:checked")) || t.querySelector(".".concat($.radio, " input:first-child")); case "range": return t.querySelector(".".concat($.range, " input")); default: return yt(t, $.input) } } function nt(t) { var e; t.focus(), "file" !== t.type && (e = t.value, t.value = "", t.value = e) } function ot(t, e, n) { t && e && (e = "string" == typeof e ? e.split(/\s+/).filter(Boolean) : e).forEach(function (e) { t.forEach ? t.forEach(function (t) { n ? t.classList.add(e) : t.classList.remove(e) }) : n ? t.classList.add(e) : t.classList.remove(e) }) } function it(t, e, n) { (n = n === "".concat(parseInt(n)) ? parseInt(n) : n
2042) || 0 === parseInt(n) ? t.style[e] = "number" == typeof n ? "".concat(n, "px") : n : t.style.removeProperty(e) } function rt(t) { var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "flex"; t.style.display = e } function at(t) { t.style.display = "none" } function st(t, e, n, o) { (e = t.querySelector(e)) && (e.style[n] = o) } function ut(t, e, n) { e ? rt(t, n) : at(t) } function ct(t) { return !!(t.scrollHeight > t.clientHeight) } function lt(t) { var e = window.getComputedStyle(t), t = parseFloat(e.getPropertyValue("animation-duration") || "0"), e = parseFloat(e.getPropertyValue("transition-duration") || "0"); return 0 < t || 0 < e } function dt(t) { var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], n = H(); wt(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(function () { n.style.transition = "width ".concat(t / 1e3, "s linear"), n.style.width = "0%" }, 10)) } function pt() { return "undefined" == typeof window || "undefined" == typeof document } function ft(t) { Mn.isVisible() && gt !== t.target.value && Mn.resetValidationMessage(), gt = t.target.value } function mt(t, e) { t instanceof HTMLElement ? e.appendChild(t) : "object" === r(t) ? At(t, e) : t && U(e, t) } function ht(t, e) { var n = j(), o = D(), i = T(), r = L(), a = q(); e.showConfirmButton || e.showDenyButton || e.showCancelButton || at(n), F(n, e, "actions"), Pt(i, "confirm", e), Pt(r, "deny", e), Pt(a, "cancel", e), function (t, e, n, o) { if (!o.buttonsStyling) return bt([t, e, n], $.styled); vt([t, e, n], $.styled), o.confirmButtonColor && (t.style.backgroundColor = o.confirmButtonColor); o.denyButtonColor && (e.style.backgroundColor = o.denyButtonColor); o.cancelButtonColor && (n.style.backgroundColor = o.cancelButtonColor) }(i, r, a, e), e.reverseButtons && (n.insertBefore(a, o), n.insertBefore(r, o), n.insertBefore(i, o)), U(o, e.loaderHtml), F(o, e, "loader") } var gt, vt = function (t, e) { ot(t, e, !0) }, bt = function (t, e) { ot(t, e, !1) }, yt = function (t, e) { for (var n = 0; n < t.childNodes.length; n++)if (_(t.childNodes[n], e)) return t.childNodes[n] }, wt = function (t) { return !(!t || !(t.offsetWidth || t.offsetHeight || t.getClientRects().length)) }, Ct = '\n <div aria-labelledby="'.concat($.title, '" aria-describedby="').concat($.content, '" class="').concat($.popup, '" tabindex="-1">\n   <div class="').concat($.header, '">\n     <ul class="').concat($["progress-steps"], '"></ul>\n     <div class="').concat($.icon, '"></div>\n     <img class="').concat($.image, '" />\n     <h2 class="').concat($.title, '" id="').concat($.title, '"></h2>\n     <button type="button" class="').concat($.close, '"></button>\n   </div>\n   <div class="').concat($.content, '">\n     <div id="').concat($.content, '" class="').concat($["html-container"], '"></div>\n     <input class="').concat($.input, '" />\n     <input type="file" class="').concat($.file, '" />\n     <div class="').concat($.range, '">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat($.select, '"></select>\n     <div class="').concat($.radio, '"></div>\n     <label for="').concat($.checkbox, '" class="').concat($.checkbox, '">\n       <input type="checkbox" />\n       <span class="').concat($.label, '"></span>\n     </label>\n     <textarea class="').concat($.textarea, '"></textarea>\n     <div class="').concat($["validation-message"], '" id="').concat($["validation-message"], '"></div>\n   </div>\n   <div class="').concat($.actions, '">\n     <div class="').concat($.loader, '"></div>\n     <button type="button" class="').concat($.confirm, '"></button>\n     <button type="button" class="').concat($.deny, '"></button>\n     <button type="button" class="').concat($.cancel, '"></button>\n   </div>\n   <div class="').concat($.footer, '"></div>\n   <div class="').concat($["timer-progress-bar-container"], '">\n     <div class="').concat($["timer-progress-bar"], '"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g, ""), kt = function (t) { var e, n, o, i, r, a = !!(i = k()) && (i.parentNode.removeChild(i), bt([document.documentElement, document.body], [$["no-backdrop"], $["toast-shown"], $["has-column"]]), !0); pt() ? K("SweetAlert2 requires document to initialize") : ((r = document.createElement("div")).className = $.container, a && vt(r, $["no-transition"]), U(r, Ct), (i = "string" == typeof (e = t.target) ? document.querySelector(e) : e).appendChild(r), a = t, (e = A
2042()).setAttribute("role", a.toast ? "alert" : "dialog"), e.setAttribute("aria-live", a.toast ? "polite" : "assertive"), a.toast || e.setAttribute("aria-modal", "true"), r = i, "rtl" === window.getComputedStyle(r).direction && vt(k(), $.rtl), t = P(), a = yt(t, $.input), e = yt(t, $.file), n = t.querySelector(".".concat($.range, " input")), o = t.querySelector(".".concat($.range, " output")), i = yt(t, $.select), r = t.querySelector(".".concat($.checkbox, " input")), t = yt(t, $.textarea), a.oninput = ft, e.onchange = ft, i.onchange = ft, r.onchange = ft, t.oninput = ft, n.oninput = function (t) { ft(t), o.value = n.value }, n.onchange = function (t) { ft(t), n.nextSibling.value = n.value }) }, At = function (t, e) { t.jquery ? xt(e, t) : U(e, t.toString()) }, xt = function (t, e) { if (t.textContent = "", 0 in e) for (var n = 0; n in e; n++)t.appendChild(e[n].cloneNode(!0)); else t.appendChild(e.cloneNode(!0)) }, Bt = function () { if (pt()) return !1; var t, e = document.createElement("div"), n = { WebkitAnimation: "webkitAnimationEnd", OAnimation: "oAnimationEnd oanimationend", animation: "animationend" }; for (t in n) if (Object.prototype.hasOwnProperty.call(n, t) && void 0 !== e.style[t]) return n[t]; return !1 }(); function Pt(t, e, n) { ut(t, n["show".concat(m(e), "Button")], "inline-block"), U(t, n["".concat(e, "ButtonText")]), t.setAttribute("aria-label", n["".concat(e, "ButtonAriaLabel")]), t.className = $[e], F(t, n, "".concat(e, "Button")), vt(t, n["".concat(e, "ButtonClass")]) } function Ot(t, e) { var n, o, i = k(); i && (o = i, "string" == typeof (n = e.backdrop) ? o.style.background = n : n || vt([document.documentElement, document.body], $["no-backdrop"]), !e.backdrop && e.allowOutsideClick && W('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), o = i, (n = e.position) in $ ? vt(o, $[n]) : (W('The "position" parameter is not valid, defaulting to "center"'), vt(o, $.center)), n = i, !(o = e.grow) || "string" != typeof o || (o = "grow-".concat(o)) in $ && vt(n, $[o]), F(i, e, "container"), (e = document.body.getAttribute("data-swal2-queue-step")) && (i.setAttribute("data-queue-step", e), document.body.removeAttribute("data-swal2-queue-step"))) } function Et(t, e) { t.placeholder && !e.inputPlaceholder || (t.placeholder = e.inputPlaceholder) } function St(t, e, n) { var o, i; n.inputLabel && (t.id = $.input, o = document.createElement("label"), i = $["input-label"], o.setAttribute("for", t.id), o.className = i, vt(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o)) } var Tt = { promise: new WeakMap, innerParams: new WeakMap, domCache: new WeakMap }, Lt = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Dt = function (t) { if (!It[t.input]) return K('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input, '"')); var e = Mt(t.input), n = It[t.input](e, t); rt(n), setTimeout(function () { nt(n) }) }, qt = function (t, e) { var n = et(P(), t); if (n) for (var o in !function (t) { for (var e = 0; e < t.attributes.length; e++) { var n = t.attributes[e].name; -1 === ["type", "value", "style"].indexOf(n) && t.removeAttribute(n) } }(n), e) "range" === t && "placeholder" === o || n.setAttribute(o, e[o]) }, jt = function (t) { var e = Mt(t.input); t.customClass && vt(e, t.customClass.input) }, Mt = function (t) { t = $[t] || $.input; return yt(P(), t) }, It = {}; It.text = It.email = It.password = It.number = It.tel = It.url = function (t, e) { return "string" == typeof e.inputValue || "number" == typeof e.inputValue ? t.value = e.inputValue : w(e.inputValue) || W('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(r(e.inputValue), '"')), St(t, t, e), Et(t, e), t.type = e.input, t }, It.file = function (t, e) { return St(t, t, e), Et(t, e), t }, It.range = function (t, e) { var n = t.querySelector("input"), o = t.querySelector("output"); return n.value = e.inputValue, n.type = e.input, o.value = e.inputValue, St(n, t, e), t }, It.select = function (t, e) { var n; return t.textContent = "", e.inputPlaceholder && (n = document.createElement("option"), U(n, e.
2042inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, t.appendChild(n)), St(t, t, e), t }, It.radio = function (t) { return t.textContent = "", t }, It.checkbox = function (t, e) { var n = et(P(), "checkbox"); n.value = 1, n.id = $.checkbox, n.checked = Boolean(e.inputValue); n = t.querySelector("span"); return U(n, e.inputPlaceholder), t }, It.textarea = function (e, t) { e.value = t.inputValue, Et(e, t), St(e, e, t); function n(t) { return parseInt(window.getComputedStyle(t).paddingLeft) + parseInt(window.getComputedStyle(t).paddingRight) } var o; return "MutationObserver" in window && (o = parseInt(window.getComputedStyle(A()).width), new MutationObserver(function () { var t = e.offsetWidth + n(A()) + n(P()); A().style.width = o < t ? "".concat(t, "px") : null }).observe(e, { attributes: !0, attributeFilter: ["style"] })), e }; function Ht(t, e) { var o, i, r, n = O(); F(n, e, "htmlContainer"), e.html ? (mt(e.html, n), rt(n, "block")) : e.text ? (n.textContent = e.text, rt(n, "block")) : at(n), t = t, o = e, i = P(), t = Tt.innerParams.get(t), r = !t || o.input !== t.input, Lt.forEach(function (t) { var e = $[t], n = yt(i, e); qt(t, o.inputAttributes), n.className = e, r && at(n) }), o.input && (r && Dt(o), jt(o)), F(P(), e, "content") } function Vt() { return k() && k().getAttribute("data-queue-step") } function Rt(t, o) { var i = n(); if (!o.progressSteps || 0 === o.progressSteps.length) return at(i), 0; rt(i), i.textContent = ""; var r = parseInt(void 0 === o.currentProgressStep ? Vt() : o.currentProgressStep); r >= o.progressSteps.length && W("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.progressSteps.forEach(function (t, e) { var n, t = (n = t, t = document.createElement("li"), vt(t, $["progress-step"]), U(t, n), t); i.appendChild(t), e === r && vt(t, $["active-progress-step"]), e !== o.progressSteps.length - 1 && (t = o, e = document.createElement("li"), vt(e, $["progress-step-line"]), t.progressStepsDistance && (e.style.width = t.progressStepsDistance), e = e, i.appendChild(e)) }) } function Nt(t, e) { var n, o = M(); F(o, e, "header"), Rt(0, e), n = t, o = e, t = Tt.innerParams.get(n), n = x(), t && o.icon === t.icon ? (Wt(n, o), Ft(n, o)) : o.icon || o.iconHtml ? o.icon && -1 === Object.keys(X).indexOf(o.icon) ? (K('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(o.icon, '"')), at(n)) : (rt(n), Wt(n, o), Ft(n, o), vt(n, o.showClass.icon)) : at(n), function (t) { var e = E(); if (!t.imageUrl) return at(e); rt(e, ""), e.setAttribute("src", t.imageUrl), e.setAttribute("alt", t.imageAlt), it(e, "width", t.imageWidth), it(e, "height", t.imageHeight), e.className = $.image, F(e, t, "image") }(e), o = e, n = B(), ut(n, o.title || o.titleText), o.title && mt(o.title, n), o.titleText && (n.innerText = o.titleText), F(n, o, "title"), o = e, e = V(), U(e, o.closeButtonHtml), F(e, o, "closeButton"), ut(e, o.showCloseButton), e.setAttribute("aria-label", o.closeButtonAriaLabel) } function Ut(t, e) { var n, o, i; i = e, n = k(), o = A(), i.toast ? (it(n, "width", i.width), o.style.width = "100%") : it(o, "width", i.width), it(o, "padding", i.padding), i.background && (o.style.background = i.background), at(S()), Qt(o, i), Ot(0, e), Nt(t, e), Ht(t, e), ht(0, e), i = e, t = I(), ut(t, i.footer), i.footer && mt(i.footer, t), F(t, i, "footer"), "function" == typeof e.didRender ? e.didRender(A()) : "function" == typeof e.onRender && e.onRender(A()) } function _t() { return T() && T().click() } var Ft = function (t, e) { for (var n in X) e.icon !== n && bt(t, X[n]); vt(t, X[e.icon]), Kt(t, e), zt(), F(t, e, "icon") }, zt = function () { for (var t = A(), e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"), o = 0; o < n.length; o++)n[o].style.backgroundColor = e }, Wt = function (t, e) { t.textContent = "", e.iconHtml ? U(t, Yt(e.iconHtml)) : "success" === e.icon ? U(t, '\n      <div class="swal2-success-circular-line-left"></div>
2042\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    ') : "error" === e.icon ? U(t, '\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    ') : U(t, Yt({ question: "?", warning: "!", info: "i" }[e.icon])) }, Kt = function (t, e) { if (e.iconColor) { t.style.color = e.iconColor, t.style.borderColor = e.iconColor; for (var n = 0, o = [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"]; n < o.length; n++)st(t, o[n], "backgroundColor", e.iconColor); st(t, ".swal2-success-ring", "borderColor", e.iconColor) } }, Yt = function (t) { return '<div class="'.concat($["icon-content"], '">').concat(t, "</div>") }, Zt = [], Qt = function (t, e) { t.className = "".concat($.popup, " ").concat(wt(t) ? e.showClass.popup : ""), e.toast ? (vt([document.documentElement, document.body], $["toast-shown"]), vt(t, $.toast)) : vt(t, $.modal), F(t, e, "popup"), "string" == typeof e.customClass && vt(t, e.customClass), e.icon && vt(t, $["icon-".concat(e.icon)]) }; function Jt(t) { (e = A()) || Mn.fire(); var e = A(), n = j(), o = D(); !t && wt(T()) && (t = T()), rt(n), t && (at(t), o.setAttribute("data-button-to-replace", t.className)), o.parentNode.insertBefore(o, t), vt([e, n], $.loading), rt(o), e.setAttribute("data-loading", !0), e.setAttribute("aria-busy", !0), e.focus() } function $t() { return new Promise(function (t) { var e = window.scrollX, n = window.scrollY; te.restoreFocusTimeout = setTimeout(function () { te.previousActiveElement && te.previousActiveElement.focus ? (te.previousActiveElement.focus(), te.previousActiveElement = null) : document.body && document.body.focus(), t() }, 100), void 0 !== e && void 0 !== n && window.scrollTo(e, n) }) } function Xt() { if (te.timeout) return function () { var t = H(), e = parseInt(window.getComputedStyle(t).width); t.style.removeProperty("transition"), t.style.width = "100%"; var n = parseInt(window.getComputedStyle(t).width), n = parseInt(e / n * 100); t.style.removeProperty("transition"), t.style.width = "".concat(n, "%") }(), te.timeout.stop() } function Gt() { if (te.timeout) { var t = te.timeout.start(); return dt(t), t } } var te = {}, ee = !1, ne = {}; function oe(t) { for (var e = t.target; e && e !== document; e = e.parentNode)for (var n in ne) { var o = e.getAttribute(n); if (o) return void ne[n].fire({ template: o }) } } function ie(t) { return Object.prototype.hasOwnProperty.call(se, t) } function re(t) { return ce[t] } function ae(t) { for (var e in t) ie(n = e) || W('Unknown parameter "'.concat(n, '"')), t.toast && (n = e, -1 !== le.indexOf(n) && W('The parameter "'.concat(n, '" is incompatible with toasts'))), re(e = e) && v(e, re(e)); var n } var se = { title: "", titleText: "", text: "", html: "", footer: "", icon: void 0, iconColor: void 0, iconHtml: void 0, template: void 0, toast: !1, animation: !0, showClass: { popup: "swal2-show", backdrop: "swal2-backdrop-show", icon: "swal2-icon-show" }, hideClass: { popup: "swal2-hide", backdrop: "swal2-backdrop-hide", icon: "swal2-icon-hide" }, customClass: {}, target: "body", backdrop: !0, heightAuto: !0, allowOutsideClick: !0, allowEscapeKey: !0, allowEnterKey: !0, stopKeydownPropagation: !0, keydownListenerCapture: !1, showConfirmButton: !0, showDenyButton: !1, showCancelButton: !1, preConfirm: void 0, preDeny: void 0, confirmButtonText: "OK", confirmButtonAriaLabel: "", confirmButtonColor: void 0, denyButtonText: "No", denyButtonAriaLabel: "", denyButtonColor: void 0, cancelButtonText: "Cancel", cancelButtonAriaLabel: "", cancelButtonColor: void 0, buttonsStyling: !0, reverseButtons: !1, focusConfirm: !0, focusDeny: !1, focusCancel: !1, showCloseButton: !1, closeButtonHtml: "&times;", closeButtonAriaLabel: "Close this dialog", loaderHtml: "", showLoaderOnConfirm: !1, showLoaderOnDeny: !1, imageUrl: void 0, imageWidth: void 0, imageHeight: void 0, imageAlt: "", timer: void 0, timerProgressBar: !1, width: void 0, padding: void 0, background: void 0, input: void 0, inputPlaceholder: "", inputLabel: "", inputValue: "", inputOptions: {}, inputAutoTrim: !0, inputAttributes: {}, inputValidator: void 0, returnInputValueOnDeny: !1, validationMessage: void 0, grow: !1, position: "center", progressSteps: [], currentProgressStep: void 0, progressStepsDistance: void 0, onBeforeOpen: void 0, onOpen: void 0, willOpen: void 0, didOpen: void 0, onRender: void 0, didRender: void 0, onClose: void 0, onAfterClose: void 0, willClose: void 0, didClose
2042: void 0, onDestroy: void 0, didDestroy: void 0, scrollbarPadding: !0 }, ue = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "onAfterClose", "onClose", "onDestroy", "progressSteps", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], ce = { animation: 'showClass" and "hideClass', onBeforeOpen: "willOpen", onOpen: "didOpen", onRender: "didRender", onClose: "willClose", onAfterClose: "didClose", onDestroy: "didDestroy" }, le = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "heightAuto", "keydownListenerCapture"], de = Object.freeze({ isValidParameter: ie, isUpdatableParameter: function (t) { return -1 !== ue.indexOf(t) }, isDeprecatedParameter: re, argsToParams: function (n) { var o = {}; return "object" !== r(n[0]) || C(n[0]) ? ["title", "html", "icon"].forEach(function (t, e) { e = n[e]; "string" == typeof e || C(e) ? o[t] = e : void 0 !== e && K("Unexpected type of ".concat(t, '! Expected "string" or "Element", got ').concat(r(e))) }) : u(o, n[0]), o }, isVisible: function () { return wt(A()) }, clickConfirm: _t, clickDeny: function () { return L() && L().click() }, clickCancel: function () { return q() && q().click() }, getContainer: k, getPopup: A, getTitle: B, getContent: P, getHtmlContainer: O, getImage: E, getIcon: x, getInputLabel: function () { return t($["input-label"]) }, getCloseButton: V, getActions: j, getConfirmButton: T, getDenyButton: L, getCancelButton: q, getL
2042oader: D, getHeader: M, getFooter: I, getTimerProgressBar: H, getFocusableElements: R, getValidationMessage: S, isLoading: function () { return A().hasAttribute("data-loading") }, fire: function () { for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)e[n] = arguments[n]; return i(this, e) }, mixin: function (r) { return function (t) { !function (t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), e && l(t, e) }(i, t); var n, o, e = (n = i, o = d(), function () { var t, e = c(n); return p(this, o ? (t = c(this).constructor, Reflect.construct(e, arguments, t)) : e.apply(this, arguments)) }); function i() { return a(this, i), e.apply(this, arguments) } return s(i, [{ key: "_main", value: function (t, e) { return f(c(i.prototype), "_main", this).call(this, t, u({}, r, e)) } }]), i }(this) }, queue: function (t) { var r = this; Zt = t; function a(t, e) { Zt = [], t(e) } var s = []; return new Promise(function (i) { !function e(n, o) { n < Zt.length ? (document.body.setAttribute("data-swal2-queue-step", n), r.fire(Zt[n]).then(function (t) { void 0 !== t.value ? (s.push(t.value), e(n + 1, o)) : a(i, { dismiss: t.dismiss }) })) : a(i, { value: s }) }(0) }) }, getQueueStep: Vt, insertQueueStep: function (t, e) { return e && e < Zt.length ? Zt.splice(e, 0, t) : Zt.push(t) }, deleteQueueStep: function (t) { void 0 !== Zt[t] && Zt.splice(t, 1) }, showLoading: Jt, enableLoading: Jt, getTimerLeft: function () { return te.timeout && te.timeout.getTimerLeft() }, stopTimer: Xt, resumeTimer: Gt, toggleTimer: function () { var t = te.timeout; return t && (t.running ? Xt : Gt)() }, increaseTimer: function (t) { if (te.timeout) { t = te.timeout.increase(t); return dt(t, !0), t } }, isTimerRunning: function () { return te.timeout && te.timeout.isRunning() }, bindClickHandler: function () { ne[0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "data-swal-template"] = this, ee || (document.body.addEventListener("click", oe), ee = !0) } }); function pe() { var t, e; Tt.innerParams.get(this) && (t = Tt.domCache.get(this), at(t.loader), (e = t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"))).length ? rt(e[0], "inline-block") : wt(T()) || wt(L()) || wt(q()) || at(t.actions), bt([t.popup, t.actions], $.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1) } function fe() { null === tt.previousBodyPadding && document.body.scrollHeight > window.innerHeight && (tt.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = "".concat(tt.previousBodyPadding + function () { var t = document.createElement("div"); t.className = $["scrollbar-measure"], document.body.appendChild(t); var e = t.getBoundingClientRect().width - t.clientWidth; return document.body.removeChild(t), e }(), "px")) } function me() { return !!window.MSInputMethodContext && !!document.documentMode } function he() { var t = k(), e = A(); t.style.removeProperty("align-items"), e.offsetTop < 0 && (t.style.alignItems = "flex-start") } var ge = function () { navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i) || A().scrollHeight > window.innerHeight - 44 && (k().style.paddingBottom = "".concat(44, "px")) }, ve = function () { var e, t = k(); t.ontouchstart = function (t) { e = be(t) }, t.ontouchmove = function (t) { e && (t.preventDefault(), t.stopPropagation()) } }, be = function (t) { var e = t.target, n = k(); return !ye(t) && !we(t) && (e === n || !(ct(n) || "INPUT" === e.tagName || ct(P()) && P().contains(e))) }, ye = function (t) { return t.touches && t.touches.length && "stylus" === t.touches[0].touchType }, we = function (t) { return t.touches && 1 < t.touches.length }, Ce = { swalPromiseResolve: new WeakMap }; function ke(t, e, n, o) { n ? Ee(t, o) : ($t().then(function () { return Ee(t, o) }), te.keydownTarget.removeEventListener("keydown", te.keydownHandler, { capture: te.keydownListenerCapture }), te.keydownHandlerAdded = !1), e.parentNode && !document.body.getAttribute("data-swal2-queue-step") && e.parentNode.removeChild(e), N() && (null !== tt.previousBodyPadding && (document.body.style.paddingRight = "".concat(tt.previousBodyPadding, "px"), tt.previousBodyPadding = null), _(document.body, $.iosfix) && (e = parseInt(document.body.style.top, 10), bt(document.body, $.iosfix), document.body.style.top = "", document.body.scrollTop = -1 * e), "undefined" != typeof window && me() && window.removeEventListener("resize", he), g(document.body.children).forEac
2042h(function (t) { t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden")), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden") })), bt([document.documentElement, document.body], [$.shown, $["height-auto"], $["no-backdrop"], $["toast-shown"], $["toast-column"]]) } function Ae(t) { var e, n, o, i = A(); i && (t = xe(t), (e = Tt.innerParams.get(this)) && !_(i, e.hideClass.popup) && (n = Ce.swalPromiseResolve.get(this), bt(i, e.showClass.popup), vt(i, e.hideClass.popup), o = k(), bt(o, e.showClass.backdrop), vt(o, e.hideClass.backdrop), Be(this, i, e), n(t))) } function xe(t) { return void 0 === t ? { isConfirmed: !1, isDenied: !1, isDismissed: !0 } : u({ isConfirmed: !1, isDenied: !1, isDismissed: !1 }, t) } function Be(t, e, n) { var o = k(), i = Bt && lt(e), r = n.onClose, a = n.onAfterClose, s = n.willClose, n = n.didClose; Pe(e, s, r), i ? Oe(t, e, o, n || a) : ke(t, o, G(), n || a) } var Pe = function (t, e, n) { null !== e && "function" == typeof e ? e(t) : null !== n && "function" == typeof n && n(t) }, Oe = function (t, e, n, o) { te.swalCloseEventFinishedCallback = ke.bind(null, t, n, G(), o), e.addEventListener(Bt, function (t) { t.target === e && (te.swalCloseEventFinishedCallback(), delete te.swalCloseEventFinishedCallback) }) }, Ee = function (t, e) { setTimeout(function () { "function" == typeof e && e(), t._destroy() }) }; function Se(t, e, n) { var o = Tt.domCache.get(t); e.forEach(function (t) { o[t].disabled = n }) } function Te(t, e) { if (!t) return !1; if ("radio" === t.type) for (var n = t.parentNode.parentNode.querySelectorAll("input"), o = 0; o < n.length; o++)n[o].disabled = e; else t.disabled = e } var Le = function () { function n(t, e) { a(this, n), this.callback = t, this.remaining = e, this.running = !1, this.start() } return s(n, [{ key: "start", value: function () { return this.running || (this.running = !0, this.started = new Date, this.id = setTimeout(this.callback, this.remaining)), this.remaining } }, { key: "stop", value: function () { return this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= new Date - this.started), this.remaining } }, { key: "increase", value: function (t) { var e = this.running; return e && this.stop(), this.remaining += t, e && this.start(), this.remaining } }, { key: "getTimerLeft", value: function () { return this.running && (this.stop(), this.start()), this.remaining } }, { key: "isRunning", value: function () { return this.running } }]), n }(), De = { email: function (t, e) { return /^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid email address") }, url: function (t, e) { return /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL") } }; function qe(t) { var e, n; (e = t).inputValidator || Object.keys(De).forEach(function (t) { e.input === t && (e.inputValidator = De[t]) }), t.showLoaderOnConfirm && !t.preConfirm && W("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"), t.animation = Z(t.animation), (n = t).target && ("string" != typeof n.target || document.querySelector(n.target)) && ("string" == typeof n.target || n.target.appendChild) || (W('Target parameter is not valid, defaulting to "body"'), n.target = "body"), "string" == typeof t.title && (t.title = t.title.split("\n").join("<br />")), kt(t) } function je(t) { var e = k(), n = A(); "function" == typeof t.willOpen ? t.willOpen(n) : "function" == typeof t.onBeforeOpen && t.onBeforeOpen(n); var o = window.getComputedStyle(document.body).overflowY; Je(e, n, t), setTimeout(function () { Ze(e, n) }, 10), N() && (Qe(e, t.scrollbarPadding, o), g(document.body.children).forEach(function (t) { t === k() || function (t, e) { if ("function" == typeof t.contains) return t.contains(e) }(t, k()) || (t.hasAttribute("aria-hidden") && t.setAttribute("data-previous-aria-hidden", t.getAttribute("aria-hidden")), t.setAttribute("aria-hidden", "true")) })), G() || te.previousActiveElement || (te.previousActiveElement = document.activeElement), Ye(n, t), bt(e, $["no-transition"]) } function Me(t) { var e = A(); t.target === e && (t = k(), e.removeEventListener(Bt, Me), t.style.overflowY = "auto") } function Ie(t, e) { t.closePopup({ isConfirmed: !0, value: e }) } function He(t, e, n) { var o = R(); if (o.length) return (e += n) === o.length ? e = 0 : -1 === e && (e = o.length - 1), o[e].focus(); A().focus() } var Ve = ["swal-title", "swal-html", "swal-footer"], Re = function (t) { var n = {};
2042 return g(t.querySelectorAll("swal-param")).forEach(function (t) { Ke(t, ["name", "value"]); var e = t.getAttribute("name"), t = t.getAttribute("value"); "boolean" == typeof se[e] && "false" === t && (t = !1), "object" === r(se[e]) && (t = JSON.parse(t)), n[e] = t }), n }, Ne = function (t) { var n = {}; return g(t.querySelectorAll("swal-button")).forEach(function (t) { Ke(t, ["type", "color", "aria-label"]); var e = t.getAttribute("type"); n["".concat(e, "ButtonText")] = t.innerHTML, n["show".concat(m(e), "Button")] = !0, t.hasAttribute("color") && (n["".concat(e, "ButtonColor")] = t.getAttribute("color")), t.hasAttribute("aria-label") && (n["".concat(e, "ButtonAriaLabel")] = t.getAttribute("aria-label")) }), n }, Ue = function (t) { var e = {}, t = t.querySelector("swal-image"); return t && (Ke(t, ["src", "width", "height", "alt"]), t.hasAttribute("src") && (e.imageUrl = t.getAttribute("src")), t.hasAttribute("width") && (e.imageWidth = t.getAttribute("width")), t.hasAttribute("height") && (e.imageHeight = t.getAttribute("height")), t.hasAttribute("alt") && (e.imageAlt = t.getAttribute("alt"))), e }, _e = function (t) { var e = {}, t = t.querySelector("swal-icon"); return t && (Ke(t, ["type", "color"]), t.hasAttribute("type") && (e.icon = t.getAttribute("type")), t.hasAttribute("color") && (e.iconColor = t.getAttribute("color")), e.iconHtml = t.innerHTML), e }, Fe = function (t) { var n = {}, e = t.querySelector("swal-input"); e && (Ke(e, ["type", "label", "placeholder", "value"]), n.input = e.getAttribute("type") || "text", e.hasAttribute("label") && (n.inputLabel = e.getAttribute("label")), e.hasAttribute("placeholder") && (n.inputPlaceholder = e.getAttribute("placeholder")), e.hasAttribute("value") && (n.inputValue = e.getAttribute("value"))); t = t.querySelectorAll("swal-input-option"); return t.length && (n.inputOptions = {}, g(t).forEach(function (t) { Ke(t, ["value"]); var e = t.getAttribute("value"), t = t.innerHTML; n.inputOptions[e] = t })), n }, ze = function (t, e) { var n, o = {}; for (n in e) { var i = e[n], r = t.querySelector(i); r && (Ke(r, []), o[i.replace(/^swal-/, "")] = r.innerHTML) } return o }, We = function (e) { var n = Ve.concat(["swal-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]); g(e.querySelectorAll("*")).forEach(function (t) { t.parentNode === e && (t = t.tagName.toLowerCase(), -1 === n.indexOf(t) && W("Unrecognized element <".concat(t, ">"))) }) }, Ke = function (e, n) { g(e.attributes).forEach(function (t) { -1 === n.indexOf(t.name) && W(['Unrecognized attribute "'.concat(t.name, '" on <').concat(e.tagName.toLowerCase(), ">."), "".concat(n.length ? "Allowed attributes are: ".concat(n.join(", ")) : "To set the value, use HTML within the element.")]) }) }, Ye = function (t, e) { "function" == typeof e.didOpen ? setTimeout(function () { return e.didOpen(t) }) : "function" == typeof e.onOpen && setTimeout(function () { return e.onOpen(t) }) }, Ze = function (t, e) { Bt && lt(e) ? (t.style.overflowY = "hidden", e.addEventListener(Bt, Me)) : t.style.overflowY = "auto" }, Qe = function (t, e, n) { var o; (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || "MacIntel" === navigator.platform && 1 < navigator.maxTouchPoints) && !_(document.body, $.iosfix) && (o = document.body.scrollTop, document.body.style.top = "".concat(-1 * o, "px"), vt(document.body, $.iosfix), ve(), ge()), "undefined" != typeof window && me() && (he(), window.addEventListener("resize", he)), e && "hidden" !== n && fe(), setTimeout(function () { t.scrollTop = 0 }) }, Je = function (t, e, n) { vt(t, n.showClass.backdrop), e.style.setProperty("opacity", "0", "important"), rt(e), setTimeout(function () { vt(e, n.showClass.popup), e.style.removeProperty("opacity") }, 10), vt([document.documentElement, document.body], $.shown), n.heightAuto && n.backdrop && !n.toast && vt([document.documentElement, document.body], $["height-auto"]) }, $e = function (t) { return t.checked ? 1 : 0 }, Xe = function (t) { return t.checked ? t.value : null }, Ge = function (t) { return t.files.length ? null !== t.getAttribute("multiple") ? t.files : t.files[0] : null }, tn = function (e, n) { function o(t) { return nn[n.input](i, on(t), n) } var i = P(); b(n.inputOptions) || w(n.inputOptions) ? (Jt(T()), y(n.inputOptions).then(function (t) { e.hideLoading(), o(t) })) : "object" === r(n.inputOptions) ? o(n.inputOptions) : K("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(r(n.inputOptions))) }
2042, en = function (e, n) { var o = e.getInput(); at(o), y(n.inputValue).then(function (t) { o.value = "number" === n.input ? parseFloat(t) || 0 : "".concat(t), rt(o), o.focus(), e.hideLoading() }).catch(function (t) { K("Error in inputValue promise: ".concat(t)), o.value = "", rt(o), o.focus(), e.hideLoading() }) }, nn = { select: function (t, e, i) { function o(t, e, n) { var o = document.createElement("option"); o.value = n, U(o, e), o.selected = rn(n, i.inputValue), t.appendChild(o) } var r = yt(t, $.select); e.forEach(function (t) { var e, n = t[0], t = t[1]; Array.isArray(t) ? ((e = document.createElement("optgroup")).label = n, e.disabled = !1, r.appendChild(e), t.forEach(function (t) { return o(e, t[1], t[0]) })) : o(r, t, n) }), r.focus() }, radio: function (t, e, i) { var r = yt(t, $.radio); e.forEach(function (t) { var e = t[0], n = t[1], o = document.createElement("input"), t = document.createElement("label"); o.type = "radio", o.name = $.radio, o.value = e, rn(e, i.inputValue) && (o.checked = !0); e = document.createElement("span"); U(e, n), e.className = $.label, t.appendChild(o), t.appendChild(e), r.appendChild(t) }); e = r.querySelectorAll("input"); e.length && e[0].focus() } }, on = function n(o) { var i = []; return "undefined" != typeof Map && o instanceof Map ? o.forEach(function (t, e) { "object" === r(t) && (t = n(t)), i.push([e, t]) }) : Object.keys(o).forEach(function (t) { var e = o[t]; "object" === r(e) && (e = n(e)), i.push([t, e]) }), i }, rn = function (t, e) { return e && e.toString() === t.toString() }, an = function (t, e, n) { var o = function (t, e) { var n = t.getInput(); if (!n) return null; switch (e.input) { case "checkbox": return $e(n); case "radio": return Xe(n); case "file": return Ge(n); default: return e.inputAutoTrim ? n.value.trim() : n.value } }(t, e); e.inputValidator ? sn(t, e, o) : t.getInput().checkValidity() ? ("deny" === n ? un : cn)(t, e, o) : (t.enableButtons(), t.showValidationMessage(e.validationMessage)) }, sn = function (e, n, o) { e.disableInput(), Promise.resolve().then(function () { return y(n.inputValidator(o, n.validationMessage)) }).then(function (t) { e.enableButtons(), e.enableInput(), t ? e.showValidationMessage(t) : cn(e, n, o) }) }, un = function (e, t, n) { t.showLoaderOnDeny && Jt(L()), t.preDeny ? Promise.resolve().then(function () { return y(t.preDeny(n, t.validationMessage)) }).then(function (t) { !1 === t ? e.hideLoading() : e.closePopup({ isDenied: !0, value: void 0 === t ? n : t }) }) : e.closePopup({ isDenied: !0, value: n }) }, cn = function (e, t, n) { t.showLoaderOnConfirm && Jt(), t.preConfirm ? (e.resetValidationMessage(), Promise.resolve().then(function () { return y(t.preConfirm(n, t.validationMessage)) }).then(function (t) { wt(S()) || !1 === t ? e.hideLoading() : Ie(e, void 0 === t ? n : t) })) : Ie(e, n) }, ln = ["ArrowRight", "ArrowDown", "Right", "Down"], dn = ["ArrowLeft", "ArrowUp", "Left", "Up"], pn = ["Escape", "Esc"], fn = function (t, e, n) { var o = Tt.innerParams.get(t); o && (o.stopKeydownPropagation && e.stopPropagation(), "Enter" === e.key ? mn(t, e, o) : "Tab" === e.key ? hn(e, o) : -1 !== [].concat(ln, dn).indexOf(e.key) ? gn(e.key) : -1 !== pn.indexOf(e.key) && vn(e, o, n)) }, mn = function (t, e, n) { e.isComposing || e.target && t.getInput() && e.target.outerHTML === t.getInput().outerHTML && -1 === ["textarea", "file"].indexOf(n.input) && (_t(), e.preventDefault()) }, hn = function (t, e) { for (var n = t.target, o = R(), i = -1, r = 0; r < o.length; r++)if (n === o[r]) { i = r; break } t.shiftKey ? He(0, i, -1) : He(0, i, 1), t.stopPropagation(), t.preventDefault() }, gn = function (t) { -1 !== [T(), L(), q()].indexOf(document.activeElement) && (t = -1 !== ln.indexOf(t) ? "nextElementSibling" : "previousElementSibling", (t = document.activeElement[t]) && t.focus()) }, vn = function (t, e, n) { Z(e.allowEscapeKey) && (t.preventDefault(), n(Q.esc)) }, bn = function (e, t, n) { t.popup.onclick = function () { var t = Tt.innerParams.get(e); t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton || t.timer || t.input || n(Q.close) } }, yn = !1, wn = function (e) { e.popup.onmousedown = function () { e.container.onmouseup = function (t) { e.container.onmouseup = void 0, t.target === e.container && (yn = !0) } } }, Cn = function (e) { e.container.onmousedown = function () { e.popup.onmouseup = function (t) { e.popup.onmouseup = void 0, t.target !== e.popup && !e.popup.contains(t.target) || (yn = !0) } } }, kn = function (n, o, i) { o.container.onclick = function (t) { var e = Tt.innerParams.get(n); yn ? yn = !1 : t.target === o.container && Z(e.allowOutsideClick) && i(Q.backdrop) } }; function An(t, e) { var n = function (t) { t = "string" == typeof t.template ? document.querySelector(t.template) : t.template; if (!t) return {}; t = t.content || t; return We(t), u(Re(t), Ne(t), Ue(t), _e(t), Fe(t), ze(t, Ve)) }(t), o = u({}, se.showClass, e.showClass, n.showClass, t.showClass), i = u({}, se.hideClass, e.hideClass, n.hideClass, t.hideClass); return (n = u({}, se, e, n, t)).showClass = o, n.hideClass = i, !1 === t.animation && (n.showClass = { popup: "swal2-noanimation", backdrop: "swal2-noanimation" }, n.hideClass = {}), n } function xn(a, s, u) { return new Promise(function (t) { function e(t) { a.closePopup({ isDismissed: !0, dismiss: t }) } var n, o, i, r; Ce.swalPromiseResolve.set(a, t), s.confirmButton.onclick = function () { return e = u, (t = a).disableButtons(), void (e.input ? an(t, e, "confirm") : cn(t, e, !0)); var t, e }, s.denyButton.onclick = function () { return e = u, (t = a).disableButtons(), void (e.returnInputValueOnDeny ? an(t, e, "deny") : un(t, e, !1)); var t, e }, s.cancelButton.onclick = function () { return t = e, a.disableButtons(), void t(Q.cancel); var t }, s.closeButton.onclick = function () { return e(Q.close) }, n = a, r = s, t = e, Tt.innerParams.get(n).toast ? bn(n, r, t) : (wn(r), Cn(r), kn(n, r, t)), o = a, r = u, i = e, (t = te).keydownTarget && t.keydownHandlerAdded && (t.keydownTarget.removeEventListener("keydown", t.keydownHandler, { capture: t.keydownListenerCapture }), t.keydownHandlerAdded = !1), r.toast || (t.keydownHandler = function (t) { return fn(o, t, i) }, t.keydownTarget = r.keydownListenerCapture ? window : A(), t.keydownListenerCapture = r.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, { capture: t.keydownListenerCapture }), t.keydownHandlerAdded = !0), (u.toast && (u.input || u.footer || u.showCloseButton) ? vt : bt)(document.body, $["toast-column"]), r = a, "select" === (t = u).input || "radio" === t.input ? tn(r, t) : -1 !== ["text", "email", "number", "tel", "textarea"].indexOf(t.input) && (b(t.inputValue) || w(t.inputValue)) && en(r, t), je(u), Pn(te, u, e), On(s, u), setTimeout(function () { s.container.scrollTop = 0 }) }) } function Bn(t) { var e = { popup: A(), container: k(), content: P(), actions: j(), confirmButton: T(), denyButton: L(), cancelButton: q(), loader: D(), closeButton: V(), validationMessage: S(), progressSteps: n() }; return Tt.domCache.set(t, e), e } var Pn = function (t, e, n) { var o = H();
2042 at(o), e.timer && (t.timeout = new Le(function () { n("timer"), delete t.timeout }, e.timer), e.timerProgressBar && (rt(o), setTimeout(function () { t.timeout && t.timeout.running && dt(e.timer) }))) }, On = function (t, e) { if (!e.toast) return Z(e.allowEnterKey) ? void (En(t, e) || He(0, -1, 1)) : Sn() }, En = function (t, e) { return e.focusDeny && wt(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && wt(t.cancelButton) ? (t.cancelButton.focus(), !0) : !(!e.focusConfirm || !wt(t.confirmButton)) && (t.confirmButton.focus(), !0) }, Sn = function () { document.activeElement && "function" == typeof document.activeElement.blur && document.activeElement.blur() }; function Tn(t) { "function" == typeof t.didDestroy ? t.didDestroy() : "function" == typeof t.onDestroy && t.onDestroy() } function Ln(t) { delete t.params, delete te.keydownHandler, delete te.keydownTarget, qn(Tt), qn(Ce) } var Dn, qn = function (t) { for (var e in t) t[e] = new WeakMap }, J = Object.freeze({ hideLoading: pe, disableLoading: pe, getInput: function (t) { var e = Tt.innerParams.get(t || this); return (t = Tt.domCache.get(t || this)) ? et(t.content, e.input) : null }, close: Ae, closePopup: Ae, closeModal: Ae, closeToast: Ae, enableButtons: function () { Se(this, ["confirmButton", "denyButton", "cancelButton"], !1) }, disableButtons: function () { Se(this, ["confirmButton", "denyButton", "cancelButton"], !0) }, enableInput: function () { return Te(this.getInput(), !1) }, disableInput: function () { return Te(this.getInput(), !0) }, showValidationMessage: function (t) { var e = Tt.domCache.get(this), n = Tt.innerParams.get(this); U(e.validationMessage, t), e.validationMessage.className = $["validation-message"], n.customClass && n.customClass.validationMessage && vt(e.validationMessage, n.customClass.validationMessage), rt(e.validationMessage), (e = this.getInput()) && (e.setAttribute("aria-invalid", !0), e.setAttribute("aria-describedBy", $["validation-message"]), nt(e), vt(e, $.inputerror)) }, resetValidationMessage: function () { var t = Tt.domCache.get(this); t.validationMessage && at(t.validationMessage), (t = this.getInput()) && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedBy"), bt(t, $.inputerror)) }, getProgressSteps: function () { return Tt.domCache.get(this).progressSteps }, _main: function (t) { var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}; return ae(u({}, e, t)), te.currentInstance && te.currentInstance._destroy(), te.currentInstance = this, qe(t = An(t, e)), Object.freeze(t), te.timeout && (te.timeout.stop(), delete te.timeout), clearTimeout(te.restoreFocusTimeout), e = Bn(this), Ut(this, t), Tt.innerParams.set(this, t), xn(this, e, t) }, update: function (e) { var t = A(), n = Tt.innerParams.get(this); if (!t || _(t, n.hideClass.popup)) return W("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup."); var o = {}; Object.keys(e).forEach(function (t) { Mn.isUpdatableParameter(t) ? o[t] = e[t] : W('Invalid parameter to update: "'.concat(t, '". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md')) }), n = u({}, n, o), Ut(this, n), Tt.innerParams.set(this, n), Object.defineProperties(this, { params: { value: u({}, this.params, e), writable: !1, enumerable: !0 } }) }, _destroy: function () { var t = Tt.domCache.get(this), e = Tt.innerParams.get(this); e && (t.popup && te.swalCloseEventFinishedCallback && (te.swalCloseEventFinishedCallback(), delete te.swalCloseEventFinishedCallback), te.deferDisposalTimer && (clearTimeout(te.deferDisposalTimer), delete te.deferDisposalTimer), Tn(e), Ln(this)) } }), jn = function () { function i() { if (a(this, i), "undefined" != typeof window) { "undefined" == typeof Promise && K("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"), Dn = this; for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)e[n] = arguments[n]; var o = Object.freeze(this.constructor.argsToParams(e)); Object.defineProperties(this, { params: { value: o, writable: !1, enumerable: !0, configurable: !0 } }); o = this._main(this.params); Tt.promise.set(this, o) } } return s(i, [{ key: "then", value: function (t) { return Tt.promise.get(this).then(t) } }, { key: "finally", value: function (t) { return Tt.promise.get(this).finally(t) } }
2042]), i }(); u(jn.prototype, J), u(jn, de), Object.keys(J).forEach(function (t) { jn[t] = function () { if (Dn) return Dn[t].apply(Dn, arguments) } }), jn.DismissReason = Q, jn.version = "10.15.7"; var Mn = jn; return Mn.default = Mn }), void 0 !== this && this.Sweetalert2 && (this.swal = this.sweetAlert = this.Swal = this.SweetAlert = this.Sweetalert2);
2043"undefined" != typeof document && function (e, t) { var n = e.createElement("style"); if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t); else try { n.innerHTML = t } catch (e) { n.innerText = t } }(document, ".swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;
2043top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0 1.6em}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1.0625em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:\"!\";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;
2043left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}
2043}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}
204350%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}");
2044"use strict"; var get_bot_type = cwginstock.get_bot_type, recaptcha_enabled = cwginstock.enable_recaptcha, is_v3_recaptcha = cwginstock.is_v3_recaptcha, recaptcha_site_key = cwginstock.recaptcha_site_key, turnstile_enabled = cwginstock.enable_turnstile, turnstile_site_key = cwginstock.turnstile_site_key, gtoken = ""; "undefined" != typeof wc_bulk_variations_params && document.addEventListener("click", function (t) { if (t.target.matches(".cwg_popup_submit")) { console.log(t.target.dataset.product_id), console.log("Captured click before stopPropagation!"); var e = t.target; jQuery.blockUI({ message: null }); var a = e.dataset.product_id, i = e.dataset.variation_id, c = e.dataset.quantity, r = e.dataset.security; return "recaptcha" == get_bot_type && "1" == recaptcha_enabled && "yes" == is_v3_recaptcha ? popup_notifier.popup_generate_v3_response(this) : popup_notifier.perform_ajax({ action: "cwg_trigger_popup_ajax", product_id: a, variation_id: i, quantity: c, security: r }), !1 } }, !0); var popup_notifier = { init: function () { jQuery(document).on("click", ".cwg_popup_submit", function () { jQuery.blockUI({ message: null }); var t = jQuery(this), e = t.attr("data-product_id"), a = t.attr("data-variation_id"), i = t.attr("data-quantity"), c = t.attr("data-security"); return "recaptcha" == get_bot_type && "1" == recaptcha_enabled && "yes" == is_v3_recaptcha ? popup_notifier.popup_generate_v3_response(this) : popup_notifier.perform_ajax({ action: "cwg_trigger_popup_ajax", product_id: e, variation_id: a, quantity: i, security: c }), !1 }) }, popup_generate_v3_response: function (t) { "recaptcha" == get_bot_type && "1" == recaptcha_enabled && "yes" == is_v3_recaptcha && grecaptcha.ready(function () { grecaptcha.execute(recaptcha_site_key, { action: "popup_form" }).then(function (e) { console.log(e); var a = jQuery(t), i = a.attr("data-product_id"), c = a.attr("data-variation_id"), r = a.attr("data-quantity"); popup_notifier.perform_ajax({ action: "cwg_trigger_popup_ajax", product_id: i, variation_id: c, quantity: r, security: e }), gtoken = e }) }) }, perform_ajax: function (t) { jQuery.ajax({ type: "post", url: cwginstock.default_ajax_url, data: t, success: function (t) { jQuery.unblockUI(), Swal.fire({ html: t, showCloseButton: !0, showConfirmButton: !1, willOpen: function () { "recaptcha" == get_bot_type ? "1" == recaptcha_enabled && (jQuery(".g-recaptcha").before('<div id="cwg-google-recaptcha"></div>'), jQuery(".g-recaptcha").remove()) : "1" == turnstile_enabled && turnstile.render(".cf-turnstile", { sitekey: turnstile_site_key, theme: "light", callback: function (t) { cwginstock_turnstile_callback(t) } }) }, didOpen: function () { jQuery(document).trigger("cwginstock_popup_open_callback") }, willClose: function () { jQuery(document).trigger("cwginstock_popup_close_callback") } }) }, error: function (t, e, a) { jQuery.unblockUI() } }) } }; popup_notifier.init(), jQuery(document).on("cwginstock_popup_open_callback", function () { instock_notifier.onloadcallback(), instock_notifier.initialize_phone() }), jQuery(document).on("cwginstock_popup_close_callback", function () { instock_notifier.resetcallback() });
2045/*!
2046  * Bootstrap v4.5.3 (https://getbootstrap.com/)
2047  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2048  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2049  */
2050!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var o=i(e),a=i(n);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function u(t){var e=this,n=!1;return o.default(this).one(d.TRANSITION_END,(function(){n=!0})),setTimeout((function(){n||d.triggerTransitionEnd(e)}),t),this}var d={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o.default(t).css("transition-duration"),n=o.default(t).css("transition-delay"),i=parseFloat(e),a=parseFloat(n);return i||a?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&d.isElement(a)?"element":null===(l=a)||"undefined"==typeof l?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof o.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};d.jQueryDetection(),o.default.fn.emulateTransitionEnd=u,o.default.event.special[d.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(o.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var f="alert",c=o.default.fn[f],h=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)}
vendor: 26,256 bytes, line 2050
2050,e.dispose=function(){o.default.removeData(this._element,"bs.alert"),this._element=null},e._getRootElement=function(t){var e=d.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=o.default(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=o.default.Event("close.bs.alert");return o.default(t).trigger(e),e},e._removeElement=function(t){var e=this;if(o.default(t).removeClass("show"),o.default(t).hasClass("fade")){var n=d.getTransitionDurationFromElement(t);o.default(t).one(d.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},e._destroyElement=function(t){o.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),o.default.fn[f]=h._jQueryInterface,o.default.fn[f].Constructor=h,o.default.fn[f].noConflict=function(){return o.default.fn[f]=c,h._jQueryInterface};var g=o.default.fn.button,m=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=o.default(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var a=n.querySelector(".active");a&&o.default(a).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||o.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&o.default(this._element).toggleClass("active"))},e.dispose=function(){o.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this),a=i.data("bs.button");a||(a=new t(this),i.data("bs.button",a)),a.shouldAvoidTriggerChange=n,"toggle"===e&&a[e]()}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,n=e;if(o.default(e).hasClass("btn")||(e=o.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==n.tagName&&"LABEL"===e.tagName||m._jQueryInterface.call(o.default(e),"toggle","INPUT"===n.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=o.default(t.target).closest(".btn")[0];o.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),o.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var a=0,s=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;a<s;a++){var l=t[a];"true"===l.getAttribute("aria-pressed")?l.classList.add("active"):l.classList.remove("active")}})),o.default.fn.button=m._jQueryInterface,o.default.fn.button.Constructor=m,o.default.fn.button.noConflict=function(){return o.default.fn.button=g,m._jQueryInterface};var p="carousel",_=".bs.carousel",v=o.default.fn[p],b={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},y={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},E={TOUCH:"touch",PEN:"pen"},w=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide("next")},e.nextWhenVisible=function(){var t=o.default(this._element);!document.hidden&&t.is(":visible")&&"hidden"!==t.css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide("prev")},e.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(d.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=this._element.querySelector(".active.carousel-item");var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)o.default(this._element).one("slid.bs.carousel",(function(){return e.to(t)}));else{if(n===t)return this.pause(),void this.cycle();var i=t>n?"next":"prev";this._slide(i,this._items[t])}},e.dispose=function(){o.default(this._element).off(_),o.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},b,t),d.typeCheckConfig(p,t,y),t},e._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},e._addEventListeners=function(){var t=this;this._config.keyboard&&o.default(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&o.default(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},e._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var e=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},n=function(e){t._pointerEvent&&E[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};o.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(o.default(this._element).on("pointerdown.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("pointerup.bs.carousel",(function(t){return n(t)})),this._element.classList.add("pointer-event")):(o.default(this._element).on("touchstart.bs.carousel",(function(t){return e(t)})),o.default(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),o.default(this._element).on("touchend.bs.carousel",(function(t){return n(t)})))}},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),a=this._items.length-1;if((i&&0===o||n&&o===a)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(".active.carousel-item")),a=o.default.Event("slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n});return o.default(this._element).trigger(a),a},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));o.default(e).removeClass("active");var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&o.default(n).addClass("active")}},e._slide=function(t,e){var n,i,a,s=this,l=this._element.querySelector(".active.carousel-item"),r=this._getItemIndex(l),u=e||l&&this._getItemByDirection(t,l),f=this._getItemIndex(u),c=Boolean(this._interval);if("next"===t?(n="carousel-item-left",i="carousel-item-next",a="left"):(n="carousel-item-right",i="carousel-item-prev",a="right"),u&&o.default(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,a).isDefaultPrevented()&&l&&u){this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(u);var h=o.default.Event("slid.bs.carousel",{relatedTarget:u,direction:a,from:r,to:f});if(o.default(this._element).hasClass("slide")){o.default(u).addClass(i),d.reflow(u),o.default(l).addClass(n),o.default(u).addClass(n);var g=parseInt(u.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=d.getTransitionDurationFromElement(l);o.default(l).one(d.TRANSITION_END,(function(){o.default(u).removeClass(n+" "+i).addClass("active"),o.default(l).removeClass("active "+i+" "+n),s._isSliding=!1,setTimeout((function(){return o.default(s._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else o.default(l).removeClass("active"),o.default(u).addClass("active"),this._isSliding=!1,o.default(this._element).trigger(h);c&&this.cycle()}},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.carousel"),i=r({},b,o.default(this).data());"object"==typeof e&&(i=r({},i,e));var a="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),o.default(this).data("bs.carousel",n)),"number"==typeof e)n.to(e);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&i.ride&&(n.pause(),n.cycle())}))},t._dataApiClickHandler=function(e){var n=d.getSelectorFromElement(this);if(n){var i=o.default(n)[0];if(i&&o.default(i).hasClass("carousel")){var a=r({},o.default(i).data(),o.default(this).data()),s=this.getAttribute("data-slide-to");s&&(a.interval=!1),t._jQueryInterface.call(o.default(i),a),s&&o.default(i).data("bs.carousel").to(s),e.preventDefault()}}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return b}}]),t}();o.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",w._dataApiClickHandler),o.default(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=o.default(t[e]);w._jQueryInterface.call(i,i.data())}})),o.default.fn[p]=w._jQueryInterface,o.default.fn[p].Constructor=w,o.default.fn[p].noConflict=function(){return o.default.fn[p]=v,w._jQueryInterface};var T="collapse",C=o.default.fn[T],S={toggle:!0,parent:""},N={toggle:"boolean",parent:"(string|element)"},D=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var a=n[i],s=d.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){o.default(this._element).hasClass("show")?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!o.default(this._element).hasClass("show")&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains("collapse")}))).length&&(e=null),!(e&&(n=o.default(e).not(this._selector).data("bs.collapse"))&&n._isTransitioning))){var a=o.default.Event("show.bs.collapse");if(o.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(o.default(e).not(this._selector),"hide"),n||o.default(e).data("bs.collapse",null));var s=this._getDimension();o.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&o.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(s[0].toUpperCase()+s.slice(1)),r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){o.default(i._element).removeClass("collapsing").addClass("collapse show"),i._element.style[s]="",i.setTransitioning(!1),o.default(i._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(r),this._element.style[s]=this._element[l]+"px"}}},e.hide=function(){var t=this;if(!this._isTransitioning&&o.default(this._element).hasClass("show")){var e=o.default.Event("hide.bs.collapse");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",d.reflow(this._element),o.default(this._element).addClass("collapsing").removeClass("collapse show");var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var s=this._triggerArray[a],l=d.getSelectorFromElement(s);if(null!==l)o.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||o.default(s).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var r=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(){t.setTransitioning(!1),o.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(r)}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){o.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=r({},S,t)).toggle=Boolean(t.toggle),d.typeCheckConfig(T,t,N),t},e._getDimension=function(){return o.default(this._element).hasClass("width")?"width":"height"},e._getParent=function(){var e,n=this;d.isElement(this._config.parent)?(e=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(e.querySelectorAll(i));return o.default(a).each((function(e,i){n._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])})),e},e._addAriaAndCollapsedClass=function(t,e){var n=o.default(t).hasClass("show");e.length&&o.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=d.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.collapse"),a=r({},S,n.data(),"object"==typeof e&&e?e:{});if(!i&&a.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(a.toggle=!1),i||(i=new t(this,a),n.data("bs.collapse",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return S}}]),t}();o.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=o.default(this),n=d.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(n));o.default(i).each((function(){var t=o.default(this),n=t.data("bs.collapse")?"toggle":e.data();D._jQueryInterface.call(t,n)}))})),o.default.fn[T]=D._jQueryInterface,o.default.fn[T].Constructor=D,o.default.fn[T].noConflict=function(){return o.default.fn[T]=C,D._jQueryInterface};var k="dropdown",A=o.default.fn[k],I=new RegExp("38|40|27"),j={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},x=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")){var e=o.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},e.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||o.default(this._element).hasClass("disabled")||o.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},i=o.default.Event("show.bs.dropdown",n),s=t._getParentFromElement(this._element);if(o.default(s).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar&&e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var l=this._element;"parent"===this._config.reference?l=s:d.isElement(this._config.reference)&&(l=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&o.default(s).addClass("position-static"),this._popper=new a.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===o.default(s).closest(".navbar-nav").length&&o.default(document.body).children().on("mouseover",null,o.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),o.default(this._menu).toggleClass("show"),o.default(s).toggleClass("show").trigger(o.default.Event("shown.bs.dropdown",n))}}},e.hide=function(){if(!this._element.disabled&&!o.default(this._element).hasClass("disabled")&&o.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=o.default.Event("hide.bs.dropdown",e),i=t._getParentFromElement(this._element);o.default(i).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),o.default(this._menu).toggleClass("show"),o.default(i).toggleClass("show").trigger(o.default.Event("hidden.bs.dropdown",e)))}},e.dispose=function(){o.default.removeData(this._element,"bs.dropdown"),o.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;o.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},e._getConfig=function(t){return t=r({},this.constructor.Default,o.default(this._element).data(),t),d.typeCheckConfig(k,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},e._getPlacement=function(){var t=o.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=o.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":o.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},e._detectNavbar=function(){return o.default(this._element).closest(".navbar").length>0},e._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},e._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),r({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.dropdown");if(n||(n=new t(this,"object"==typeof e?e:null),o.default(this).data("bs.dropdown",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),i=0,a=n.length;i<a;i++){var s=t._getParentFromElement(n[i]),l=o.default(n[i]).data("bs.dropdown"),r={relatedTarget:n[i]};if(e&&"click"===e.type&&(r.clickEvent=e),l){var u=l._menu;if(o.default(s).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&o.default.contains(s,e.target))){var d=o.default.Event("hide.bs.dropdown",r);o.default(s).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),n[i].setAttribute("aria-expanded","false"),l._popper&&l._popper.destroy(),o.default(u).removeClass("show"),o.default(s).removeClass("show").trigger(o.default.Event("hidden.bs.dropdown",r)))}}}},t._getParentFromElement=function(t){var e,n=d.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||o.default(e.target).closest(".dropdown-menu").length):!I.test(e.which))&&!this.disabled&&!o.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),i=o.default(n).hasClass("show");if(i||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!i||27===e.which||32===e.which)return 27===e.which&&o.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void o.default(this).trigger("click");var a=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return o.default(t).is(":visible")}));if(0!==a.length){var s=a.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<a.length-1&&s++,s<0&&(s=0),a[s].focus()}}}},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return j}},{key:"DefaultType",get:function(){return O}}]),t}();o.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',x._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",x._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",x._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),x._jQueryInterface.call(o.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),o.default.fn[k]=x._jQueryInterface,o.default.fn[k].Constructor=x,o.default.fn[k].noConflict=function(){return o.default.fn[k]=A,x._jQueryInterface};var P=o.default.fn.modal,R={backdrop:!0,keyboard:!0,focus:!0,show:!0},L={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},q=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){o.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var n=o.default.Event("show.bs.modal",{relatedTarget:t});o.default(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),o.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),o.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){o.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){o.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=o.default.Event("hide.bs.modal");if(o.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=o.default(this._element).hasClass("fade");if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),o.default(document).off("focusin.bs.modal"),o.default(this._element).removeClass("show"),o.default(this._element).off("
2050click.dismiss.bs.modal"),o.default(this._dialog).off("mousedown.dismiss.bs.modal"),i){var a=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}},e.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return o.default(t).off(".bs.modal")})),o.default(document).off("focusin.bs.modal"),o.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=r({},R,t),d.typeCheckConfig("modal",t,L),t},e._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var e=o.default.Event("hidePrevented.bs.modal");if(o.default(this._element).trigger(e),e.isDefaultPrevented())return;var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=d.getTransitionDurationFromElement(this._dialog);o.default(this._element).off(d.TRANSITION_END),o.default(this._element).one(d.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||o.default(t._element).one(d.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,i)})).emulateTransitionEnd(i),this._element.focus()}else this.hide()},e._showElement=function(t){var e=this,n=o.default(this._element).hasClass("fade"),i=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),o.default(this._dialog).hasClass("modal-dialog-scrollable")&&i?i.scrollTop=0:this._element.scrollTop=0,n&&d.reflow(this._element),o.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var a=o.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,o.default(e._element).trigger(a)};if(n){var l=d.getTransitionDurationFromElement(this._dialog);o.default(this._dialog).one(d.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},e._enforceFocus=function(){var t=this;o.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===o.default(t._element).has(e.target).length&&t._element.focus()}))},e._setEscapeEvent=function(){var t=this;this._isShown?o.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||o.default(this._element).off("keydown.dismiss.bs.modal")},e._setResizeEvent=function(){var t=this;this._isShown?o.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):o.default(window).off("resize.bs.modal")},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){o.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),o.default(t._element).trigger("hidden.bs.modal")}))},e._removeBackdrop=function(){this._backdrop&&(o.default(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=o.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),o.default(this._backdrop).appendTo(document.body),o.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&e._triggerBackdropTransition()})),n&&d.reflow(this._backdrop),o.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var i=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){o.default(this._backdrop).removeClass("show");var a=function(){e._removeBackdrop(),t&&t()};if(o.default(this._element).hasClass("fade")){var s=d.getTransitionDurationFromElement(this._backdrop);o.default(this._backdrop).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(e,n){var i=n.style.paddingRight,a=o.default(n).css("padding-right");o.default(n).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")})),o.default(n).each((function(e,n){var i=n.style.marginRight,a=o.default(n).css("margin-right");o.default(n).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,a=o.default(document.body).css("padding-right");o.default(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}o.default(document.body).addClass("modal-open")},e._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));o.default(t).each((function(t,e){var n=o.default(e).data("padding-right");o.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));o.default(e).each((function(t,e){var n=o.default(e).data("margin-right");"undefined"!=typeof n&&o.default(e).css("margin-right",n).removeData("margin-right")}));var n=o.default(document.body).data("padding-right");o.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=o.default(this).data("bs.modal"),a=r({},R,o.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,a),o.default(this).data("bs.modal",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method n
2050amed "'+e+'"');i[e](n)}else a.show&&i.show(n)}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return R}}]),t}();o.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,i=d.getSelectorFromElement(this);i&&(e=document.querySelector(i));var a=o.default(e).data("bs.modal")?"toggle":r({},o.default(e).data(),o.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=o.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",(function(){o.default(n).is(":visible")&&n.focus()}))}));q._jQueryInterface.call(o.default(e),a,this)})),o.default.fn.modal=q._jQueryInterface,o.default.fn.modal.Constructor=q,o.default.fn.modal.noConflict=function(){return o.default.fn.modal=P,q._jQueryInterface};var F=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Q={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},B=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,H=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function U(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),a=[].slice.call(i.body.querySelectorAll("*")),s=function(t,n){var i=a[t],s=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var l=[].slice.call(i.attributes),r=[].concat(e["*"]||[],e[s]||[]);l.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===F.indexOf(n)||Boolean(t.nodeValue.match(B)||t.nodeValue.match(H));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,a=i.length;o<a;o++)if(n.match(i[o]))return!0;return!1})(t,r)||i.removeAttribute(t.nodeName)}))},l=0,r=a.length;l<r;l++)s(l);return i.body.innerHTML}var M="tooltip",W=o.default.fn[M],V=new RegExp("(^|\\s)bs-tooltip\\S+","g"),z=["sanitize","whiteList","sanitizeFn"],K={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},X={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Q,popperConfig:null},$={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},J=function(){function t(t,e){if("undefined"==typeof a.default)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=o.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(o.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),o.default.removeData(this.element,this.constructor.DATA_KEY),o.default(this.element).off(this.constructor.EVENT_KEY),o.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&o.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===o.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=o.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){o.default(this.element).trigger(e);var n=d.findShadowRoot(this.element),i=o.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var s=this.getTipElement(),l=d.getUID(this.constructor.NAME);s.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&o.default(s).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(r);this.addAttachmentClass(u);var f=this._getContainer();o.default(s).data(this.constructor.DATA_KEY,this),o.default.contains(this.element.ownerDocument.documentElement,this.tip)||o.default(s).appendTo(f),o.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new a.default(this.element,s,this._getPopperConfig(u)),o.default(s).addClass("show"
vendor: 6,825 bytes, line 2050
2050),"ontouchstart"in document.documentElement&&o.default(document.body).children().on("mouseover",null,o.default.noop);var c=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,o.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(o.default(this.tip).hasClass("fade")){var h=d.getTransitionDurationFromElement(this.tip);o.default(this.tip).one(d.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=o.default.Event(this.constructor.Event.HIDE),a=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),o.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(o.default(this.element).trigger(i),!i.isDefaultPrevented()){if(o.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&o.default(document.body).children().off("mouseover",null,o.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,o.default(this.tip).hasClass("fade")){var s=d.getTransitionDurationFromElement(n);o.default(n).one(d.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},e.setContent=function(){var t=this.getTipElement();this.setElementContent(o.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),o.default(t).removeClass("fade show")},e.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=U(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?o.default(e).parent().is(t)||t.empty().append(e):t.text(o.default(e).text())},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:d.isElement(this.config.container)?o.default(this.config.container):o.default(document).find(this.config.container)},e._getAttachment=function(t){return X[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)o.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;o.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},o.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),o.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||o.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),o.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){var e=o.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==z.indexOf(t)&&delete e[t]})),"number"==typeof(t=r({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),d.typeCheckConfig(M,t,this.constructor.DefaultType),t.sanitize&&(t.template=U(t.template,t.whiteList,t.sanitizeFn)),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(V);null!==e&&e.length&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(o.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tooltip"),a="object"==typeof e&&e;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,a),n.data("bs.tooltip",i)),"string"==typeof e)){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.
20505.3"}},{key:"Default",get:function(){return Y}},{key:"NAME",get:function(){return M}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return $}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return K}}]),t}();o.default.fn[M]=J._jQueryInterface,o.default.fn[M].Constructor=J,o.default.fn[M].noConflict=function(){return o.default.fn[M]=W,J._jQueryInterface};var G="popover",Z=o.default.fn[G],tt=new RegExp("(^|\\s)bs-popover\\S+","g"),et=r({},J.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),nt=r({},J.DefaultType,{content:"(string|element|function)"}),it={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ot=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=i.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){o.default(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||o.default(this.config.template)[0],this.tip},a.setContent=function(){var t=o.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=o.default(this.getTipElement()),e=t.attr("class").match(tt);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each((function(){var e=o.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),o.default(this).data("bs.popover",e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},l(i,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return et}},{key:"NAME",get:function(){return G}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return it}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return nt}}]),i}(J);o.default.fn[G]=ot._jQueryInterface,o.default.fn[G].Constructor=ot,o.default.fn[G].noConflict=function(){return o.default.fn[G]=Z,ot._jQueryInterface};var at="scrollspy",st=o.default.fn[at],lt={offset:10,method:"auto",target:""},rt={offset:"number",method:"string",target:"(string|element)"},ut=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,o.default(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return n._process(t)})),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",n="auto"===this._config.method?e:this._config.method,i="position"===n?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var e,a=d.getSelectorFromElement(t);if(a&&(e=document.querySelector(a)),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[o.default(e)[n]().top+i,a]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]}
vendor: 8,484 bytes, line 2050
2050)).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},e.dispose=function(){o.default.removeData(this._element,"bs.scrollspy"),o.default(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},lt,"object"==typeof t&&t?t:{})).target&&d.isElement(t.target)){var e=o.default(t.target).attr("id");e||(e=d.getUID(at),o.default(t.target).attr("id",e)),t.target="#"+e}return d.typeCheckConfig(at,t,rt),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),n=o.default([].slice.call(document.querySelectorAll(e.join(","))));n.hasClass("dropdown-item")?(n.closest(".dropdown").find(".dropdown-toggle").addClass("active"),n.addClass("active")):(n.addClass("active"),n.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),n.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),o.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},e._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this).data("bs.scrollspy");if(n||(n=new t(this,"object"==typeof e&&e),o.default(this).data("bs.scrollspy",n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"Default",get:function(){return lt}}]),t}();o.default(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=o.default(t[e]);ut._jQueryInterface.call(n,n.data())}})),o.default.fn[at]=ut._jQueryInterface,o.default.fn[at].Constructor=ut,o.default.fn[at].noConflict=function(){return o.default.fn[at]=st,ut._jQueryInterface};var dt=o.default.fn.tab,ft=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&o.default(this._element).hasClass("active")||o.default(this._element).hasClass("disabled"))){var e,n,i=o.default(this._element).closest(".nav, .list-group")[0],a=d.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName||"OL"===i.nodeName?"> li > .active":".active";n=(n=o.default.makeArray(o.default(i).find(s)))[n.length-1]}var l=o.default.Event("hide.bs.tab",{relatedTarget:this._element}),r=o.default.Event("show.bs.tab",{relatedTarget:n});if(n&&o.default(n).trigger(l),o.default(this._element).trigger(r),!r.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,i);var u=function(){var e=o.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=o.default.Event("shown.bs.tab",{relatedTarget:n});o.default(n).trigger(e),o.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,u):u()}}},e.dispose=function(){o.default.removeData(this._element,"bs.tab"),this._element=null},e._activate=function(t,e,n){var i=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?o.default(e).children(".active"):o.default(e).find("> li > .active"))[0],s=n&&a&&o.default(a).hasClass("fade"),l=function(){return i._transitionComplete(t,a,n)};if(a&&s){var r=d.getTransitionDurationFromElement(a);o.default(a).removeClass("show").one(d.TRANSITION_END,l).emulateTransitionEnd(r)}else l()},e._transitionComplete=function(t,e,n){if(e){o.default(e).removeClass("active");var i=o.default(e.parentNode).find("> .dropdown-menu .active")[0];i&&o.default(i).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(o.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),d.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&o.default(t.parentNode).hasClass("dropdown-menu")){var a=o.default(t).closest(".dropdown")[0];if(a){var s=[].slice.call(a.querySelectorAll(".dropdown-toggle"));o.default(s).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}}]),t}();o.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),ft._jQueryInterface.call(o.default(this),"show")})),o.default.fn.tab=ft._jQueryInterface,o.default.fn.tab.Constructor=ft,o.default.fn.tab.noConflict=function(){return o.default.fn.tab=dt,ft._jQueryInterface};var ct=o.default.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},gt={animation:!0,autohide:!0,delay:500},mt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e=t.prototype;return e.show=function(){var t=this,e=o.default.Event("show.bs.toast");if(o.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),o.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),d.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var i=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,n).emulateTransitionEnd(i)}else n()}},e.hide=function(){if(this._element.classList.contains("show")){var t=o.default.Event("hide.bs.toast");o.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},e.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),o.default(this._element).off("click.dismiss.bs.toast"),o.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},e._getConfig=function(t){return t=r({},gt,o.default(this._element).data(),"object"==typeof t&&t?t:{}),d.typeCheckConfig("toast",t,this.constructor.DefaultType),t},e._setListeners=function(){var t=this;o.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},e._close=function(){var t=this,e=function(){t._element.classList.add("hide"),o.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=d.getTransitionDurationFromElement(this._element);o.default(this._element).one(d.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=o.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method n
2050amed "'+e+'"');i[e](this)}}))},l(t,null,[{key:"VERSION",get:function(){return"4.5.3"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return gt}}]),t}();o.default.fn.toast=mt._jQueryInterface,o.default.fn.toast.Constructor=mt,o.default.fn.toast.noConflict=function(){return o.default.fn.toast=ct,mt._jQueryInterface},t.Alert=h,t.Button=m,t.Carousel=w,t.Collapse=D,t.Dropdown=x,t.Modal=q,t.Popover=ot,t.Scrollspy=ut,t.Tab=ft,t.Toast=mt,t.Tooltip=J,t.Util=d,Object.defineProperty(t,"__esModule",{value:!0})}));
2051;
2052(function($){'use strict';var pluginName="storeLocatorSingle",defaults={map_min_height:300,earthRadi:{mi:3963.1676,km:6378.1,ft:20925524.9,mt:6378100,"in":251106299,yd:6975174.98,fa:3487587.49,na:3443.89849,ch:317053.408,rd:1268213.63,fr:31705.3408},};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this.settings.lat=$(element).data('lat');this.settings.lng=$(element).data('lng');this._name=pluginName;this.init();}
2053$.extend(Plugin.prototype,{init:function(){var that=this;this.window=$(window);this.documentHeight=$(document).height();this.windowHeight=this.window.height();this.settings.singleStoreShowMapZoom=parseInt(that.settings.singleStoreShowMapZoom);this.templateCache={};if(store_locator_options.api=="here"){this.platform=new H.service.Platform({apikey:this.settings.apiKey});this.bounds=null;}else{this.bounds=new google.maps.LatLngBounds();}
2054that.initStoreLocatorSingle();},initStoreLocatorSingle:function(){var that=this;that.initMap(function(){that.createMarker();if(that.settings.singleStoreLivePosition=="1"){that.createLivePosition();}});},initMap:function(callback){var that=this;var mapContainer=$(this.element);var singleStoreShowMapZoom=this.settings.singleStoreShowMapZoom;var mapDefaultLat=Number(this.settings.lat);var mapDefaultLng=Number(this.settings.lng);if(store_locator_options.api=="here"){var hereStyleUrl=this.settings.hereStyleUrl;const defaultLayers=this.platform.createDefaultLayers();var baseLayer;if(hereStyleUrl&&hereStyleUrl.length>0){var omvService=this.platform.getOMVService({path:'v2/vectortiles/core/mc'});var style=new H.map.render.harp.Style(hereStyleUrl);baseLayer=omvService.createLayer(style,{engineType:H.Map.EngineType.HARP});}else{baseLayer=defaultLayers.vector.normal.map;}
2055var hereMapOptions={zoom:singleStoreShowMapZoom,center:{lat:mapDefaultLat,lng:mapDefaultLng}};if(hereStyleUrl&&hereStyleUrl.length>0){hereMapOptions.engineType=H.Map.EngineType.HARP;}
2056this.map=new H.Map(mapContainer[0],baseLayer,hereMapOptions);new H.mapevents.Behavior(new H.mapevents.MapEvents(this.map));try{this.ui=H.ui.UI.createDefault(this.map,defaultLayers);}catch(e){this.ui=new H.ui.UI(this.map);if(this.settings.mapDisableZoomControl=="0"){this.ui.addControl('zoom',new H.ui.ZoomControl({alignment:H.ui.LayoutAlignment.RIGHT_MIDDLE}));this.ui.addControl('scalebar',new H.ui.ScaleBar({alignment:H.ui.LayoutAlignment.RIGHT_BOTTOM}));}}
2057callback();}else{var mapDefaultType=this.settings.mapDefaultType;var mapStyling=this.settings.mapStyling;if(!this.isEmpty(mapStyling)){mapStyling=JSON.parse(mapStyling);}else{mapStyling="";}
2058var options={zoom:singleStoreShowMapZoom,center:new google.maps.LatLng(mapDefaultLat,mapDefaultLng),mapTypeId:google.maps.MapTypeId[mapDefaultType],scrollwheel:false,styles:mapStyling,mapId:'store_locator_single_map_render',};if(this.settings.singleStoreShowMapDisablePanControl=="1"){options.panControl=false;}
2059if(this.settings.singleStoreShowMapDisableZoomControl=="1"){options.zoomControl=false;}
2060if(this.settings.singleStoreShowMapDisableScaleControl=="1"){options.scaleControl=false;}
2061if(this.settings.singleStoreShowMapDisableStreetViewControl=="1"){options.streetViewControl=false;}
2062if(this.settings.singleStoreShowMapDisableFullscreenControl=="1"){options.fullscreenControl=false;}
2063if(this.settings.singleStoreShowMapDisableMapTypeControl=="1"){options.mapTypeControl=false;}
2064this.map=new google.maps.Map(mapContainer[0],options);callback();}},createMarker:function(){var lat=Number(this.settings.lat);var lng=Number(this.settings.lng);if(store_locator_options.api=="here"){const icon=new H.map.Icon(this.settings.singleStorenMapIcon);const marker=new H.map.Marker({lat:lat,lng:lng},{icon:icon});this.map.addObject(marker);}else{var position=new google.maps.LatLng(lat,lng);this.bounds.extend(position);const image=document.createElement("img");image.src=this.settings.singleStorenMapIcon;image.setAttribute('alt','');var marker=new google.maps.marker.AdvancedMarkerElement({map:this.map,position:position,title:'',content:image});marker.setMap(this.map);}},createLivePosition:function(){var that=this;if(that.isEmpty(that.settings.live_lat)||that.settings.live_lat=="0"||that.isEmpty(that.settings.live_lng)||that.settings.live_lng=="0"){return;}
2065if(store_locator_options.api=="here"){var liveIcon=new H.map.Icon(that.settings.singleStoreLivePositionMapIcon);that.liveStoreMarker=new H.map.Marker({lat:Number(that.settings.live_lat),lng:Number(that.settings.live_lng)},{icon:liveIcon});that.map.addObject(that.liveStoreMarker);that.liveStoreMarker.latLngKey=null;setInterval(function(){jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_single_store_live_position',post_id:that.settings.post_id,},success:function(response){var newLatLngKey=response.lat+response.lng;if(that.liveStoreMarker.latLngKey==newLatLngKey){return;}
2066that.liveStoreMarker.latLngKey=newLatLngKey;that.liveStoreMarker.setGeometry({lat:Number(response.lat),lng:Number(response.lng)});that.map.setCenter({lat:Number(response.lat),lng:Number(response.lng)});},error:function(jqXHR,_textStatus,errorThrown){alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},that.settings.singleStoreLivePositionInterval);}else{that.liveStore={};that.liveStore.map=that.map;that.liveStore.position=new google.maps.LatLng(that.settings.live_lat,that.
2066settings.live_lng);that.liveStore.icon={"url":that.settings.singleStoreLivePositionMapIcon};that.liveStoreMarker=new google.maps.Marker(that.liveStore);that.liveStoreMarker.setMap(that.map);that.liveStoreMarker.position=false;setInterval(function(){jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_single_store_live_position',post_id:that.settings.post_id,},success:function(response){var newLatLngKey=response.lat+response.lng;var newPosition=new google.maps.LatLng(response.lat,response.lng);if(that.liveStoreMarker.latLngKey==newLatLngKey){return;}
2067that.liveStoreMarker.latLngKey=newLatLngKey;that.liveStoreMarker.setPosition(newPosition);that.bounds.extend(newPosition);that.map.fitBounds(that.bounds);},error:function(jqXHR,_textStatus,errorThrown){alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},that.settings.singleStoreLivePositionInterval);}},isEmpty:function(obj){if(obj==null)return true;if(obj.length>0)return false;if(obj.length===0)return true;for(var key in obj){if(hasOwnProperty.call(obj,key))return false;}
2068return true;},sprintf:function parse(str){var args=[].slice.call(arguments,1),i=0;return str.replace(/%s/g,function(){return args[i++];});},getCookie:function(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)===0)return c.substring(name.length,c.length);}
2069return"";},});$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+
2070pluginName,new Plugin(this,options));}});};$(document).ready(function(){if(store_locator_options.api=="here"){var hereLoaded=setInterval(function(){if(typeof H==='object'&&typeof H.Map==='function'){clearInterval(hereLoaded);$(".store_locator_single_map_render").storeLocatorSingle(store_locator_options);}},500);}else{var mapsLoaded=setInterval(function(){if(typeof google==='object'&&typeof google.maps==='object'){clearInterval(mapsLoaded);$(".store_locator_single_map_render").storeLocatorSingle(store_locator_options);}},500);}});})(jQuery);
2071(function($){'use strict';var pluginName="storeLocator",defaults={store_locator:'#store_locator',store_modal:"#store_modal",store_modal_button:".store_modal_button",store_modal_close:".store_modal_close",contact_all_stores_modal:"#contact_all_stores_modal",contact_all_stores_modal_button:"#contact_all_stores_modal_button",contact_all_stores_modal_close:"#contact_all_stores_modal_close",map_container:"#store_locator_map",map_min_height:300,store_locator_sidebar:'#store_locator_sidebar',store_locator_search_box:'#store_locator_search_box',result_list:"#store_locator_result_list",store_locator_address_field:'#store_locator_address_field',store_locator_name_search_field:'#store_locator_name_search_field',store_locator_find_stores_button:'#store_locator_find_stores_button',store_locator_loading:'#store_locator_loading',store_locator_filter_radius:'#store_locator_filter_radius',store_locator_filter_categories:'#store_locator_filter_categories',store_locator_filter:'#store_locator_filter',store_locator_filter_active_filter:'#store_locator_filter_active_filter',store_locator_filter_open_close:'#store_locator_filter_open_close',store_locator_result_open_close:'#store_locator_result_open_close',store_locator_filter_content:'#store_locator_filter_content',store_locator_filter_checkbox:'.store_locator_filter_checkbox',store_locator_filter_select:'.store_locator_filter_select',store_locator_along_route_btn:'.wordpress-store-locator-along-route-btn',store_locator_form_customer_address:'input[name="store_locator_form_customer_address"]',store_locator_form_store_select:'select[name="store_locator_form_store_select"]',store_locator_embedded_search:'#store_locator_embedded_search',store_locator_get_my_position:'#store_locator_get_my_position',store_locator_reset_filters:'#store_locator_reset_filters',store_locator_get_all_stores:'#store_locator_get_all_stores',store_locator_dragged_button:'#store_locator_dragged_button',store_locator_nearest_store:'#store_locator_nearest_store',store_locator_category_icon:'',earthRadi:{mi:3963.1676,km:6378.1,ft:2
20710925524.9,mt:6378100,"in":251106299,yd:6975174.98,fa:3487587.49,na:3443.89849,ch:317053.408,rd:1268213.63,fr:31705.3408},};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init();}
2072$.extend(Plugin.prototype,{init:function(){var that=this;this.window=$(window);this.currentURL=window.location.href;this.documentHeight=$(document).height();this.windowHeight=this.window.height();this.lastClickedButton='search';this.settings.mapDefaultZoom=parseInt(that.settings.mapDefaultZoom);this.isAlongRouteSearch=false;this.templateCache={};this.markers=[];this.ownMarker={};this.radiusCircle={};this.categories={};this.onlineOffline='all';this.filter={};this.address="";this.resultListScrollingActive=false;this.product_id=false;if(!that.isEmpty(that.getParameterByName('product-id'))){this.product_id=that.getParameterByName('product-id');};this.settings.hideStoresOnFirstView=false;this.isFirsView=true;if(this.settings.api=="here"){this.platform=new H.service.Platform({apikey:this.settings.apiKey});this.searchService=this.platform.getSearchService();}else{this.geocoder=new google.maps.Geocoder();}
2073this.mapDiv=$(this.settings.store_locator);if(!this.isEmpty(this.mapDiv)){var defaultLat=this.mapDiv.data('default-lat');
2073if(defaultLat&&defaultLat!=""){this.settings.mapDefaultLat=defaultLat;}
2074var defaultLng=this.mapDiv.data('default-lng');if(defaultLng&&defaultLng!=""){this.settings.mapDefaultLng=defaultLng;}
2075var defaultZoom=this.mapDiv.data('default-zoom');if(defaultZoom&&defaultZoom!=""){this.settings.mapDefaultZoom=defaultZoom;}
2076var hideStoresOnFirstView=this.mapDiv.data('hide-stores-on-first-view');if(hideStoresOnFirstView&&hideStoresOnFirstView=="yes"){this.settings.hideStoresOnFirstView=true;}
2077var disableAutoGeolocation=this.mapDiv.data('disable-auto-geolocation');if(disableAutoGeolocation&&disableAutoGeolocation=="yes"){this.settings.disableAutoGeolocation=true;}
2078this.setResultListMaxHeight();if(!this.isEmpty($(this.settings.store_modal_button))){this.initModal(function(){that.initStoreLocator();that.setResultListMaxHeight();});}else{$(this.settings.store_modal_close).hide();that.initStoreLocator();}
2079that.initContactAllStoresModal();}
2080if(!this.isEmpty($(this.settings.store_locator_form_store_select))){that.initForm();}
2081if(!this.isEmpty($(this.settings.store_locator_embedded_search))){that.initEmbeddedSearch();}
2082if(!this.isEmpty($(this.settings.store_locator_nearest_store))){that.initNearestStore();}
2083if(this.settings.mobileMapSwitcher=="1"){that.mobileMenuSwitcher();var mq=window.matchMedia('(max-width: 767.98px)');mq.addEventListener('change',()=>that.mobileMenuSwitcher());}
2084that.initListing();that.initList();},mobileMenuSwitcher:function(){var mq=window.matchMedia('(max-width: 767.98px)');if(!mq.matches){$('#store_locator_result_list_box').show();$('#store_locator_main').show();return;}
2085$('#wordpress-store-locator-tab-list').on('click',function(e){e.preventDefault();$('#store_locator_result_list_box').show();$('#store_locator_main').hide();$('#wordpress-store-locator-tab-map').removeClass('wordpress-store-locator-tab-active');$('#wordpress-store-locator-tab-list').addClass('wordpress-store-locator-tab-active');}).trigger('click');$('#wordpress-store-locator-tab-map').on('click',function(e){e.preventDefault();$('#store_locator_result_list_box').hide();$('#store_locator_main').show();$('#wordpress-store-locator-tab-list').removeClass('wordpress-store-locator-tab-active');$('#wordpress-store-locator-tab-map').addClass('wordpress-store-locator-tab-active');});},setResultListMaxHeight:function(){var resultList=$(this.settings.result_list);if(this.settings.resultListAutoHeight=="0"){return;}
2086var store_locator_sidebar=$(this.settings.store_locator_sidebar);var height=store_locator_sidebar.height()+100;if(this.settings.mapFullHeight=="1"){height=this.windowHeight-$(this.settings.store_locator_search_box).height();var resultListTitle=$('.store_locator_result_list_title');if(resultListTitle.length>0){height=height-resultListTitle.outerHeight();}}
2087var store_locator_filter_content=$(this.settings.store_locator_filter_content);if(store_locator_filter_content.is(":hidden")){height=height+$('#store_locator_filter').height()-50;}
2088if(this.settings.layout=="7"||this.settings.layout=="8"||this.settings.layout=="9"||this.settings.layout=="10"||this.settings.layout=="11"||this.settings.layout=="12"){height=$('#store_locator_main').height()+$('#store_locator_search_box').height()+100;;}
2089resultList.css('max-height',height);},initModal:function(callback){var store_modal=$(this.settings.store_modal);var store_modal_button=$(this.settings.store_modal_button);var store_modal_close=$(this.settings.store_modal_close);var that=this;store_modal_button.on('click',function()
2090{that.product_id=$(this).data('product-id');store_modal.show();store_modal.modal('show');callback();});store_modal_close.on('click',function()
2091{store_modal.hide();$('.modal-backdrop').remove();store_modal.modal('hide');});},initContactAllStoresModal:function(callback){var contact_all_stores_modal=$(this.settings.contact_all_stores_modal);var contact_all_stores_modal_button=$(this.settings.contact_all_stores_modal_button);var contact_all_stores_modal_close=$(this.settings.contact_all_stores_modal_close);var that=this;contact_all_stores_modal_button.on('click',function(e)
2092{e.preventDefault();var resultListItems=$('.store_locator_result_list_item');
2092if(resultListItems.length<1){alert(that.settings.searchBoxContactAllStoresNoStoresText);return false;}
2093var toEmails="";resultListItems.each(function(i,index){var email=$(this).find('.store_locator_email a').attr('href');if(email&&email!=""){email=email.replace('mailto:','');toEmails+=email+',';}});contact_all_stores_modal.show();contact_all_stores_modal.modal('show');contact_all_stores_modal.find('input[name="'+that.settings.searchBoxContactAllStoresFieldName+'"]').val(toEmails);});contact_all_stores_modal_close.on('click',function()
2094{contact_all_stores_modal.hide();$('.modal-backdrop').remove();contact_all_stores_modal.modal('hide');});},initStoreLocator:function(){var that=this;if(that.isEmpty(that.map)){that.initMap(function(){if(that.settings.searchBoxAutocomplete==="1"){that.initAutocomplete();}
2095that.initStoreLocatorButton();that.initGetCurrentPositionLink();that.initResetFiltersButton();that.initGetAllStoresLink();that.initAlongRoute();that.autoHeightMap();that.watchMapDragged();that.watchAddressFieldEmpty();that.watchDraggedButton();that.initFilter();that.initResults();var predefinedAddress=that.getParameterByName('location');if(that.isEmpty(predefinedAddress)&&$(that.settings.store_locator_address_field).length>0){var predefinedAddress=$(that.settings.store_locator_address_field).val();}
2096if(that.settings.searchBoxAutolocate==="1"&&that.isEmpty(predefinedAddress)&&!that.settings.disableAutoGeolocation){if(that.settings.searchBoxSaveAutolocate==="1"){that.getCurrentPosition();}else{that.getCurrentPosition(false);}}else{if(!that.isEmpty(predefinedAddress)){var addressField=$(that.settings.store_locator_address_field);addressField.val(predefinedAddress);var addressFromField=$('#store_locator_from_field');if(addressFromField.length>0){addressFromField.val(predefinedAddress);}
2097that.geocodeAddress(predefinedAddress);}else{if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(Number(that.settings.mapDefaultLat),Number(that.settings.mapDefaultLng));}
2098that.setCurrentPosition(currentPosition);}}});}},initMap:function(callback){var mapContainer=$(this.settings.map_container);var mapDefaultZoom=this.settings.mapDefaultZoom;var mapDefaultType=this.settings.mapDefaultType;var mapDefaultLat=Number(this.settings.mapDefaultLat);var mapDefaultLng=Number(this.settings.mapDefaultLng);var mapStyling=this.settings.mapStyling;if(!this.isEmpty(mapStyling)){mapStyling=JSON.parse(mapStyling);}else{mapStyling="";}
2099if(this.settings.api=="here"){var hereStyleUrl=this.settings.hereStyleUrl;const defaultLayers=this.platform.createDefaultLayers();var baseLayer;if(hereStyleUrl&&hereStyleUrl.length>0){var omvService=this.platform.getOMVService({path:'v2/vectortiles/core/mc'});var style=new H.map.render.harp.Style(hereStyleUrl);baseLayer=omvService.createLayer(style,{engineType:H.Map.EngineType.HARP});}else{baseLayer=defaultLayers.vector.normal.map;}
2100var hereMapOptions={zoom:this.settings.mapDefaultZoom,center:{lat:Number(this.settings.mapDefaultLat),lng:Number(this.settings.mapDefaultLng)}};if(hereStyleUrl&&hereStyleUrl.length>0){hereMapOptions.engineType=H.Map.EngineType.HARP;}
2101this.map=new H.Map(document.querySelector(this.settings.map_container),baseLayer,hereMapOptions);const behavior=new H.mapevents.Behavior(new H.mapevents.MapEvents(this.map));try{this.ui=H.ui.UI.createDefault(this.map,defaultLayers);}catch(e){this.ui=new H.ui.UI(this.map);if(this.settings.mapDisableZoomControl=="0"){this.ui.addControl('zoom',new H.ui.ZoomControl({alignment:H.ui.LayoutAlignment.RIGHT_MIDDLE}));this.ui.addControl('scalebar',new H.ui.ScaleBar({alignment:H.ui.LayoutAlignment.RIGHT_BOTTOM}));}}}else{var options={zoom:mapDefaultZoom,center:new google.maps.LatLng(mapDefaultLat,mapDefaultLng),mapTypeId:google.maps.MapTypeId[mapDefaultType],options:{gestureHandling:'cooperative'},styles:mapStyling,mapId:'wordpress-store-locator',zoomControl:true,panControl:true,scaleControl:true,streetViewControl:true,fullscreenControl:true,cameraControl:true,rotateControl:true,mapTypeControl:true,};
2101if(this.settings.mapDisablePanControl=="1"){options.panControl=false;}
2102if(this.settings.mapDisableZoomControl=="1"){options.zoomControl=false;}
2103if(this.settings.mapDisableScaleControl=="1"){options.scaleControl=false;}
2104if(this.settings.mapDisableStreetViewControl=="1"){options.streetViewControl=false;}
2105if(this.settings.mapDisableFullscreenControl=="1"){options.fullscreenControl=false;}
2106if(this.settings.mapDisableMapTypeControl=="1"){options.mapTypeControl=false;}
2107this.map=new google.maps.Map(mapContainer[0],options);}
2108callback();},getCurrentPosition:function(useCookie){var that=this;var ip_geoservice="https://get.geojs.io/v1/ip/geo.json";var cookieLat=that.getCookie('store_locator_lat');var cookieLng=that.getCookie('store_locator_lng');var currentPosition;if(that.settings.disableAutoGeolocation){return;}
2109that.maybeShowLoading();if(typeof(useCookie)==='undefined')useCookie=true;if(cookieLat!==""&&cookieLng!==""&&useCookie===true){if(store_locator_options.api=="here"){currentPosition={lat:Number(cookieLat),lng:Number(cookieLng)};}else{currentPosition=new google.maps.LatLng(cookieLat,cookieLng);}}
2110if(typeof(currentPosition)=="undefined"){if(navigator.geolocation){var options={enableHighAccuracy:true,timeout:8000,maximumAge:0};navigator.geolocation.getCurrentPosition(function(position){if(store_locator_options.api=="here"){var currentPosition={lat:Number(position.coords.latitude),lng:Number(position.coords.longitude)};}else{var currentPosition=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);}
2111document.cookie="store_locator_lat="+position.coords.latitude;document.cookie="store_locator_lng="+position.coords.longitude;that.setCurrentPosition(currentPosition,true);},function(error){console.log(error);if(that.settings.searchBoxAutolocateIP=="1"){console.log('Getting position via IP!');$.getJSON(ip_geoservice).done(function(location){var ipLat=location.latitude;var ipLng=location.longitude;if(ipLat==""||ipLng==""){if(that.settings.searchBoxAutolocateShowAlert=="1"){alert('Could not find your position. Please turn on Browser Geolocation or enter your address manually.');}else{if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(Number(that.settings.mapDefaultLat),Number(that.settings.mapDefaultLng));}
2112that.setCurrentPosition(currentPosition);}
2113that.maybeShowLoading();return;}
2114if(store_locator_options.api=="here"){var currentPosition={lat:Number(ipLat),lng:Number(ipLng)};}else{var currentPosition=new google.maps.LatLng(ipLat,ipLng);}
2115document.cookie="store_locator_lat="+ipLat;document.cookie="store_locator_lng="+ipLng;that.setCurrentPosition(currentPosition,true);});}else{console.log('HTML5 Position disabled');if(that.settings.searchBoxAutolocateShowAlert=="1"){alert('Could not find your position. Please turn on Browser Geolocation or enter your address manually.');}else{if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(Number(that.settings.mapDefaultLat),Number(that.settings.mapDefaultLng));}
2116that.setCurrentPosition(currentPosition);}
2117that.maybeShowLoading();}},options);}else{if(that.settings.searchBoxAutolocateIP=="1"){console.log('Browser Geolocation not supported! Getting position via IP');$.getJSON(ip_geoservice).done(function(location){var ipLat=location.latitude;var ipLng=location.longitude;if(ipLat==""||ipLng==""){if(that.settings.searchBoxAutolocateShowAlert=="1"){alert('Could not find your position. Please turn on Browser Geolocation or enter your address manually.');}else{if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(Number(that.settings.mapDefaultLat),Number(that.settings.mapDefaultLng));}
2118that.setCurrentPosition(currentPosition);}
2119that.maybeShowLoading();return;}
2120if(store_locator_options.api=="here"){var currentPosition={lat:Number(ipLat),lng:Number(ipLng)};}else{var currentPosition=new google.maps.LatLng(ipLat,ipLng);}
2121document.cookie="store_locator_lat="+ipLat;document.cookie="store_locator_lng="+ipLng;that.setCurrentPosition(currentPosition,true);});}else{console.log('Browser Geolocation not supported!');
2121if(that.settings.searchBoxAutolocateShowAlert=="1"){alert('Could not find your position. Please turn on Browser Geolocation or enter your address manually.');}else{if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(Number(that.settings.mapDefaultLat),Number(that.settings.mapDefaultLng));}
2122that.setCurrentPosition(currentPosition);}
2123that.maybeShowLoading();}}}else{that.setCurrentPosition(currentPosition,true);}},setCurrentPosition:function(latlng,override){var that=this;var store_locator_address_field=$(this.settings.store_locator_address_field);this.currentPosition=latlng;if(store_locator_options.api=="here"){this.lat=Number(latlng.lat);this.lng=Number(latlng.lng);}else{this.lat=latlng.lat();this.lng=latlng.lng();}
2124if(override){that.maybeShowLoading();}
2125if((store_locator_address_field.val()===""||override)&&that.settings.searchBoxEmptyAddressByDefault=="0"){this.geocodeLatLng(function(address){store_locator_address_field.val(address);});}
2126if(!this.isEmpty(this.ownMarker)){if(store_locator_options.api=="here"){this.map.removeObject(this.ownMarker);}
2127this.ownMarker=null;}
2128const image=document.createElement("img");image.src=this.settings.mapDefaultUserIcon;image.setAttribute("alt",'User');if(store_locator_options.api=="here"){const pos={lat:Number(latlng.lat??latlng.lat()),lng:Number(latlng.lng??latlng.lng())};if(!that.isEmpty(this.ownMarker)){console.log(this.ownMarker);this.map.removeObject(this.ownMarker);this.ownMarker=null;}
2129const img=document.createElement("img");img.src=this.settings.mapDefaultUserIcon;img.alt="User";img.style.width="32px";img.style.height="32px";const domIcon=new H.map.DomIcon(img);this.ownMarker=new H.map.DomMarker(pos,{icon:domIcon});this.ownMarker.setData({title:that.settings.trans_your_position});this.map.addObject(this.ownMarker);}else{this.ownMarker=new google.maps.marker.AdvancedMarkerElement({map:this.map,position:latlng,title:that.settings.trans_your_position,content:image});}
2130if(that.settings.hideStoresOnFirstView&&that.isFirsView){that.isFirsView=false;return;}
2131this.drawRadiusCircle(true);this.getStores();},drawRadiusCircle:function(inital){var that=this;var mapRadius;var distanceUnit=this.settings.mapDistanceUnit;var earthRadius=this.settings.earthRadi[distanceUnit];var selectedRadius=$(this.settings.store_locator_filter_radius).find(":selected").val();if(!this.isEmpty(selectedRadius)){this.radius=parseFloat(selectedRadius);}else{this.radius=parseFloat(this.settings.mapRadius);}
2132if(store_locator_options.api=="here"){if(this.radiusCircle){try{this.map.removeObject(this.radiusCircle);}catch(e){}
2133this.radiusCircle=null;}}else{if(!this.isEmpty(this.radiusCircle)&&typeof(this.radiusCircle.setMap)!=="undefined"){this.radiusCircle.setMap(null);}}
2134if(this.settings.mapDrawRadiusCircle==="0"){if(this.settings.mapRadiusToZoom==="1"){this.map.setZoom(this.radiusToZoom(this.radius));}
2135return false;}
2136mapRadius=(this.radius/earthRadius)*this.settings.earthRadi.mt;if(store_locator_options.api=="here"){var center=this.currentPosition;if(!center||typeof center.lat==="undefined"){center={lat:Number(this.lat),lng:Number(this.lng)};}
2137var fillHex=that.settings.mapDrawRadiusCircleFillColor;var strokeHex=that.settings.mapDrawRadiusCircleStrokeColor;var fillOpacity=that.settings.mapDrawRadiusCircleFillOpacity/100;var strokeOpacity=that.settings.mapDrawRadiusCircleStrokeOpacity/100;var fillRgb=this.hexToRgb(fillHex);var strokeRgb=this.hexToRgb(strokeHex);this.radiusCircle=new H.map.Circle(center,mapRadius,{style:{fillColor:"rgba("+fillRgb.r+","+fillRgb.g+","+fillRgb.b+","+fillOpacity+")",strokeColor:"rgba("+strokeRgb.r+","+strokeRgb.g+","+strokeRgb.b+","+strokeOpacity+")",lineWidth:1}});this.map.addObject(this.radiusCircle);if(inital!==true){var bounds=this.radiusCircle.getBoundingBox();if(bounds){this.map.getViewModel().setLookAtData({bounds:bounds});}}}
2138else{this.radiusCircle=new google.maps.Circle({center:this.currentPosition,clickable:true,draggable:false,editable:false,fillColor:that.settings.mapDrawRadiusCircleFillColor,fillOpacity:that.settings.mapDrawRadiusCircleFillOpacity/100,map:this.map,radius:mapRadius,strokeColor:that.settings.mapDrawRadiusCircleStrokeColor,strokeOpacity:that.settings.mapDrawRadiusCircleStrokeOpacity/100,strokeWeight:1});if(inital!==true){this.map.fitBounds(this.radiusCircle.getBounds());}}},hexToRgb:function(hex){hex=hex.replace('#','');if(hex.length===3){hex=hex.split('').map(x=>x+x).join('');}
2139var bigint=parseInt(hex,16);return{r:(bigint>>16)&255,g:(bigint>>8)&255,b:bigint&255};},initAutocomplete:function(){var that=this;var addressField=$(this.settings.store_locator_address_field);var countryRestrict=this.settings.autocompleteCountryRestrict;var type=this.settings.autocompleteType;var map=this.map;if(!addressField){return;}
2140if(store_locator_options.api=="here"){if(!this.searchService){console.error("HERE searchService missing. Init platform.getSearchService() first.");return;}
2141var iso2to3={DE:"DEU",AT:"AUT",CH:"CHE",NL:"NLD",BE:"BEL",FR:"FRA",IT:"ITA",ES:"ESP",PL:"POL",CZ:"CZE",US:"USA",CA:"CAN",GB:"GBR",AU:"AUS",NZ:"NZL"};var acId=addressField.attr("id")||("here_ac_"+Math.random().toString(16).slice(2));addressField.attr("data-here-ac-id",acId);var parent=addressField.parent();if(parent.css("position")==="static")parent.css("position","relative");parent.find(".here-autocomplete-list[data-for='"+acId+"']").remove();var list=$("<div/>",{class:"here-autocomplete-list","data-for":acId}).css({position:"absolute",left:0,right:0,top:(addressField.position().top+addressField.outerHeight()),zIndex:99999,background:"#fff",border:"1px solid #ccc",borderTop:"none",display:"none",maxHeight:"240px",overflowY:"auto"});parent.append(list);var lastItems=[];var activeIndex=-1;var timer=null;addressField.on("input",function(){var q=addressField.val();activeIndex=-1;if(!q||q.length<3){list.hide().empty();return;}
2142if(timer)clearTimeout(timer);timer=setTimeout(function(){var at=(function(){try{var c=map.getCenter();return c.lat+","+c.lng;}catch(e){return Number(that.settings.mapDefaultLat)+","+Number(that.settings.mapDefaultLng);}})();var params={q:q,at:at,limit:6};if(countryRestrict&&countryRestrict!==""){var iso3=countryRestrict.split(",").map(s=>
2142s.trim().toUpperCase()).filter(Boolean).map(c=>(c.length===2?(iso2to3[c]||null):(c.length===3?c:null))).filter(Boolean);if(iso3.length){params.in="countryCode:"+iso3.join(",");}}
2143that.searchService.autosuggest(params,function(result){lastItems=(result&&result.items)?result.items:[];list.empty();var shown=0;var allowedTypes={locality:1,administrativeArea:1,houseNumber:1,street:1,postalCode:1};lastItems.forEach(function(item,idx){if(!item)return;if(!allowedTypes[item.resultType])return;var label=(item.address&&item.address.label)?item.address.label:(item.title||"");if(!label)return;if(shown>=6)return;var row=$("<div/>",{class:"here-autocomplete-item",text:label}).css({padding:"8px 10px",cursor:"pointer"});row.on("mouseenter",function(){list.find(".here-autocomplete-item").css("background","#fff");$(this).css("background","#f3f3f3");activeIndex=idx;});row.on("mousedown",function(e){e.preventDefault();addressField.val(label);if(item.position&&typeof item.position.lat==="number"){that.setCurrentPosition({lat:item.position.lat,lng:item.position.lng});}else{that.geocodeAddress(label);}
2144list.hide().empty();});list.append(row);shown++;});if(shown>0)list.show();else list.hide().empty();},function(error){console.error("HERE autosuggest error",error);list.hide().empty();});},150);});addressField.on("keydown",function(e){if(!list.is(":visible")){if((e.key==="Enter"||e.keyCode===13)&&addressField.val()){e.preventDefault();that.geocodeAddress(addressField.val());}
2145return;}
2146var items=list.find(".here-autocomplete-item");if(e.key==="ArrowDown"||e.keyCode===40){e.preventDefault();if(!items.length)return;activeIndex=Math.min(activeIndex+1,items.length-1);items.css("background","#fff").eq(activeIndex).css("background","#f3f3f3");return;}
2147if(e.key==="ArrowUp"||e.keyCode===38){e.preventDefault();if(!items.length)return;activeIndex=Math.max(activeIndex-1,0);items.css("background","#fff").eq(activeIndex).css("background","#f3f3f3");return;}
2148if(e.key==="Enter"||e.keyCode===13){e.preventDefault();if(!items.length){that.geocodeAddress(addressField.val());list.hide().empty();return;}
2149if(that.settings.searchBoxAutocompleteFirstResultOnEnter=="1"){var pickIndex=(activeIndex>=0)?activeIndex:0;var pickItem=lastItems[pickIndex];var pickLabel=pickItem&&pickItem.address&&pickItem.address.label?pickItem.address.label:(pickItem&&pickItem.title?pickItem.title:addressField.val());addressField.val(pickLabel);if(pickItem&&pickItem.position&&typeof pickItem.position.lat==="number"){that.setCurrentPosition({lat:pickItem.position.lat,lng:pickItem.position.lng});}else{that.geocodeAddress(pickLabel);}}else{that.geocodeAddress(addressField.val());}
2150list.hide().empty();return;}
2151if(e.key==="Escape"||e.keyCode===27){list.hide().empty();}});$(document).on("mousedown",function(e){if($(e.target).closest(".here-autocomplete-list, "+that.settings.store_locator_address_field).length===0){list.hide().empty();}});addressField.on("blur",function(){setTimeout(function(){list.hide().empty();},120);});var predefinedAddress=that.getParameterByName('location');if(!that.isEmpty(predefinedAddress)){addressField.val(predefinedAddress);that.geocodeAddress(predefinedAddress);}}else{var autocompleteOptions={fields:["name","geometry.location","place_id","formatted_address"]};if(!that.isEmpty(countryRestrict)){autocompleteOptions.componentRestrictions={'country':countryRestrict.split(',')};}
2152if(!that.isEmpty(type)){autocompleteOptions.types=[type];}else{autocompleteOptions.types=['geocode'];}
2153var autocomplete=new google.maps.places.Autocomplete(addressField[0],autocompleteOptions);autocomplete.bindTo('bounds',map);if($('#store_locator_from_field').length>0){var autocompleteFrom=new google.maps.places.Autocomplete($('#store_locator_from_field')[0],autocompleteOptions);autocompleteFrom.bindTo('bounds',map);autocompleteFrom.addListener('place_changed',function(e){$(that.settings.store_locator_along_route_btn).trigger('click');});var autocompleteTo=new google.maps.places.Autocomplete($('#store_locator_to_field')[0],autocompleteOptions);autocompleteTo.bindTo('bounds',map);autocompleteTo.addListener('place_changed',function(e){$(that.settings.store_locator_along_route_bt
2153n).trigger('click');});}
2154autocomplete.addListener('place_changed',function(e){var place=autocomplete.getPlace();if(!that.isEmpty(place.formatted_address)){that.geocodeAddress(place.formatted_address);}else{if(that.settings.searchBoxAutocompleteFirstResultOnEnter=="1"){var firstAutoCompleteResult=$(".pac-container .pac-item:first").html();firstAutoCompleteResult=firstAutoCompleteResult.replace(/<\/span>/g,' ');firstAutoCompleteResult=firstAutoCompleteResult.replace(/<[^>]+>/g,'');firstAutoCompleteResult=firstAutoCompleteResult.trim().replace(/\s+/g,' ');if(firstAutoCompleteResult){$('#store_locator_address_field').val(firstAutoCompleteResult);that.geocodeAddress(firstAutoCompleteResult);}else{that.geocodeAddress(place.name);}}else{that.geocodeAddress(place.name);}}});var predefinedAddress=that.getParameterByName('location');if(!that.isEmpty(predefinedAddress)){addressField.val(predefinedAddress);that.geocodeAddress(predefinedAddress);}}},initStoreLocatorButton:function(){var that=this;var button=$(this.settings.store_locator_find_stores_button);var addressField=$(this.settings.store_locator_address_field);var searchStoreNameField=$(this.settings.store_locator_name_search_field);var currentAddress;that.searchStoreName='';addressField.on('keypress',function(e){if(e.keyCode==13){button.trigger('click');}});button.on('click',function(e){e.preventDefault();currentAddress=addressField.val();currentAddress=addressField.val();that.lastClickedButton='search';if(that.directionsRenderer){that.directionsRenderer.setMap(null);}
2155if(that.isEmpty(currentAddress)&&!that.isEmpty(searchStoreNameField)&&!that.isEmpty(searchStoreNameField.val())){that.searchByStoreName(searchStoreNameField.val())}else{that.geocodeAddress(currentAddress);}});},watchAddressFieldEmpty:function(){var that=this;var address_field=$(that.settings.store_locator_address_field);address_field.on('keyup',function(e){var $this=$(this);var val=$this.val()
2156if(val==""){$this.css('border','2px solid red');}else{$this.css('border','1px solid #eee');}});},initGetCurrentPositionLink:function(){var that=this;var store_locator_get_my_position=$(this.settings.store_locator_get_my_position);store_locator_get_my_position.on('click',function(e){e.preventDefault();that.getCurrentPosition(false);});},initResetFiltersButton:function(update){var that=this;var store_locator_reset_filters=$(this.settings.store_locator_reset_filters);store_locator_reset_filters.on('click',function(e){e.preventDefault();that.resetFilters(true);});},resetFilters:function(update){var that=this;that.categories={};that.filter={};that.onlineOffline='all';$(that.settings.store_locator_filter_categories+' option:selected').removeAttr('selected');$('.store_locator_category_filter_image').removeClass('store_locator_category_filter_image_selected');$('.store-locator-online-offline-filter').val('all');var filterCheckboxes=$(that.settings.store_locator_filter_checkbox);var filterSelects=$(that.settings.store_locator_filter_select);filterCheckboxes.each(function(i,item){var checkbox=$(item);checkbox.prop('checked',false);});filterSelects.each(function(i,item){var filterSelect=$(item);filterSelect.find('option:selected').removeAttr('selected');});if(update){that.updateActiveFilter();that.getStores();}},initGetAllStoresLink:function(){var that=this;var store_locator_get_all_stores=$(this.settings.store_locator_get_all_stores);store_locator_get_all_stores.on('click',function(e){e.preventDefault();if(that.settings.searchBoxShowShowAllStoresKeepFilter=="1"){that.lat=that.settings.searchBoxShowShowAllStoresLat;that.lng=that.settings.searchBoxShowShowAllStoresLng;that.radius=9999999;that.getStores();}else{that.maybeShowLoading();that.getAllStores('','',function(response){if(!that.isEmpty(that.radiusCircle)&&typeof(that.radiusCircle.setMap)!=="undefined"){that.radiusCircle.setMap(null);}
2157if(that.directionsRenderer){that.directionsRenderer.setMap(null);}
2158that.map.setZoom(parseInt(that.settings.searchBoxShowShowAllStoresZoom));if(store_locator_options.api=="here"){var allStoresPosition={lat:Number(that.settings.searchBoxShowShowAllStoresLat),lng:Number(that.settings.searchBoxShowShowAllStoresLng)};}else{var allStoresPosition=new google.maps.LatLng(Number(that.settings.searchBoxShowShowAllStoresLat),Number(that.settings.searchBoxShowShowAllStoresLng));}
2159that.map.setCenter(allStoresPosition);that.createMarker(response);that.createResultList(response);that.maybeShowLoading();},false);}});},initAlongRoute:function(){var that=this;var alongRouteContainer=$('.wordpress-store-locator-along-route-container');if(alongRouteContainer.length<1){return;}
2160that.directionsService=new google.maps.DirectionsService();that.directionsRenderer=new google.maps.DirectionsRenderer();that.directionsRenderer.setMap(null);
2160$(document).on('click',that.settings.store_locator_along_route_btn,function(e){e.preventDefault();var from=$('#store_locator_from_field').val();var to=$('#store_locator_to_field').val();if(that.isEmpty(from)||that.isEmpty(to)){return false;}
2161that.lastClickedButton='alongRoute';that.radiusCircle.setMap(null);while(that.markers.length){that.markers.pop().setMap(null);}
2162var request={origin:from,destination:to,travelMode:"DRIVING"};that.directionsService.route(request,function(result,status){if(status=="OK"){that.directionsRenderer.setDirections(result);that.directionsRenderer.setMap(that.map);var waypoints=that.decodePolyline(result.routes[0].overview_polyline);that.isAlongRouteSearch=true;var tmp=[];for(let j=0;j<waypoints.length;j+=parseInt(that.settings.searchBoxAlongRouteWaypointsInterval)){tmp.push(waypoints[j]);}
2163waypoints=tmp;var searchStoreNameField=$(that.settings.store_locator_name_search_field);var searchStoreName='';if(searchStoreNameField.length>0){searchStoreName=searchStoreNameField.val();}
2164that.maybeShowLoading();jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_along_route_stores',latLngs:waypoints,categories:that.categories,filter:that.filter,name:searchStoreName,product_id:that.product_id,},success:function(response){that.createMarker(response);that.createResultList(response);that.maybeShowLoading();if(window.history.replaceState){that.buildReplaceState();}
2165that.createMarkerClusterer();that.isAlongRouteSearch=false;},error:function(jqXHR,textStatus,errorThrown){that.maybeShowLoading();alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});}else{alert('Could not calculate Route: '+status);}});});},maybeShowLoading:function(){var store_locator_loading=$(this.settings.store_locator_loading);if(store_locator_loading.hasClass('store_locator_hidden'))
2166{store_locator_loading.removeClass('store_locator_hidden');}else{store_locator_loading.addClass('store_locator_hidden');}},geocodeAddress:function(address){var that=this;var countryRestrict=that.settings.autocompleteCountryRestrict;if(store_locator_options.api=="here"){if(typeof that.map.removeLayer==="function"&&that.markerCluster instanceof H.map.layer.ObjectLayer){that.map.removeLayer(that.markerCluster);that.markerCluster=null;}
2167if(!address){jQuery(that.settings.store_locator_address_field).css("border","2px solid red");return;}
2168var params={q:address};if(countryRestrict){var list=countryRestrict.split(",").map(s=>s.trim().toUpperCase()).filter(Boolean);var iso2to3={DE:"DEU",AT:"AUT",CH:"CHE",NL:"NLD",BE:"BEL",FR:"FRA",IT:"ITA",ES:"ESP",PL:"POL",CZ:"CZE",US:"USA",CA:"CAN",GB:"GBR",AU:"AUS",NZ:"NZL"};var iso3=list.map(c=>(c.length===2?(iso2to3[c]||c):c));params.in="countryCode:"+iso3.join(",");}
2169that.searchService.geocode(params,function(result){if(result.items&&result.items.length>0){var pos=result.items[0].position;that.setCurrentPosition({lat:pos.lat,lng:pos.lng});}else{console.warn("HERE geocode: keine Treffer für",address);}},function(error){console.error("HERE geocode error:",error);});}else{if(that.markerCluster){that.markerCluster.clearMarkers();}
2170if(address){if(!that.isEmpty(countryRestrict)){var address2={address:address,};}else{var address2={address:address,};}
2171this.geocoder.geocode(address2,function(results,status){if(status===google.maps.GeocoderStatus.OK){that.setCurrentPosition(results[0].geometry.location);}});}else{$(that.settings.store_locator_address_field).css('border','2px solid red');}}},openInfoBubble:function(marker,html){if(!this.ui){console.warn("HERE UI not initialized");return;}
2172this.ui.getBubbles().forEach(b=>this.ui.removeBubble(b));var position=marker.getGeometry?marker.getGeometry():marker.getPosition?marker.getPosition():null;if(!position){console.warn("No marker geometry for InfoBubble");return;}
2173var bubble=new H.ui.InfoBubble(position,{content:'<div style="width:450px;max-width:90vw;">'+html+'</div>'});this.ui.addBubble(bubble);},geocodeLatLng:function(callback){var that=this;if(store_locator_options.api=="here"){if(!this.searchService){console.error("HERE searchService missing");return;}
2174var lat=Number(this.lat);var lng=Number(this.lng);this.searchService.reverseGeocode({at:lat+","+lng},function(result){if(result.items&&result.items.length>0){var address=result.items[0].address.label;callback(address);}else{alert("No results found");}},function(error){alert("Reverse geocoder failed: "+error);});}else{var latlng={lat:this.lat,lng:this.lng};this.geocoder.geocode({'location':latlng},function(results,status){if(status===google.maps.GeocoderStatus.OK){if(results[1]){callback(results[1].formatted_address);}else{window.alert('No results found');}}else{window.alert('Geocoder failed due to: '+status);}});}},autoHeightMap:function(){var mapContainer=$(this.settings.map_container);if(this.settings.mapAutoHeight=="0"){mapContainer.css('height',this.settings.mapHeight);if(store_locator_options.api=="here"){this.map.getViewPort().resize();}else{google.maps.event.trigger(this.map,"resize");}
2175return;}
2176var store_locator_sidebar=$(this.settings.store_locator_sidebar);var mapHeight=$(store_locator_sidebar).height();if(mapHeight<this.settings.map_min_height){mapHeight=this.settings.map_min_height;}
2177if(this.settings.mapFullHeight=="1"){mapHeight=this.windowHeight;}
2178mapContainer.css('height',mapHeight);if(store_locator_options.api=="here"){this.map.getViewPort().resize();}else{google.maps.event.trigger(this.map,"resize");}},getStores:function(){var that=this;that.maybeShowLoading();var searchStoreNameField=$(this.settings.store_locator_name_search_field);var searchStoreName='';if(searchStoreNameField.length>0){searchStoreName=searchStoreNameField.val();}
2179if(!that.radius){that.drawRadiusCircle();}
2180jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_stores',lat:that.lat,lng:that.lng,radius:that.radius,categories:that.categories,filter:that.filter,online_offline:that.onlineOffline,name:searchStoreName,product_id:that.product_id,},success:function(response){that.createMarker(response);that.createResultList(response);that.maybeShowLoading();if(window.history.replaceState){that.buildReplaceState();}
2181if(that.onlineOffline=="online"){if(!that.isEmpty(that.radiusCircle)&&typeof(that.radiusCircle.setMap)!=="undefined"){that.radiusCircle.setMap(null);}
2182if(that.directionsRenderer){that.directionsRenderer.setMap(null);}
2183that.map.setZoom(parseInt(that.settings.onlineOfflineZoom));var allStoresPosition=new google.maps.LatLng(Number(that.settings.onlineOfflineLat),Number(that.settings.onlineOfflineLng));that.map.setCenter(allStoresPosition);}else{that.drawRadiusCircle();that.createMarkerClusterer();}
2184$('#store_locator_result_list').trigger('wordpress_store_locator_get_results_loaded');},error:function(jqXHR,textStatus,errorThrown){that.maybeShowLoading();alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},createMarkerClusterer:function(){var that=this;if(that.settings.mapMarkerClusterer!=="1"){return false;}
2185var zoom=that.settings.mapMarkerClustererMaxZoom=="-1"?null:that.settings.mapMarkerClustererMaxZoom;var size=that.settings.mapMarkerClustererSize=="-1"?null:that.settings.mapMarkerClustererSize;if(that.markerCluster){that.markerCluster.clearMarkers();}
2186let algorithm=new markerClusterer.GridAlgorithm({gridSize:size,maxZoom:zoom});that.markerCluster=new markerClusterer.MarkerClusterer({markers:that.markers,map:that.map,algorithm:algorithm,});},searchByStoreName:function(storeName){var that=this;that.maybeShowLoading();jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_stores_by_name',name:storeName,categories:that.categories,filter:that.filter,online_offline:that.onlineOffline,product_id:that.product_id,},success:function(response){that.createMarker(response);that.createResultList(response);that.maybeShowLoading();if(window.history.replaceState){that.buildReplaceState();}
2187that.drawRadiusCircle();that.createMarkerClusterer();},error:function(jqXHR,textStatus,errorThrown){that.maybeShowLoading();alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},createMarker:function(stores){var that=this;var storesLength=Object.keys(stores).length;var store;var i=0;var marker;var map=this.map;if(store_locator_options.api=="here"){var infowindow=new H.ui.InfoBubble({lat:0,lng:0},{content:""});}else{var infowindow=new google.maps.InfoWindow({content:""});}
2188if(!that.isAlongRouteSearch){if(store_locator_options.api=="here"){if(this.hereMarkerGroup){this.map.removeObject(this.hereMarkerGroup);this.hereMarkerGroup=null;}
2189this.markers=[];}else{while(this.markers.length){this.markers.pop().setMap(null);}}}
2190if(storesLength>0){if(store_locator_options.api=="here"){const group=new H.map.Group();for(i;i<storesLength;i++){store=stores[i];const icon=new H.map.Icon(store.ic||this.settings.mapDefaultIcon);const marker=new H.map.Marker({lat:store.lat,lng:store.lng},{icon});marker.setData(store);marker.addEventListener('tap',function(evt){var html=that.buildInfoContent(evt.target.getData());that.openInfoBubble(evt.target,html);});this.markers.push(marker);group.addObject(marker);}
2191map.addObject(group);}else{for(i;i<storesLength;i++){store=stores[i];if(!store){return true;}
2192this.store=store;store.position=new google.maps.LatLng(store.lat,store.lng);var markerElement={map:this.map,position:new google.maps.LatLng(store.lat,store.lng),title:store.na,}
2193if(!that.isEmpty(store.ic)){store.icon=store.ic;}else if(!that.isEmpty(that.settings.store_locator_category_icon)){store.icon=that.settings.store_locator_category_icon;}else{store.icon=that.settings.mapDefaultIcon;}
2194const image=document.createElement("img");image.src=store.icon;image.setAttribute("alt",store.na);markerElement.content=image;delete markerElement.icon;marker=new google.maps.marker.AdvancedMarkerElement(markerElement);this.markers.push(marker);if(this.settings.infowindowEnabled==="1"){this.createInfowindow(marker,map,infowindow,store);}}}}},buildInfoContent:function(store){var that=this;var infowindowLinkAction=this.settings.infowindowLinkAction;store.infowindowAction=store.gu;if(infowindowLinkAction=="web"){store.infowindowAction=store.we;}
2195if(infowindowLinkAction=="tel"){store.infowindowAction='tel:'+store.te;}
2196if(infowindowLinkAction=="email"){store.infowindowAction='mailto:'+store.em;}
2197if(infowindowLinkAction=="chat"){store.infowindowAction=store.ch;}
2198var infowindowLinkActionNewTab='';if(this.settings.infowindowLinkActionNewTab=="1"){infowindowLinkActionNewTab=' target="_blank" ';}
2199var premiumClass='';if(store.pr==="1"){premiumClass=' store-locator-is-premium';}
2200if(!that.isEmpty(that.settings.showContactStorePage)){var arr=that.settings.showContactStorePage.split('?');
2200if(arr.length>1&&arr[1]!==''){var showContactStorePage=that.settings.showContactStorePage+'&';}else{var showContactStorePage=that.settings.showContactStorePage+'?';}}
2201var customFields="";if(!that.isEmpty(store.cs)){customFields+='<div class="store_locator_custom_fields">';$.each(store.cs,function(i,item){customFields+='<span class="store_locator_custom_field">'+item.name+item.value+'<br></span>';});customFields+='</div>';}
2202var content='<div id="store_locator_infowindow_'+store.ID+'" class="store_locator_infowindow '+premiumClass+'">'+'<div class="store-locator-col-sm-'+that.settings.infowindowDetailsColumns+' store_locator_details">';if(this.settings.infowindowLinkAction!=="none"){content+='<a href="'+store.infowindowAction+'" '+infowindowLinkActionNewTab+'>'+'<p class="store_locator_name">'+store.na+' <i class="fas fa-chevron-right"></i></p>'+'</a>';}else{content+='<p class="store_locator_name">'+store.na+'</p>';}
2203if(!that.isEmpty(store.rt)){var rating=Math.round(store.rt);if(rating>5){rating=5;}
2204if(that.settings.showRatingLinkToForm=="1"){content+='<a href="'+store.gu+'#store-locator-review">';}
2205content+='<div class="store_locator_rating">';for(var i=0;i<rating;i++){content+='<span class="store_locator_rating_icon">★</span>';}
2206content+='('+rating+' / 5)</div>';if(that.settings.showRatingLinkToForm=="1"){content+='</a>';}}
2207var filterBadges="";if(!that.isEmpty(store.ca)){if(that.settings.showFilterCategoriesAsImage=="1"){filterBadges+='<p class="store_locator_store_category_images">';$.each(store.ca,function(i,item){filterBadges+='<img src="'+item+'" alt="Filter Image" />';});filterBadges+='</p>';}else{$.each(store.ca,function(i,item){filterBadges+=that.createBadge(item);});}}
2208if(!that.isEmpty(store.fi)){$.each(store.fi,function(i,item){filterBadges+=that.createBadge(item);});}
2209content+=!that.isEmpty(filterBadges)?'<p class="store_locator_badges">'+filterBadges+'</p>':'';content+=!that.isEmpty(store.dc)?'<span class="store_locator_distance">'+that.settings.showDistanceText+store.dc+'<br/></span>':'';content+=!that.isEmpty(store.ex)?'<p class="store_locator_excerpt">'+store.ex+'</p>':'';content+='<p class="store_locator_address">';if(that.settings.showAddressStyle=="american"){content+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';content+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';content+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+', </span>':'';content+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+' </span>':'';content+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'<br/></span>':'';content+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}else{content+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';content+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';content+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'</span>':'';content+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+'<br/></span>':'';content+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+'</span>':'';content+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}
2210content+='</p>';if(!that.isEmpty(store.aa)){content+='<p class="store_locator_after_address">'+store.aa+'</p>';}
2211content+='<p class="store_locator_contact">';content+=!that.isEmpty(store.te)?'<span class="store_locator_tel">'+that.settings.showTelephoneText+'<a href="tel:'+store.te+'">'+store.te+'</a><br/></span>':'';if(!that.isEmpty(store.em)){if(!that.isEmpty(store.emp)){content+='<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.emp+'</a><br/></span>';}else{content+='<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.em+'</a><br/></span>';}}
2212content+=!that.isEmpty(store.mo)?'<span class="store_locator_mobile">'+that.settings.showMobileText+'<a href="tel:'+store.mo+'">'+store.mo+'</a><br/></span>':'';content+=!that.isEmpty(store.fa)?'<span class="store_locator_fax">'+that.settings.showFaxText+store.fa+'<br/></span>':'';content+=!that.isEmpty(store.we)?'<span class="store_locator_website">'+that.settings.showWebsiteText+'<a href="'+store.we+'" target="_blank">'+store.we+'</a><br/></span>':'';content+='</p>';content+=customFields;
2212content+='</div>';if(!that.isEmpty(store.im)){if(this.settings.infowindowLinkAction!=="none"){content+='<a href="'+store.infowindowAction+'" '+infowindowLinkActionNewTab+' class="store-locator-col-sm-'+that.settings.infowindowImageColumns+' store_locator_image">'+'<img alt="'+store.na+'" src="'+store.im+'" class="img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />'+'</a>';}else{content+='<div class="store-locator-col-sm-'+that.settings.infowindowImageColumns+' store_locator_image">'+'<img alt="'+store.na+'" src="'+store.im+'" class="img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />'+'</div>';}}
2213if(!that.isEmpty(store.op)){content+='<div class="store-locator-col-sm-'+that.settings.infowindowOpeningHoursColumns+' store_locator_opening_hours">'+
2214that.createOpeningHoursTable(store.op,false)+'</div>';}
2215if(!that.isEmpty(store.op2)){content+='<div class="store-locator-col-sm-'+that.settings.infowindowOpeningHoursColumns+' store_locator_opening_hours2">'+
2216that.createOpeningHoursTable(store.op2,true)+'</div>';}
2217content+=!that.isEmpty(store.de)?'<div class="store-locator-col-sm-12 store_locator_description">'+store.de+'</div>':'';content+='<div class="store_locator_actions">';content+=!that.isEmpty(store.re)?store.re:'';if(that.settings.showGetDirectionEmptySource=="1"){content+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}else{content+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?saddr='+this.lat+','+this.lng+'&daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}
2218content+=!that.isEmpty(that.settings.showContactStorePage)?'<a href="'+showContactStorePage+'store_id='+store.ID+'&address='+encodeURIComponent($(that.settings.store_locator_address_field).val())+'&lat='+that.lat+'&lng='+that.lng+'" class="btn button btn-primary btn-lg store_locator_contact_store"><i class="fas fa-paper-plane"></i> '+that.settings.showContactStoreText+'</a>':'';content+=!that.isEmpty(store.te)?'<a href="tel:'+store.te+'" class="btn button btn-primary btn-lg store_locator_call_now"><i class="fas fa-phone"></i> '+that.settings.showCallNowText+'</a>':'';content+=!that.isEmpty(store.we)?'<a href="'+store.we+'" class="btn button btn-primary btn-lg store_locator_visit_website" target="_blank"><i class="fas fa-globe"></i> '+that.settings.showVisitWebsiteText+'</a>':'';content+=!that.isEmpty(store.em)?'<a href="mailto:'+store.em+'" class="btn button btn-primary btn-lg store_locator_write_email"><i class="fas fa-envelope"></i> '+that.settings.showWriteEmailText+'</a>':'';content+=!that.isEmpty(store.ch)?'<a href="'+store.ch+'" target="_blank" class="btn button btn-primary btn-lg store_locator_chat"><i class="fas fa-video"></i> '+that.settings.showChatText+'</a>':'';content+=!that.isEmpty(that.settings.showVisitStore)?'<a href="'+store.gu+'" class="btn button btn-primary btn-lg store_locator_visit_store"><i class="fas fa-long-arrow-alt-right"></i> '+that.settings.showVisitStoreText+'</a>':'';if(that.settings.singleStoreLivePositionActionButton=="1"&&!that.isEmpty(store.ll)){content+='<a href="'+store.gu+'#store_locator_single_map" class="btn button btn-primary btn-lg store_locator_show_live_position"><i class="fas fa-search-location"></i> '+that.settings.singleStoreLivePositionActionButtonText+'</a>';}
2219if(that.settings.showChooseInventory=="1"&&!that.isEmpty(store.mi)){content+='<a href="#" data-id="'+store.mi.id+'" data-name="'+store.mi.name+'" class="btn button btn-primary btn-lg woocommerce-multi-inventory-choose-location"><i class="fas fa-warehouse"></i> '+that.settings.showChooseInventoryText+'</a>';}
2220content+='</div>';content+='</div>';return content;},createInfowindow:function(marker,map,infowindow,store){var that=this;var infowindowLinkAction=this.settings.infowindowLinkAction;store.infowindowAction=store.gu;if(infowindowLinkAction=="web"){store.infowindowAction=store.we;}
2221if(infowindowLinkAction=="tel"){store.infowindowAction='tel:'+store.te;}
2222if(infowindowLinkAction=="email"){store.infowindowAction='mailto:'+store.em;}
2223if(infowindowLinkAction=="chat"){store.infowindowAction=store.ch;}
2224var infowindowLinkActionNewTab='';if(this.settings.infowindowLinkActionNewTab=="1"){infowindowLinkActionNewTab=' target="_blank" ';}
2225var premiumClass='';if(store.pr==="1"){premiumClass=' store-locator-is-premium';}
2226if(!that.isEmpty(that.settings.showContactStorePage)){var arr=that.settings.showContactStorePage.split('?');
2226if(arr.length>1&&arr[1]!==''){var showContactStorePage=that.settings.showContactStorePage+'&';}else{var showContactStorePage=that.settings.showContactStorePage+'?';}}
2227var customFields="";if(!that.isEmpty(store.cs)){customFields+='<div class="store_locator_custom_fields">';$.each(store.cs,function(i,item){customFields+='<span class="store_locator_custom_field">'+item.name+item.value+'<br></span>';});customFields+='</div>';}
2228var content='<div id="store_locator_infowindow_'+store.ID+'" class="store_locator_infowindow '+premiumClass+'">'+'<div class="store-locator-col-sm-'+that.settings.infowindowDetailsColumns+' store_locator_details">';if(this.settings.infowindowLinkAction!=="none"){content+='<a href="'+store.infowindowAction+'" '+infowindowLinkActionNewTab+'>'+'<p class="store_locator_name">'+store.na+' <i class="fas fa-chevron-right"></i></p>'+'</a>';}else{content+='<p class="store_locator_name">'+store.na+'</p>';}
2229if(!that.isEmpty(store.rt)){var rating=Math.round(store.rt);if(rating>5){rating=5;}
2230if(that.settings.showRatingLinkToForm=="1"){content+='<a href="'+store.gu+'#store-locator-review">';}
2231content+='<div class="store_locator_rating">';for(var i=0;i<rating;i++){content+='<span class="store_locator_rating_icon">★</span>';}
2232content+='('+rating+' / 5)</div>';if(that.settings.showRatingLinkToForm=="1"){content+='</a>';}}
2233var filterBadges="";if(!that.isEmpty(store.ca)){if(that.settings.showFilterCategoriesAsImage=="1"){filterBadges+='<p class="store_locator_store_category_images">';$.each(store.ca,function(i,item){filterBadges+='<img src="'+item+'" alt="Filter Image" />';});filterBadges+='</p>';}else{$.each(store.ca,function(i,item){filterBadges+=that.createBadge(item);});}}
2234if(!that.isEmpty(store.fi)){$.each(store.fi,function(i,item){filterBadges+=that.createBadge(item);});}
2235content+=!that.isEmpty(filterBadges)?'<p class="store_locator_badges">'+
2236filterBadges+'</p>':'';content+=!that.isEmpty(store.dc)?'<span class="store_locator_distance">'+that.settings.showDistanceText+store.dc+'<br/></span>':'';content+=!that.isEmpty(store.ex)?'<p class="store_locator_excerpt">'+''+store.ex+''+'</p>':'';content+='<p class="store_locator_address">';if(that.settings.showAddressStyle=="american"){content+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';content+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';content+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+', </span>':'';content+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+' </span>':'';content+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'<br/></span>':'';content+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}else{content+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';content+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';content+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'</span>':'';content+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+'<br/></span>':'';content+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+'</span>':'';content+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}
2237content+='</p>';if(!that.isEmpty(store.aa)){content+='<p class="store_locator_after_address">'+store.aa+'</p>';}
2238content+='<p class="store_locator_contact">';content+=!that.isEmpty(store.te)?'<span class="store_locator_tel">'+that.settings.showTelephoneText+'<a href="tel:'+store.te+'">'+store.te+'</a><br/></span>':'';if(!that.isEmpty(store.em)){if(!that.isEmpty(store.emp)){content+='<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.emp+'</a><br/></span>';}else{content+='<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.em+'</a><br/></span>';}}
2239content+=!that.isEmpty(store.mo)?'<span class="store_locator_mobile">'+that.settings.showMobileText+'<a href="tel:'+store.mo+'">'+store.mo+'</a><br/></span>':'';content+=!that.isEmpty(store.fa)?'<span class="store_locator_fax">'+that.settings.showFaxText+store.fa+'<br/></span>':'';content+=!that.isEmpty(store.we)?'<span class="store_locator_website">'+that.settings.showWebsiteText+'<a href="'+store.we+'" target="_blank">'+store.we+'</a><br/></span>':'';content+='</p>';content+=customFields;
2239content+='</div>';if(!that.isEmpty(store.im)){if(this.settings.infowindowLinkAction!=="none"){content+='<a href="'+store.infowindowAction+'" '+infowindowLinkActionNewTab+' class="store-locator-col-sm-'+that.settings.infowindowImageColumns+' store_locator_image">'+'<img alt="'+store.na+'" src="'+store.im+'" class="img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />'+'</a>';}else{content+='<div class="store-locator-col-sm-'+that.settings.infowindowImageColumns+' store_locator_image">'+'<img alt="'+store.na+'" src="'+store.im+'" class="img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />'+'</div>';}}
2240if(!that.isEmpty(store.op)){content+='<div class="store-locator-col-sm-'+that.settings.infowindowOpeningHoursColumns+' store_locator_opening_hours">'+
2241that.createOpeningHoursTable(store.op,false)+'</div>';}
2242if(!that.isEmpty(store.op2)){content+='<div class="store-locator-col-sm-'+that.settings.infowindowOpeningHoursColumns+' store_locator_opening_hours2">'+
2243that.createOpeningHoursTable(store.op2,true)+'</div>';}
2244content+=!that.isEmpty(store.de)?'<div class="store-locator-col-sm-12 store_locator_description">'+''+store.de+''+'</div>':'';content+='<div class="store_locator_actions">';content+=!that.isEmpty(store.re)?store.re:'';if(that.settings.showGetDirectionEmptySource=="1"){content+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}else{content+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?saddr='+this.lat+','+this.lng+'&daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}
2245content+=!that.isEmpty(that.settings.showContactStorePage)?'<a href="'+showContactStorePage+'store_id='+store.ID+'&address='+encodeURIComponent($(that.settings.store_locator_address_field).val())+'&lat='+that.lat+'&lng='+that.lng+'" class="btn button btn-primary btn-lg store_locator_contact_store"><i class="fas fa-paper-plane"></i> '+that.settings.showContactStoreText+'</a>':'';content+=!that.isEmpty(store.te)?'<a href="tel:'+store.te+'" class="btn button btn-primary btn-lg store_locator_call_now"><i class="fas fa-phone"></i> '+that.settings.showCallNowText+'</a>':'';content+=!that.isEmpty(store.we)?'<a href="'+store.we+'" class="btn button btn-primary btn-lg store_locator_visit_website" target="_blank"><i class="fas fa-globe"></i> '+that.settings.showVisitWebsiteText+'</a>':'';content+=!that.isEmpty(store.em)?'<a href="mailto:'+store.em+'" class="btn button btn-primary btn-lg store_locator_write_email"><i class="fas fa-envelope"></i> '+that.settings.showWriteEmailText+'</a>':'';content+=!that.isEmpty(store.ch)?'<a href="'+store.ch+'" target="_blank" class="btn button btn-primary btn-lg store_locator_chat"><i class="fas fa-video"></i> '+that.settings.showChatText+'</a>':'';content+=!that.isEmpty(that.settings.showVisitStore)?'<a href="'+store.gu+'" class="btn button btn-primary btn-lg store_locator_visit_store"><i class="fas fa-long-arrow-alt-right"></i> '+that.settings.showVisitStoreText+'</a>':'';if(that.settings.singleStoreLivePositionActionButton=="1"&&!that.isEmpty(store.ll)){content+='<a href="'+store.gu+'#store_locator_single_map" class="btn button btn-primary btn-lg store_locator_show_live_position"><i class="fas fa-search-location"></i> '+that.settings.singleStoreLivePositionActionButtonText+'</a>';}
2246if(that.settings.showChooseInventory=="1"&&!that.isEmpty(store.mi)){content+='<a href="#" data-id="'+store.mi.id+'" data-name="'+store.mi.name+'" class="btn button btn-primary btn-lg woocommerce-multi-inventory-choose-location"><i class="fas fa-warehouse"></i> '+that.settings.showChooseInventoryText+'</a>';}
2247content+='</div>';content+='</div>';marker.addListener('click',function(){var icon=that.settings.mapDefaultIconHover;if(!that.isEmpty(store.ic)){icon=store.ic;}else if(!that.isEmpty(that.settings.store_locator_category_icon)){icon=that.settings.store_locator_category_icon;}
2248const image=document.createElement("img");image.src=icon;
2248image.setAttribute("alt",store.na);this.content=image;infowindow.setContent(content);infowindow.open(map,this);$(document).trigger('wordpress_store_locator_infowindow_opened');if(that.settings.mapPanToOnHover=="1"){that.map.panTo(this.position);}
2249if(that.settings.resultListScrollTo){var resultItemRow=$('#store_locator_result_list_item_'+store.ID);if(resultItemRow.length>0){$('.store_locator_result_list_item').removeClass('store_locator_result_list_item_hover');resultItemRow.addClass('store_locator_result_list_item_hover');var container=$('#store_locator_result_list');if(!that.resultListScrollingActive){that.resultListScrollingActive=true;container.animate({scrollTop:resultItemRow.offset().top-container.offset().top+container.scrollTop()},100,function(){that.resultListScrollingActive=false;});}}}
2250google.maps.event.addListener(map,'click',function(){infowindow.close();});google.maps.event.addListener(that.radiusCircle,'click',function(){infowindow.close();});});if(that.settings.infowindowOpenOnMouseover=="1"){marker.addListener('mouseover',function(){if(that.settings.infowindowCheckClosed=="1"){if(!that.isInfoWindowOpen(infowindow)){google.maps.event.trigger(this,'click');}}else{google.maps.event.trigger(this,'click');}});}
2251marker.addListener('mouseout',function(){var icon=that.settings.mapDefaultIcon;if(!that.isEmpty(store.ic)){icon=store.ic;}else if(!that.isEmpty(that.settings.store_locator_category_icon)){icon=that.settings.store_locator_category_icon;}
2252const image=document.createElement("img");image.src=icon;image.setAttribute("alt",store.na);this.content=image;});},createResultList:function(stores)
2253{var that=this;var storesLength=Object.keys(stores).length;var resultList=$(this.settings.result_list);var resultListIconEnabled=this.settings.resultListIconEnabled;var resultListIcon=this.settings.resultListIcon;var resultListIconSize=this.settings.resultListIconSize;var resultListIconColor=this.settings.resultListIconColor;var resultListPremiumIconEnabled=this.settings.resultListPremiumIconEnabled;var resultListPremiumIcon=this.settings.resultListPremiumIcon;var resultListPremiumIconSize=this.settings.resultListPremiumIconSize;var resultListPremiumIconColor=this.settings.resultListPremiumIconColor;var resultListLinkAction=this.settings.resultListLinkAction;var store;var premiumClass;var i=0;var content;var filterBadges;if(!that.isEmpty(that.settings.showContactStorePage)){var arr=that.settings.showContactStorePage.split('?');if(arr.length>1&&arr[1]!==''){var showContactStorePage=that.settings.showContactStorePage+'&';}else{var showContactStorePage=that.settings.showContactStorePage+'?';}}
2254if(this.settings.resultListSlider=="1"){$('#store_locator_result_list.slick-initialized').slick('unslick');}
2255resultList.html('');if(storesLength>0){for(i;i<storesLength;i++){store=stores[i];if(!store){return true;}
2256content='';premiumClass='';if(store.pr==="1"){premiumClass=' store-locator-is-premium';}
2257var resultListLinkAction=this.settings.resultListLinkAction;store.resultListLinkAction=store.gu;if(resultListLinkAction=="web"){store.resultListLinkAction=store.we;}
2258if(resultListLinkAction=="tel"){store.resultListLinkAction='tel:'+store.te;}
2259if(resultListLinkAction=="email"){store.resultListLinkAction='mailto:'+store.em;}
2260if(resultListLinkAction=="chat"){store.resultListLinkAction=store.ch;}
2261var resultListLinkActionNewTab='';if(this.settings.resultListLinkActionNewTab=="1"){resultListLinkActionNewTab=' target="_blank" ';}
2262if(resultListIconEnabled==="1"){content+='<div class="store-locator-col-sm-2 store_locator_icon store-locator-hidden-sm store-locator-hidden">'+'<i style="color: '+resultListIconColor+';" class="'+resultListIcon+' '+resultListIconSize+'"></i>'+'</div>'+'<div class="store-locator-col-sm-10 store_locator_details '+premiumClass+'">'+'<div class="store-locator-row">';}
2263if(that.settings.showImage=="1"&&store.im){if(that.settings.imagePosition=="store-locator-image-top"){if(this.settings.resultListLinkAction!=="none"){content+='<a href="'+store.resultListLinkAction+'" '+resultListLinkActionNewTab+' class="store-locator-col-sm-12 store_locator_image_container '+that.settings.imagePosition+'">';content+=!that.isEmpty(store.im)?'<img alt="'+store.na+'" src="'+store.im+'" class="store-locator-img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />':'';content+='</a>';}else{content+='<div class="store-locator-col-sm-12 store_locator_image_container '+that.settings.imagePosition+'">';content+=!that.isEmpty(store.im)?'<img alt="'+store.na+'" src="'+store.im+'" class="store-locator-img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />':'';
2263content+='</div>';}
2264content+='<div class="store-locator-col-sm-12 store_locator_details '+premiumClass+'">';}else{if(this.settings.resultListLinkAction!=="none"){content+='<a href="'+store.resultListLinkAction+'" '+resultListLinkActionNewTab+' class="store-locator-col-sm-3 store_locator_image_container '+that.settings.imagePosition+'">';content+=!that.isEmpty(store.im)?'<img alt="'+store.na+'" src="'+store.im+'" class="store-locator-img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />':'';content+='</a>';}else{content+='<div class="store-locator-col-sm-3 store_locator_image_container '+that.settings.imagePosition+'">';content+=!that.isEmpty(store.im)?'<img alt="'+store.na+'" src="'+store.im+'" class="store-locator-img-responsive" width="'+that.settings.imageDimensions.width+'" height="'+that.settings.imageDimensions.height+'" />':'';content+='</div>';}
2265content+='<div class="store-locator-col-sm-9 store_locator_details '+premiumClass+'">';}}else{content+='<div class="store-locator-col-sm-12 store_locator_details '+premiumClass+'">';}
2266var name="";if(this.settings.resultListLinkAction!=="none"){name+='<a href="'+store.resultListLinkAction+'" '+resultListLinkActionNewTab+'>'+'<p class="store_locator_name">'+store.na+' <i class="fas fa-chevron-right"></i></p>'+'</a>';}else{name+='<p class="store_locator_name">'+store.na+'</p>';}
2267if(!that.isEmpty(store.rt)){var rating=Math.round(store.rt);if(rating>5){rating=5;}
2268if(that.settings.showRatingLinkToForm=="1"){name+='<a href="'+store.gu+'#store-locator-review">';}
2269name+='<div class="store_locator_rating">';for(var ii=1;ii<=rating;ii++){name+='<span class="store_locator_rating_icon">★</span>';}
2270name+='</div>';if(that.settings.showRatingLinkToForm=="1"){name+='</a>';}}
2271name+=!that.isEmpty(store.dc)?'<span class="store_locator_distance">'+that.settings.showDistanceText+store.dc+'<br/></span>':'';name+=!that.isEmpty(store.ex)?'<p class="store_locator_excerpt">'+''+store.ex+''+'</p>':'';filterBadges="";var customFields="";if(!that.isEmpty(store.cs)){customFields+='<div class="store_locator_custom_fields">';$.each(store.cs,function(i,item){customFields+='<span class="store_locator_custom_field">'+item.name+item.value+'<br></span>';});customFields+='</div>';}
2272if(!that.isEmpty(store.ca)){if(that.settings.showFilterCategoriesAsImage=="1"){filterBadges+='<p class="store_locator_store_category_images">';$.each(store.ca,function(i,item){filterBadges+='<img src="'+item+'" alt="Filter category image" />';});filterBadges+='</p>';}else{$.each(store.ca,function(i,item){filterBadges+=that.createBadge(item);});}}
2273if(!that.isEmpty(store.fi)){$.each(store.fi,function(i,item){filterBadges+=that.createBadge(item);});}
2274var filters="";filters+=!that.isEmpty(filterBadges)?'<p class="store_locator_badges">'+
2275filterBadges+'</p>':'';var address="";address+='<p class="store_locator_address">';if(that.settings.showAddressStyle=="american"){address+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';address+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';address+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+', </span>':'';address+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+' </span>':'';address+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'<br/></span>':'';address+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}else{address+=!that.isEmpty(store.cp)?'<span class="store_locator_company">'+store.cp+'<br/></span>':'';address+=!that.isEmpty(store.st)?'<span class="store_locator_street">'+store.st+'<br/></span>':'';address+=!that.isEmpty(store.zp)?'<span class="store_locator_zip">'+store.zp+'</span>':'';address+=!that.isEmpty(store.ct)?'<span class="store_locator_city">'+store.ct+'<br/></span>':'';address+=!that.isEmpty(store.rg)?'<span class="store_locator_region">'+store.rg+'</span>':'';address+=!that.isEmpty(store.co)?'<span class="store_locator_country">'+store.co+'</span>':'';}
2276address+='</p>';if(!that.isEmpty(store.aa)){address+='<p class="store_locator_after_address">'+store.aa+'</p>';}
2277var contact="";contact+='<p class="store_locator_contact">';contact+=!that.isEmpty(store.te)?'<span class="store_locator_tel">'+that.settings.showTelephoneText+'<a href="tel:'+store.te+'">'+store.te+'</a><br/></span>':'';if(!that.isEmpty(store.em)){if(!that.isEmpty(store.emp)){contact+=!that.isEmpty(store.em)?'<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.emp+'</a><br/></span>':'';}else{contact+=!that.isEmpty(store.em)?'<span class="store_locator_email">'+that.settings.showEmailText+'<a href="mailto:'+store.em+'">'+store.em+'</a><br/></span>':'';}}
2278contact+=!that.isEmpty(store.mo)?'<span class="store_locator_mobile">'+that.settings.showMobileText+'<a href="tel:'+store.mo+'">'+store.mo+'</a><br/></span>':'';contact+=!that.isEmpty(store.fa)?'<span class="store_locator_fax">'+that.settings.showFaxText+store.fa+'</span>':'';contact+=!that.isEmpty(store.we)?'<span class="store_locator_website">'+that.settings.showWebsiteText+'<a href="'+store.we+'" target="_blank">'+store.we+'</a><br/></span>':'';contact+='</p>';contact+=!that.isEmpty(store.de)?'<div class="store_locator_result_list_description">'+'<p>'+store.de+'</p>'+'</div>':'';if(!that.isEmpty(store.op)){contact+='<div class="store_locator_opening_hours">'+
2279that.createOpeningHoursTable(store.op,false)+'</div>';}
2280if(!that.isEmpty(store.op2)){contact+='<div class="store_locator_opening_hours2">'+
2281that.createOpeningHoursTable(store.op2,true)+'</div>';}
2282var actions="";actions+='<div class="store_locator_actions">';actions+=!that.isEmpty(store.re)?store.re:'';if(that.settings.showGetDirectionEmptySource=="1"){actions+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}else{actions+=!that.isEmpty(store.lat)?'<a href="http://maps.google.com/maps?sa
2282ddr='+this.lat+','+this.lng+'&daddr='+store.lat+','+store.lng+'" class="btn button btn-primary btn-lg store_locator_get_direction" target="_blank"><i class="fas fa-compass"></i> '+that.settings.showGetDirectionText+'</a>':'';}
2283actions+=!that.isEmpty(that.settings.showContactStorePage)?'<a href="'+showContactStorePage+'store_id='+store.ID+'&address='+encodeURIComponent($(that.settings.store_locator_address_field).val())+'&lat='+that.lat+'&lng='+that.lng+'" class="btn button btn-primary btn-lg store_locator_contact_store"><i class="fas fa-paper-plane"></i> '+that.settings.showContactStoreText+'</a>':'';actions+=!that.isEmpty(store.te)?'<a href="tel:'+store.te+'" class="btn button btn-primary btn-lg store_locator_call_now"><i class="fas fa-phone"></i> '+that.settings.showCallNowText+'</a>':'';actions+=!that.isEmpty(store.we)?'<a href="'+store.we+'" class="btn button btn-primary btn-lg store_locator_visit_website" target="_blank"><i class="fas fa-globe"></i> '+that.settings.showVisitWebsiteText+'</a>':'';actions+=!that.isEmpty(store.em)?'<a href="mailto:'+store.em+'" class="btn button btn-primary btn-lg store_locator_write_email"><i class="fas fa-envelope"></i> '+that.settings.showWriteEmailText+'</a>':'';actions+=!that.isEmpty(store.ch)?'<a href="'+store.ch+'" target="_blank" class="btn button btn-primary btn-lg store_locator_chat"><i class="fas fa-video"></i> '+that.settings.showChatText+'</a>':'';actions+=!that.isEmpty(that.settings.showVisitStore)?'<a href="'+store.gu+'" class="btn button btn-primary btn-lg store_locator_visit_store"><i class="fas fa-long-arrow-alt-right"></i> '+that.settings.showVisitStoreText+'</a>':'';actions+='<a class="btn button btn-primary btn-lg store_locator_show_on_map"><i class="fas fa-map-marker"></i> '+that.settings.showShowOnMapText+'</a>';if(that.settings.singleStoreLivePositionActionButton=="1"&&!that.isEmpty(store.ll)){actions+='<a href="'+store.gu+'#store_locator_single_map" class="btn button btn-primary btn-lg store_locator_show_live_position"><i class="fas fa-search-location"></i> '+that.settings.singleStoreLivePositionActionButtonText+'</a>';}
2284if(that.settings.showChooseInventory=="1"&&!that.isEmpty(store.mi)){actions+='<a href="#" data-id="'+store.mi.id+'" data-name="'+store.mi.name+'" class="btn button btn-primary btn-lg woocommerce-multi-inventory-choose-location"><i class="fas fa-warehouse"></i> '+that.settings.showChooseInventoryText+'</a>';}
2285if(that.settings.resultListItemLayout=="oneColumn"){content+=name+filters+address+contact+customFields+actions;}else{content+='<div class="store-locator-row">';content+='<div class="store-locator-col-sm-4">'+name+address+contact+customFields+'</div>';content+='<div class="store-locator-col-sm-4">'+filters+'</div>';content+='<div class="store-locator-col-sm-4">'+actions+'</div>';content+='</div>';}
2286content+='</div></div>';if(resultListIconEnabled==="1"){content+='</div>';}
2287var render='';var resultListItemColumns=that.settings.resultListItemColumns;render='<div id="store_locator_result_list_item_'+store.ID+'" class="store_locator_result_list_item store-locator-col-12 store-locator-col-md-'+resultListItemColumns+'">'+'<div class="store-locator-row">';render+=content;if(resultListPremiumIconEnabled==="1"&&store.pr==="1"){render+='<i style="color: '+resultListPremiumIconColor+'; position: absolute; top: 5px; z-index: 999999; right: 10px;" class="'+resultListPremiumIcon+' '+resultListPremiumIconSize+'"></i>';}
2288render+='</div>'+'</div>';resultList.append(render);}}else{if(!that.isAlongRouteSearch){if(this.settings.mapExtendRadius==="1"){if(!$(this.settings.store_locator_filter_radius+" option:last").is(":selected")){$(this.settings.store_locator_filter_radius+' option:selected').prop('selected',false).next().prop('selected','selected').trigger('change');}else{this.noResults();}}else{this.noResults();}}}
2289this.autoHeightMap();if(!that.isAlongRouteSearch){this.map.setCenter(this.currentPosition);}
2290this.window.trigger('resize');if(this.settings.resultListHover=="1"){console.log('asd');this.resultItemHover();}
2291if(this.settings.showShowOnMap=="1"){this.showOnMap();}
2292if(this.settings.resultListSlider=="1"){$('#store_locator_result_list').slick({infinite:false,slidesToShow:4,slidesToScroll:1,prevArrow:'<button type="button" class="slick-prev"><i class="fa fa-chevron-left"></i> </button>',nextArrow:'<button type="button" class="slick-next"><i class="fa fa-chevron-right"></i> </button>',responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]});}},createOpeningHoursTable:function(openingHours,two){var that=this;var table='';$.each(openingHours,function(i,item){if(that.isEmpty(item)){return true;}
2293if(i%2===0){table+='<div class="store-locator-row">';table+='<div class="store-locator-col-sm-12">';}
2294if(two){if(i%2===0){if(i==="0"){table+=that.settings.showOpeningHours2Monday;}
2295if(i==="2"){table+=that.settings.showOpeningHours2Tuesday;}
2296if(i==="4"){table+=that.settings.showOpeningHours2Wednesday;}
2297if(i==="6"){table+=that.settings.showOpeningHours2Thursday;}
2298if(i==="8"){table+=that.settings.showOpeningHours2Friday;}
2299if(i==="10"){table+=that.settings.showOpeningHours2Saturday;}
2300if(i==="12"){table+=that.settings.showOpeningHours2Sunday;}
2301table+=': '+item;}else{table+=" - "+item+' '+that.settings.showOpeningHours2Clock;}}else{if(i%2===0){if(i==="0"){table+=that.settings.showOpeningHoursMonday;}
2302if(i==="2"){table+=that.settings.showOpeningHoursTuesday;}
2303if(i==="4"){table+=that.settings.showOpeningHoursWednesday;}
2304if(i==="6"){table+=that.settings.showOpeningHoursThursday;}
2305if(i==="8"){table+=that.settings.showOpeningHoursFriday;}
2306if(i==="10"){table+=that.settings.showOpeningHoursSaturday;}
2307if(i==="12"){table+=that.settings.showOpeningHoursSunday;}
2308table+=': '+item;}else{table+=" - "+item+' '+that.settings.showOpeningHoursClock;}}
2309if(i%2!==0){table+='</div>';table+='</div>';}});if(!that.isEmpty(table)){if(two){var title='<p class="store_locator_opening_hours_title2">'+that.settings.showOpeningHours2Text+'</p>';}else {var title='<p class="store_locator_opening_hours_title">'+that.settings.showOpeningHoursText+'</p>';}
2310table='<div class="store-locator-opening-hours" id="store-locator-opening-hours">'+table+'</div>';table=title+table;}
2311return table;},createBadge:function(value){var that=this;var badgeCSS=that.slugify(value);var template='<span class="store-locator-badge store-locator-badge-success '+badgeCSS+'">%s</span> ';return that.sprintf(template,value);},noResults:function(){var resultList=$(this.settings.result_list);resultList.html('');resultList.append('<div class="store-locator-col-12"><p class="store_locator_no_stores">'+this.settings.resultListNoResultsText+'</p></div>');this.autoHeightMap();},resultItemHover:function(){var that=this;var resultList=$(this.settings.result_list);if(that.resultListScrollingActive==true){console.log('sd');return;}
2312$('.store_locator_result_list_item').each(function(i,item){$(item).on('mouseenter',function(){that.resultListScrollingActive=true;if(store_locator_options.api==="here"){var storeId=$(item).attr('id').replace('store_locator_result_list_item_','');var marker=that.markers.find(function(m){return String(m.getData().ID)===String(storeId);});if(marker){marker.dispatchEvent('tap');}}else{google.maps.event.trigger(that.markers[i],'click');}
2313that.resultListScrollingActive=false;});$(item).on('mouseleave',function(){that.resultListScrollingActive=true;if(store_locator_options.api==="here"){var storeId=$(item).attr('id').replace('store_locator_result_list_item_','');var marker=that.markers.find(function(m){return String(m.getData().ID)===String(storeId);});if(marker){marker.dispatchEvent('pointerleave');}}else{google.maps.event.trigger(that.markers[i],'mouseout');}
2314that.resultListScrollingActive=false;});});},showOnMap:function(){var that=this;var resultList=$(this.settings.result_list);$('.store_locator_show_on_map').each(function(i,item){$(item).on('click',function(){google.maps.event.trigger(that.markers[i],'click');});});},initFilter:function(){var that=this;var store_locator_filter_open_close=$(this.settings.store_locator_filter_open_close);var store_locator_filter_icon=store_locator_filter_open_close.find('i');store_locator_filter_open_close.on('click',function(){that.maybeShowFilter();});that.watchRadiusSelection();that.watchCategoriesSelection();that.watchCheckboxFilter();that.watchSelectFilter();that.updateActiveFilter();that.watchOnlineOfflineFilters();},watchOnlineOfflineFilters:function(){var that=this;var onlineOfflineFilters=$('.store-locator-online-offline-filter');if(onlineOfflineFilters.length<1){return;}
2315onlineOfflineFilters.on('change',function(e){that.onlineOffline=$(this).val();that.getStores();});},maybeShowFilter:function(){var that=this;var store_locator_filter_content=$(this.settings.store_locator_filter_content);var store_locator_filter_open_close=$(this.settings.store_locator_filter_open_close);var store_locator_filter_icon=store_locator_filter_open_close.find('i');if(store_locator_filter_content.is(":hidden"))
2316{store_locator_filter_icon.removeClass('fa-chevron-down');store_locator_filter_icon.addClass('fa-chevron-up');store_locator_filter_content.fadeIn(function(){that.setResultListMaxHeight();});}else{store_locator_filter_icon.addClass('fa-chevron-down');store_locator_filter_icon.removeClass('fa-chevron-up');store_locator_filter_content.fadeOut(function(){that.setResultListMaxHeight();});}},initResults:function(){var that=this;var store_locator_result_open_close=$(this.settings.store_locator_result_open_close);var store_locator_result_icon=store_locator_result_open_close.find('i');store_locator_result_open_close.on('click',function(){that.maybeShowResults();});},maybeShowResults:function(){var that=this;var store_locator_result_content=$(this.settings.result_list);var store_locator_result_open_close=$(this.settings.store_locator_result_open_close);var store_locator_result_icon=store_locator_result_open_close.find('i');if(store_locator_result_content.is(":hidden"))
2317{store_locator_result_icon.removeClass('fa-chevron-down');store_locator_result_icon.addClass('fa-chevron-up');store_locator_result_content.fadeIn(function(){that.setResultListMaxHeight();that.autoHeightMap();});}else{store_locator_result_icon.addClass('fa-chevron-down');store_locator_result_icon.removeClass('fa-chevron-up');
2317store_locator_result_content.fadeOut(function(){that.setResultListMaxHeight();that.autoHeightMap();});}},watchRadiusSelection:function(){var that=this;var selectedRadius=$(this.settings.store_locator_filter_radius);selectedRadius.on('change',function(){that.drawRadiusCircle();that.updateActiveFilter();if(that.lastClickedButton=="alongRoute"){$(that.settings.store_locator_along_route_btn).trigger('click');}else{that.getStores();}});var predefinedRadius=that.getParameterByName('radius');if(!that.isEmpty(predefinedRadius)){var options=selectedRadius.find('option');$.each(options,function(i,index){var option=$(this);option.prop('selected',false);if(option.val()==predefinedRadius){option.prop('selected',true);}});}},watchCategoriesSelection:function(){var that=this;var selectedCategories=$(this.settings.store_locator_filter_categories);if(selectedCategories.length==0){var selectedCategories=$('.store_locator_category_filter_image');var selectedCategoryID=$('.store_locator_category_filter_image[data-selected="selected"]').data('category');if(selectedCategoryID>0){that.categories={0:selectedCategoryID};}
2318selectedCategories.on('click',function(){var selected=$(this);selectedCategoryID=selected.data('category');$('.show_for_store_category').hide(function(){$('.show_for_store_category').find('select').val('').trigger('change');$('.show_for_store_category_'+selectedCategoryID).show();});selectedCategories.each(function(i,index){$(this).removeClass('store_locator_category_filter_image_selected');});selected.addClass('store_locator_category_filter_image_selected');var categoryIcon=$(selected).data('icon');if(!that.isEmpty(categoryIcon)){that.settings.store_locator_category_icon=categoryIcon;}else{that.settings.store_locator_category_icon='';}
2319that.categories={0:selectedCategoryID};that.updateActiveFilter();if(that.lastClickedButton=="alongRoute"){$(that.settings.store_locator_along_route_btn).trigger('click');}else{that.getStores();}});}else{var selectedCategoryID=selectedCategories.find(':selected').val();var predefinedCategory=that.getParameterByName('category');if(isNaN(selectedCategoryID)){return;}
2320if(!that.isEmpty(predefinedCategory)){var tst=selectedCategories.val(predefinedCategory);selectedCategoryID=predefinedCategory;}
2321that.categories={0:selectedCategoryID};selectedCategories.on('change',function(){var selected=selectedCategories.find(':selected');selectedCategoryID=selected.val();$('.show_for_store_category').hide(function(){$('.show_for_store_category').find('select').val('').trigger('change');$('.show_for_store_category_'+selectedCategoryID).show();});var categoryIcon=$(selected).data('icon');if(!that.isEmpty(categoryIcon)){that.settings.store_locator_category_icon=categoryIcon;}else{that.settings.store_locator_category_icon='';}
2322that.categories={0:selectedCategoryID};that.updateActiveFilter();if(that.lastClickedButton=="alongRoute"){$(that.settings.store_locator_along_route_btn).trigger('click');}else{that.getStores();}});}},watchCheckboxFilter:function(){var that=this;var filterCheckboxes=$(this.settings.store_locator_filter_checkbox);var filterSelects=$(this.settings.store_locator_filter_select);var predefinedFilter=that.getQuerystringData('filter[]');if(typeof predefinedFilter=='undefined'){var predefinedFilter=that.getQuerystringData('filter[0]');}
2323if(typeof predefinedFilter=='string'){predefinedFilter={0:predefinedFilter};}
2324if(typeof predefinedFilter=='undefined'){predefinedFilter={};}
2325filterCheckboxes.each(function(i,item){var checkbox=$(item);if(!that.isEmpty(predefinedFilter)){$.each(predefinedFilter,function(i,index){var isArray=Array.isArray(index);if(isArray){$.each(index,function(ii,indexx){if(checkbox.prop('name')==indexx){checkbox.prop('checked','checked');}});}else{if(checkbox.prop('name')==index){checkbox.prop('checked','checked');}}});}
2326var isChecked=checkbox.is(":checked");if(isChecked){var filter=checkbox.prop("name");that.filter[filter]=filter;}});$(filterCheckboxes).on('change',function(){that.filter={};filterCheckboxes.each(function(i,item){var checkbox=$(item);var isChecked=checkbox.is(":checked");if(isChecked){var filter=checkbox.prop("name");that.filter[filter]=filter;var filterLat=checkbox.data('lat');var filterLng=checkbox.data('lng');if(filterLat!=""&&filterLng!=""){var currentPosition=new google.maps.LatLng(Number(filterLat),Number(filterLng));that.setCurrentPosition(currentPosition);}
2327var filterZoom=checkbox.data('zoom');if(filterZoom!=""){that.map.setZoom(filterZoom);}
2328var filterResetFilters=checkbox.data('reset-filters');if(filterResetFilters=="on"){}}});filterSelects.each(function(i,item){var select=$(item);var isSelected=select.find(":selected");if(isSelected){var filter=isSelected.val();if(!that.isEmpty(filter)){that.filter[filter]=filter;var filterLat=isSelected.data('lat');var filterLng=isSelected.data('lng');if(filterLat!=""&&filterLng!=""){var currentPosition=new google.maps.LatLng(Number(filterLat),Number(filterLng));that.setCurrentPosition(currentPosition);}
2329var filterZoom=isSelected.data('zoom');if(filterZoom!=""){that.map.setZoom(filterZoom);}
2330var filterResetFilters=isSelected.data('reset-filters');if(filterResetFilters=="on"){}}}});that.updateActiveFilter();if(that.lastClickedButton=="alongRoute"){$(that.settings.store_locator_along_route_bt
2330n).trigger('click');}else{that.getStores();}});},watchSelectFilter:function(){var that=this;var filterSelects=$(this.settings.store_locator_filter_select);var filterCheckboxes=$(this.settings.store_locator_filter_checkbox);var predefinedFilter=that.getQuerystringData('filter[]');if(typeof predefinedFilter=='string'){predefinedFilter={0:predefinedFilter};}
2331if(typeof predefinedFilter=='undefined'){predefinedFilter={};}
2332filterSelects.each(function(i,item){var select=$(item);var options=select.find('option');options.each(function(i,item){var option=$(this);if(!that.isEmpty(predefinedFilter)){$.each(predefinedFilter,function(i,index){if(option.val()==index){select.val(index);}});}
2333var isSelected=select.find(":selected");if(isSelected){var filter=isSelected.val();if(!that.isEmpty(filter)){that.filter[filter]=filter;}}});});$(filterSelects).on('change',function(){that.filter={};filterSelects.each(function(i,item){var select=$(item);var isSelected=select.find(":selected");if(isSelected){var filter=isSelected.val();if(!that.isEmpty(filter)){that.filter[filter]=filter;var filterLat=isSelected.data('lat');var filterLng=isSelected.data('lng');if(filterLat!=""&&filterLng!=""){var currentPosition=new google.maps.LatLng(Number(filterLat),Number(filterLng));that.setCurrentPosition(currentPosition);}
2334var filterZoom=isSelected.data('zoom');if(filterZoom!=""){that.map.setZoom(filterZoom);}
2335var filterResetFilters=isSelected.data('reset-filters');if(filterResetFilters=="on"){}}}});filterCheckboxes.each(function(i,item){var checkbox=$(item);var isChecked=checkbox.is(":checked");if(isChecked){var filter=checkbox.prop("name");that.filter[filter]=filter;var filterLat=checkbox.data('lat');var filterLng=checkbox.data('lng');if(filterLat!=""&&filterLng!=""){var currentPosition=new google.maps.LatLng(Number(filterLat),Number(filterLng));that.setCurrentPosition(currentPosition);}
2336var filterZoom=checkbox.data('zoom');if(filterZoom!=""){that.map.setZoom(filterZoom);}
2337var filterResetFilters=checkbox.data('reset-filters');if(filterResetFilters=="on"){}}});that.updateActiveFilter();if(that.lastClickedButton=="alongRoute"){$('.wordpress-store-locator-along-route-btn').trigger('click');}else{that.getStores();}});},updateActiveFilter:function()
2338{var that=this;var store_locator_filter=$(this.settings.store_locator_filter);var store_locator_filter_active_filter=$(this.settings.store_locator_filter_active_filter);var selectedCategories=store_locator_filter.find('select');var selectedCheckboxFilters=store_locator_filter.find('input:checked');var selectedSelectFilters=store_locator_filter.find('.single_filter_filter select :selected');var selectedImageFilters=store_locator_filter.find('.store_locator_category_filter_image_selected');var template='<span class="store_locator_filter_active store-locator-badge store-locator-badge-success %s">%s</span> ';var append="";store_locator_filter_active_filter.html('');selectedCategories.each(function(i,item){var val=$(item).find(':selected').val();if(val!==""){var text=$(item).find(':selected').text();var slug=that.slugify(text);append=append+that.sprintf(template,slug,text);}});selectedCheckboxFilters.each(function(i,item){var text=$(item).val();var slug=that.slugify(text);append=append+that.sprintf(template,slug,text);});selectedSelectFilters.each(function(i,item){var text=$(item).val();if(!that.isEmpty(text)){var slug=that.slugify(text);append=append+that.sprintf(template,slug,text);}});selectedImageFilters.each(function(i,item){var text=$(item).text();if(!that.isEmpty(text)){var slug=that.slugify(text);append=append+that.sprintf(template,slug,text);}});var showForStoreFilter=$('.show_for_store_filter');$.each(showForStoreFilter,function(i,index){var filter=$(this);var parentFilter=$('[data-filter-id="'+filter.data('parent-filter-id')+'"]');if(!parentFilter){return;}
2339var parentFilterVal=parentFilter.val();if(!parentFilterVal||!parentFilter.is(':checked')){var filterValue=filter.find('option:selected').val();delete that.filter[filterValue];filter.find('select, input').val('');}}).hide();$.each(that.filter,function(i,filter){$('.show_for_store_filter_'+filter).show();});store_locator_filter_active_filter.html(append);},watchResize:function(){var store_locator_sidebar=$(this.settings.store_locator_sidebar);var store_modal_close=$(this.settings.store_modal_close);var windowWidth=this.window.width();var top;},watchMapDragged:function(){var that=this;var map=that.map;var store_locator_dragged_button=$(that.settings.store_locator_dragged_button);store_locator_dragged_button.fadeOut();if(store_locator_options.api=="here"){this.map.addEventListener('mapviewchangeend',function(){store_locator_dragged_button.fadeIn();});}else{google.maps.event.addListener(map,'dragend',function(e){store_locator_dragged_button.fadeIn();});}},watchDraggedButton:function(){var that=this;var store_locator_dragged_button=$(that.settings.store_locator_dragged_button);store_locator_dragged_button.on('click',function(e){store_locator_dragged_button.fadeOut();var coords=that.map.getCenter();if(that.directionsRenderer){that.directionsRenderer.setMap(null);}
2340if(store_locator_options.api=="here"){var currentPosition={lat:Number(that.settings.mapDefaultLat),lng:Number(that.settings.mapDefaultLng)};}else{var currentPosition=new google.maps.LatLng(coords.lat(),coords.lng());}
2341that.setCurrentPosition(currentPosition);});},radiusToZoom:function(radius){return Math.round(14-Math.log(radius)/Math.LN2);},initForm:function(){var that=this;var predefinedAddress=that.getParameterByName('address');var predefinedLat=that.getParameterByName('lat');var predefinedLng=that.getParameterByName('lng');var addressField=$(this.settings.store_locator_form_customer_address);var address=addressField.val();var lat,lng;if(!that.isEmpty(predefinedAddress)&&that.isEmpty(address)){addressField.val(predefinedAddress);}
2342if(!that.isEmpty(predefinedLat)&&!that.isEmpty(predefinedLng)){lat=predefinedLat;lng=predefinedLng;}
2343that.watchFormSelectField();
2343that.watchFormAddressField();that.initFormAutocomplete();that.loadFormStores(lat,lng);},initNearestStore:function(){var that=this;var predefinedLat=that.getParameterByName('lat');var predefinedLng=that.getParameterByName('lng');var lat,lng;if(navigator.geolocation){var options={enableHighAccuracy:true,timeout:5000,maximumAge:0};navigator.geolocation.getCurrentPosition(function(position){if(store_locator_options.api=="here"){var currentPosition={lat:Number(position.coords.latitude),lng:Number(position.coords.longitude)};}else{var currentPosition=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);}
2344jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_nearest_store',lat:position.coords.latitude,lng:position.coords.longitude,day:new Date().getDay()},success:function(response){var nearestStoreElements=$('.store_locator_nearest_store');nearestStoreElements.each(function(i,index){var nearestStoreElement=$(this);var showName=nearestStoreElement.data('show-name');var showOpening=nearestStoreElement.data('show-opening');var textSeparator=nearestStoreElement.data('text-separator');var nearestStoreText='';if(showName=="1"){nearestStoreText+=response.na+textSeparator;}
2345if(!that.isEmpty(response.st)){nearestStoreText+=response.st;}
2346if(showOpening=="1"&&!that.isEmpty(response.op)){nearestStoreText+=textSeparator+response.op+' '+that.settings.showOpeningHoursClock;}
2347nearestStoreText='<a href="'+response.gu+'" class="store_locator_visit_nearest_store">'+nearestStoreText+'</a>';nearestStoreElement.html(nearestStoreText);})},error:function(jqXHR,textStatus,errorThrown){alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},function(error){var nearestStoreElement=$('.store_locator_nearest_store');var deniedText=nearestStoreElement.data('denied-text');nearestStoreElement.html(deniedText);console.log(error);},options);}},loadFormStores:function(lat,lng){var that=this;var storeSelectField=$(this.settings.store_locator_form_store_select);var addressField=$(this.settings.store_locator_form_customer_address);var address=addressField.val();var predefinedStoreId=that.getParameterByName('store_id');if((that.isEmpty(lat)||that.isEmpty(lng))&&!that.isEmpty(address)){that.geocoder.geocode({'address':address},function(results,status){if(status===google.maps.GeocoderStatus.OK){var location=results[0].geometry.location;lat=location.lat();lng=location.lng();that.getAllStores(lat,lng,that.storesToSelectField,{store_id:predefinedStoreId,that:that},true);}else{that.getAllStores(lat,lng,that.storesToSelectField,{store_id:predefinedStoreId,that:that},true);}});}else{that.getAllStores(lat,lng,that.storesToSelectField,{store_id:predefinedStoreId,that:that},true);}},watchFormAddressField:function(){var that=this;var addressField=$(this.settings.store_locator_form_customer_address);addressField.on('focusout',function(e){var $this=$(this);var val=$this.val()
2348that.loadFormStores();});},watchFormSelectField:function(){var that=this;var storeSelectField=$(this.settings.store_locator_form_store_select);var dataName,dataValue;storeSelectField.on('change',function(e){var $this=$(this);var selected=storeSelectField.find(':selected');var val=$this.val()
2349var possibleData=['name','address','zip','city','country','region','telephone','mobile','fax','email','website',]
2350$(possibleData).each(function(i,index){var dataName=index;var dataValue=selected.data(dataName);if(typeof dataValue!=='undefined'){dataValue=dataValue.toString();}
2351if(that.isEmpty(dataValue)){dataValue="";}
2352var inputField=$('input[name="store_locator_form_store_'+dataName+'"]');if(inputField.length>0){inputField.val(dataValue);}
2353var infoField=$('.store_locator_store_info_'+dataName);if(infoField.length>0){if(dataName=="telephone"||dataValue=="mobile"){dataValue='<a href="tel:'+dataValue+'">'+dataValue+'</a>';}
2354infoField.html(dataValue);}});});},getAllStores:function(lat,lng,callback,options,contactform){var that=this;jQuery.ajax({url:that.settings.ajax_url,type:'post',dataType:'JSON',data:{action:'get_all_stores',lat:lat,lng:lng,contactform:contactform,product_id:that.product_id,},success:function(response){callback(response,options);},error:function(jqXHR,textStatus,errorThrown){alert('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!');}});},initFormAutocomplete:function(){var that=this;var addressField=$(this.settings.store_locator_form_customer_address);var countryRestrict=this.settings.autocompleteCountryRestrict;var type=this.settings.autocompleteType;var map=this.map;if(!addressField){return;}
2355var autocompleteOptions={fields:["name","geometry.location","place_id","formatted_address"]};if(!that.isEmpty(countryRestrict)){autocompleteOptions.componentRestrictions={'country':countryRestrict.split(',')};}
2356if(!that.isEmpty(type)){autocompleteOptions.types=[type];}else{autocompleteOptions.types=['geocode'];}
2357var autocomplete=new google.maps.places.Autocomplete(addressField[0],autocompleteOptions);autocomplete.addListener('place_changed',function(e){var place=autocomplete.getPlace();if(!that.isEmpty(place.formatted_address)){addressField.val(place.formatted_address).trigger('focusout');}else{addressField.val(place.name).trigger('focusout');}});},storesToSelectField:function(stores,options){var that=options.that;var store_id=options.store_id
2358var storeSelectField=$(that.settings.store_locator_form_store_select);var html='<option value="">'+that.settings.trans_select_store+'</option>';var storesLength=Object.keys(stores).length;var i=0;var store;var selected;var data;var disabled;if(storesLength>0){for(i;i<storesLength;i++){store=stores[i];if(!store){return true;}
2359selected="";if(store.ID==store_id){selected='selected="selected"';}
2360data="";if(!that.isEmpty(store.na)){data+=' data-name="'+store.na+'"';if(!that.isEmpty(store.distance)){store.distance=parseFloat(store.distance).toFixed(2);store.na=store.na+' ('+store.distance+' '+that.settings.mapDistanceUnit+')';}}
2361if(!that.isEmpty(store.st)){data+=' data-address="'+store.st+'"';}
2362if(!that.isEmpty(store.zp)){data+=' data-zip="'+store.zp+'"';}
2363if(!that.isEmpty(store.ct)){data+=' data-city="'+store.ct+'"';}
2364if(!that.isEmpty(store.co)){data+=' data-country="'+store.co+'"';}
2365if(!that.isEmpty(store.rg)){data+=' data-region="'+store.rg+'"';}
2366if(!that.isEmpty(store.te)){data+=' data-telephone="'+store.te+'"';}
2367if(!that.isEmpty(store.mo)){data+=' data-mobile="'+store.mo+'"';}
2368if(!that.isEmpty(store.fa)){data+=' data-fax="'+store.fa+'"';}
2369if(!that.isEmpty(store.em)){data+=' data-email="'+store.em+'"';}
2370if(!that.isEmpty(store.we)){data+=' data-website="'+store.we+'"';}
2371html+='<option value="'+store.ID+'" '+selected+' '+data+'>'+store.na+'</option>';}}
2372storeSelectField.html(html).trigger('change');},initEmbeddedSearch:function(){var that=this;var addressField=$(this.settings.store_locator_address_field);var countryRestrict=this.settings.autocompleteCountryRestrict;var type=this.settings.autocompleteType;var map=this.map;if(!addressField){return;}
2373if(store_locator_options.api=="here"){var acId=addressField.attr('id')||'embedded-search';var parent=addressField.parent();if(parent.css("position")==="static")parent.css("position","relative");parent.find(".here-autocomplete-list[data-for='"+acId+"']").remove();var list=$("<div/>",{class:"here-autocomplete-list","data-for":acId}).css({position:"absolute",background:"#fff",border:"1px solid #ccc",zIndex:9999,width:addressField.outerWidth(),maxHeight:"220px",overflowY:"auto",boxSizing:"border-box"});parent.append(list);var lastItems=[];var activeIndex=-1;var timer=null;addressField.on("input",function(){var q=addressField.val();activeIndex=-1;clearTimeout(timer);if(q.length<2){list.hide().empty();return;}
2374timer=setTimeout(function(){var at=(function(){try{var c=map.getCenter();return c.lat+","+c.lng;}catch(e){return Number(that.settings.mapDefaultLat)+","+Number(that.settings.mapDefaultLng);}})();var params={q:q,at:at,limit:6};if(!that.isEmpty(countryRestrict)){var iso2to3={DE:"DEU",AT:"AUT",CH:"CHE",NL:"NLD",BE:"BEL",FR:"FRA",IT:"ITA",ES:"ESP",PL:"POL",CZ:"CZE",US:"USA",CA:"CAN",GB:"GBR",AU:"AUS",NZ:"NZL"};var iso3=countryRestrict.split(',').map(function(c){c=c.trim().toUpperCase();return c.length===2?(iso2to3[c]||null):(c.length===3?c:null);}
2374).filter(Boolean);if(iso3.length){params.in="countryCode:"+iso3.join(",");}}
2375that.searchService.autosuggest(params,function(result){lastItems=(result&&result.items)?result.items:[];list.empty();var shown=0;var allowedTypes={locality:1,administrativeArea:1,houseNumber:1,street:1,postalCode:1};$.each(lastItems,function(idx,item){if(!allowedTypes[item.resultType])return;var label=item.address?item.address.label:item.title;if(!label||shown>=6)return;shown++;var row=$("<div/>",{class:"here-autocomplete-item",text:label}).css({padding:"8px 10px",cursor:"pointer"});row.on("mouseenter",function(){list.find(".here-autocomplete-item").css("background","#fff");$(this).css("background","#f3f3f3");activeIndex=idx;});row.on("click",function(){addressField.val(label).trigger('focusout');list.hide().empty();});list.append(row);});if(shown>0)list.show();else list.hide().empty();},function(error){console.error("HERE autosuggest error",error);list.hide().empty();});},300);});addressField.on("keydown",function(e){if(!list.is(":visible")){return;}
2376var items=list.find(".here-autocomplete-item");if(e.key==="ArrowDown"||e.keyCode===40){e.preventDefault();activeIndex=Math.min(activeIndex+1,items.length-1);items.css("background","#fff").eq(activeIndex).css("background","#f3f3f3");}else if(e.key==="ArrowUp"||e.keyCode===38){e.preventDefault();activeIndex=Math.max(activeIndex-1,0);items.css("background","#fff").eq(activeIndex).css("background","#f3f3f3");}else if(e.key==="Enter"||e.keyCode===13){e.preventDefault();if(activeIndex>=0&&lastItems[activeIndex]){var pickItem=lastItems[activeIndex];var pickLabel=pickItem.address?pickItem.address.label:pickItem.title;addressField.val(pickLabel).trigger('focusout');}
2377list.hide().empty();}});$(document).on("mousedown",function(e){if($(e.target).closest(".here-autocomplete-list, "+that.settings.store_locator_address_field).length===0){list.hide().empty();}});}else{var autocompleteOptions={};if(!that.isEmpty(countryRestrict)){autocompleteOptions.componentRestrictions={'country':countryRestrict.split(',')};}
2378if(!that.isEmpty(type)){autocompleteOptions.types=[type];}else{autocompleteOptions.types=['geocode'];}
2379var autocomplete=new google.maps.places.Autocomplete(addressField[0],autocompleteOptions);autocomplete.addListener('place_changed',function(){var place=autocomplete.getPlace();if(!that.isEmpty(place.formatted_address)){addressField.val(place.formatted_address).trigger('focusout');}else{addressField.val(place.name).trigger('focusout');}});}
2380var store_locator_get_my_position=$(this.settings.store_locator_get_my_position);store_locator_get_my_position.on('click',function(e){e.preventDefault();if(navigator.geolocation){var options={enableHighAccuracy:true,timeout:5000,maximumAge:0};navigator.geolocation.getCurrentPosition(function(position){if(addressField.val()===""){if(store_locator_options.api=="here"){var currentPosition={lat:Number(position.coords.latitude),lng:Number(position.coords.longitude)};that.currentPosition=currentPosition;that.lat=currentPosition.lat;that.lng=currentPosition.lng;}else{var currentPosition=new google.maps.LatLng(position.coords.latitude,position.coords.longitude);that.currentPosition=currentPosition;that.lat=currentPosition.lat();that.lng=currentPosition.lng();}
2381that.geocodeLatLng(function(address){addressField.val(address);});}},function(error){var msg;switch(error.code){case error.PERMISSION_DENIED:msg='Location access was denied. Please allow location access in your browser settings.';break;case error.POSITION_UNAVAILABLE:msg='Your location could not be determined. Please enter your address manually.';break;case error.TIMEOUT:msg='Location request timed out. Please try again or enter your address manually.';break;default:msg='An unknown error occurred while retrieving your location.';}
2382console.warn('Geolocation error:',msg,error);addressField.attr('placeholder',msg);},options);}});if(that.settings.searchBoxAutolocate==="1"){store_locator_get_my_position.trigger('click');}},isInfoWindowOpen:function(infoWindow){var map=infoWindow.getMap();return(map!==null&&typeof map!=="undefined");},buildReplaceState:function(){var that=this;var address=$(that.settings.store_locator_address_field).val();var categories=that.categories;var filter=that.filter;var radius=that.radius;if(that.settings.disableReplaceState=="1"){return;}
2383var queryCheck=that.currentURL.split('?');
2383if(queryCheck.length>1&&queryCheck[1]!==''){var url=that.currentURL+'&';}else{var url=that.currentURL+'?';}
2384var url=queryCheck[0]+'?';var tmp="";if(!that.isEmpty(address)){tmp+='location='+address;}
2385if(categories[0]){if(tmp==""){tmp+='category='+categories[0];}else{tmp+='&category='+categories[0];}}
2386if(radius){if(tmp==""){tmp+='radius='+radius;}else{tmp+='&radius='+radius;}}
2387if(filter){var filterLoop=0;$.each(filter,function(i,index){if(filterLoop==0&&tmp==""){tmp+='filter[]='+index;}else{tmp+='&filter[]='+index;}
2388filterLoop++;});}
2389window.history.replaceState('test','Store Locator',url+tmp);},initListing:function(){if($('.store-locator-listing').length<1){return;}
2390$('.store-locator-listing-heading').on('click',function(e){e.preventDefault();var $this=$(this);var id=$this.data('id');if(!$this.hasClass('store-locator-listing-heading-open')){$('.store-locator-listing-heading').removeClass('store-locator-listing-heading-open').addClass('store-locator-listing-heading-closed');$('.store-locator-listing-content').addClass('store-locator-listing-hidden');$this.removeClass('store-locator-listing-heading-closed').addClass('store-locator-listing-heading-open');$('#store-locator-listing-content-'+id).removeClass('store-locator-listing-hidden').addClass('store-locator-listing-open');$('#store-locator-listing-content-'+id+' .store-locator-listing-post-link').first().trigger('click');var subHeadings=$this.parent().find('.store-locator-listing-subheading');$.each(subHeadings,function(i,index){var subHeading=$(this);var subHeadingId=$(this).data('id');subHeading.removeClass('store-locator-listing-subheading-open').addClass('store-locator-listing-subheading-closed');$('#store-locator-listing-content-'+subHeadingId).addClass('store-locator-listing-hidden');});}else{$('.store-locator-listing-heading').removeClass('store-locator-listing-heading-open').addClass('store-locator-listing-heading-closed');$('.store-locator-listing-content').addClass('store-locator-listing-hidden');}});$('.store-locator-listing-subheading').on('click',function(e){e.preventDefault();var $this=$(this);var id=$this.data('id');if(!$this.hasClass('store-locator-listing-subheading-open')){$('.store-locator-listing-subheading').removeClass('store-locator-listing-subheading-open').addClass('store-locator-listing-subheading-closed');$('.store-locator-listing-content-'+id).addClass('store-locator-listing-hidden');$this.removeClass('store-locator-listing-subheading-closed').addClass('store-locator-listing-subheading-open');$('#store-locator-listing-content-'+id).removeClass('store-locator-listing-hidden').addClass('store-locator-listing-open');$('#store-locator-listing-content-'+id+' .store-locator-listing-post-link').first().trigger('click');}else{$('.store-locator-listing-subheading').removeClass('store-locator-listing-subheading-open').addClass('store-locator-listing-subheading-closed');$('#store-locator-listing-content-'+id).addClass('store-locator-listing-hidden');}});$('.store-locator-listing-post-link').on('click',function(e){e.preventDefault();var $this=$(this);var id=$this.data('id');$('.store-locator-listing-post-link').removeClass('store-locator-listing-open');$('.store-locator-content-post').addClass('store-locator-listing-hidden');$('#store-locator-content-post-'+id).removeClass('store-locator-listing-hidden');$this.addClass('store-locator-listing-open');});},initList:function(){var listContainer=$('.wordpress-store-locator-list-container');if(listContainer.length<1){return;}
2391var that=this;var listDistances=$('.wordpress-store-locator-list-item-distance');var columns=listContainer.data('columns');var orderBy=listContainer.data('orderby');var maxResults=listContainer.data('max-results');if(listDistances.length>0){navigator.geolocation.getCurrentPosition(function(position){var userLat=position.coords.latitude;var userLng=position.coords.longitude;listDistances.each(function(i,index){var $this=$(this);var lat=$this.data('lat');var lng=$this.data('lng');if(!lat||lat==""||!lng||lng==""){return;}
2392var distance=that.getDistance(lat,lng,userLat,userLng).toFixed(1);if(distance&&distance>0&&distance!=""){$(this).text(that.settings.showDistanceText+distance+' '+that.settings.mapDistanceUnit);$(this).parents('.wordpress-store-locator-list-item').attr('data-distance',distance);}});if(orderBy=="distance"){var listContainers=$('.wordpress-store-locator-list-items-container');$.each(listContainers,function(i,index){var listContainer=$(this);var listContainerId=listContainer.data('id');var listContainerItems=listContainer.find('.wordpress-store-locator-list-item').parent();listContainerItems.sort(function(a,b){return $(a).find('.wordpress-store-locator-list-item').data("distance")-$(b).find('.wordpress-store-locator-list-item').data("distance")});listContainerItems=listContainerItems.slice(0,maxResults);var targetContainer=$('.wordpress-store-locator-list-items-container[data-id='+listContainerId+']');targetContainer.html('<div class="store-locator-row"></div>');targetContainer.find('div.store-locator-row').html(listContainerItems);});}});}},getDistance:function(lat1,lon1,lat2,lon2)
2393{var distanceUnit=this.settings.mapDistanceUnit;var earthRadius=this.settings.earthRadi[distanceUnit];var dLat=this.toRad(lat2-lat1);var dLon=this.toRad(lon2-lon1);var lat1=this.toRad(lat1);var lat2=this.toRad(lat2);var a=Math.sin(dLat/2)*Math.sin(dLat/2)+
2394Math.sin(dLon/2)*Math.sin(dLon/2)*Math.cos(lat1)*Math.cos(lat2);var c=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));var d=earthRadius*c;return d;},toRad:function(value){return value*Math.PI/180;}
2394,isEmpty:function(obj){if(obj==null)return true;if(obj.length>0)return false;if(obj.length===0)return true;for(var key in obj){if(hasOwnProperty.call(obj,key))return false;}
2395return true;},sprintf:function parse(str){var args=[].slice.call(arguments,1),i=0;return str.replace(/%s/g,function(){return args[i++];});},getCookie:function(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)===0)return c.substring(name.length,c.length);}
2396return"";},slugify:function(text){return text.toString().toLowerCase().replace(/\s+/g,'-').replace(/[^\w\-]+/g,'').replace(/\-\-+/g,'-').replace(/^-+/,'').replace(/-+$/,'');},getParameterByName:function(name,url){if(!url)url=window.location.href;name=name.replace(/[\[\]]/g,"\\$&");var regex=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)"),results=regex.exec(url);if(!results)return null;if(!results[2])return'';return decodeURIComponent(results[2].replace(/\+/g," "));},getQuerystringData:function(name){var data={};var parameters=window.location.search.substring(1).split("&");for(var i=0,j=parameters.length;i<j;i++){var parameter=parameters[i].split("=");var parameterName=decodeURIComponent(parameter[0]);var parameterValue=typeof parameter[1]==="undefined"?parameter[1]:decodeURIComponent(parameter[1]);var dataType=typeof data[parameterName];if(dataType==="undefined"){data[parameterName]=parameterValue;}else if(dataType==="array"){data[parameterName].push(parameterValue);}else{data[parameterName]=[data[parameterName]];data[parameterName].push(parameterValue);}}
2397return typeof name==="string"?data[name]:data;},decodePolyline:function(polyline){var _={};_.Ya=function(a,b,c){null!=b&&(a=Math.max(a,b));null!=c&&(a=Math.min(a,c));return a};_.Za=function(a,b,c){c-=b;return((a-b)%c+c)%c+b};_.w=function(a){return a?a.length:0};_.E=function(a,b,c){a-=0;b-=0;c||(a=_.Ya(a,-90,90),180!=b&&(b=_.Za(b,-180,180)));this.lat=function(){return a};this.lng=function(){return b}};function decodePath(a){for(var b=_.w(a),c=Array(Math.floor(a.length/2)),d=0,e=0,f=0,g=0;d<b;++g){var h=1,l=0,n;do n=a.charCodeAt(d++)-63-1,h+=n<<l,l+=5;while(31<=n);e+=h&1?~(h>>1):h>>1;h=1;l=0;do n=a.charCodeAt(d++)-63-1,h+=n<<l,l+=5;while(31<=n);f+=h&1?~(h>>1):h>>1;c[g]=new _.E(1E-5*e,1E-5*f,!0)}
2398c.length=g;return c}
2399var result=decodePath(polyline).map(function(el){return{lat:Number(el.lat().toFixed(5)),lng:Number(el.lng().toFixed(5))};});return result;}});$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+
2400pluginName,new Plugin(this,options));}});};$(document).ready(function(){var mapsLoaded;mapsLoaded=setInterval(function(){console.log(store_locator_options);if(store_locator_options.api=="here"){if(typeof H==='object'&&typeof H.Map==='function'){clearInterval(mapsLoaded);$("body").storeLocator(store_locator_options);}}else{if(typeof google==='object'&&typeof google.maps==='object'){clearInterval(mapsLoaded);$("body").storeLocator(store_locator_options);}}},500);});})(jQuery);
2401document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",(()=>{for(var e=["-webkit-","-moz-","-ms-","-o-",""],t=0;t<e.length;t++)e[t]+"transform"in document.documentElement.style&&(document.documentElement.className+=" vc_transform ")})(),(c=>{"function"!=typeof window.vc_js&&(window.vc_js=function(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),vc_ttaToggleBehaviour(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}),"function"!=typeof window.vc_plugin_flexslider&&(window.vc_plugin_flexslider=function(e){(e?e.find(".wpb_flexslider"):jQuery(".wpb_flexslider")).each(function(){var e=jQuery(this),t=1e3*parseInt(e.attr("data-interval"),10),i=e.attr("data-flex_fx"),o=0==t?!1:!0;e.is(":visible")&&setTimeout(function(){e.flexslider({animation:i,slideshow:o,slideshowSpeed:t,sliderSpeed:800,smoothHeight:!0})},1)})}),"function"!=typeof window.vc_googleplus&&(window.vc_googleplus=function(){var e,t;0<jQuery(".wpb_googleplus").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://apis.google.com/js/plusone.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_pinterest&&(window.vc_pinterest=function(){var e,t;0<jQuery(".wpb_pinterest").length&&((e=document.createElement("script")).type="text/javascript",e.async=!0,e.src="https://assets.pinterest.com/js/pinit.js",(t=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,t))}),"function"!=typeof window.vc_progress_bar&&(window.vc_progress_bar=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".vc_progress_bar").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.find(".vc_single_bar").each(function(e){var t=jQuery(this).find(".vc_bar"),i=t.data("percentage-value");setTimeout(function(){t.css({width:i+"%"})},200*e)})},{offset:"85%"})})}),"function"!=typeof window.vc_waypoints&&(window.vc_waypoints=function(){void 0!==jQuery.fn.vcwaypoint&&jQuery(".wpb_animate_when_almost_visible:not(.wpb_start_animation)").each(function(){var e=jQuery(this);e.vcwaypoint(function(){e.addClass("wpb_start_animation animated")},{offset:"85%"})})}),"function"!=typeof window.vc_toggleBehaviour&&(window.vc_toggleBehaviour=function(e){function t(e){e&&e.preventDefault&&e.preventDefault();var t=jQuery(this).closest(".vc_toggle"),e=t.find(".vc_toggle_content");t.hasClass("vc_toggle_active")?e.slideUp({duration:300,complete:function(){t.removeClass("vc_toggle_active")}}):e.slideDown({duration:300,complete:function(){t.addClass("vc_toggle_active")}})}(e?e.hasClass("vc_toggle_title")?e.unbind("click"):e.find(".vc_toggle_title").off("click"):jQuery(".vc_toggle_title").off("click")).on("click",t)}),"function"!=typeof window.vc_ttaToggleBehaviour&&(window.vc_ttaToggleBehaviour=function(e){function t(){var e=jQuery(this);e.toggleClass("wpb-tta-toggle-active"),e.parent().parent().parent().find(".vc_pagination-item").each(function(){if(!c(this).hasClass("vc_active"))return c(this).find("a").click(),!1})}(e?e.find(".wpb-tta-toggle"):jQuery(".wpb-tta-toggle")).off("click").on("click",t),setTimeout(function(){jQuery(".wpb-tta-toggle").each(function(){var e=jQuery(this);e.parent().parent().parent().find(".vc_tta-panels-container .vc_pagination li:first").hasClass("vc_active")||e.addClass("wpb-tta-toggle-active")})},1e3)}),"function"!=typeof window.vc_tabsBehaviour&&(window.vc_tabsBehaviour=function(e){var t,o;jQuery.ui&&(e=e||jQuery(".wpb_tabs, .wpb_tour"),t=jQuery.ui&&jQuery.ui.version?jQuery.ui.version.split("."):"1.10",o=1===parseInt(t[0],10)&&parseInt(t[1],10)<9,e.each(function(){var e=jQuery(this).attr("data-interval"),t=[],i=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(e,t){wpb_prepare_tab_content(e,t)},activate:function(e,t){wpb_prepare_tab_content(e,t)}});if(e&&0<e)try{i.tabs("rotate",1e3*e)}catch(e){window.console&&window.console.warn&&console.warn("tabs behaviours error",e)}jQuery(this).find(".wpb_tab").each(function(){t.push(this.id)}),jQuery(this).find(".wpb_tabs_nav li").on("click",function(e){return e&&e.preventDefault&&e.preventDefault(),o?i.tabs("select",jQuery("a",this).attr("href")):i.tabs("option","active",jQuery(this).index()),!1}),jQuery(this).find(".wpb_prev_slide a, .wpb_next_slide a").on("click",function(e){var t;e&&e.preventDefault&&e.preventDefault(),o?(t=i.tabs("option","selected"),jQuery(this).parent().hasClass("wpb_next_slide")?t++:t--,t<0?t=i.tabs("length")-1:t>=i.tabs("length")&&(t=0),i.tabs("select",t)):(t=i.tabs("option","active"),e=i.find(".wpb_tab").length,t=jQuery(this).parent().hasClass("wpb_next_slide")?e<=t+1?0:t+1:t-1<0?e-1:t-1,i.tabs("option","active",t))})}))}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(){var e=jQuery(this),t=(e.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0<parseInt(e.data("active-tab"),10)&&parseInt(e.data("active-tab"),10)-1),i=!1===t||"yes"===e.data("collapsible"),t=e.find(".wpb_accordion_wrapper").accordion({header:"> div > h3",autoHeight:!1,heightStyle:"content",active:t,collapsible:i,navigation:!0,activate:vc_accordionActivate,change:function(e,t){void 0!==jQuery.fn.isotope&&t.newContent.find(".
2401isotope").isotope("layout"),vc_carouselBehaviour(t.newPanel)}});!0===e.data("vcDisableKeydown")&&(t.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var o={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var e=jQuery(this),t=e.find(".wpb_thumbnails"),i=t.attr("data-layout-mode");t.isotope({itemSelector:".isotope-item",layoutMode:void 0===o[i]?"fitRows":o[i]}),e.find(".categories_filter a").data("isotope",t).on("click",function(e){e&&e.preventDefault&&e.preventDefault();e=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),e.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).on("load resize",function(){t.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function(e){(e?e.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var e=jQuery(this);!0!==e.data("carousel_enabled")&&e.is(":visible")&&(e.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1"),(e=jQuery(this).find(".wpb_thumbnails-fluid li")).css({"margin-right":e.css("margin-left"),"margin-left":0}),(e=jQuery(this).find("ul.wpb_thumbnails-fluid")).width(e.width()+300))})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(){var e,t,i=jQuery(this);i.hasClass("wpb_slider_nivo")?(0===(t=1e3*i.attr("data-interval"))&&(t=9999999999),jQuery.fn.nivoSlider&&!i.data("nivo-initialized")&&(i.data("nivo-initialized",!0),i.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:t,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"}))):i.hasClass("wpb_image_grid")&&i.find(".wpb_image_grid_ul")&&i.find(".wpb_image_grid_ul").isotope&&(jQuery.fn.imagesLoaded?e=i.find(".wpb_image_grid_ul").imagesLoaded(function(){e.isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0})}):i.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows",percentPosition:!0}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){-1<location.href.indexOf("#!prettyPhoto")&&(location.hash="")},social_tools:""})}catch(e){window.console&&window.console.warn&&window.console.warn("vc_prettyPhoto initialize error",e)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return window.console&&window.console.warn&&window.console.warn("function vc_google_fonts is deprecated, no need to use it"),!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){var s=window.jQuery;function e(){var e;void 0!==window.wpb_disable_full_width_row_js&&window.wpb_disable_full_width_row_js||(e=s('[data-vc-full-width="true"]'),s.each(e,function(){var e,t,i,o,n,a,r,c=s(this),d=(c.addClass("vc_hidden"),c.next(".vc_row-full-width"));(d=d.length?d:c.parent().next(".vc_row-full-width")).length&&(c.removeAttr("data-vc-full-width-temp"),e=parseInt(c.css("margin-left"),10),t=parseInt(c.css("margin-right"),10),i=0-d.offset().left-e,o=s(window).width(),n={position:"relative",left:i="rtl"===c.css("direction")?(i=i-d.width()+o)+e+t:i,"box-sizing":"border-box",width:o,"max-width":o},c.css(n),c.data("vcStretchContent")||("rtl"===c.css("direction")?((a=i)<0&&(a=0),(r=i)<0&&(r=0)):(r=o-(a=(a=-1*i)<0?0:a)-d.width()+e+t)<0&&(r=0),c.css({"padding-left":a+"px","padding-right":r+"px"})),c.attr("data-vc-full-width-init","true"),c.removeClass("vc_hidden"),s(document).trigger("vc-full-width-row-single",{el:c,offset:i,marginLeft:e,marginRight:t,elFull:d,width:o,maxWidth:o}))}),s(document).trigger("vc-full-width-row",e))}function t(){var e,t,i=s(".vc_row-o-full-height:first");i.length&&(e=s(window).height(),(t=i.offset().top)<e)&&i.css("min-height",100-t/(e/100)+"vh"),s(document).trigger("vc-full-height-row",i)}s(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",e).on("resize.vcRowBehaviour",t),e(),t(),(0<window.navigator.userAgent.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv\:11\./))&&s(".vc_row-o-full-height").each(function(){"flex"===s(this).css("display")&&s(this).wrap('<div class="vc_ie-flexbox-fixer"></div>')}
2401),vc_initVideoBackgrounds();var n=!1;if(window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),s(".vc_parallax-inner").remove(),s("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),s("[data-vc-parallax]").each(function(){var e,t,i,o;n=!0,"on"===s(this).data("vcParallaxOFade")&&s(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),e=100*s(this).data("vcParallax"),(t=s("<div />").addClass("vc_parallax-inner").appendTo(s(this))).height(e+"%"),i=s(this).data("vcParallaxImage"),(o=vcExtractYoutubeId(i))?insertYoutubeVideoAsBackground(t,o):void 0!==i&&t.css("background-image","url("+i+")"),t.attr("data-bottom-top","top: "+-(e-100)+"%;").attr("data-top-bottom","top: 0%;")}),n&&window.skrollr)window.vcParallaxSkroll=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}}),window.vcParallaxSkroll}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(e){for(var t=!1,i=1;!1===t;){if(e.hasClass("columns_count_"+i))return t=!0,i;i++}}),"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(e,t){var i=t.panel||t.newPanel,o=i.find(".vc_pie_chart:not(.vc_ready)"),n=i.find(".vc_round-chart"),a=i.find(".vc_line-chart"),r=i.find('[data-ride="vc_carousel"]');vc_carouselBehaviour(),vc_plugin_flexslider(i),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),i.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&i.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),o.length&&jQuery.fn.vcChat&&o.vcChat(),n.length&&jQuery.fn.vcRoundChart&&n.vcRoundChart({reload:!1}),a.length&&jQuery.fn.vcLineChart&&a.vcLineChart({reload:!1}),r.length&&jQuery.fn.carousel&&r.carousel("resizeAction"),t=i.find(".isotope, .wpb_image_grid_ul"),o=i.find(".wpb_gmaps_widget"),0<t.length&&t.isotope("layout"),o.length&&!o.is(".map_ready")&&((n=o.find("iframe")).attr("src",n.attr("src")),o.addClass("map_ready")),i.parents(".isotope").length&&i.parents(".isotope").each(function(){jQuery(this).isotope("layout")}),c(document).trigger("wpb_prepare_tab_content",i)}),"function"!=typeof window.vc_ttaActivation&&(window.vc_ttaActivation=function(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var t=window.jQuery,i={};i.newPanel=t(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,i)})}),"function"!=typeof window.vc_accordionActivate&&(window.vc_accordionActivate=function(e,t){var i,o,n,a;t.newPanel.length&&t.newHeader.length&&(i=t.newPanel.find(".vc_pie_chart:not(.vc_ready)"),o=t.newPanel.find(".vc_round-chart"),n=t.newPanel.find(".vc_line-chart"),a=t.newPanel.find('[data-ride="vc_carousel"]'),void 0!==jQuery.fn.isotope&&t.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&t.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var e=jQuery(this).data("vcGrid");e&&e.gridBuilder&&e.gridBuilder.setMasonry&&e.gridBuilder.setMasonry()}),vc_carouselBehaviour(t.newPanel),vc_plugin_flexslider(t.newPanel),i.length&&jQuery.fn.vcChat&&i.vcChat(),o.length&&jQuery.fn.vcRoundChart&&o.vcRoundChart({reload:!1}),n.length&&jQuery.fn.vcLineChart&&n.vcLineChart({reload:!1}),a.length&&jQuery.fn.carousel&&a.carousel("resizeAction"),t.newPanel.parents(".isotope").length)&&t.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.initVideoBackgrounds&&(window.initVideoBackgrounds=function(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgroun
2401ds()}),"function"!=typeof window.vc_initVideoBackgrounds&&(window.vc_initVideoBackgrounds=function(){c(".vc_video-bg").remove(),c("[data-vc-video-bg]").each(function(){var e,i=jQuery(this);i.data("vcVideoBg")?(e=i.data("vcVideoBg"),(e=vcExtractYoutubeId(e))&&(i.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground(i,e)),jQuery(window).on("grid:items:added",function(e,t){i.has(t).length&&vcResizeVideoBackground(i)})):i.find(".vc_video-bg").remove()})}),"function"!=typeof window.insertYoutubeVideoAsBackground&&(window.insertYoutubeVideoAsBackground=function(e,t,i){if("undefined"==typeof YT||void 0===YT.Player)return 100<(i=void 0===i?0:i)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground(e,t,i++)},100);var o=e.prepend('<div class="vc_video-bg"><div class="inner"></div></div>').find(".inner");new YT.Player(o[0],{width:"100%",height:"100%",videoId:t,playerVars:{playlist:t,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,mute:1,wmode:"transparent"},events:{onReady:function(e){e.target.mute().setLoop(!0)}}}),vcResizeVideoBackground(e),jQuery(window).on("resize",function(){vcResizeVideoBackground(e)})}),"function"!=typeof window.vcResizeVideoBackground&&(window.vcResizeVideoBackground=function(e){var t,i,o,n,a=e.innerWidth(),r=e.innerHeight();a/r<16/9?(t=r*(16/9),i=r,o=-Math.round((t-a)/2)+"px",n=-Math.round((i-r)/2)+"px"):(i=(t=a)*(9/16),n=-Math.round((i-r)/2)+"px",o=-Math.round((t-a)/2)+"px"),t+="px",i+="px",e.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:o,marginTop:n,width:t,height:i})}),"function"!=typeof window.vcExtractYoutubeId&&(window.vcExtractYoutubeId=function(e){return void 0!==e&&null!==(e=e.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/))&&e[1]}),"function"!=typeof window.vc_googleMapsPointer&&(window.vc_googleMapsPointer=function(){var e=window.jQuery,t=e(".wpb_gmaps_widget");t.on("click",function(){e("iframe",this).css("pointer-events","auto")}),t.on("mouseleave",function(){e("iframe",this).css("pointer-events","none")}),e(".wpb_gmaps_widget iframe").css("pointer-events","none")}),"function"!=typeof window.vc_setHoverBoxPerspective&&(window.vc_setHoverBoxPerspective=function(e){e.each(function(){var e=jQuery(this),t=e.width();e.css("perspective",4*t+"px")})}),"function"!=typeof window.vc_setHoverBoxHeight&&(window.vc_setHoverBoxHeight=function(e){e.each(function(){var e=jQuery(this),t=e.find(".vc-hoverbox-inner"),i=(t.css("min-height",0),e.find(".vc-hoverbox-front-inner").outerHeight()),e=e.find(".vc-hoverbox-back-inner").outerHeight(),i=e<i?i:e;t.css("min-height",(i=i<250?250:i)+"px")})}),"function"!=typeof window.vc_prepareHoverBox&&(window.vc_prepareHoverBox=function(){var e=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(e),vc_setHoverBoxPerspective(e)}),jQuery(document).ready(window.vc_prepareHoverBox),jQuery(window).on("resize",window.vc_prepareHoverBox),jQuery(document).ready(function(){window.vc_js()})})(window.jQuery);
2402/*! skrollr 0.6.26 (2014-06-08) | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */
2403(function(e,t,r){"use strict";function n(r){if(o=t.documentElement,a=t.body,K(),it=this,r=r||{},ut=r.constants||{},r.easing)for(var n in r.easing)U[n]=r.easing[n];yt=r.edgeStrategy||"set",ct={beforerender:r.beforerender,render:r.render,keyframe:r.keyframe},ft=r.forceHeight!==!1,ft&&(Vt=r.scale||1),mt=r.mobileDeceleration||x,dt=r.smoothScrolling!==!1,gt=r.smoothScrollingDuration||E,vt={targetTop:it.getScrollTop()},Gt=(r.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||e.opera)})(),Gt?(st=t.getElementById("skrollr-body"),st&&at(),X(),Dt(o,[y,S],[T])):Dt(o,[y,b],[T]),it.refresh(),St(e,"resize orientationchange",function(){var e=o.clientWidth,t=o.clientHeight;(t!==$t||e!==Mt)&&($t=t,Mt=e,_t=!0)});var i=Y();return function l(){Z(),bt=i(l)}(),it}var o,a,i={get:function(){return it},init:function(e){return it||new n(e)},VERSION:"0.6.26"},l=Object.prototype.hasOwnProperty,s=e.Math,c=e.getComputedStyle,f="touchstart",u="touchmove",m="touchcancel",p="touchend",d="skrollable",g=d+"-before",v=d+"-between",h=d+"-after",y="skrollr",T="no-"+y,b=y+"-desktop",S=y+"-mobile",k="linear",w=1e3,x=.004,
2403E=200,A="start",F="end",C="center",D="bottom",H="___skrollable_id",I=/^(?:input|textarea|button|select)$/i,P=/^\s+|\s+$/g,N=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,O=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,V=/^(@?[a-z\-]+)\[(\w+)\]$/,z=/-([a-z0-9_])/g,q=function(e,t){return t.toUpperCase()},L=/[\-+]?[\d]*\.?[\d]+/g,M=/\{\?\}/g,$=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,_=/[a-z\-]+-gradient/g,B="",G="",K=function(){var e=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(c){var t=c(a,null);for(var n in t)if(B=n.match(e)||+n==n&&t[n].match(e))break;if(!B)return B=G="",r;B=B[0],"-"===B.slice(0,1)?(G=B,B={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[B]):G="-"+B.toLowerCase()+"-"}},Y=function(){var t=e.requestAnimationFrame||e[B.toLowerCase()+"RequestAnimationFrame"],r=Pt();return(Gt||!t)&&(t=function(t){var n=Pt()-r,o=s.max(0,1e3/60-n);return e.setTimeout(function(){r=Pt(),t()},o)}),t},R=function(){var t=e.cancelAnimationFrame||e[B.toLowerCase()+"CancelAnimationFrame"];return(Gt||!t)&&(t=function(t){return e.clearTimeout(t)}),t},U={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-s.cos(e*s.PI)/2+.5},sqrt:function(e){return s.sqrt(e)},outCubic:function(e){return s.pow(e-1,3)+1},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-s.abs(3*s.cos(1.028*e*t)/t)}};n.prototype.refresh=function(e){var n,o,a=!1;for(e===r?(a=!0,lt=[],Bt=0,e=t.getElementsByTagName("*")):e.length===r&&(e=[e]),n=0,o=e.length;o>n;n++){var i=e[n],l=i,s=[],c=dt,f=yt,u=!1;if(a&&H in i&&delete i[H],i.attributes){for(var m=0,p=i.attributes.length;p>m;m++){var g=i.attributes[m];if("data-anchor-target"!==g.name)if("data-smooth-scrolling"!==g.name)if("data-edge-strategy"!==g.name)if("data-emit-events"!==g.name){var v=g.name.match(N);if(null!==v){var h={props:g.value,element:i,eventType:g.name.replace(z,q)};s.push(h);var y=v[1];y&&(h.constant=y.substr(1));var T=v[2];/p$/.test(T)?(h.isPercentage=!0,h.offset=(0|T.slice(0,-1))/100):h.offset=0|T;var b=v[3],S=v[4]||b;b&&b!==A&&b!==F?(h.mode="relative",h.anchors=[b,S]):(h.mode="absolute",b===F?h.isEnd=!0:h.isPercentage||(h.offset=h.offset*Vt))}}else u=!0;else f=g.value;else c="off"!==g.value;else if(l=t.querySelector(g.value),null===l)throw'Unable to find anchor target "'+g.value+'"'}if(s.length){var k,w,x;!a&&H in i?(x=i[H],k=lt[x].styleAttr,w=lt[x].classAttr):(x=i[H]=Bt++,k=i.style.cssText,w=Ct(i)),lt[x]={element:i,styleAttr:k,classAttr:w,anchorTarget:l,keyFrames:s,smoothScrolling:c,edgeStrategy:f,emitEvents:u,lastFrameIndex:-1},Dt(i,[d],[])}}}for(Et(),n=0,o=e.length;o>n;n++){var E=lt[e[n][H]];E!==r&&(J(E),et(E))}return it},n.prototype.relativeToAbsolute=function(e,t,r){var n=o.clientHeight,a=e.getBoundingClientRect(),i=a.top,l=a.bottom-a.top;return t===D?i-=n:t===C&&(i-=n/2),r===D?i+=l:r===C&&(i+=l/2),i+=it.getScrollTop(),0|i+.5},n.prototype.animateTo=function(e,t){t=t||{};var n=Pt(),o=it.getScrollTop();return pt={startTop:o,topDiff:e-o,targetTop:e,duration:t.duration||w,startTime:n,endTime:n+(t.duration||w),easing:U[t.easing||k],done:t.done},pt.topDiff||(pt.done&&pt.done.call(it,!1),pt=r),it},n.prototype.stopAnimateTo=function(){pt&&pt.done&&pt.done.call(it,!0),pt=r},n.prototype.isAnimatingTo=function(){return!!pt},n.prototype.isMobile=function(){return Gt},n.prototype.setScrollTop=function(t,r){return ht=r===!0,Gt?Kt=s.min(s.max(t,0),Ot):e.scrollTo(0,t),it},n.prototype.getScrollTop=function(){return Gt?Kt:e.pageYOffset||o.scrollTop||a.scrollTop||0},n.prototype.getMaxScrollTop=function(){return Ot},n.prototype.on=function(e,t){return ct[e]=t,it},n.prototype.off=function(e){return delete ct[e],it},n.prototype.destroy=function(){var e=R();e(bt),wt(),Dt(o,[T],[y,b,S]);for(var t=0,n=lt.length;n>t;t++)ot(lt[t].element);o.style.overflow=a.style.overflow="",o.style.height=a.style.height="",st&&i.setStyle(st,"transform","none"),it=r,st=r,ct=r,ft=r,Ot=0,Vt=1,ut=r,mt=r,zt="down",qt=-1,Mt=0,$t=0,_t=!1,pt=r,dt=r,gt=r,vt=r,ht=r,Bt=0,yt=r,Gt=!1,Kt=0,Tt=r};var X=function(){var n,i,l,c,d,g,v,h,y,T,b,S;St(o,[f,u,m,p].join(" "),function(e){var o=e.changedTouches[0];for(c=e.target;3===c.nodeType;)c=c.parentNode;switch(d=o.clientY,g=o.clientX,T=e.timeStamp,I.test(c.tagName)||e.preventDefault(),e.type){case f:n&&n.blur(),it.stopAnimateTo(),n=c,i=v=d,l=g,y=T;break;case u:I.test(c.tagName)&&t.activeElement!==c&&e.preventDefault(),h=d-v,S=T-b,it.setScrollTop(Kt-h,!0),v=d,b=T;break;default:case m:case p:var a=i-d,k=l-g,w=k*k+a*a;if(49>w){if(!I.test(n.tagName)){n.focus();var x=t.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,e.view,1,o.screenX,o.screenY,o.clientX,o.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null),n.dispatchEvent(x)}return}n=r;var E=h/S;E=s.max(s.min(E,3),-3);var A=s.abs(E/mt),F=E*A+.5*mt*A*A,C=it.getScrollTop()-F,D=0;C>Ot?(D=(Ot-C)/F,C=Ot):0>C&&(D=-C/F,C=0),A*=1-D,it.animateTo(0|C+.5,{easing:"outCubic",duration:A})}}),e.scrollTo(0,0),o.style.overflow=a.style.overflow="hidden"},j=function(){var e,t,r,n,a,i,l,c,f,u,m,p=o.clientHeight,d=At();for(c=0,f=lt.length;f>c;c++)for(e=lt[c],t=e.element,r=e.anchorTarget,n=e.keyFrames,a=0,i=n.length;i>a;
2403a++)l=n[a],u=l.offset,m=d[l.constant]||0,l.frame=u,l.isPercentage&&(u*=p,l.frame=u),"relative"===l.mode&&(ot(t),l.frame=it.relativeToAbsolute(r,l.anchors[0],l.anchors[1])-u,ot(t,!0)),l.frame+=m,ft&&!l.isEnd&&l.frame>Ot&&(Ot=l.frame);for(Ot=s.max(Ot,Ft()),c=0,f=lt.length;f>c;c++){for(e=lt[c],n=e.keyFrames,a=0,i=n.length;i>a;a++)l=n[a],m=d[l.constant]||0,l.isEnd&&(l.frame=Ot-l.offset+m);e.keyFrames.sort(Nt)}},W=function(e,t){for(var r=0,n=lt.length;n>r;r++){var o,a,s=lt[r],c=s.element,f=s.smoothScrolling?e:t,u=s.keyFrames,m=u.length,p=u[0],y=u[u.length-1],T=p.frame>f,b=f>y.frame,S=T?p:y,k=s.emitEvents,w=s.lastFrameIndex;if(T||b){if(T&&-1===s.edge||b&&1===s.edge)continue;switch(T?(Dt(c,[g],[h,v]),k&&w>-1&&(xt(c,p.eventType,zt),s.lastFrameIndex=-1)):(Dt(c,[h],[g,v]),k&&m>w&&(xt(c,y.eventType,zt),s.lastFrameIndex=m)),s.edge=T?-1:1,s.edgeStrategy){case"reset":ot(c);continue;case"ease":f=S.frame;break;default:case"set":var x=S.props;for(o in x)l.call(x,o)&&(a=nt(x[o].value),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a));continue}}else 0!==s.edge&&(Dt(c,[d,v],[g,h]),s.edge=0);for(var E=0;m-1>E;E++)if(f>=u[E].frame&&u[E+1].frame>=f){var A=u[E],F=u[E+1];for(o in A.props)if(l.call(A.props,o)){var C=(f-A.frame)/(F.frame-A.frame);C=A.props[o].easing(C),a=rt(A.props[o].value,F.props[o].value,C),a=nt(a),0===o.indexOf("@")?c.setAttribute(o.substr(1),a):i.setStyle(c,o,a)}k&&w!==E&&("down"===zt?xt(c,A.eventType,zt):xt(c,F.eventType,zt),s.lastFrameIndex=E);break}}},Z=function(){_t&&(_t=!1,Et());var e,t,n=it.getScrollTop(),o=Pt();if(pt)o>=pt.endTime?(n=pt.targetTop,e=pt.done,pt=r):(t=pt.easing((o-pt.startTime)/pt.duration),n=0|pt.startTop+t*pt.topDiff),it.setScrollTop(n,!0);else if(!ht){var a=vt.targetTop-n;a&&(vt={startTop:qt,topDiff:n-qt,targetTop:n,startTime:Lt,endTime:Lt+gt}),vt.endTime>=o&&(t=U.sqrt((o-vt.startTime)/gt),n=0|vt.startTop+t*vt.topDiff)}if(Gt&&st&&i.setStyle(st,"transform","translate(0, "+-Kt+"px) "+Tt),ht||qt!==n){zt=n>qt?"down":qt>n?"up":zt,ht=!1;var l={curTop:n,lastTop:qt,maxTop:Ot,direction:zt},s=ct.beforerender&&ct.beforerender.call(it,l);s!==!1&&(W(n,it.getScrollTop()),qt=n,ct.render&&ct.render.call(it,l)),e&&e.call(it,!1)}Lt=o},J=function(e){for(var t=0,r=e.keyFrames.length;r>t;t++){for(var n,o,a,i,l=e.keyFrames[t],s={};null!==(i=O.exec(l.props));)a=i[1],o=i[2],n=a.match(V),null!==n?(a=n[1],n=n[2]):n=k,o=o.indexOf("!")?Q(o):[o.slice(1)],s[a]={value:o,easing:U[n]};l.props=s}},Q=function(e){var t=[];return $.lastIndex=0,e=e.replace($,function(e){return e.replace(L,function(e){return 100*(e/255)+"%"})}),G&&(_.lastIndex=0,e=e.replace(_,function(e){return G+e})),e=e.replace(L,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},et=function(e){var t,r,n={};for(t=0,r=e.keyFrames.length;r>t;t++)tt(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)tt(e.keyFrames[t],n)},tt=function(e,t){var r;for(r in t)l.call(e.props,r)||(e.props[r]=t[r]);for(r in e.props)t[r]=e.props[r]},rt=function(e,t,r){var n,o=e.length;if(o!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';var a=[e[0]];for(n=1;o>n;n++)a[n]=e[n]+(t[n]-e[n])*r;return a},nt=function(e){var t=1;return M.lastIndex=0,e[0].replace(M,function(){return e[t++]})},ot=function(e,t){e=[].concat(e);for(var r,n,o=0,a=e.length;a>o;o++)n=e[o],r=lt[n[H]],r&&(t?(n.style.cssText=r.dirtyStyleAttr,Dt(n,r.dirtyClassAttr)):(r.dirtyStyleAttr=n.style.cssText,r.dirtyClassAttr=Ct(n),n.style.cssText=r.styleAttr,Dt(n,r.classAttr)))},at=function(){Tt="translateZ(0)",i.setStyle(st,"transform",Tt);var e=c(st),t=e.getPropertyValue("transform"),r=e.getPropertyValue(G+"transform"),n=t&&"none"!==t||r&&"none"!==r;n||(Tt="")};i.setStyle=function(e,t,r){var n=e.style;if(t=t.replace(z,q).replace("-",""),"zIndex"===t)n[t]=isNaN(r)?r:""+(0|r);else if("float"===t)n.styleFloat=n.cssFloat=r;else try{B&&(n[B+t.slice(0,1).toUpperCase()+t.slice(1)]=r),n[t]=r}catch(o){}};var it,lt,st,ct,ft,ut,mt,pt,dt,gt,vt,ht,yt,Tt,bt,St=i.addEvent=function(t,r,n){var o=function(t){return t=t||e.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1,t.defaultPrevented=!0}),n.call(this,t)};r=r.split(" ");for(var a,i=0,l=r.length;l>i;i++)a=r[i],t.addEventListener?t.addEventListener(a,n,!1):t.attachEvent("on"+a,o),Yt.push({element:t,name:a,listener:n})},kt=i.removeEvent=function(e,t,r){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e.removeEventListener?e.removeEventListener(t[n],r,!1):e.detachEvent("on"+t[n],r)},wt=function(){for(var e,t=0,r=Yt.length;r>t;t++)e=Yt[t],kt(e.element,e.name,e.listener);Yt=[]},xt=function(e,t,r){ct.keyframe&&ct.keyframe.call(it,e,t,r)},Et=function(){var e=it.getScrollTop();Ot=0,ft&&!Gt&&(a.style.height=""),j(),ft&&!Gt&&(a.style.height=Ot+o.clientHeight+"px"),Gt?it.setScrollTop(s.min(it.getScrollTop(),Ot)):it.setScrollTop(e,!0),ht=!0},At=function(){var e,t,r=o.clientHeight,n={};for(e in ut)t=ut[e],"function"==typeof t?t=t.call(it):/p$/.test(t)&&(t=t.
2403slice(0,-1)/100*r),n[e]=t;return n},Ft=function(){var e=st&&st.offsetHeight||0,t=s.max(e,a.scrollHeight,a.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight);return t-o.clientHeight},Ct=function(t){var r="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[r],r="baseVal"),t[r]},Dt=function(t,n,o){var a="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[a],a="baseVal"),o===r)return t[a]=n,r;for(var i=t[a],l=0,s=o.length;s>l;l++)i=It(i).replace(It(o[l])," ");i=Ht(i);for(var c=0,f=n.length;f>c;c++)-1===It(i).indexOf(It(n[c]))&&(i+=" "+n[c]);t[a]=Ht(i)},Ht=function(e){return e.replace(P,"")},It=function(e){return" "+e+" "},Pt=Date.now||function(){return+new Date},Nt=function(e,t){return e.frame-t.frame},Ot=0,Vt=1,zt="down",qt=-1,Lt=Pt(),Mt=0,$t=0,_t=!1,Bt=0,Gt=!1,Kt=0,Yt=[];"function"==typeof define&&define.amd?define("skrollr",function(){return i}):"undefined"!=typeof module&&module.exports?module.exports=i:e.skrollr=i})(window,document);
2404var sbi_js_exists=(typeof sbi_js_exists!=='undefined')?true:false;if(!sbi_js_exists){(function($){function sbiAddVisibilityListener(){!function(i){var n={callback:function(){},runOnLoad:!0,frequency:100,sbiPreviousVisibility:null},c={};c.sbiCheckVisibility=function(i,n){if(jQuery.contains(document,i[0])){var e=n.sbiPreviousVisibility,t=i.is(":visible");n.sbiPreviousVisibility=t,null==e?n.runOnLoad&&n.callback(i,t):e!==t&&n.callback(i,t),setTimeout(function(){c.sbiCheckVisibility(i,n)},n.frequency)}},i.fn.sbiVisibilityChanged=function(e){var t=i.extend({},n,e);return this.each(function(){c.sbiCheckVisibility(i(this),t)})}}(jQuery);}
2405function Sbi(){this.feeds={};this.options=sb_instagram_js_options;}
2406Sbi.prototype={createPage:function(createFeeds,createFeedsArgs){if(typeof sb_instagram_js_options.ajax_url!=='undefined'&&typeof window.sbiajaxurl==='undefined'){window.sbiajaxurl=sb_instagram_js_options.ajax_url;}
2407if(typeof window.sbiajaxurl==='undefined'||window.sbiajaxurl.indexOf(window.location.hostname)===-1){window.sbiajaxurl=location.protocol+'//'+window.location.hostname+'/wp-admin/admin-ajax.php';}
2408if($('#sbi-builder-app').length&&typeof window.sbiresizedImages==='undefined'){if($('.sbi_resized_image_data').length&&typeof $('.sbi_resized_image_data').attr('data-resized')!=='undefined'&&$('.sbi_resized_image_data').attr('data-resized').indexOf('{"')===0){window.sbiresizedImages=JSON.parse($('.sbi_resized_image_data').attr('data-resized'));$('.sbi_resized_image_data').remove();}}
2409$('.sbi_no_js_error_message').remove();$('.sbi_no_js').removeClass('sbi_no_js');createFeeds(createFeedsArgs);},createFeeds:function(args){args.whenFeedsCreated($('.sbi').each(function(index){$(this).attr('data-sbi-index',index+1);var $self=$(this),flags=typeof $self.attr('data-sbi-flags')!=='undefined'?$self.attr('data-sbi-flags').split(','):[],general=typeof $self.attr('data-options')!=='undefined'?JSON.parse($self.attr('data-options')):{};if(flags.indexOf('testAjax')>-1){window.sbi.triggeredTest=true;var submitData={'action':'sbi_on_ajax_test_trigger'},onSuccess=function(data){console.log('did test');};sbiAjax(submitData,onSuccess)}
2410var feedOptions={cols:$self.attr('data-cols'),colsmobile:typeof $self.attr('data-colsmobile')!=='undefined'&&$self.attr('data-colsmobile')!=='same'?$self.attr('data-colsmobile'):$self.attr('data-cols'),colstablet:typeof $self.attr('data-colstablet')!=='undefined'&&$self.attr('data-colstablet')!=='same'?$self.attr('data-colstablet'):$self.attr('data-cols'),num:$self.attr('data-num'),imgRes:$self.attr('data-res'),feedID:$self.attr('data-feedid'),postID:typeof $self.attr('data-postid')!=='undefined'?$self.attr('data-postid'):'unknown',imageaspectratio:typeof $self.attr('data-imageaspectratio')!=='undefined'?$self.attr('data-imageaspectratio'):'1:1',shortCodeAtts:$self.attr('data-shortcode-atts'),resizingEnabled:(flags.indexOf('resizeDisable')===-1),imageLoadEnabled:(flags.indexOf('imageLoadDisable')===-1),debugEnabled:(flags.indexOf('debug')>-1),favorLocal:(flags.indexOf('favorLocal')>-1),ajaxPostLoad:(flags.indexOf('ajaxPostLoad')>-1),gdpr:(flags.indexOf('gdpr')>-1),overrideBlockCDN:(flags.indexOf('overrideBlockCDN')>-1),consentGiven:false,locator:(flags.indexOf('locator')>-1),autoMinRes:1,general:general};window.sbi.feeds[index]=sbiGetNewFeed(this,index,feedOptions);window.sbi.feeds[index].setResizedImages();window.sbi.feeds[index].init();var evt=jQuery.Event('sbiafterfeedcreate');evt.feed=window.sbi.feeds[index];jQuery(window).trigger(evt);}));}
2410,afterFeedsCreated:function(){$('.sb_instagram_header').each(function(){var $thisHeader=$(this);$thisHeader.find('.sbi_header_link').on('mouseenter mouseleave',function(e){switch(e.type){case'mouseenter':$thisHeader.find('.sbi_header_img_hover').addClass('sbi_fade_in');break;case'mouseleave':$thisHeader.find('.sbi_header_img_hover').removeClass('sbi_fade_in');break;}});});},encodeHTML:function(raw){if(typeof raw==='undefined'){return'';}
2411var encoded=raw.replace(/(>)/g,'&gt;'),encoded=encoded.replace(/(<)/g,'&lt;');encoded=encoded.replace(/(&lt;br\/&gt;)/g,'<br>');encoded=encoded.replace(/(&lt;br&gt;)/g,'<br>');return encoded;},urlDetect:function(text){var urlRegex=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g;return text.match(urlRegex);}};function SbiFeed(el,index,settings){this.el=el;this.index=index;this.settings=settings;this.minImageWidth=0;this.imageResolution=150;this.resizedImages={};this.needsResizing=[];this.outOfPages=false;this.page=1;this.isInitialized=false;}
2412SbiFeed.prototype={init:function(){var feed=this;feed.settings.consentGiven=feed.checkConsent();if($(this.el).find('.sbi_photo').parent('p').length){$(this.el).addClass('sbi_no_autop');}
2413if($(this.el).find('#sbi_mod_error').length){$(this.el).prepend($(this.el).find('#sbi_mod_error'));}
2414if(this.settings.ajaxPostLoad){this.getNewPostSet();}else{this.afterInitialImagesLoaded();}
2415var sbi_delay=(function(){var sbi_timer=0;return function(sbi_callback,sbi_ms){clearTimeout(sbi_timer);sbi_timer=setTimeout(sbi_callback,sbi_ms);};})();jQuery(window).on('resize',function(){sbi_delay(function(){feed.afterResize();},500);});$(this.el).find('.sbi_item').each(function(){feed.lazyLoadCheck($(this));});},initLayout:function(){},afterInitialImagesLoaded:function(){this.initLayout();this.loadMoreButtonInit();this.hideExtraImagesForWidth();this.beforeNewImagesRevealed();this.revealNewImages();this.afterNewImagesRevealed();},afterResize:function(){this.setImageHeight();this.setImageResolution();this.maybeRaiseImageResolution();this.setImageSizeClass();},afterLoadMoreClicked:function($button){$button.find('.sbi_loader').removeClass('sbi_hidden');$button.find('.sbi_btn_text').addClass('sbi_hidden');$button.closest('.sbi').find('.sbi_num_diff_hide').addClass('sbi_transition').removeClass('sbi_num_diff_hide');},afterNewImagesLoaded:function(){var $self=$(this.el),feed=this;this.beforeNewImagesRevealed();this.revealNewImages();this.afterNewImagesRevealed();setTimeout(function(){$self.find('.sbi_loader').addClass('sbi_hidden');$self.find('.sbi_btn_text').removeClass('sbi_hidden');feed.maybeRaiseImageResolution();},500);},beforeNewImagesRevealed:function(){this.setImageHeight();this.maybeRaiseImageResolution(true);this.setImageSizeClass();},revealNewImages:function(){var $self=$(this.el),feed=this;$self.find('.sbi-screenreader').each(function(){$(this).find('img').remove();});if(typeof sbi_custom_js=='function')setTimeout(function(){sbi_custom_js();},100);$self.find('.sbi_item').each(function(index){var $self=jQuery(this);$self.find('.sbi_photo').on('mouseenter mouseleave',function(e){switch(e.type){case'mouseenter':jQuery(this).fadeTo(200,0.85);break;case'mouseleave':jQuery(this).stop().fadeTo(500,1);break;}});});setTimeout(function(){jQuery('#sbi_images .sbi_item.sbi_new').removeClass('sbi_new');var time=10;$self.find('.sbi_transition').each(function(){var $sbi_item_transition_el=jQuery(this);setTimeout(function(){$sbi_item_transition_el.removeClass('sbi_transition');},time);time+=10;});},500);},lazyLoadCheck:function($item){var feed=this;if($item.find('.sbi_photo').length&&!$item.closest('.sbi').hasClass('sbi-no-ll-check')){var imgSrcSet=feed.getImageUrls($item),maxResImage=typeof imgSrcSet[640]!=='undefined'?imgSrcSet[640]:$item.find('.sbi_photo').attr('data-full-res');if(!feed.settings.consentGiven){if(maxResImage.indexOf('scontent')>-1){return;}}
2416$item.find('.sbi_photo img').each(function(){if(maxResImage&&typeof $(this).attr('data-src')!=='undefined'){$(this).attr('data-src',maxResImage);}
2417if(maxResImage&&typeof $(this).attr('data-orig-src')!=='undefined'){$(this).attr('data-orig-src',maxResImage);}
2418$(this).on('load',function(){if(!$(this).hasClass('sbi-replaced')&&$(this).attr('src').indexOf('placeholder')>-1){$(this).addClass('sbi-replaced');if(maxResImage){$(this).attr('src',maxResImage);if($(this).closest('.sbi_imgLiquid_bgSize').length){$(this).closest('.sbi_imgLiquid_bgSize').css('background-image','url('+maxResImage+')');}}}});});}},afterNewImagesRevealed:function(){this.listenForVisibilityChange();this.sendNeedsResizingToServer();
2418if(!this.settings.imageLoadEnabled){$('.sbi_no_resraise').removeClass('sbi_no_resraise');}
2419var evt=$.Event('sbiafterimagesloaded');evt.el=$(this.el);$(window).trigger(evt);},setResizedImages:function(){if($(this.el).find('.sbi_resized_image_data').length&&typeof $(this.el).find('.sbi_resized_image_data').attr('data-resized')!=='undefined'&&$(this.el).find('.sbi_resized_image_data').attr('data-resized').indexOf('{"')===0){this.resizedImages=JSON.parse($(this.el).find('.sbi_resized_image_data').attr('data-resized'));$(this.el).find('.sbi_resized_image_data').remove();}else if(typeof window.sbiresizedImages!=='undefined'){this.resizedImages=window.sbiresizedImages;}},sendNeedsResizingToServer:function(){var feed=this,$self=$(this.el);if(feed.needsResizing.length>0&&feed.settings.resizingEnabled){var itemOffset=$(this.el).find('.sbi_item').length,cacheAll=typeof feed.settings.general.cache_all!=='undefined'?feed.settings.general.cache_all:false;var locatorNonce='';if(typeof $self.attr('data-locatornonce')!=='undefined'){locatorNonce=$self.attr('data-locatornonce');}
2420if($('#sbi-builder-app').length){if(typeof window.sbiresizeTriggered!=='undefined'&&window.sbiresizeTriggered){return;}else{window.sbiresizeTriggered=true;}}
2421var submitData={action:'sbi_resized_images_submit',needs_resizing:feed.needsResizing,offset:itemOffset,feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,cache_all:cacheAll,locator_nonce:locatorNonce};var onSuccess=function(data){var response=data?.data;if(typeof data!=='object'&&data.trim().indexOf('{')===0){response=JSON.parse(data.trim());}
2422if(feed.settings.debugEnabled){console.log(response);}
2423for(var property in response){if(response.hasOwnProperty(property)){feed.resizedImages[property]=response[property];}}
2424feed.maybeRaiseImageResolution();setTimeout(function(){feed.afterResize();},500);if($('#sbi-builder-app').length){window.sbiresizeTriggered=false;}};sbiAjax(submitData,onSuccess);}else if(feed.settings.locator){var locatorNonce='';if(typeof $self.attr('data-locatornonce')!=='undefined'){locatorNonce=$self.attr('data-locatornonce');}
2425var submitData={action:'sbi_do_locator',feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,locator_nonce:locatorNonce};var onSuccess=function(data){};sbiAjax(submitData,onSuccess);}},loadMoreButtonInit:function(){var $self=$(this.el),feed=this;$self.find('#sbi_load .sbi_load_btn').off().on('click',function(){feed.afterLoadMoreClicked(jQuery(this));feed.getNewPostSet();});},getNewPostSet:function(){var $self=$(this.el),feed=this;feed.page++;var locatorNonce='';if(typeof $self.attr('data-locatornonce')!=='undefined'){locatorNonce=$self.attr('data-locatornonce');}
2426var itemOffset=$self.find('.sbi_item').length,submitData={action:'sbi_load_more_clicked',offset:itemOffset,page:feed.page,feed_id:feed.settings.feedID,atts:feed.settings.shortCodeAtts,location:feed.locationGuess(),post_id:feed.settings.postID,current_resolution:feed.imageResolution,locator_nonce:locatorNonce};var onSuccess=function(data){var response=data?.data;if(typeof data!=='object'&&data.trim().indexOf('{')===0){response=JSON.parse(data.trim());}
2427if(feed.settings.debugEnabled){console.log(response);}
2428feed.appendNewPosts(response.html);feed.addResizedImages(response.resizedImages);if(feed.settings.ajaxPostLoad){feed.settings.ajaxPostLoad=false;feed.afterInitialImagesLoaded();}else{feed.afterNewImagesLoaded();}
2429if(!response.feedStatus.shouldPaginate){feed.outOfPages=true;$self.find('.sbi_load_btn').hide();}else{feed.outOfPages=false;}
2430$('.sbi_no_js').removeClass('sbi_no_js');};sbiAjax(submitData,onSuccess);},appendNewPosts:function(newPostsHtml){var $self=$(this.el),feed=this;if($self.find('#sbi_images .sbi_item').length){$self.find('#sbi_images .sbi_item').last().after(newPostsHtml);}else{$self.find('#sbi_images').append(newPostsHtml);}},addResizedImages:function(resizedImagesToAdd){for(var imageID in resizedImagesToAdd){this.resizedImages[imageID]=resizedImagesToAdd[imageID];}},setImageHeight:function(){var $self=$(this.el);var sbi_photo_width=$self.find('.sbi_photo').eq(0).innerWidth();var sbi_num_cols=this.getColumnCount();var imagesPadding=$self.find('#sbi_images').innerWidth()-$self.find('#sbi_images').width(),imagepadding=imagesPadding/2;sbi_photo_width_manual=($self.find('#sbi_images').width()/sbi_num_cols)-imagesPadding;var aspectRatio='1:1';if(typeof this.settings.imageaspectratio!=='undefined'){aspectRatio=this.settings.imageaspectratio;}
2431var height;if(aspectRatio==='4:5'){height=sbi_photo_width*1.25;}
2431else if(aspectRatio==='3:4'){height=sbi_photo_width*1.33;}else{height=sbi_photo_width;}
2432$self.find('.sbi_photo').css('height',height);if($self.find('.sbi-owl-nav').length){setTimeout(function(){var sbi_ratio=2;if($self.find('.sbi_owl2row-item').length)sbi_ratio=1;var sbi_arrows_top=($self.find('.sbi_photo').eq(0).innerWidth()/sbi_ratio);sbi_arrows_top+=parseInt(imagepadding)*(2+(2-sbi_ratio));$self.find('.sbi-owl-nav div').css('top',sbi_arrows_top);},100);}},maybeRaiseSingleImageResolution:function($item,index,forceChange){var feed=this,imgSrcSet=feed.getImageUrls($item),currentUrl=$item.find('.sbi_photo img').attr('src'),currentRes=150,imagEl=$item.find('img').get(0),aspectRatio=currentUrl===window.sbi.options.placeholder?1:imagEl.naturalWidth/imagEl.naturalHeight,forceChange=typeof forceChange!=='undefined'?forceChange:false;if($item.hasClass('sbi_no_resraise')||$item.hasClass('sbi_had_error')||($item.find('.sbi_link_area').length&&$item.find('.sbi_link_area').hasClass('sbi_had_error'))){return;}
2433if(imgSrcSet.length<1){if($item.find('.sbi_link_area').length){$item.find('.sbi_link_area').attr('href',window.sbi.options.placeholder.replace('placeholder.png','thumb-placeholder.png'))}
2434return;}else if($item.find('.sbi_link_area').length&&$item.find('.sbi_link_area').attr('href')===window.sbi.options.placeholder.replace('placeholder.png','thumb-placeholder.png')||!feed.settings.consentGiven){$item.find('.sbi_link_area').attr('href',imgSrcSet[imgSrcSet.length-1])}
2435if(typeof imgSrcSet[640]!=='undefined'){$item.find('.sbi_photo').attr('data-full-res',imgSrcSet[640]);}
2436$.each(imgSrcSet,function(index,value){if(value===currentUrl){currentRes=parseInt(index);forceChange=false;}});var newRes=640;switch(feed.settings.imgRes){case'thumb':newRes=150;break;case'medium':newRes=320;break;case'full':newRes=640;break;default:var minImageWidth=Math.max(feed.settings.autoMinRes,$item.find('.sbi_photo').innerWidth()),thisImageReplace=feed.getBestResolutionForAuto(minImageWidth,aspectRatio,$item);switch(thisImageReplace){case 320:newRes=320;break;case 150:newRes=150;break;}
2437break;}
2438if(newRes>currentRes||currentUrl===window.sbi.options.placeholder||forceChange){if(feed.settings.debugEnabled){var reason=currentUrl===window.sbi.options.placeholder?'was placeholder':'too small';console.log('rais res for '+currentUrl,reason);}
2439var newUrl=imgSrcSet[newRes].split("?ig_cache_key")[0];if(currentUrl!==newUrl){$item.find('.sbi_photo img').attr('src',newUrl);}
2440currentRes=newRes;if(feed.settings.imgRes==='auto'){var checked=false;$item.find('.sbi_photo img').on('load',function(){var $this_image=$(this);var newAspectRatio=($this_image.get(0).naturalWidth/$this_image.get(0).naturalHeight);if($this_image.get(0).naturalWidth!==1000&&newAspectRatio>aspectRatio&&!checked){if(feed.settings.debugEnabled){console.log('rais res again for aspect ratio change '+currentUrl);}
2441checked=true;minImageWidth=$item.find('.sbi_photo').innerWidth();thisImageReplace=feed.getBestResolutionForAuto(minImageWidth,newAspectRatio,$item);newRes=640;switch(thisImageReplace){case 320:newRes=320;break;case 150:newRes=150;break;}
2442if(newRes>currentRes){newUrl=imgSrcSet[newRes].split("?ig_cache_key")[0];$this_image.attr('src',newUrl);}
2443if(feed.layout==='masonry'||feed.layout==='highlight'){$(feed.el).find('#sbi_images').smashotope(feed.isotopeArgs);setTimeout(function(){$(feed.el).find('#sbi_images').smashotope(feed.isotopeArgs);},500)}}else{if(feed.settings.debugEnabled){var reason=checked?'already checked':'no aspect ratio change';console.log('not raising res for replacement  '+currentUrl,reason);}}});}}
2444$item.find('img').on('error',function(){if(!$(this).hasClass('sbi_img_error')){$(this).addClass('sbi_img_error');var sourceFromAPI=($(this).attr('src').indexOf('media/?size=')>-1||$(this).attr('src').indexOf('cdninstagram')>-1||$(this).attr('src').indexOf('fbcdn')>-1)
2445if(!sourceFromAPI&&feed.settings.consentGiven){if($(this).closest('.sbi_photo').attr('data-img-src-set')!=='undefined'){var srcSet=JSON.parse($(this).closest('.sbi_photo').attr('data-img-src-set').replace(/\\\//g,'/'));if(typeof srcSet.d!=='undefined'){$(this).attr('src',srcSet.d);$(this).closest('.sbi_item').addClass('sbi_had_error').find('.sbi_link_area').attr('href',srcSet[640]).addClass('sbi_had_error');}}}else{feed.settings.favorLocal=true;var srcSet=feed.getImageUrls($(this).closest('.sbi_item'));if(typeof srcSet[640]!=='undefined'){$(this).attr('src',srcSet[640]);$(this).closest('.sbi_item').addClass('sbi_had_error').find('.sbi_link_area').attr('href',srcSet[640]).addClass('sbi_had_error');}}
2446setTimeout(function(){feed.afterResize();},1500)}else{console.log('unfixed error '+$(this).attr('src'));}});},maybeRaiseImageResolution:function(justNew){var feed=this,itemsSelector=typeof justNew!=='undefined'&&justNew===true?'.sbi_item.sbi_new':'.sbi_item',forceChange=!feed.isInitialized?true:false;
2446$(feed.el).find(itemsSelector).each(function(index){if(!$(this).hasClass('sbi_num_diff_hide')&&$(this).find('.sbi_photo').length&&typeof $(this).find('.sbi_photo').attr('data-img-src-set')!=='undefined'){feed.maybeRaiseSingleImageResolution($(this),index,forceChange);}});feed.isInitialized=true;},getBestResolutionForAuto:function(colWidth,aspectRatio,$item){if(isNaN(aspectRatio)||aspectRatio<1){aspectRatio=1;}
2447var bestWidth=colWidth*aspectRatio,bestWidthRounded=Math.ceil(bestWidth/10)*10,customSizes=[150,320,640];if($item.hasClass('sbi_highlighted')){bestWidthRounded=bestWidthRounded*2;}
2448if(customSizes.indexOf(parseInt(bestWidthRounded))===-1){var done=false;$.each(customSizes,function(index,item){if(item>parseInt(bestWidthRounded)&&!done){bestWidthRounded=item;done=true;}});}
2449return bestWidthRounded;},hideExtraImagesForWidth:function(){if(this.layout==='carousel'){return;}
2450var $self=$(this.el),num=typeof $self.attr('data-num')!=='undefined'&&$self.attr('data-num')!==''?parseInt($self.attr('data-num')):1,nummobile=typeof $self.attr('data-nummobile')!=='undefined'&&$self.attr('data-nummobile')!==''?parseInt($self.attr('data-nummobile')):num;if($(window).width()<480||window.sbi_preview_device==='mobile'){if(nummobile<$self.find('.sbi_item').length){$self.find('.sbi_item').slice(nummobile-$self.find('.sbi_item').length).addClass('sbi_num_diff_hide');}}else{if(num<$self.find('.sbi_item').length){$self.find('.sbi_item').slice(num-$self.find('.sbi_item').length).addClass('sbi_num_diff_hide');}}},setImageSizeClass:function(){var $self=$(this.el);$self.removeClass('sbi_small sbi_medium');var feedWidth=$self.innerWidth(),photoPadding=parseInt(($self.find('#sbi_images').outerWidth()-$self.find('#sbi_images').width()))/2,cols=this.getColumnCount(),feedWidthSansPadding=feedWidth-(photoPadding*(cols+2)),colWidth=(feedWidthSansPadding/cols);if(colWidth>120&&colWidth<240){$self.addClass('sbi_medium');}else if(colWidth<=120){$self.addClass('sbi_small');}},setMinImageWidth:function(){if($(this.el).find('.sbi_item .sbi_photo').first().length){this.minImageWidth=$(this.el).find('.sbi_item .sbi_photo').first().innerWidth();}else{this.minImageWidth=150;}},setImageResolution:function(){if(this.settings.imgRes==='auto'){this.imageResolution='auto';}else{switch(this.settings.imgRes){case'thumb':this.imageResolution=150;break;case'medium':this.imageResolution=320;break;default:this.imageResolution=640;}}},getImageUrls:function($item){var srcSet=JSON.parse($item.find('.sbi_photo').attr('data-img-src-set').replace(/\\\//g,'/')),id=$item.attr('id').replace('sbi_','');if(!this.settings.consentGiven&&!this.settings.overrideBlockCDN){srcSet=[];}
2451if(typeof this.resizedImages[id]!=='undefined'&&this.resizedImages[id]!=='video'&&this.resizedImages[id]!=='pending'&&this.resizedImages[id].id!=='error'&&this.resizedImages[id].id!=='video'&&this.resizedImages[id].id!=='pending'){if(typeof this.resizedImages[id]['sizes']!=='undefined'){var foundSizes=[];var extension=(typeof this.resizedImages[id]['extension']!=='undefined')?this.resizedImages[id]['extension']:'.jpg';if(typeof this.resizedImages[id]['sizes']['full']!=='undefined'){srcSet[640]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'full'+extension;foundSizes.push(640);}
2452if(typeof this.resizedImages[id]['sizes']['low']!=='undefined'){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'low'+extension;foundSizes.push(320);}
2453if(typeof this.resizedImages[id]['sizes']['thumb']!=='undefined'){foundSizes.push(150);srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'thumb'+extension;}
2454if(this.settings.favorLocal){if(foundSizes.indexOf(640)===-1){if(foundSizes.indexOf(320)>-1){srcSet[640]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'low'+extension;}}
2455if(foundSizes.indexOf(320)===-1){if(foundSizes.indexOf(640)>-1){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'full'+extension;}else if(foundSizes.indexOf(150)>-1){srcSet[320]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'thumb'+extension;}}
2456if(foundSizes.indexOf(150)===-1){if(foundSizes.indexOf(320)>-1){srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'low'+extension;}else if(foundSizes.indexOf(640)>-1){srcSet[150]=sb_instagram_js_options.resized_url+this.resizedImages[id].id+'full'+extension;}}}}}else if(typeof this.resizedImages[id]==='undefined'||(typeof this.resizedImages[id]['id']!=='undefined'&&this.resizedImages[id]['id']!=='pending'&&this.resizedImages[id]['id']!=='error')){this.addToNeedsResizing(id);}
2457return srcSet;},getAvatarUrl:function(username,favorType){if(username===''){return'';}
2458var availableAvatars=this.settings.general.avatars,favorType=typeof favorType!=='undefined'?favorType:'local';if(favorType==='local'){if(typeof availableAvatars['LCL'+username]!=='undefined'&&parseInt(availableAvatars['LCL'+username])===1){return sb_instagram_js_options.resized_url+username+'.jpg';}else if(typeof availableAvatars[username]!=='undefined'){return availableAvatars[username];}else{return'';}}else{if(typeof availableAvatars[username]!=='undefined'){return availableAvatars[username];}else if(typeof availableAvatars['LCL'+username]!=='undefined'&&parseInt(availableAvatars['LCL'+username])===1){return sb_instagram_js_options.resized_url+username+'.jpg';}else{return'';}}},addToNeedsResizing:function(id){if(this.needsResizing.indexOf(id)===-1){this.needsResizing.push(id);}}
2458,listenForVisibilityChange:function(){var feed=this;sbiAddVisibilityListener();if(typeof $(this.el).filter(':hidden').sbiVisibilityChanged=='function'){$(this.el).filter(':hidden').sbiVisibilityChanged({callback:function(element,visible){feed.afterResize();},runOnLoad:false});}},getColumnCount:function(){var $self=$(this.el),cols=this.settings.cols,colsmobile=this.settings.colsmobile,colstablet=this.settings.colstablet,returnCols=cols;sbiWindowWidth=window.innerWidth;if($self.hasClass('sbi_mob_col_auto')){if(sbiWindowWidth<640&&(parseInt(cols)>2&&parseInt(cols)<7))returnCols=2;if(sbiWindowWidth<640&&(parseInt(cols)>6&&parseInt(cols)<11))returnCols=4;if(sbiWindowWidth<=480&&parseInt(cols)>2)returnCols=1;}else if(sbiWindowWidth>480&&sbiWindowWidth<=800){returnCols=colstablet;}else if(sbiWindowWidth<=480){returnCols=colsmobile;}
2459return parseInt(returnCols);},checkConsent:function(){if(this.settings.consentGiven||!this.settings.gdpr){return true;}
2460if(typeof window.WPConsent!=='undefined'){if(window.WPConsent.hasConsent('marketing')){try{this.settings.consentGiven=true;}catch(e){this.settings.consentGiven=false;}}else{this.settings.consentGiven=false;}}else if(typeof window.cookieyes!=="undefined"){if(typeof window.cookieyes._ckyConsentStore.get!=='undefined'){this.settings.consentGiven=window.cookieyes._ckyConsentStore.get('functional')==='yes';}}else if(typeof CLI_Cookie!=="undefined"){if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)!==null){if(CLI_Cookie.read('cookielawinfo-checkbox-non-necessary')!==null){this.settings.consentGiven=CLI_Cookie.read('cookielawinfo-checkbox-non-necessary')==='yes';}
2461if(CLI_Cookie.read('cookielawinfo-checkbox-necessary')!==null){this.settings.consentGiven=CLI_Cookie.read('cookielawinfo-checkbox-necessary')==='yes';}}}else if(typeof window.cnArgs!=="undefined"){var value="; "+document.cookie,parts=value.split('; cookie_notice_accepted=');if(parts.length===2){var val=parts.pop().split(';').shift();this.settings.consentGiven=(val==='true');}}else if(typeof window.cookieconsent!=='undefined'||typeof window.cmplz_has_consent==='function'){if(typeof window.cmplz_has_consent==='function'){this.settings.consentGiven=cmplz_has_consent('marketing');}else{this.settings.consentGiven=sbiCmplzGetCookie('cmplz_consent_status')==='allow';}}else if(typeof window.Cookiebot!=="undefined"){this.settings.consentGiven=Cookiebot.consented;}else if(typeof window.BorlabsCookie!=='undefined'){this.settings.consentGiven=typeof window.BorlabsCookie.Consents!=='undefined'?window.BorlabsCookie.Consents.hasConsent('instagram'):window.BorlabsCookie.checkCookieConsent('instagram');}else if(sbiCmplzGetCookie('moove_gdpr_popup')){var moove_gdpr_popup=JSON.parse(decodeURIComponent(sbiCmplzGetCookie('moove_gdpr_popup')));this.settings.consentGiven=typeof moove_gdpr_popup.thirdparty!=="undefined"&&moove_gdpr_popup.thirdparty==="1";}
2462var evt=jQuery.Event('sbicheckconsent');evt.feed=this;jQuery(window).trigger(evt);return this.settings.consentGiven;},afterConsentToggled:function(){if(this.checkConsent()){var feed=this;feed.maybeRaiseImageResolution();setTimeout(function(){feed.afterResize();},500);}},locationGuess:function(){var $feed=$(this.el),location='content';if($feed.closest('footer').length){location='footer';}else if($feed.closest('.header').length||$feed.closest('header').length){location='header';}else if($feed.closest('.sidebar').length||$feed.closest('aside').length){location='sidebar';}
2463return location;},};window.sbi_init=function(){window.sbi=new Sbi();window.sbi.createPage(window.sbi.createFeeds,{whenFeedsCreated:window.sbi.afterFeedsCreated});};function sbiGetNewFeed(feed,index,feedOptions){return new SbiFeed(feed,index,feedOptions);}
2464function sbiAjax(submitData,onSuccess){$.ajax({url:sbiajaxurl,type:'post',data:submitData,success:onSuccess});}
2465function sbiCmplzGetCookie(cname){var name=cname+"=";var cArr=window.document.cookie.split(';');for(var i=0;i<cArr.length;i++){var c=cArr[i].trim();if(c.indexOf(name)==0)
2466return c.substring(name.length,c.length);}
2467return"";}})(jQuery);jQuery(document).ready(function($){if(typeof window.sb_instagram_js_options==='undefined'){window.sb_instagram_js_options={font_method:"svg",resized_url:location.protocol+'//'+window.location.hostname+"/wp-content/uploads/sb-instagram-feed-images/",placeholder:location.protocol+'//'+window.location.hostname+"/wp-content/plugins/instagram-feed/img/placeholder.png"};}
2468if(typeof window.sb_instagram_js_options.resized_url!=='undefined'&&window.sb_instagram_js_options.resized_url.indexOf(location.protocol)===-1){if(location.protocol==='http:'){window.sb_instagram_js_options.resized_url=window.sb_instagram_js_options.resized_url.replace('https:','http:');}else{window.sb_instagram_js_options.resized_url=window.sb_instagram_js_options.resized_url.replace('http:','https:');}}
2469sbi_init();$('#cookie-notice a').on('click',function(){setTimeout(function(){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled();});},1000);});$('#cookie-law-info-bar a').on('click',function(){setTimeout(function(){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled();});},1000);});
2469$('.cli-user-preference-checkbox, .cky-notice button').on('click',function(){setTimeout(function(){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].checkConsent();window.sbi.feeds[index].afterConsentToggled();});},1000);});$(window).on('CookiebotOnAccept',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=true;window.sbi.feeds[index].afterConsentToggled();});});$(document).on('cmplzAcceptAll',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=true;window.sbi.feeds[index].afterConsentToggled();});});$(document).on('cmplzRevoke',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=false;window.sbi.feeds[index].afterConsentToggled();});});document.addEventListener('cmplz_status_change',function(event){if(typeof window.cmplz_has_consent==='function'){$.each(window.sbi.feeds,function(index){var hasMarketingConsent=cmplz_has_consent('marketing');window.sbi.feeds[index].settings.consentGiven=hasMarketingConsent;window.sbi.feeds[index].afterConsentToggled();});}});$(document).on('borlabs-cookie-consent-saved',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=false;window.sbi.feeds[index].afterConsentToggled();});});if(typeof window.consentApi!=='undefined'){window.consentApi?.consent("smash-balloon-social-photo-feed").then(()=>{try{$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].settings.consentGiven=true;window.sbi.feeds[index].afterConsentToggled();});}
2470catch(error){}});}
2471$('.moove-gdpr-infobar-allow-all').on('click',function(){setTimeout(function(){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled();});},1000);});});window.addEventListener('wpconsent_consent_saved',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled();});});window.addEventListener('wpconsent_consent_updated',function(event){$.each(window.sbi.feeds,function(index){window.sbi.feeds[index].afterConsentToggled();});});}

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.