var wpml_cookies={"wp-wpml_current_language":{"value":"bg","expires":1,"path":"\/"}};var wpml_cookies={"wp-wpml_current_language":{"value":"bg","expires":1,"path":"\/"}}
;document.addEventListener('DOMContentLoaded',function(){for(var cookieName in wpml_cookies){var cookieData=wpml_cookies[cookieName];document.cookie=cookieName+'='+cookieData.value+';expires='+cookieData.expires+'; path='+cookieData.path}})
;/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
;WebFontConfig={google:{families:['Inter:400,500,600,700,800:cyrillic,cyrillic-ext,latin,latin-ext','Inter-cufonfonts-webfont:400,700','Open+Sans:400,600,700']}};(function(d){var wf=d.createElement('script'),s=d.scripts[0];wf.src='https://optimuspet.com/wp-content/themes/porto/js/libs/webfont.js';wf.async=!0;s.parentNode.insertBefore(wf,s)})(document)
;const lazyloadRunObserver=()=>{const lazyloadBackgrounds=document.querySelectorAll(`.e-con.e-parent:not(.e-lazyloaded)`);const lazyloadBackgroundObserver=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.isIntersecting){let lazyloadBackground=entry.target;if(lazyloadBackground){lazyloadBackground.classList.add('e-lazyloaded')}
lazyloadBackgroundObserver.unobserve(entry.target)}})},{rootMargin:'200px 0px 200px 0px'});lazyloadBackgrounds.forEach((lazyloadBackground)=>{lazyloadBackgroundObserver.observe(lazyloadBackground)})};const events=['DOMContentLoaded','elementor/lazyload/observe',];events.forEach((event)=>{document.addEventListener(event,lazyloadRunObserver)})
;/*! This file is auto-generated */
(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},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={};t.r(e),t.d(e,{actions:()=>S,addAction:()=>m,addFilter:()=>p,applyFilters:()=>k,createHooks:()=>h,currentAction:()=>w,currentFilter:()=>I,defaultHooks:()=>f,didAction:()=>O,didFilter:()=>j,doAction:()=>b,doingAction:()=>x,doingFilter:()=>T,filters:()=>z,hasAction:()=>v,hasFilter:()=>y,removeAction:()=>A,removeAllActions:()=>F,removeAllFilters:()=>g,removeFilter:()=>_});const n=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const r=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const o=function(t,e){return function(o,i,s,c=10){const l=t[e];if(!r(o))return;if(!n(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const u={callback:s,priority:c,namespace:i};if(l[o]){const t=l[o].handlers;let e;for(e=t.length;e>0&&!(c>=t[e-1].priority);e--);e===t.length?t[e]=u:t.splice(e,0,u),l.__current.forEach((t=>{t.name===o&&t.currentIndex>=e&&t.currentIndex++}))}else l[o]={handlers:[u],runs:0};"hookAdded"!==o&&t.doAction("hookAdded",o,i,s,c)}};const i=function(t,e,o=!1){return function(i,s){const c=t[e];if(!r(i))return;if(!o&&!n(s))return;if(!c[i])return 0;let l=0;if(o)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,s),l}};const s=function(t,e){return function(n,r){const o=t[e];return void 0!==r?n in o&&o[n].handlers.some((t=>t.namespace===r)):n in o}};const c=function(t,e,n=!1){return function(r,...o){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const s=i[r].handlers;if(!s||!s.length)return n?o[0]:void 0;const c={name:r,currentIndex:0};for(i.__current.push(c);c.currentIndex<s.length;){const t=s[c.currentIndex].callback.apply(null,o);n&&(o[0]=t),c.currentIndex++}return i.__current.pop(),n?o[0]:void 0}};const l=function(t,e){return function(){var n;const r=t[e];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}};const u=function(t,e){return function(n){const r=t[e];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};const a=function(t,e){return function(n){const o=t[e];if(r(n))return o[n]&&o[n].runs?o[n].runs:0}};class d{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=o(this,"actions"),this.addFilter=o(this,"filters"),this.removeAction=i(this,"actions"),this.removeFilter=i(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=i(this,"actions",!0),this.removeAllFilters=i(this,"filters",!0),this.doAction=c(this,"actions"),this.applyFilters=c(this,"filters",!0),this.currentAction=l(this,"actions"),this.currentFilter=l(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=a(this,"actions"),this.didFilter=a(this,"filters")}}const h=function(){return new d},f=h(),{addAction:m,addFilter:p,removeAction:A,removeFilter:_,hasAction:v,hasFilter:y,removeAllActions:F,removeAllFilters:g,doAction:b,applyFilters:k,currentAction:w,currentFilter:I,doingAction:x,doingFilter:T,didAction:O,didFilter:j,actions:S,filters:z}=f;(window.wp=window.wp||{}).hooks=e})();
;/*! This file is auto-generated */
(()=>{var t={2058:(t,e,r)=>{var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function a(t){return function(t,e){var r,n,o,s,l,u,p,c,f,d=1,h=t.length,g="";for(n=0;n<h;n++)if("string"==typeof t[n])g+=t[n];else if("object"==typeof t[n]){if((s=t[n]).keys)for(r=e[d],o=0;o<s.keys.length;o++){if(null==r)throw new Error(a('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[o],s.keys[o-1]));r=r[s.keys[o]]}else r=s.param_no?e[s.param_no]:e[d++];if(i.not_type.test(s.type)&&i.not_primitive.test(s.type)&&r instanceof Function&&(r=r()),i.numeric_arg.test(s.type)&&"number"!=typeof r&&isNaN(r))throw new TypeError(a("[sprintf] expecting number but found %T",r));switch(i.number.test(s.type)&&(c=r>=0),s.type){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,s.width?parseInt(s.width):0);break;case"e":r=s.precision?parseFloat(r).toExponential(s.precision):parseFloat(r).toExponential();break;case"f":r=s.precision?parseFloat(r).toFixed(s.precision):parseFloat(r);break;case"g":r=s.precision?String(Number(r.toPrecision(s.precision))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=s.precision?r.substring(0,s.precision):r;break;case"t":r=String(!!r),r=s.precision?r.substring(0,s.precision):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=s.precision?r.substring(0,s.precision):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=s.precision?r.substring(0,s.precision):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(s.type)?g+=r:(!i.number.test(s.type)||c&&!s.sign?f="":(f=c?"+":"-",r=r.toString().replace(i.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",p=s.width-(f+r).length,l=s.width&&p>0?u.repeat(p):"",g+=s.align?f+r+l:"0"===u?f+l+r:l+f+r)}return g}(function(t){if(s[t])return s[t];var e,r=t,n=[],a=0;for(;r;){if(null!==(e=i.text.exec(r)))n.push(e[0]);else if(null!==(e=i.modulo.exec(r)))n.push("%");else{if(null===(e=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){a|=1;var o=[],l=e[2],u=[];if(null===(u=i.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=i.key_access.exec(l)))o.push(u[1]);else{if(null===(u=i.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else a|=2;if(3===a)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}r=r.substring(e[0].length)}return s[t]=n}(t),arguments)}function o(t,e){return a.apply(null,[t].concat(e||[]))}var s=Object.create(null);e.sprintf=a,e.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=a,window.vsprintf=o,void 0===(n=function(){return{sprintf:a,vsprintf:o}}.call(e,r,e,t))||(t.exports=n))}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{__:()=>F,_n:()=>j,_nx:()=>L,_x:()=>S,createI18n:()=>x,defaultI18n:()=>_,getLocaleData:()=>v,hasTranslation:()=>D,isRTL:()=>T,resetLocaleData:()=>w,setLocaleData:()=>m,sprintf:()=>a,subscribe:()=>k});var t=r(2058),e=r.n(t);const i=function(t,e){var r,n,i=0;function a(){var a,o,s=r,l=arguments.length;t:for(;s;){if(s.args.length===arguments.length){for(o=0;o<l;o++)if(s.args[o]!==arguments[o]){s=s.next;continue t}return s!==r&&(s===n&&(n=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=r,s.prev=null,r.prev=s,r=s),s.val}s=s.next}for(a=new Array(l),o=0;o<l;o++)a[o]=arguments[o];return s={args:a,val:t.apply(null,a)},r?(r.prev=s,s.next=r):n=s,i===e.maxSize?(n=n.prev).next=null:i++,r=s,s.val}return e=e||{},a.clear=function(){r=null,n=null,i=0},a}(console.error);function a(t,...r){try{return e().sprintf(t,...r)}catch(e){return e instanceof Error&&i("sprintf error: \n\n"+e.toString()),t}}var o,s,l,u;o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},s=["(","?"],l={")":["("],":":["?","?:"]},u=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var p={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,r){if(t)throw e;return r}};function c(t){var e=function(t){for(var e,r,n,i,a=[],p=[];e=t.match(u);){for(r=e[0],(n=t.substr(0,e.index).trim())&&a.push(n);i=p.pop();){if(l[r]){if(l[r][0]===i){r=l[r][1]||r;break}}else if(s.indexOf(i)>=0||o[i]<o[r]){p.push(i);break}a.push(i)}l[r]||p.push(r),t=t.substr(e.index+r.length)}return(t=t.trim())&&a.push(t),a.concat(p.reverse())}(t);return function(t){return function(t,e){var r,n,i,a,o,s,l=[];for(r=0;r<t.length;r++){if(o=t[r],a=p[o]){for(n=a.length,i=Array(n);n--;)i[n]=l.pop();try{s=a.apply(null,i)}catch(t){return t}}else s=e.hasOwnProperty(o)?e[o]:+o;l.push(s)}return l[0]}(e,t)}}var f={contextDelimiter:"",onMissingKey:null};function d(t,e){var r;for(r in this.data=t,this.pluralForms={},this.options={},f)this.options[r]=void 0!==e&&r in e?e[r]:f[r]}d.prototype.getPluralForm=function(t,e){var r,n,i,a=this.pluralForms[t];return a||("function"!=typeof(i=(r=this.data[t][""])["Plural-Forms"]||r["plural-forms"]||r.plural_forms)&&(n=function(t){var e,r,n;for(e=t.split(";"),r=0;r<e.length;r++)if(0===(n=e[r].trim()).indexOf("plural="))return n.substr(7)}(r["Plural-Forms"]||r["plural-forms"]||r.plural_forms),i=function(t){var e=c(t);return function(t){return+e({n:t})}}(n)),a=this.pluralForms[t]=i),a(e)},d.prototype.dcnpgettext=function(t,e,r,n,i){var a,o,s;return a=void 0===i?0:this.getPluralForm(t,i),o=r,e&&(o=e+this.options.contextDelimiter+r),(s=this.data[t][o])&&s[a]?s[a]:(this.options.onMissingKey&&this.options.onMissingKey(r,t),0===a?r:n)};const h={plural_forms:t=>1===t?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,x=(t,e,r)=>{const n=new d({}),i=new Set,a=()=>{i.forEach((t=>t()))},o=(t,e="default")=>{n.data[e]={...n.data[e],...t},n.data[e][""]={...h,...n.data[e]?.[""]},delete n.pluralForms[e]},s=(t,e)=>{o(t,e),a()},l=(t="default",e,r,i,a)=>(n.data[t]||o(void 0,t),n.dcnpgettext(t,e,r,i,a)),u=(t="default")=>t,p=(t,e,n)=>{let i=l(n,e,t);return r?(i=r.applyFilters("i18n.gettext_with_context",i,t,e,n),r.applyFilters("i18n.gettext_with_context_"+u(n),i,t,e,n)):i};if(t&&s(t,e),r){const t=t=>{g.test(t)&&a()};r.addAction("hookAdded","core/i18n",t),r.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:(t="default")=>n.data[t],setLocaleData:s,addLocaleData:(t,e="default")=>{n.data[e]={...n.data[e],...t,"":{...h,...n.data[e]?.[""],...t?.[""]}},delete n.pluralForms[e],a()},resetLocaleData:(t,e)=>{n.data={},n.pluralForms={},s(t,e)},subscribe:t=>(i.add(t),()=>i.delete(t)),__:(t,e)=>{let n=l(e,void 0,t);return r?(n=r.applyFilters("i18n.gettext",n,t,e),r.applyFilters("i18n.gettext_"+u(e),n,t,e)):n},_x:p,_n:(t,e,n,i)=>{let a=l(i,void 0,t,e,n);return r?(a=r.applyFilters("i18n.ngettext",a,t,e,n,i),r.applyFilters("i18n.ngettext_"+u(i),a,t,e,n,i)):a},_nx:(t,e,n,i,a)=>{let o=l(a,i,t,e,n);return r?(o=r.applyFilters("i18n.ngettext_with_context",o,t,e,n,i,a),r.applyFilters("i18n.ngettext_with_context_"+u(a),o,t,e,n,i,a)):o},isRTL:()=>"rtl"===p("ltr","text direction"),hasTranslation:(t,e,i)=>{const a=e?e+""+t:t;let o=!!n.data?.[null!=i?i:"default"]?.[a];return r&&(o=r.applyFilters("i18n.has_translation",o,t,e,i),o=r.applyFilters("i18n.has_translation_"+u(i),o,t,e,i)),o}}},y=window.wp.hooks,b=x(void 0,void 0,y.defaultHooks),_=b,v=b.getLocaleData.bind(b),m=b.setLocaleData.bind(b),w=b.resetLocaleData.bind(b),k=b.subscribe.bind(b),F=b.__.bind(b),S=b._x.bind(b),j=b._n.bind(b),L=b._nx.bind(b),T=b.isRTL.bind(b),D=b.hasTranslation.bind(b)})(),(window.wp=window.wp||{}).i18n=n})();
;wp.i18n.setLocaleData({'text direction\u0004ltr':['ltr']})
;(()=>{"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:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>m,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>b,mindate:()=>A,minfilesize:()=>j,minitems:()=>w,minlength:()=>g,minnumber:()=>y,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,time:()=>d,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).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,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);if(!e.every((t=>{if(""===(t=t.trim()))return!1;try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>{if(t=t.trim(),!/^[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)},d=function(t){if(!t.getAll(this.field).every((t=>{const e=t.trim().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)},m=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],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).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).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).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let 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);let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},b=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))))throw new o(this)},z=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))))throw new o(this)},j=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)},$=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=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},O=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},E=[],k=t=>[...E].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>I({ruleObj:t,options:e}))),s=k(O);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=>I({ruleObj:t,options:e}))),s=k(O);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 F;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>I({ruleObj:t,options:i})));if(!n.length)return new Map;const a=k(O),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=>{E.push(t)},...null!==(F=window.swv)&&void 0!==F?F:{}}})()
;var wpcf7={"api":{"root":"https:\/\/optimuspet.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"}
;(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return o.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],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(o||c||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)},o=[];function c(e,t={}){const{target:a,scope:r=e,...o}=t;if(void 0===e.wpcf7?.schema)return;const c={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where( input, textarea, select ):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(c,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const o=t.dataset.name;if(n.has(o)){const{error:t,validInputs:a}=n.get(o);i(e,o),void 0!==t&&s(e,o,t,{scope:r}),l(e,o,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{o.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...o}=null!=n?n:{},c=`${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",c),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",c),"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 o=new FormData(e);t.submitter&&t.submitter.name&&o.append(t.submitter.name,t.submitter.value);const 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(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:c}}).then((t=>{const r=n(e,t.status);return c.status=t.status,c.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,c):["sent","failed"].includes(r)&&a(e,`mail${r}`,c),a(e,"submit",c),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),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(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:o}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),o.apiResponse=t,a(e,"reset",o)})).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")),o=t(e.getAttribute("data-minimum-value")),c=e.classList.contains("down")?n-a.value.length:a.value.length;e.setAttribute("data-current-value",c),e.innerText=c,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),o&&a.value.length<o?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"),o=e.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),t.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};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:c,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7").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.")}))})()
;(()=>{"use strict";var t={6691:(t,r,e)=>{var n=e(884);e(6401),e(1202),e(3275),e(465),t.exports=n},7661:(t,r,e)=>{var n=e(6848);t.exports=n},9281:(t,r,e)=>{e(8706),e(6099),e(2675),e(6412),e(9463),e(193),e(2168),e(2259),e(6964),e(3142),e(3237),e(1833),e(7947),e(1073),e(5700),e(8125),e(326),e(4731),e(479),e(5472);var n=e(9167);t.exports=n.Symbol},2151:(t,r,e)=>{e(3792),e(6099),e(7764),e(2259);var n=e(1951);t.exports=n.f("iterator")},2440:(t,r,e)=>{e(7414)},6004:(t,r,e)=>{e(1750)},7414:(t,r,e)=>{var n=e(6691);e(3070),e(3032),e(3976),e(2793),e(7153),e(3803),e(8999),e(7208),e(3440),t.exports=n},1750:(t,r,e)=>{var n=e(7661);t.exports=n},9306:(t,r,e)=>{var n=e(4901),o=e(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},3506:(t,r,e)=>{var n=e(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},6469:(t,r,e)=>{var n=e(8227),o=e(2360),i=e(4913).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},8551:(t,r,e)=>{var n=e(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9617:(t,r,e)=>{var n=e(5397),o=e(5610),i=e(6198),a=function(t){return function(r,e,a){var u=n(r),c=i(u);if(0===c)return!t&&-1;var s,f=o(a,c);if(t&&e!=e){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:(t,r,e)=>{var n=e(6080),o=e(9504),i=e(7055),a=e(8981),u=e(6198),c=e(1469),s=o([].push),f=function(t){var r=1===t,e=2===t,o=3===t,f=4===t,l=6===t,p=7===t,v=5===t||l;return function(y,b,g,d){for(var h,m,x=a(y),S=i(x),w=u(S),O=n(b,g),j=0,A=d||c,P=r?A(y,w):e||p?A(y,0):void 0;w>j;j++)if((v||j in S)&&(m=O(h=S[j],j,x),t))if(r)P[j]=m;else if(m)switch(t){case 3:return!0;case 5:return h;case 6:return j;case 2:s(P,h)}else switch(t){case 4:return!1;case 7:s(P,h)}return l?-1:o||f?f:P}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},597:(t,r,e)=>{var n=e(9039),o=e(8227),i=e(7388),a=o("species");t.exports=function(t){return i>=51||!n((function(){var r=[];return(r.constructor={})[a]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},7680:(t,r,e)=>{var n=e(9504);t.exports=n([].slice)},7433:(t,r,e)=>{var n=e(4376),o=e(3517),i=e(34),a=e(8227)("species"),u=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===u||n(r.prototype))||i(r)&&null===(r=r[a]))&&(r=void 0)),void 0===r?u:r}},1469:(t,r,e)=>{var n=e(7433);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4576:(t,r,e)=>{var n=e(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:(t,r,e)=>{var n=e(2140),o=e(4901),i=e(4576),a=e(8227)("toStringTag"),u=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),a))?e:c?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},7740:(t,r,e)=>{var n=e(9297),o=e(5031),i=e(7347),a=e(4913);t.exports=function(t,r,e){for(var u=o(r),c=a.f,s=i.f,f=0;f<u.length;f++){var l=u[f];n(t,l)||e&&n(e,l)||c(t,l,s(r,l))}}},2211:(t,r,e)=>{var n=e(9039);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:t=>{t.exports=function(t,r){return{value:t,done:r}}},6699:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6980:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},4659:(t,r,e)=>{var n=e(3724),o=e(4913),i=e(6980);t.exports=function(t,r,e){n?o.f(t,r,i(0,e)):t[r]=e}},2106:(t,r,e)=>{var n=e(283),o=e(4913);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},6840:(t,r,e)=>{var n=e(4901),o=e(4913),i=e(283),a=e(9433);t.exports=function(t,r,e,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:r;if(n(e)&&i(e,s,u),u.global)c?t[r]=e:a(r,e);else{try{u.unsafe?t[r]&&(c=!0):delete t[r]}catch(t){}c?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},9433:(t,r,e)=>{var n=e(4475),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},3724:(t,r,e)=>{var n=e(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,r,e)=>{var n=e(4475),o=e(34),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},6837:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},7400:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:(t,r,e)=>{var n=e(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},9392:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,r,e)=>{var n,o,i=e(4475),a=e(9392),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},8727:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(t,r,e)=>{var n=e(4475),o=e(7347).f,i=e(6699),a=e(6840),u=e(9433),c=e(7740),s=e(2796);t.exports=function(t,r){var e,f,l,p,v,y=t.target,b=t.global,g=t.stat;if(e=b?n:g?n[y]||u(y,{}):n[y]&&n[y].prototype)for(f in r){if(p=r[f],l=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(b?f:y+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;c(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(e,f,p,t)}}},9039:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},8745:(t,r,e)=>{var n=e(616),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},6080:(t,r,e)=>{var n=e(7476),o=e(9306),i=e(616),a=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?a(t,r):function(){return t.apply(r,arguments)}}},616:(t,r,e)=>{var n=e(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,r,e)=>{var n=e(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:(t,r,e)=>{var n=e(3724),o=e(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},6706:(t,r,e)=>{var n=e(9504),o=e(9306);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},7476:(t,r,e)=>{var n=e(4576),o=e(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},9504:(t,r,e)=>{var n=e(616),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},7751:(t,r,e)=>{var n=e(4475),o=e(4901);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},6933:(t,r,e)=>{var n=e(9504),o=e(4376),i=e(4901),a=e(4576),u=e(655),c=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n<r;n++){var s=t[n];"string"==typeof s?c(e,s):"number"!=typeof s&&"Number"!==a(s)&&"String"!==a(s)||c(e,u(s))}var f=e.length,l=!0;return function(t,r){if(l)return l=!1,r;if(o(this))return r;for(var n=0;n<f;n++)if(e[n]===t)return r}}}},5966:(t,r,e)=>{var n=e(9306),o=e(4117);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},4475:function(t,r,e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,r,e)=>{var n=e(9504),o=e(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},421:t=>{t.exports={}},397:(t,r,e)=>{var n=e(7751);t.exports=n("document","documentElement")},5917:(t,r,e)=>{var n=e(3724),o=e(9039),i=e(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4576),a=Object,u=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},3706:(t,r,e)=>{var n=e(9504),o=e(4901),i=e(7629),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},1181:(t,r,e)=>{var n,o,i,a=e(8622),u=e(4475),c=e(34),s=e(6699),f=e(9297),l=e(7629),p=e(6119),v=e(421),y="Object already initialized",b=u.TypeError,g=u.WeakMap;if(a||l.state){var d=l.state||(l.state=new g);d.get=d.get,d.has=d.has,d.set=d.set,n=function(t,r){if(d.has(t))throw new b(y);return r.facade=t,d.set(t,r),r},o=function(t){return d.get(t)||{}},i=function(t){return d.has(t)}}else{var h=p("state");v[h]=!0,n=function(t,r){if(f(t,h))throw new b(y);return r.facade=t,s(t,h,r),r},o=function(t){return f(t,h)?t[h]:{}},i=function(t){return f(t,h)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!c(r)||(e=o(r)).type!==t)throw new b("Incompatible receiver, "+t+" required");return e}}}},4376:(t,r,e)=>{var n=e(4576);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:t=>{var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},3517:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4901),a=e(6955),u=e(7751),c=e(3706),s=function(){},f=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),v=!l.test(s),y=function(t){if(!i(t))return!1;try{return f(s,[],t),!0}catch(t){return!1}},b=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!p(l,c(t))}catch(t){return!0}};b.sham=!0,t.exports=!f||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?b:y},2796:(t,r,e)=>{var n=e(9039),o=e(4901),i=/#|\.prototype\./,a=function(t,r){var e=c[u(t)];return e===f||e!==s&&(o(r)?n(r):!!r)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},4117:t=>{t.exports=function(t){return null==t}},34:(t,r,e)=>{var n=e(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:(t,r,e)=>{var n=e(34);t.exports=function(t){return n(t)||null===t}},6395:t=>{t.exports=!1},757:(t,r,e)=>{var n=e(7751),o=e(4901),i=e(1625),a=e(7040),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},3994:(t,r,e)=>{var n=e(7657).IteratorPrototype,o=e(2360),i=e(6980),a=e(687),u=e(6269),c=function(){return this};t.exports=function(t,r,e,s){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!s,e)}),a(t,f,!1,!0),u[f]=c,t}},1088:(t,r,e)=>{var n=e(6518),o=e(9565),i=e(6395),a=e(350),u=e(4901),c=e(3994),s=e(2787),f=e(2967),l=e(687),p=e(6699),v=e(6840),y=e(8227),b=e(6269),g=e(7657),d=a.PROPER,h=a.CONFIGURABLE,m=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,S=y("iterator"),w="keys",O="values",j="entries",A=function(){return this};t.exports=function(t,r,e,a,y,g,P){c(e,r,a);var T,E,L,F=function(t){if(t===y&&k)return k;if(!x&&t&&t in M)return M[t];switch(t){case w:case O:case j:return function(){return new e(this,t)}}return function(){return new e(this)}},I=r+" Iterator",R=!1,M=t.prototype,C=M[S]||M["@@iterator"]||y&&M[y],k=!x&&C||F(y),_="Array"===r&&M.entries||C;if(_&&(T=s(_.call(new t)))!==Object.prototype&&T.next&&(i||s(T)===m||(f?f(T,m):u(T[S])||v(T,S,A)),l(T,I,!0,!0),i&&(b[I]=A)),d&&y===O&&C&&C.name!==O&&(!i&&h?p(M,"name",O):(R=!0,k=function(){return o(C,this)})),y)if(E={values:F(O),keys:g?k:F(w),entries:F(j)},P)for(L in E)(x||R||!(L in M))&&v(M,L,E[L]);else n({target:r,proto:!0,forced:x||R},E);return i&&!P||M[S]===k||v(M,S,k,{name:y}),b[r]=k,E}},7657:(t,r,e)=>{var n,o,i,a=e(9039),u=e(4901),c=e(34),s=e(2360),f=e(2787),l=e(6840),p=e(8227),v=e(6395),y=p("iterator"),b=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):b=!0),!c(n)||a((function(){var t={};return n[y].call(t)!==t}))?n={}:v&&(n=s(n)),u(n[y])||l(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:b}},6269:t=>{t.exports={}},6198:(t,r,e)=>{var n=e(8014);t.exports=function(t){return n(t.length)}},283:(t,r,e)=>{var n=e(9504),o=e(9039),i=e(4901),a=e(9297),u=e(3724),c=e(350).CONFIGURABLE,s=e(3706),f=e(1181),l=f.enforce,p=f.get,v=String,y=Object.defineProperty,b=n("".slice),g=n("".replace),d=n([].join),h=u&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===b(v(r),0,7)&&(r="["+g(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!a(t,"name")||c&&t.name!==r)&&(u?y(t,"name",{value:r,configurable:!0}):t.name=r),h&&e&&a(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&a(e,"constructor")&&e.constructor?u&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=l(t);return a(n,"source")||(n.source=d(m,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||s(this)}),"toString")},741:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},2360:(t,r,e)=>{var n,o=e(8551),i=e(6801),a=e(8727),u=e(421),c=e(397),s=e(4055),f=e(6119),l="prototype",p="script",v=f("IE_PROTO"),y=function(){},b=function(t){return"<"+p+">"+t+"</"+p+">"},g=function(t){t.write(b("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;d="undefined"!=typeof document?document.domain&&n?g(n):(r=s("iframe"),e="java"+p+":",r.style.display="none",c.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(b("document.F=Object")),t.close(),t.F):g(n);for(var o=a.length;o--;)delete d[l][a[o]];return d()};u[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(y[l]=o(t),e=new y,y[l]=null,e[v]=t):e=d(),void 0===r?e:i.f(e,r)}},6801:(t,r,e)=>{var n=e(3724),o=e(8686),i=e(4913),a=e(8551),u=e(5397),c=e(1072);r.f=n&&!o?Object.defineProperties:function(t,r){a(t);for(var e,n=u(r),o=c(r),s=o.length,f=0;s>f;)i.f(t,e=o[f++],n[e]);return t}},4913:(t,r,e)=>{var n=e(3724),o=e(5917),i=e(8686),a=e(8551),u=e(6969),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",v="writable";r.f=n?i?function(t,r,e){if(a(t),r=u(r),a(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:p in e?e[p]:n[p],enumerable:l in e?e[l]:n[l],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(a(t),r=u(r),a(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw new c("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7347:(t,r,e)=>{var n=e(3724),o=e(9565),i=e(8773),a=e(6980),u=e(5397),c=e(6969),s=e(9297),f=e(5917),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(t,r){if(t=u(t),r=c(r),f)try{return l(t,r)}catch(t){}if(s(t,r))return a(!o(i.f,t,r),t[r])}},298:(t,r,e)=>{var n=e(4576),o=e(5397),i=e(8480).f,a=e(7680),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"===n(t)?function(t){try{return i(t)}catch(t){return a(u)}}(t):i(o(t))}},8480:(t,r,e)=>{var n=e(1828),o=e(8727).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3717:(t,r)=>{r.f=Object.getOwnPropertySymbols},2787:(t,r,e)=>{var n=e(9297),o=e(4901),i=e(8981),a=e(6119),u=e(2211),c=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var r=i(t);if(n(r,c))return r[c];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof s?f:null}},1625:(t,r,e)=>{var n=e(9504);t.exports=n({}.isPrototypeOf)},1828:(t,r,e)=>{var n=e(9504),o=e(9297),i=e(5397),a=e(9617).indexOf,u=e(421),c=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(u,e)&&o(n,e)&&c(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~a(f,e)||c(f,e));return f}},1072:(t,r,e)=>{var n=e(1828),o=e(8727);t.exports=Object.keys||function(t){return n(t,o)}},8773:(t,r)=>{var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2967:(t,r,e)=>{var n=e(6706),o=e(34),i=e(7750),a=e(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return i(e),a(n),o(e)?(r?t(e,n):e.__proto__=n,e):e}}():void 0)},3179:(t,r,e)=>{var n=e(2140),o=e(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270:(t,r,e)=>{var n=e(9565),o=e(4901),i=e(34),a=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw new a("Can't convert object to primitive value")}},5031:(t,r,e)=>{var n=e(7751),o=e(9504),i=e(8480),a=e(3717),u=e(8551),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=a.f;return e?c(r,e(t)):r}},9167:(t,r,e)=>{var n=e(4475);t.exports=n},7750:(t,r,e)=>{var n=e(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},687:(t,r,e)=>{var n=e(4913).f,o=e(9297),i=e(8227)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},6119:(t,r,e)=>{var n=e(5745),o=e(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:(t,r,e)=>{var n=e(6395),o=e(4475),i=e(9433),a="__core-js_shared__",u=t.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.36.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,r,e)=>{var n=e(7629);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},8183:(t,r,e)=>{var n=e(9504),o=e(1291),i=e(655),a=e(7750),u=n("".charAt),c=n("".charCodeAt),s=n("".slice),f=function(t){return function(r,e){var n,f,l=i(a(r)),p=o(e),v=l.length;return p<0||p>=v?t?"":void 0:(n=c(l,p))<55296||n>56319||p+1===v||(f=c(l,p+1))<56320||f>57343?t?u(l,p):n:t?s(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},4495:(t,r,e)=>{var n=e(7388),o=e(9039),i=e(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8242:(t,r,e)=>{var n=e(9565),o=e(7751),i=e(8227),a=e(6840);t.exports=function(){var t=o("Symbol"),r=t&&t.prototype,e=r&&r.valueOf,u=i("toPrimitive");r&&!r[u]&&a(r,u,(function(t){return n(e,this)}),{arity:1})}},2586:(t,r,e)=>{var n=e(7751),o=e(9504),i=n("Symbol"),a=i.keyFor,u=o(i.prototype.valueOf);t.exports=i.isRegisteredSymbol||function(t){try{return void 0!==a(u(t))}catch(t){return!1}}},2104:(t,r,e)=>{for(var n=e(5745),o=e(7751),i=e(9504),a=e(757),u=e(8227),c=o("Symbol"),s=c.isWellKnownSymbol,f=o("Object","getOwnPropertyNames"),l=i(c.prototype.valueOf),p=n("wks"),v=0,y=f(c),b=y.length;v<b;v++)try{var g=y[v];a(c[g])&&u(g)}catch(t){}t.exports=function(t){if(s&&s(t))return!0;try{for(var r=l(t),e=0,n=f(p),o=n.length;e<o;e++)if(p[n[e]]==r)return!0}catch(t){}return!1}},1296:(t,r,e)=>{var n=e(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},5610:(t,r,e)=>{var n=e(1291),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5397:(t,r,e)=>{var n=e(7055),o=e(7750);t.exports=function(t){return n(o(t))}},1291:(t,r,e)=>{var n=e(741);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},8014:(t,r,e)=>{var n=e(1291),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},8981:(t,r,e)=>{var n=e(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:(t,r,e)=>{var n=e(9565),o=e(34),i=e(757),a=e(5966),u=e(4270),c=e(8227),s=TypeError,f=c("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,c=a(t,f);if(c){if(void 0===r&&(r="default"),e=n(c,t,r),!o(e)||i(e))return e;throw new s("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},6969:(t,r,e)=>{var n=e(2777),o=e(757);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},2140:(t,r,e)=>{var n={};n[e(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655:(t,r,e)=>{var n=e(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},3392:(t,r,e)=>{var n=e(9504),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},7040:(t,r,e)=>{var n=e(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,r,e)=>{var n=e(3724),o=e(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:(t,r,e)=>{var n=e(4475),o=e(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},511:(t,r,e)=>{var n=e(9167),o=e(9297),i=e(1951),a=e(4913).f;t.exports=function(t){var r=n.Symbol||(n.Symbol={});o(r,t)||a(r,t,{value:i.f(t)})}},1951:(t,r,e)=>{var n=e(8227);r.f=n},8227:(t,r,e)=>{var n=e(4475),o=e(5745),i=e(9297),a=e(3392),u=e(4495),c=e(7040),s=n.Symbol,f=o("wks"),l=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:l("Symbol."+t)),f[t]}},8706:(t,r,e)=>{var n=e(6518),o=e(9039),i=e(4376),a=e(34),u=e(8981),c=e(6198),s=e(6837),f=e(4659),l=e(1469),p=e(597),v=e(8227),y=e(7388),b=v("isConcatSpreadable"),g=y>=51||!o((function(){var t=[];return t[b]=!1,t.concat()[0]!==t})),d=function(t){if(!a(t))return!1;var r=t[b];return void 0!==r?!!r:i(t)};n({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(t){var r,e,n,o,i,a=u(this),p=l(a,0),v=0;for(r=-1,n=arguments.length;r<n;r++)if(d(i=-1===r?a:arguments[r]))for(o=c(i),s(v+o),e=0;e<o;e++,v++)e in i&&f(p,v,i[e]);else s(v+1),f(p,v++,i);return p.length=v,p}})},3792:(t,r,e)=>{var n=e(5397),o=e(6469),i=e(6269),a=e(1181),u=e(4913).f,c=e(1088),s=e(2529),f=e(6395),l=e(3724),p="Array Iterator",v=a.set,y=a.getterFor(p);t.exports=c(Array,"Array",(function(t,r){v(this,{type:p,target:n(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,e=t.index++;if(!r||e>=r.length)return t.target=void 0,s(void 0,!0);switch(t.kind){case"keys":return s(e,!1);case"values":return s(r[e],!1)}return s([e,r[e]],!1)}),"values");var b=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==b.name)try{u(b,"name",{value:"values"})}catch(t){}},3110:(t,r,e)=>{var n=e(6518),o=e(7751),i=e(8745),a=e(9565),u=e(9504),c=e(9039),s=e(4901),f=e(757),l=e(7680),p=e(6933),v=e(4495),y=String,b=o("JSON","stringify"),g=u(/./.exec),d=u("".charAt),h=u("".charCodeAt),m=u("".replace),x=u(1..toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,j=!v||c((function(){var t=o("Symbol")("stringify detection");return"[null]"!==b([t])||"{}"!==b({a:t})||"{}"!==b(Object(t))})),A=c((function(){return'"\\udf06\\ud834"'!==b("\udf06\ud834")||'"\\udead"'!==b("\udead")})),P=function(t,r){var e=l(arguments),n=p(r);if(s(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(s(n)&&(r=a(n,this,y(t),r)),!f(r))return r},i(b,null,e)},T=function(t,r,e){var n=d(e,r-1),o=d(e,r+1);return g(w,t)&&!g(O,o)||g(O,t)&&!g(w,n)?"\\u"+x(h(t,0),16):t};b&&n({target:"JSON",stat:!0,arity:3,forced:j||A},{stringify:function(t,r,e){var n=l(arguments),o=i(j?P:b,null,n);return A&&"string"==typeof o?m(o,S,T):o}})},4731:(t,r,e)=>{var n=e(4475);e(687)(n.JSON,"JSON",!0)},479:(t,r,e)=>{e(687)(Math,"Math",!0)},9773:(t,r,e)=>{var n=e(6518),o=e(4495),i=e(9039),a=e(3717),u=e(8981);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var r=a.f;return r?r(u(t)):[]}})},6099:(t,r,e)=>{var n=e(2140),o=e(6840),i=e(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},5472:(t,r,e)=>{var n=e(6518),o=e(4475),i=e(687);n({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},7764:(t,r,e)=>{var n=e(8183).charAt,o=e(655),i=e(1181),a=e(1088),u=e(2529),c="String Iterator",s=i.set,f=i.getterFor(c);a(String,"String",(function(t){s(this,{type:c,string:o(t),index:0})}),(function(){var t,r=f(this),e=r.string,o=r.index;return o>=e.length?u(void 0,!0):(t=n(e,o),r.index+=t.length,u(t,!1))}))},6412:(t,r,e)=>{e(511)("asyncIterator")},6761:(t,r,e)=>{var n=e(6518),o=e(4475),i=e(9565),a=e(9504),u=e(6395),c=e(3724),s=e(4495),f=e(9039),l=e(9297),p=e(1625),v=e(8551),y=e(5397),b=e(6969),g=e(655),d=e(6980),h=e(2360),m=e(1072),x=e(8480),S=e(298),w=e(3717),O=e(7347),j=e(4913),A=e(6801),P=e(8773),T=e(6840),E=e(2106),L=e(5745),F=e(6119),I=e(421),R=e(3392),M=e(8227),C=e(1951),k=e(511),_=e(8242),D=e(687),N=e(1181),G=e(9213).forEach,B=F("hidden"),W="Symbol",z="prototype",U=N.set,V=N.getterFor(W),$=Object[z],K=o.Symbol,H=K&&K[z],J=o.RangeError,q=o.TypeError,Y=o.QObject,X=O.f,Q=j.f,Z=S.f,tt=P.f,rt=a([].push),et=L("symbols"),nt=L("op-symbols"),ot=L("wks"),it=!Y||!Y[z]||!Y[z].findChild,at=function(t,r,e){var n=X($,r);n&&delete $[r],Q(t,r,e),n&&t!==$&&Q($,r,n)},ut=c&&f((function(){return 7!==h(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?at:Q,ct=function(t,r){var e=et[t]=h(H);return U(e,{type:W,tag:t,description:r}),c||(e.description=r),e},st=function(t,r,e){t===$&&st(nt,r,e),v(t);var n=b(r);return v(e),l(et,n)?(e.enumerable?(l(t,B)&&t[B][n]&&(t[B][n]=!1),e=h(e,{enumerable:d(0,!1)})):(l(t,B)||Q(t,B,d(1,h(null))),t[B][n]=!0),ut(t,n,e)):Q(t,n,e)},ft=function(t,r){v(t);var e=y(r),n=m(e).concat(yt(e));return G(n,(function(r){c&&!i(lt,e,r)||st(t,r,e[r])})),t},lt=function(t){var r=b(t),e=i(tt,this,r);return!(this===$&&l(et,r)&&!l(nt,r))&&(!(e||!l(this,r)||!l(et,r)||l(this,B)&&this[B][r])||e)},pt=function(t,r){var e=y(t),n=b(r);if(e!==$||!l(et,n)||l(nt,n)){var o=X(e,n);return!o||!l(et,n)||l(e,B)&&e[B][n]||(o.enumerable=!0),o}},vt=function(t){var r=Z(y(t)),e=[];return G(r,(function(t){l(et,t)||l(I,t)||rt(e,t)})),e},yt=function(t){var r=t===$,e=Z(r?nt:y(t)),n=[];return G(e,(function(t){!l(et,t)||r&&!l($,t)||rt(n,et[t])})),n};s||(T(H=(K=function(){if(p(H,this))throw new q("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,r=R(t),e=function(t){var n=void 0===this?o:this;n===$&&i(e,nt,t),l(n,B)&&l(n[B],r)&&(n[B][r]=!1);var a=d(1,t);try{ut(n,r,a)}catch(t){if(!(t instanceof J))throw t;at(n,r,a)}};return c&&it&&ut($,r,{configurable:!0,set:e}),ct(r,t)})[z],"toString",(function(){return V(this).tag})),T(K,"withoutSetter",(function(t){return ct(R(t),t)})),P.f=lt,j.f=st,A.f=ft,O.f=pt,x.f=S.f=vt,w.f=yt,C.f=function(t){return ct(M(t),t)},c&&(E(H,"description",{configurable:!0,get:function(){return V(this).description}}),u||T($,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:K}),G(m(ot),(function(t){k(t)})),n({target:W,stat:!0,forced:!s},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!c},{create:function(t,r){return void 0===r?h(t):ft(h(t),r)},defineProperty:st,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:vt}),_(),D(K,W),I[B]=!0},9463:(t,r,e)=>{var n=e(6518),o=e(3724),i=e(4475),a=e(9504),u=e(9297),c=e(4901),s=e(1625),f=e(655),l=e(2106),p=e(7740),v=i.Symbol,y=v&&v.prototype;if(o&&c(v)&&(!("description"in y)||void 0!==v().description)){var b={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),r=s(y,this)?new v(t):void 0===t?v():v(t);return""===t&&(b[r]=!0),r};p(g,v),g.prototype=y,y.constructor=g;var d="Symbol(description detection)"===String(v("description detection")),h=a(y.valueOf),m=a(y.toString),x=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),w=a("".slice);l(y,"description",{configurable:!0,get:function(){var t=h(this);if(u(b,t))return"";var r=m(t),e=d?w(r,7,-1):S(r,x,"$1");return""===e?void 0:e}}),n({global:!0,constructor:!0,forced:!0},{Symbol:g})}},1510:(t,r,e)=>{var n=e(6518),o=e(7751),i=e(9297),a=e(655),u=e(5745),c=e(1296),s=u("string-to-symbol-registry"),f=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var r=a(t);if(i(s,r))return s[r];var e=o("Symbol")(r);return s[r]=e,f[e]=r,e}})},193:(t,r,e)=>{e(511)("hasInstance")},2168:(t,r,e)=>{e(511)("isConcatSpreadable")},2259:(t,r,e)=>{e(511)("iterator")},2675:(t,r,e)=>{e(6761),e(1510),e(7812),e(3110),e(9773)},7812:(t,r,e)=>{var n=e(6518),o=e(9297),i=e(757),a=e(6823),u=e(5745),c=e(1296),s=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},3142:(t,r,e)=>{e(511)("matchAll")},6964:(t,r,e)=>{e(511)("match")},3237:(t,r,e)=>{e(511)("replace")},1833:(t,r,e)=>{e(511)("search")},7947:(t,r,e)=>{e(511)("species")},1073:(t,r,e)=>{e(511)("split")},5700:(t,r,e)=>{var n=e(511),o=e(8242);n("toPrimitive"),o()},8125:(t,r,e)=>{var n=e(7751),o=e(511),i=e(687);o("toStringTag"),i(n("Symbol"),"Symbol")},326:(t,r,e)=>{e(511)("unscopables")},6401:(t,r,e)=>{var n=e(8227),o=e(4913).f,i=n("metadata"),a=Function.prototype;void 0===a[i]&&o(a,i,{value:null})},1202:(t,r,e)=>{var n=e(4475),o=e(511),i=e(4913).f,a=e(7347).f,u=n.Symbol;if(o("asyncDispose"),u){var c=a(u,"asyncDispose");c.enumerable&&c.configurable&&c.writable&&i(u,"asyncDispose",{value:c.value,enumerable:!1,configurable:!1,writable:!1})}},3275:(t,r,e)=>{var n=e(4475),o=e(511),i=e(4913).f,a=e(7347).f,u=n.Symbol;if(o("dispose"),u){var c=a(u,"dispose");c.enumerable&&c.configurable&&c.writable&&i(u,"dispose",{value:c.value,enumerable:!1,configurable:!1,writable:!1})}},3070:(t,r,e)=>{e(6518)({target:"Symbol",stat:!0},{isRegisteredSymbol:e(2586)})},7153:(t,r,e)=>{e(6518)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e(2586)})},3032:(t,r,e)=>{e(6518)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e(2104)})},3803:(t,r,e)=>{e(6518)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e(2104)})},3976:(t,r,e)=>{e(511)("matcher")},8999:(t,r,e)=>{e(511)("metadataKey")},465:(t,r,e)=>{e(511)("metadata")},2793:(t,r,e)=>{e(511)("observable")},7208:(t,r,e)=>{e(511)("patternMatch")},3440:(t,r,e)=>{e(511)("replaceAll")},2953:(t,r,e)=>{var n=e(4475),o=e(7400),i=e(9296),a=e(3792),u=e(6699),c=e(687),s=e(8227)("iterator"),f=a.values,l=function(t,r){if(t){if(t[s]!==f)try{u(t,s,f)}catch(r){t[s]=f}if(c(t,r,!0),o[r])for(var e in a)if(t[e]!==a[e])try{u(t,e,a[e])}catch(r){t[e]=a[e]}}};for(var p in o)l(n[p]&&n[p].prototype,p);l(i,"DOMTokenList")},884:(t,r,e)=>{var n=e(9281);e(2953),t.exports=n},6848:(t,r,e)=>{var n=e(2151);e(2953),t.exports=n}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}e(2440),e(6004);var r=function(t){var r,e=/#new_tab/;if("A"===(null==t||null===(r=t.tagName)||void 0===r?void 0:r.toUpperCase())&&e.test(null==t?void 0:t.getAttribute("href"))){var n=t.getAttribute("rel");(!n||n.indexOf("noopener")<0)&&t.setAttribute("rel","".concat(n?n+" ":"","noopener")),t.setAttribute("target","_blank"),t.setAttribute("aria-label","".concat(t.innerText," (opens in a new tab)")),t.setAttribute("href",t.getAttribute("href").replace(e,""))}};(function(t){var r=t.Element.prototype;"function"!=typeof r.matches&&(r.matches=r.msMatchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||function(t){for(var r=this,e=(r.document||r.ownerDocument).querySelectorAll(t),n=0;e[n]&&e[n]!==r;)++n;return Boolean(e[n])}),"function"!=typeof r.closest&&(r.closest=function(t){for(var r=this;r&&1===r.nodeType;){if(r.matches(t))return r;r=r.parentNode}return null})})(window),document.addEventListener("click",(function(t){return r(t.target.closest("a"))})),document.addEventListener("DOMContentLoaded",(function(){var e,n=function(r,e){var n="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=function(r,e){if(r){if("string"==typeof r)return t(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(r,e):void 0}}(r))||e&&r&&"number"==typeof r.length){n&&(r=n);var o=0,i=function(){};return{s:i,n:function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}},e:function(t){throw t},f:i}}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 a,u=!0,c=!1;return{s:function(){n=n.call(r)},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw a}}}}(document.getElementsByTagName("A"));try{for(n.s();!(e=n.n()).done;){var o=e.value;r(o)}}catch(t){n.e(t)}finally{n.f()}}))})()})()
;/*!
  * Bootstrap v5.0.1 (https://getbootstrap.com/)
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
  */
(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,global.bootstrap=factory())}(this,(function(){'use strict';const NODE_TEXT=3;const SelectorEngine={find(selector,element=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(element,selector))},findOne(selector,element=document.documentElement){return Element.prototype.querySelector.call(element,selector)},children(element,selector){return[].concat(...element.children).filter(child=>child.matches(selector))},parents(element,selector){const parents=[];let ancestor=element.parentNode;while(ancestor&&ancestor.nodeType===Node.ELEMENT_NODE&&ancestor.nodeType!==NODE_TEXT){if(ancestor.matches(selector)){parents.push(ancestor)}
ancestor=ancestor.parentNode}
return parents},prev(element,selector){let previous=element.previousElementSibling;while(previous){if(previous.matches(selector)){return[previous]}
previous=previous.previousElementSibling}
return[]},next(element,selector){let next=element.nextElementSibling;while(next){if(next.matches(selector)){return[next]}
next=next.nextElementSibling}
return[]}};const MAX_UID=1000000;const MILLISECONDS_MULTIPLIER=1000;const TRANSITION_END='transitionend';const toType=obj=>{if(obj===null||obj===undefined){return `${obj}`}
return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase()};const getUID=prefix=>{do{prefix+=Math.floor(Math.random()*MAX_UID)}while(document.getElementById(prefix));return prefix};const getSelector=element=>{let selector=element.getAttribute('data-bs-target');if(!selector||selector==='#'){let hrefAttr=element.getAttribute('href');if(!hrefAttr||!hrefAttr.includes('#')&&!hrefAttr.startsWith('.')){return null}
if(hrefAttr.includes('#')&&!hrefAttr.startsWith('#')){hrefAttr=`#${hrefAttr.split('#')[1]}`}
selector=hrefAttr&&hrefAttr!=='#'?hrefAttr.trim():null}
return selector};const getSelectorFromElement=element=>{const selector=getSelector(element);if(selector){return document.querySelector(selector)?selector:null}
return null};const getElementFromSelector=element=>{const selector=getSelector(element);return selector?document.querySelector(selector):null};const getTransitionDurationFromElement=element=>{if(!element){return 0}
let{transitionDuration,transitionDelay}=window.getComputedStyle(element);const floatTransitionDuration=Number.parseFloat(transitionDuration);const floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0}
transitionDuration=transitionDuration.split(',')[0];transitionDelay=transitionDelay.split(',')[0];return(Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER};const triggerTransitionEnd=element=>{element.dispatchEvent(new Event(TRANSITION_END))};const isElement$1=obj=>{if(!obj||typeof obj!=='object'){return!1}
if(typeof obj.jquery!=='undefined'){obj=obj[0]}
return typeof obj.nodeType!=='undefined'};const getElement=obj=>{if(isElement$1(obj)){return obj.jquery?obj[0]:obj}
if(typeof obj==='string'&&obj.length>0){return SelectorEngine.findOne(obj)}
return null};const emulateTransitionEnd=(element,duration)=>{let called=!1;const durationPadding=5;const emulatedDuration=duration+durationPadding;function listener(){called=!0;element.removeEventListener(TRANSITION_END,listener)}
element.addEventListener(TRANSITION_END,listener);setTimeout(()=>{if(!called){triggerTransitionEnd(element)}},emulatedDuration)};const typeCheckConfig=(componentName,config,configTypes)=>{Object.keys(configTypes).forEach(property=>{const expectedTypes=configTypes[property];const value=config[property];const valueType=value&&isElement$1(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new TypeError(`${componentName.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`)}})};const isVisible=element=>{if(!element){return!1}
if(element.style&&element.parentNode&&element.parentNode.style){const elementStyle=getComputedStyle(element);const parentNodeStyle=getComputedStyle(element.parentNode);return elementStyle.display!=='none'&&parentNodeStyle.display!=='none'&&elementStyle.visibility!=='hidden'}
return!1};const isDisabled=element=>{if(!element||element.nodeType!==Node.ELEMENT_NODE){return!0}
if(element.classList.contains('disabled')){return!0}
if(typeof element.disabled!=='undefined'){return element.disabled}
return element.hasAttribute('disabled')&&element.getAttribute('disabled')!=='false'};const findShadowRoot=element=>{if(!document.documentElement.attachShadow){return null}
if(typeof element.getRootNode==='function'){const root=element.getRootNode();return root instanceof ShadowRoot?root:null}
if(element instanceof ShadowRoot){return element}
if(!element.parentNode){return null}
return findShadowRoot(element.parentNode)};const noop=()=>{};const reflow=element=>element.offsetHeight;const getjQuery=()=>{const{jQuery}=window;if(jQuery&&!document.body.hasAttribute('data-bs-no-jquery')){return jQuery}
return null};const onDOMContentLoaded=callback=>{if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',callback)}else{callback()}};const isRTL=()=>document.documentElement.dir==='rtl';const defineJQueryPlugin=plugin=>{onDOMContentLoaded(()=>{const $=getjQuery();if($){const name=plugin.NAME;const JQUERY_NO_CONFLICT=$.fn[name];$.fn[name]=plugin.jQueryInterface;$.fn[name].Constructor=plugin;$.fn[name].noConflict=()=>{$.fn[name]=JQUERY_NO_CONFLICT;return plugin.jQueryInterface}}})};const execute=callback=>{if(typeof callback==='function'){callback()}};const elementMap=new Map();var Data={set(element,key,instance){if(!elementMap.has(element)){elementMap.set(element,new Map())}
const instanceMap=elementMap.get(element);if(!instanceMap.has(key)&&instanceMap.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);return}
instanceMap.set(key,instance)},get(element,key){if(elementMap.has(element)){return elementMap.get(element).get(key)||null}
return null},remove(element,key){if(!elementMap.has(element)){return}
const instanceMap=elementMap.get(element);instanceMap.delete(key);if(instanceMap.size===0){elementMap.delete(element)}}};const namespaceRegex=/[^.]*(?=\..*)\.|.*/;const stripNameRegex=/\..*/;const stripUidRegex=/::\d+$/;const eventRegistry={};let uidEvent=1;const customEvents={mouseenter:'mouseover',mouseleave:'mouseout'};const customEventsRegex=/^(mouseenter|mouseleave)/i;const nativeEvents=new Set(['click','dblclick','mouseup','mousedown','contextmenu','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','selectstart','selectend','keydown','keypress','keyup','orientationchange','touchstart','touchmove','touchend','touchcancel','pointerdown','pointermove','pointerup','pointerleave','pointercancel','gesturestart','gesturechange','gestureend','focus','blur','change','reset','select','submit','focusin','focusout','load','unload','beforeunload','resize','move','DOMContentLoaded','readystatechange','error','abort','scroll']);function getUidEvent(element,uid){return uid&&`${uid}::${uidEvent++}`||element.uidEvent||uidEvent++}
function getEvent(element){const uid=getUidEvent(element);element.uidEvent=uid;eventRegistry[uid]=eventRegistry[uid]||{};return eventRegistry[uid]}
function bootstrapHandler(element,fn){return function handler(event){event.delegateTarget=element;if(handler.oneOff){EventHandler.off(element,event.type,fn)}
return fn.apply(element,[event])}}
function bootstrapDelegationHandler(element,selector,fn){return function handler(event){const domElements=element.querySelectorAll(selector);for(let{target}=event;target&&target!==this;target=target.parentNode){for(let i=domElements.length;i--;){if(domElements[i]===target){event.delegateTarget=target;if(handler.oneOff){EventHandler.off(element,event.type,selector,fn)}
return fn.apply(target,[event])}}}
return null}}
function findHandler(events,handler,delegationSelector=null){const uidEventList=Object.keys(events);for(let i=0,len=uidEventList.length;i<len;i++){const event=events[uidEventList[i]];if(event.originalHandler===handler&&event.delegationSelector===delegationSelector){return event}}
return null}
function normalizeParams(originalTypeEvent,handler,delegationFn){const delegation=typeof handler==='string';const originalHandler=delegation?delegationFn:handler;let typeEvent=getTypeEvent(originalTypeEvent);const isNative=nativeEvents.has(typeEvent);if(!isNative){typeEvent=originalTypeEvent}
return[delegation,originalHandler,typeEvent]}
function addHandler(element,originalTypeEvent,handler,delegationFn,oneOff){if(typeof originalTypeEvent!=='string'||!element){return}
if(!handler){handler=delegationFn;delegationFn=null}
if(customEventsRegex.test(originalTypeEvent)){const wrapFn=fn=>{return function(event){if(!event.relatedTarget||event.relatedTarget!==event.delegateTarget&&!event.delegateTarget.contains(event.relatedTarget)){return fn.call(this,event)}}};if(delegationFn){delegationFn=wrapFn(delegationFn)}else{handler=wrapFn(handler)}}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const events=getEvent(element);const handlers=events[typeEvent]||(events[typeEvent]={});const previousFn=findHandler(handlers,originalHandler,delegation?handler:null);if(previousFn){previousFn.oneOff=previousFn.oneOff&&oneOff;return}
const uid=getUidEvent(originalHandler,originalTypeEvent.replace(namespaceRegex,''));const fn=delegation?bootstrapDelegationHandler(element,handler,delegationFn):bootstrapHandler(element,handler);fn.delegationSelector=delegation?handler:null;fn.originalHandler=originalHandler;fn.oneOff=oneOff;fn.uidEvent=uid;handlers[uid]=fn;element.addEventListener(typeEvent,fn,delegation)}
function removeHandler(element,events,typeEvent,handler,delegationSelector){const fn=findHandler(events[typeEvent],handler,delegationSelector);if(!fn){return}
element.removeEventListener(typeEvent,fn,Boolean(delegationSelector));delete events[typeEvent][fn.uidEvent]}
function removeNamespacedHandlers(element,events,typeEvent,namespace){const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(handlerKey=>{if(handlerKey.includes(namespace)){const event=storeElementEvent[handlerKey];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector)}})}
function getTypeEvent(event){event=event.replace(stripNameRegex,'');return customEvents[event]||event}
const EventHandler={on(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,!1)},one(element,event,handler,delegationFn){addHandler(element,event,handler,delegationFn,!0)},off(element,originalTypeEvent,handler,delegationFn){if(typeof originalTypeEvent!=='string'||!element){return}
const[delegation,originalHandler,typeEvent]=normalizeParams(originalTypeEvent,handler,delegationFn);const inNamespace=typeEvent!==originalTypeEvent;const events=getEvent(element);const isNamespace=originalTypeEvent.startsWith('.');if(typeof originalHandler!=='undefined'){if(!events||!events[typeEvent]){return}
removeHandler(element,events,typeEvent,originalHandler,delegation?handler:null);return}
if(isNamespace){Object.keys(events).forEach(elementEvent=>{removeNamespacedHandlers(element,events,elementEvent,originalTypeEvent.slice(1))})}
const storeElementEvent=events[typeEvent]||{};Object.keys(storeElementEvent).forEach(keyHandlers=>{const handlerKey=keyHandlers.replace(stripUidRegex,'');if(!inNamespace||originalTypeEvent.includes(handlerKey)){const event=storeElementEvent[keyHandlers];removeHandler(element,events,typeEvent,event.originalHandler,event.delegationSelector)}})},trigger(element,event,args){if(typeof event!=='string'||!element){return null}
const $=getjQuery();const typeEvent=getTypeEvent(event);const inNamespace=event!==typeEvent;const isNative=nativeEvents.has(typeEvent);let jQueryEvent;let bubbles=!0;let nativeDispatch=!0;let defaultPrevented=!1;let evt=null;if(inNamespace&&$){jQueryEvent=$.Event(event,args);$(element).trigger(jQueryEvent);bubbles=!jQueryEvent.isPropagationStopped();nativeDispatch=!jQueryEvent.isImmediatePropagationStopped();defaultPrevented=jQueryEvent.isDefaultPrevented()}
if(isNative){evt=document.createEvent('HTMLEvents');evt.initEvent(typeEvent,bubbles,!0)}else{evt=new CustomEvent(event,{bubbles,cancelable:!0})}
if(typeof args!=='undefined'){Object.keys(args).forEach(key=>{Object.defineProperty(evt,key,{get(){return args[key]}})})}
if(defaultPrevented){evt.preventDefault()}
if(nativeDispatch){element.dispatchEvent(evt)}
if(evt.defaultPrevented&&typeof jQueryEvent!=='undefined'){jQueryEvent.preventDefault()}
return evt}};const VERSION='5.0.1';class BaseComponent{constructor(element){element=getElement(element);if(!element){return}
this._element=element;Data.set(this._element,this.constructor.DATA_KEY,this)}
dispose(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);Object.getOwnPropertyNames(this).forEach(propertyName=>{this[propertyName]=null})}
_queueCallback(callback,element,isAnimated=!0){if(!isAnimated){execute(callback);return}
const transitionDuration=getTransitionDurationFromElement(element);EventHandler.one(element,'transitionend',()=>execute(callback));emulateTransitionEnd(element,transitionDuration)}
static getInstance(element){return Data.get(element,this.DATA_KEY)}
static get VERSION(){return VERSION}
static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}
static get DATA_KEY(){return `bs.${this.NAME}`}
static get EVENT_KEY(){return `.${this.DATA_KEY}`}}
const NAME$c='alert';const DATA_KEY$b='bs.alert';const EVENT_KEY$b=`.${DATA_KEY$b}`;const DATA_API_KEY$8='.data-api';const SELECTOR_DISMISS='[data-bs-dismiss="alert"]';const EVENT_CLOSE=`close${EVENT_KEY$b}`;const EVENT_CLOSED=`closed${EVENT_KEY$b}`;const EVENT_CLICK_DATA_API$7=`click${EVENT_KEY$b}${DATA_API_KEY$8}`;const CLASS_NAME_ALERT='alert';const CLASS_NAME_FADE$6='fade';const CLASS_NAME_SHOW$9='show';class Alert extends BaseComponent{static get NAME(){return NAME$c}
close(element){const rootElement=element?this._getRootElement(element):this._element;const customEvent=this._triggerCloseEvent(rootElement);if(customEvent===null||customEvent.defaultPrevented){return}
this._removeElement(rootElement)}
_getRootElement(element){return getElementFromSelector(element)||element.closest(`.${CLASS_NAME_ALERT}`)}
_triggerCloseEvent(element){return EventHandler.trigger(element,EVENT_CLOSE)}
_removeElement(element){element.classList.remove(CLASS_NAME_SHOW$9);const isAnimated=element.classList.contains(CLASS_NAME_FADE$6);this._queueCallback(()=>this._destroyElement(element),element,isAnimated)}
_destroyElement(element){if(element.parentNode){element.parentNode.removeChild(element)}
EventHandler.trigger(element,EVENT_CLOSED)}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$b);if(!data){data=new Alert(this)}
if(config==='close'){data[config](this)}})}
static handleDismiss(alertInstance){return function(event){if(event){event.preventDefault()}
alertInstance.close(this)}}}
EventHandler.on(document,EVENT_CLICK_DATA_API$7,SELECTOR_DISMISS,Alert.handleDismiss(new Alert()));defineJQueryPlugin(Alert);const NAME$b='button';const DATA_KEY$a='bs.button';const EVENT_KEY$a=`.${DATA_KEY$a}`;const DATA_API_KEY$7='.data-api';const CLASS_NAME_ACTIVE$3='active';const SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]';const EVENT_CLICK_DATA_API$6=`click${EVENT_KEY$a}${DATA_API_KEY$7}`;class Button extends BaseComponent{static get NAME(){return NAME$b}
toggle(){this._element.setAttribute('aria-pressed',this._element.classList.toggle(CLASS_NAME_ACTIVE$3))}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$a);if(!data){data=new Button(this)}
if(config==='toggle'){data[config]()}})}}
EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,event=>{event.preventDefault();const button=event.target.closest(SELECTOR_DATA_TOGGLE$5);let data=Data.get(button,DATA_KEY$a);if(!data){data=new Button(button)}
data.toggle()});defineJQueryPlugin(Button);function normalizeData(val){if(val==='true'){return!0}
if(val==='false'){return!1}
if(val===Number(val).toString()){return Number(val)}
if(val===''||val==='null'){return null}
return val}
function normalizeDataKey(key){return key.replace(/[A-Z]/g,chr=>`-${chr.toLowerCase()}`)}
const Manipulator={setDataAttribute(element,key,value){element.setAttribute(`data-bs-${normalizeDataKey(key)}`,value)},removeDataAttribute(element,key){element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)},getDataAttributes(element){if(!element){return{}}
const attributes={};Object.keys(element.dataset).filter(key=>key.startsWith('bs')).forEach(key=>{let pureKey=key.replace(/^bs/,'');pureKey=pureKey.charAt(0).toLowerCase()+pureKey.slice(1,pureKey.length);attributes[pureKey]=normalizeData(element.dataset[key])});return attributes},getDataAttribute(element,key){return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))},offset(element){const rect=element.getBoundingClientRect();return{top:rect.top+document.body.scrollTop,left:rect.left+document.body.scrollLeft}},position(element){return{top:element.offsetTop,left:element.offsetLeft}}};const NAME$9='collapse';const DATA_KEY$8='bs.collapse';const EVENT_KEY$8=`.${DATA_KEY$8}`;const DATA_API_KEY$5='.data-api';const Default$8={toggle:!0,parent:''};const DefaultType$8={toggle:'boolean',parent:'(string|element)'};const EVENT_SHOW$5=`show${EVENT_KEY$8}`;const EVENT_SHOWN$5=`shown${EVENT_KEY$8}`;const EVENT_HIDE$5=`hide${EVENT_KEY$8}`;const EVENT_HIDDEN$5=`hidden${EVENT_KEY$8}`;const EVENT_CLICK_DATA_API$4=`click${EVENT_KEY$8}${DATA_API_KEY$5}`;const CLASS_NAME_SHOW$8='show';const CLASS_NAME_COLLAPSE='collapse';const CLASS_NAME_COLLAPSING='collapsing';const CLASS_NAME_COLLAPSED='collapsed';const WIDTH='width';const HEIGHT='height';const SELECTOR_ACTIVES='.show, .collapsing';const SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]';class Collapse extends BaseComponent{constructor(element,config){super(element);this._isTransitioning=!1;this._config=this._getConfig(config);this._triggerArray=SelectorEngine.find(`${SELECTOR_DATA_TOGGLE$4}[href="#${this._element.id}"],`+`${SELECTOR_DATA_TOGGLE$4}[data-bs-target="#${this._element.id}"]`);const toggleList=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);for(let i=0,len=toggleList.length;i<len;i++){const elem=toggleList[i];const selector=getSelectorFromElement(elem);const filterElement=SelectorEngine.find(selector).filter(foundElem=>foundElem===this._element);if(selector!==null&&filterElement.length){this._selector=selector;this._triggerArray.push(elem)}}
this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray)}
if(this._config.toggle){this.toggle()}}
static get Default(){return Default$8}
static get NAME(){return NAME$9}
toggle(){if(this._element.classList.contains(CLASS_NAME_SHOW$8)){this.hide()}else{this.show()}}
show(){if(this._isTransitioning||this._element.classList.contains(CLASS_NAME_SHOW$8)){return}
let actives;let activesData;if(this._parent){actives=SelectorEngine.find(SELECTOR_ACTIVES,this._parent).filter(elem=>{if(typeof this._config.parent==='string'){return elem.getAttribute('data-bs-parent')===this._config.parent}
return elem.classList.contains(CLASS_NAME_COLLAPSE)});if(actives.length===0){actives=null}}
const container=SelectorEngine.findOne(this._selector);if(actives){const tempActiveData=actives.find(elem=>container!==elem);activesData=tempActiveData?Data.get(tempActiveData,DATA_KEY$8):null;if(activesData&&activesData._isTransitioning){return}}
const startEvent=EventHandler.trigger(this._element,EVENT_SHOW$5);if(startEvent.defaultPrevented){return}
if(actives){actives.forEach(elemActive=>{if(container!==elemActive){Collapse.collapseInterface(elemActive,'hide')}
if(!activesData){Data.set(elemActive,DATA_KEY$8,null)}})}
const dimension=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;if(this._triggerArray.length){this._triggerArray.forEach(element=>{element.classList.remove(CLASS_NAME_COLLAPSED);element.setAttribute('aria-expanded',!0)})}
this.setTransitioning(!0);const complete=()=>{this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);this._element.style[dimension]='';this.setTransitioning(!1);EventHandler.trigger(this._element,EVENT_SHOWN$5)};const capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);const scrollSize=`scroll${capitalizedDimension}`;this._queueCallback(complete,this._element,!0);this._element.style[dimension]=`${this._element[scrollSize]}px`}
hide(){if(this._isTransitioning||!this._element.classList.contains(CLASS_NAME_SHOW$8)){return}
const startEvent=EventHandler.trigger(this._element,EVENT_HIDE$5);if(startEvent.defaultPrevented){return}
const dimension=this._getDimension();this._element.style[dimension]=`${this._element.getBoundingClientRect()[dimension]}px`;reflow(this._element);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$8);const triggerArrayLength=this._triggerArray.length;if(triggerArrayLength>0){for(let i=0;i<triggerArrayLength;i++){const trigger=this._triggerArray[i];const elem=getElementFromSelector(trigger);if(elem&&!elem.classList.contains(CLASS_NAME_SHOW$8)){trigger.classList.add(CLASS_NAME_COLLAPSED);trigger.setAttribute('aria-expanded',!1)}}}
this.setTransitioning(!0);const complete=()=>{this.setTransitioning(!1);this._element.classList.remove(CLASS_NAME_COLLAPSING);this._element.classList.add(CLASS_NAME_COLLAPSE);EventHandler.trigger(this._element,EVENT_HIDDEN$5)};this._element.style[dimension]='';this._queueCallback(complete,this._element,!0)}
setTransitioning(isTransitioning){this._isTransitioning=isTransitioning}
_getConfig(config){config={...Default$8,...config};config.toggle=Boolean(config.toggle);typeCheckConfig(NAME$9,config,DefaultType$8);return config}
_getDimension(){return this._element.classList.contains(WIDTH)?WIDTH:HEIGHT}
_getParent(){let{parent}=this._config;parent=getElement(parent);const selector=`${SELECTOR_DATA_TOGGLE$4}[data-bs-parent="${parent}"]`;SelectorEngine.find(selector,parent).forEach(element=>{const selected=getElementFromSelector(element);this._addAriaAndCollapsedClass(selected,[element])});return parent}
_addAriaAndCollapsedClass(element,triggerArray){if(!element||!triggerArray.length){return}
const isOpen=element.classList.contains(CLASS_NAME_SHOW$8);triggerArray.forEach(elem=>{if(isOpen){elem.classList.remove(CLASS_NAME_COLLAPSED)}else{elem.classList.add(CLASS_NAME_COLLAPSED)}
elem.setAttribute('aria-expanded',isOpen)})}
static collapseInterface(element,config){let data=Data.get(element,DATA_KEY$8);const _config={...Default$8,...Manipulator.getDataAttributes(element),...(typeof config==='object'&&config?config:{})};if(!data&&_config.toggle&&typeof config==='string'&&/show|hide/.test(config)){_config.toggle=!1}
if(!data){data=new Collapse(element,_config)}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()}}
static jQueryInterface(config){return this.each(function(){Collapse.collapseInterface(this,config)})}}
EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(event){if(event.target.tagName==='A'||event.delegateTarget&&event.delegateTarget.tagName==='A'){event.preventDefault()}
const triggerData=Manipulator.getDataAttributes(this);const selector=getSelectorFromElement(this);const selectorElements=SelectorEngine.find(selector);selectorElements.forEach(element=>{const data=Data.get(element,DATA_KEY$8);let config;if(data){if(data._parent===null&&typeof triggerData.parent==='string'){data._config.parent=triggerData.parent;data._parent=data._getParent()}
config='toggle'}else{config=triggerData}
Collapse.collapseInterface(element,config)})});defineJQueryPlugin(Collapse);var top='top';var bottom='bottom';var right='right';var left='left';var auto='auto';var basePlacements=[top,bottom,right,left];var start='start';var end='end';var clippingParents='clippingParents';var viewport='viewport';var popper='popper';var reference='reference';var variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end])},[]);var placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end])},[]);var beforeRead='beforeRead';var read='read';var afterRead='afterRead';var beforeMain='beforeMain';var main='main';var afterMain='afterMain';var beforeWrite='beforeWrite';var write='write';var afterWrite='afterWrite';var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||'').toLowerCase():null}
function getWindow(node){if(node==null){return window}
if(node.toString()!=='[object Window]'){var ownerDocument=node.ownerDocument;return ownerDocument?ownerDocument.defaultView||window:window}
return node}
function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element}
function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement}
function isShadowRoot(node){if(typeof ShadowRoot==='undefined'){return!1}
var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot}
function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(name){var value=attributes[name];if(value===!1){element.removeAttribute(name)}else{element.setAttribute(name,value===!0?'':value)}})})}
function effect$2(_ref2){var state=_ref2.state;var initialStyles={popper:{position:state.options.strategy,left:'0',top:'0',margin:'0'},arrow:{position:'absolute'},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow)}
return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style=styleProperties.reduce(function(style,property){style[property]='';return style},{});if(!isHTMLElement(element)||!getNodeName(element)){return}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute)})})}}
var applyStyles$1={name:'applyStyles',enabled:!0,phase:'write',fn:applyStyles,effect:effect$2,requires:['computeStyles']};function getBasePlacement(placement){return placement.split('-')[0]}
function getBoundingClientRect(element){var rect=element.getBoundingClientRect();return{width:rect.width,height:rect.height,top:rect.top,right:rect.right,bottom:rect.bottom,left:rect.left,x:rect.left,y:rect.top}}
function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width=element.offsetWidth;var height=element.offsetHeight;if(Math.abs(clientRect.width-width)<=1){width=clientRect.width}
if(Math.abs(clientRect.height-height)<=1){height=clientRect.height}
return{x:element.offsetLeft,y:element.offsetTop,width:width,height:height}}
function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return!0}else if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next)){return!0}
next=next.parentNode||next.host}while(next);}
return!1}
function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element)}
function isTableElement(element){return['table','td','th'].indexOf(getNodeName(element))>=0}
function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement}
function getParentNode(element){if(getNodeName(element)==='html'){return element}
return(element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element))}
function getTrueOffsetParent(element){if(!isHTMLElement(element)||getComputedStyle$1(element).position==='fixed'){return null}
return element.offsetParent}
function getContainingBlock(element){var isFirefox=navigator.userAgent.toLowerCase().indexOf('firefox')!==-1;var isIE=navigator.userAgent.indexOf('Trident')!==-1;if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==='fixed'){return null}}
var currentNode=getParentNode(element);while(isHTMLElement(currentNode)&&['html','body'].indexOf(getNodeName(currentNode))<0){var css=getComputedStyle$1(currentNode);if(css.transform!=='none'||css.perspective!=='none'||css.contain==='paint'||['transform','perspective'].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==='filter'||isFirefox&&css.filter&&css.filter!=='none'){return currentNode}else{currentNode=currentNode.parentNode}}
return null}
function getOffsetParent(element){var window=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==='static'){offsetParent=getTrueOffsetParent(offsetParent)}
if(offsetParent&&(getNodeName(offsetParent)==='html'||getNodeName(offsetParent)==='body'&&getComputedStyle$1(offsetParent).position==='static')){return window}
return offsetParent||getContainingBlock(element)||window}
function getMainAxisFromPlacement(placement){return['top','bottom'].indexOf(placement)>=0?'x':'y'}
var max=Math.max;var min=Math.min;var round=Math.round;function within(min$1,value,max$1){return max(min$1,min(value,max$1))}
function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}
function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject)}
function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){hashMap[key]=value;return hashMap},{})}
var toPaddingObject=function toPaddingObject(padding,state){padding=typeof padding==='function'?padding(Object.assign({},state.rects,{placement:state.placement})):padding;return mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements))};function arrow(_ref){var _state$modifiersData$;var state=_ref.state,name=_ref.name,options=_ref.options;var arrowElement=state.elements.arrow;var popperOffsets=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement(state.placement);var axis=getMainAxisFromPlacement(basePlacement);var isVertical=[left,right].indexOf(basePlacement)>=0;var len=isVertical?'height':'width';if(!arrowElement||!popperOffsets){return}
var paddingObject=toPaddingObject(options.padding,state);var arrowRect=getLayoutRect(arrowElement);var minProp=axis==='y'?top:left;var maxProp=axis==='y'?bottom:right;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len];var startDiff=popperOffsets[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent(arrowElement);var clientSize=arrowOffsetParent?axis==='y'?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min=paddingObject[minProp];var max=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset=within(min,center,max);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$)}
function effect$1(_ref2){var state=_ref2.state,options=_ref2.options;var _options$element=options.element,arrowElement=_options$element===void 0?'[data-popper-arrow]':_options$element;if(arrowElement==null){return}
if(typeof arrowElement==='string'){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return}}
if(!contains(state.elements.popper,arrowElement)){return}
state.elements.arrow=arrowElement}
var arrow$1={name:'arrow',enabled:!0,phase:'main',fn:arrow,effect:effect$1,requires:['popperOffsets'],requiresIfExists:['preventOverflow']};var unsetSides={top:'auto',right:'auto',bottom:'auto',left:'auto'};function roundOffsetsByDPR(_ref){var x=_ref.x,y=_ref.y;var win=window;var dpr=win.devicePixelRatio||1;return{x:round(round(x*dpr)/dpr)||0,y:round(round(y*dpr)/dpr)||0}}
function mapToStyles(_ref2){var _Object$assign2;var popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets;var _ref3=roundOffsets===!0?roundOffsetsByDPR(offsets):typeof roundOffsets==='function'?roundOffsets(offsets):offsets,_ref3$x=_ref3.x,x=_ref3$x===void 0?0:_ref3$x,_ref3$y=_ref3.y,y=_ref3$y===void 0?0:_ref3$y;var hasX=offsets.hasOwnProperty('x');var hasY=offsets.hasOwnProperty('y');var sideX=left;var sideY=top;var win=window;if(adaptive){var offsetParent=getOffsetParent(popper);var heightProp='clientHeight';var widthProp='clientWidth';if(offsetParent===getWindow(popper)){offsetParent=getDocumentElement(popper);if(getComputedStyle$1(offsetParent).position!=='static'){heightProp='scrollHeight';widthProp='scrollWidth'}}
offsetParent=offsetParent;if(placement===top){sideY=bottom;y-=offsetParent[heightProp]-popperRect.height;y*=gpuAcceleration?1:-1}
if(placement===left){sideX=right;x-=offsetParent[widthProp]-popperRect.width;x*=gpuAcceleration?1:-1}}
var commonStyles=Object.assign({position:position},adaptive&&unsetSides);if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?'0':'',_Object$assign[sideX]=hasX?'0':'',_Object$assign.transform=(win.devicePixelRatio||1)<2?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign))}
return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":'',_Object$assign2[sideX]=hasX?x+"px":'',_Object$assign2.transform='',_Object$assign2))}
function computeStyles(_ref4){var state=_ref4.state,options=_ref4.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?!0:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?!0:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?!0:_options$roundOffsets;var commonStyles={placement:getBasePlacement(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})))}
if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:'absolute',adaptive:!1,roundOffsets:roundOffsets})))}
state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-placement':state.placement})}
var computeStyles$1={name:'computeStyles',enabled:!0,phase:'beforeWrite',fn:computeStyles,data:{}};var passive={passive:!0};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?!0:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?!0:_options$resize;var window=getWindow(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener('scroll',instance.update,passive)})}
if(resize){window.addEventListener('resize',instance.update,passive)}
return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener('scroll',instance.update,passive)})}
if(resize){window.removeEventListener('resize',instance.update,passive)}}}
var eventListeners={name:'eventListeners',enabled:!0,phase:'write',fn:function fn(){},effect:effect,data:{}};var hash$1={left:'right',right:'left',bottom:'top',top:'bottom'};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$1[matched]})}
var hash={start:'end',end:'start'};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash[matched]})}
function getWindowScroll(node){var win=getWindow(node);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop}}
function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft}
function getViewportRect(element){var win=getWindow(element);var html=getDocumentElement(element);var visualViewport=win.visualViewport;var width=html.clientWidth;var height=html.clientHeight;var x=0;var y=0;if(visualViewport){width=visualViewport.width;height=visualViewport.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){x=visualViewport.offsetLeft;y=visualViewport.offsetTop}}
return{width:width,height:height,x:x+getWindowScrollBarX(element),y:y}}
function getDocumentRect(element){var _element$ownerDocumen;var html=getDocumentElement(element);var winScroll=getWindowScroll(element);var body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0);var height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX(element);var y=-winScroll.scrollTop;if(getComputedStyle$1(body||html).direction==='rtl'){x+=max(html.clientWidth,body?body.clientWidth:0)-width}
return{width:width,height:height,x:x,y:y}}
function isScrollParent(element){var _getComputedStyle=getComputedStyle$1(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return/auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX)}
function getScrollParent(node){if(['html','body','#document'].indexOf(getNodeName(node))>=0){return node.ownerDocument.body}
if(isHTMLElement(node)&&isScrollParent(node)){return node}
return getScrollParent(getParentNode(node))}
function listScrollParents(element,list){var _element$ownerDocumen;if(list===void 0){list=[]}
var scrollParent=getScrollParent(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)))}
function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height})}
function getInnerBoundingClientRect(element){var rect=getBoundingClientRect(element);rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect}
function getClientRectFromMixedType(element,clippingParent){return clippingParent===viewport?rectToClientRect(getViewportRect(element)):isHTMLElement(clippingParent)?getInnerBoundingClientRect(clippingParent):rectToClientRect(getDocumentRect(getDocumentElement(element)))}
function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element));var canEscapeClipping=['absolute','fixed'].indexOf(getComputedStyle$1(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;if(!isElement(clipperElement)){return[]}
return clippingParents.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=='body'})}
function getClippingRect(element,boundary,rootBoundary){var mainClippingParents=boundary==='clippingParents'?getClippingParents(element):[].concat(boundary);var clippingParents=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents[0];var clippingRect=clippingParents.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent);accRect.top=max(rect.top,accRect.top);accRect.right=min(rect.right,accRect.right);accRect.bottom=min(rect.bottom,accRect.bottom);accRect.left=max(rect.left,accRect.left);return accRect},getClientRectFromMixedType(element,firstClippingParent));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect}
function getVariation(placement){return placement.split('-')[1]}
function computeOffsets(_ref){var reference=_ref.reference,element=_ref.element,placement=_ref.placement;var basePlacement=placement?getBasePlacement(placement):null;var variation=placement?getVariation(placement):null;var commonX=reference.x+reference.width/2-element.width/2;var commonY=reference.y+reference.height/2-element.height/2;var offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference.y-element.height};break;case bottom:offsets={x:commonX,y:reference.y+reference.height};break;case right:offsets={x:reference.x+reference.width,y:commonY};break;case left:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y}}
var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==='y'?'height':'width';switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2);break}}
return offsets}
function detectOverflow(state,options){if(options===void 0){options={}}
var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?!1:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));var altContext=elementContext===popper?reference:popper;var referenceElement=state.elements.reference;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary);var referenceClientRect=getBoundingClientRect(referenceElement);var popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:'absolute',placement:placement});var popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets));var elementClientRect=elementContext===popper?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1;var axis=[top,bottom].indexOf(key)>=0?'y':'x';overflowOffsets[key]+=offset[axis]*multiply})}
return overflowOffsets}
function computeAutoPlacement(state,options){if(options===void 0){options={}}
var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP;var variation=getVariation(placement);var placements$1=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement){return getVariation(placement)===variation}):basePlacements;var allowedPlacements=placements$1.filter(function(placement){return allowedAutoPlacements.indexOf(placement)>=0});if(allowedPlacements.length===0){allowedPlacements=placements$1}
var overflows=allowedPlacements.reduce(function(acc,placement){acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)];return acc},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b]})}
function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto){return[]}
var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)]}
function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(state.modifiersData[name]._skip){return}
var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!0:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?!0:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement));var placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement){return acc.concat(getBasePlacement(placement)===auto?computeAutoPlacement(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement)},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=new Map();var makeFallbackChecks=!0;var firstFittingPlacement=placements[0];for(var i=0;i<placements.length;i++){var placement=placements[i];var _basePlacement=getBasePlacement(placement);var isStartVariation=getVariation(placement)===start;var isVertical=[top,bottom].indexOf(_basePlacement)>=0;var len=isVertical?'width':'height';var overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding});var mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement(mainVariationSide)}
var altVariationSide=getOppositePlacement(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0)}
if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0)}
if(checks.every(function(check){return check})){firstFittingPlacement=placement;makeFallbackChecks=!1;break}
checksMap.set(placement,checks)}
if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop(_i){var fittingPlacement=placements.find(function(placement){var checks=checksMap.get(placement);if(checks){return checks.slice(0,_i).every(function(check){return check})}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break"}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break}}
if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=!0;state.placement=firstFittingPlacement;state.reset=!0}}
var flip$1={name:'flip',enabled:!0,phase:'main',fn:flip,requiresIfExists:['offset'],data:{_skip:!1}};function getSideOffsets(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0}}
return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x}}
function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0})}
function hide$1(_ref){var state=_ref.state,name=_ref.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow(state,{elementContext:'reference'});var popperAltOverflow=detectOverflow(state,{altBoundary:!0});var referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-reference-hidden':isReferenceHidden,'data-popper-escaped':hasPopperEscaped})}
var hide$2={name:'hide',enabled:!0,phase:'main',requiresIfExists:['preventOverflow'],fn:hide$1};function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement);var invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1;var _ref=typeof offset==='function'?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance}}
function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name;var _options$offset=options.offset,offset=_options$offset===void 0?[0,0]:_options$offset;var data=placements.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset);return acc},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y}
state.modifiersData[name]=data}
var offset$1={name:'offset',enabled:!0,phase:'main',requires:['popperOffsets'],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:'absolute',placement:state.placement})}
var popperOffsets$1={name:'popperOffsets',enabled:!0,phase:'read',fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==='x'?'y':'x'}
function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?!0:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?!1:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?!0:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary});var basePlacement=getBasePlacement(state.placement);var variation=getVariation(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement(basePlacement);var altAxis=getAltAxis(mainAxis);var popperOffsets=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==='function'?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var data={x:0,y:0};if(!popperOffsets){return}
if(checkMainAxis||checkAltAxis){var mainSide=mainAxis==='y'?top:left;var altSide=mainAxis==='y'?bottom:right;var len=mainAxis==='y'?'height':'width';var offset=popperOffsets[mainAxis];var min$1=popperOffsets[mainAxis]+overflow[mainSide];var max$1=popperOffsets[mainAxis]-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start?referenceRect[len]:popperRect[len];var maxLen=variation===start?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData['arrow#persistent']?state.modifiersData['arrow#persistent'].padding:getFreshSideObject();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-tetherOffsetValue:minLen-arrowLen-arrowPaddingMin-tetherOffsetValue;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+tetherOffsetValue:maxLen+arrowLen+arrowPaddingMax+tetherOffsetValue;var arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==='y'?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=state.modifiersData.offset?state.modifiersData.offset[state.placement][mainAxis]:0;var tetherMin=popperOffsets[mainAxis]+minOffset-offsetModifierValue-clientOffset;var tetherMax=popperOffsets[mainAxis]+maxOffset-offsetModifierValue;if(checkMainAxis){var preventedOffset=within(tether?min(min$1,tetherMin):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset}
if(checkAltAxis){var _mainSide=mainAxis==='x'?top:left;var _altSide=mainAxis==='x'?bottom:right;var _offset=popperOffsets[altAxis];var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var _preventedOffset=within(tether?min(_min,tetherMin):_min,_offset,tether?max(_max,tetherMax):_max);popperOffsets[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset}}
state.modifiersData[name]=data}
var preventOverflow$1={name:'preventOverflow',enabled:!0,phase:'main',fn:preventOverflow,requiresIfExists:['offset']};function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}
function getNodeScroll(node){if(node===getWindow(node)||!isHTMLElement(node)){return getWindowScroll(node)}else{return getHTMLElementScroll(node)}}
function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=!1}
var documentElement=getDocumentElement(offsetParent);var rect=getBoundingClientRect(elementOrVirtualElement);var isOffsetParentAnElement=isHTMLElement(offsetParent);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName(offsetParent)!=='body'||isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent)}
if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement)}}
return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height}}
function order(modifiers){var map=new Map();var visited=new Set();var result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier)});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);if(depModifier){sort(depModifier)}}});result.push(modifier)}
modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier)}});return result}
function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase}))},[])}
function debounce(fn){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=undefined;resolve(fn())})})}
return pending}}
function mergeByName(modifiers){var merged=modifiers.reduce(function(merged,current){var existing=merged[current.name];merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged},{});return Object.keys(merged).map(function(key){return merged[key]})}
var DEFAULT_OPTIONS={placement:'bottom',modifiers:[],strategy:'absolute'};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}
return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==='function')})}
function popperGenerator(generatorOptions){if(generatorOptions===void 0){generatorOptions={}}
var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){if(options===void 0){options=defaultOptions}
var state={placement:'bottom',orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=!1;var instance={state:state,setOptions:function setOptions(options){cleanupModifierEffects();state.options=Object.assign({},defaultOptions,state.options,options);state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled});runModifierEffects();return instance.update()},forceUpdate:function forceUpdate(){if(isDestroyed){return}
var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(!areValidElements(reference,popper)){return}
state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),state.options.strategy==='fixed'),popper:getLayoutRect(popper)};state.reset=!1;state.placement=state.options.placement;state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data)});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===!0){state.reset=!1;index=-1;continue}
var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;if(typeof fn==='function'){state=fn({state:state,options:_options,name:name,instance:instance})||state}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate();resolve(state)})}),destroy:function destroy(){cleanupModifierEffects();isDestroyed=!0}};if(!areValidElements(reference,popper)){return instance}
instance.setOptions(options).then(function(state){if(!isDestroyed&&options.onFirstUpdate){options.onFirstUpdate(state)}});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref3){var name=_ref3.name,_ref3$options=_ref3.options,options=_ref3$options===void 0?{}:_ref3$options,effect=_ref3.effect;if(typeof effect==='function'){var cleanupFn=effect({state:state,name:name,instance:instance,options:options});var noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn)}})}
function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn()});effectCleanupFns=[]}
return instance}}
var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$2];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var Popper=Object.freeze({__proto__:null,popperGenerator:popperGenerator,detectOverflow:detectOverflow,createPopperBase:createPopper$2,createPopper:createPopper,createPopperLite:createPopper$1,top:top,bottom:bottom,right:right,left:left,auto:auto,basePlacements:basePlacements,start:start,end:end,clippingParents:clippingParents,viewport:viewport,popper:popper,reference:reference,variationPlacements:variationPlacements,placements:placements,beforeRead:beforeRead,read:read,afterRead:afterRead,beforeMain:beforeMain,main:main,afterMain:afterMain,beforeWrite:beforeWrite,write:write,afterWrite:afterWrite,modifierPhases:modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners:eventListeners,flip:flip$1,hide:hide$2,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1});const NAME$8='dropdown';const DATA_KEY$7='bs.dropdown';const EVENT_KEY$7=`.${DATA_KEY$7}`;const DATA_API_KEY$4='.data-api';const ESCAPE_KEY$2='Escape';const SPACE_KEY='Space';const TAB_KEY='Tab';const ARROW_UP_KEY='ArrowUp';const ARROW_DOWN_KEY='ArrowDown';const RIGHT_MOUSE_BUTTON=2;const REGEXP_KEYDOWN=new RegExp(`${ARROW_UP_KEY}|${ARROW_DOWN_KEY}|${ESCAPE_KEY$2}`);const EVENT_HIDE$4=`hide${EVENT_KEY$7}`;const EVENT_HIDDEN$4=`hidden${EVENT_KEY$7}`;const EVENT_SHOW$4=`show${EVENT_KEY$7}`;const EVENT_SHOWN$4=`shown${EVENT_KEY$7}`;const EVENT_CLICK=`click${EVENT_KEY$7}`;const EVENT_CLICK_DATA_API$3=`click${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYDOWN_DATA_API=`keydown${EVENT_KEY$7}${DATA_API_KEY$4}`;const EVENT_KEYUP_DATA_API=`keyup${EVENT_KEY$7}${DATA_API_KEY$4}`;const CLASS_NAME_SHOW$7='show';const CLASS_NAME_DROPUP='dropup';const CLASS_NAME_DROPEND='dropend';const CLASS_NAME_DROPSTART='dropstart';const CLASS_NAME_NAVBAR='navbar';const SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]';const SELECTOR_MENU='.dropdown-menu';const SELECTOR_NAVBAR_NAV='.navbar-nav';const SELECTOR_VISIBLE_ITEMS='.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';const PLACEMENT_TOP=isRTL()?'top-end':'top-start';const PLACEMENT_TOPEND=isRTL()?'top-start':'top-end';const PLACEMENT_BOTTOM=isRTL()?'bottom-end':'bottom-start';const PLACEMENT_BOTTOMEND=isRTL()?'bottom-start':'bottom-end';const PLACEMENT_RIGHT=isRTL()?'left-start':'right-start';const PLACEMENT_LEFT=isRTL()?'right-start':'left-start';const Default$7={offset:[0,2],boundary:'clippingParents',reference:'toggle',display:'dynamic',popperConfig:null,autoClose:!0};const DefaultType$7={offset:'(array|string|function)',boundary:'(string|element)',reference:'(string|element|object)',display:'string',popperConfig:'(null|object|function)',autoClose:'(boolean|string)'};class Dropdown extends BaseComponent{constructor(element,config){super(element);this._popper=null;this._config=this._getConfig(config);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}
static get Default(){return Default$7}
static get DefaultType(){return DefaultType$7}
static get NAME(){return NAME$8}
toggle(){if(isDisabled(this._element)){return}
const isActive=this._element.classList.contains(CLASS_NAME_SHOW$7);if(isActive){this.hide();return}
this.show()}
show(){if(isDisabled(this._element)||this._menu.classList.contains(CLASS_NAME_SHOW$7)){return}
const parent=Dropdown.getParentFromElement(this._element);const relatedTarget={relatedTarget:this._element};const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$4,relatedTarget);if(showEvent.defaultPrevented){return}
if(this._inNavbar){Manipulator.setDataAttribute(this._menu,'popper','none')}else{if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)')}
let referenceElement=this._element;if(this._config.reference==='parent'){referenceElement=parent}else if(isElement$1(this._config.reference)){referenceElement=getElement(this._config.reference)}else if(typeof this._config.reference==='object'){referenceElement=this._config.reference}
const popperConfig=this._getPopperConfig();const isDisplayStatic=popperConfig.modifiers.find(modifier=>modifier.name==='applyStyles'&&modifier.enabled===!1);this._popper=createPopper(referenceElement,this._menu,popperConfig);if(isDisplayStatic){Manipulator.setDataAttribute(this._menu,'popper','static')}}
if('ontouchstart' in document.documentElement&&!parent.closest(SELECTOR_NAVBAR_NAV)){[].concat(...document.body.children).forEach(elem=>EventHandler.on(elem,'mouseover',noop))}
this._element.focus();this._element.setAttribute('aria-expanded',!0);this._menu.classList.toggle(CLASS_NAME_SHOW$7);this._element.classList.toggle(CLASS_NAME_SHOW$7);EventHandler.trigger(this._element,EVENT_SHOWN$4,relatedTarget)}
hide(){if(isDisabled(this._element)||!this._menu.classList.contains(CLASS_NAME_SHOW$7)){return}
const relatedTarget={relatedTarget:this._element};this._completeHide(relatedTarget)}
dispose(){if(this._popper){this._popper.destroy()}
super.dispose()}
update(){this._inNavbar=this._detectNavbar();if(this._popper){this._popper.update()}}
_addEventListeners(){EventHandler.on(this._element,EVENT_CLICK,event=>{event.preventDefault();this.toggle()})}
_completeHide(relatedTarget){const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$4,relatedTarget);if(hideEvent.defaultPrevented){return}
if('ontouchstart' in document.documentElement){[].concat(...document.body.children).forEach(elem=>EventHandler.off(elem,'mouseover',noop))}
if(this._popper){this._popper.destroy()}
this._menu.classList.remove(CLASS_NAME_SHOW$7);this._element.classList.remove(CLASS_NAME_SHOW$7);this._element.setAttribute('aria-expanded','false');Manipulator.removeDataAttribute(this._menu,'popper');EventHandler.trigger(this._element,EVENT_HIDDEN$4,relatedTarget)}
_getConfig(config){config={...this.constructor.Default,...Manipulator.getDataAttributes(this._element),...config};typeCheckConfig(NAME$8,config,this.constructor.DefaultType);if(typeof config.reference==='object'&&!isElement$1(config.reference)&&typeof config.reference.getBoundingClientRect!=='function'){throw new TypeError(`${NAME$8.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`)}
return config}
_getMenuElement(){return SelectorEngine.next(this._element,SELECTOR_MENU)[0]}
_getPlacement(){const parentDropdown=this._element.parentNode;if(parentDropdown.classList.contains(CLASS_NAME_DROPEND)){return PLACEMENT_RIGHT}
if(parentDropdown.classList.contains(CLASS_NAME_DROPSTART)){return PLACEMENT_LEFT}
const isEnd=getComputedStyle(this._menu).getPropertyValue('--bs-position').trim()==='end';if(parentDropdown.classList.contains(CLASS_NAME_DROPUP)){return isEnd?PLACEMENT_TOPEND:PLACEMENT_TOP}
return isEnd?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM}
_detectNavbar(){return this._element.closest(`.${CLASS_NAME_NAVBAR}`)!==null}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10))}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element)}
return offset}
_getPopperConfig(){const defaultBsPopperConfig={placement:this._getPlacement(),modifiers:[{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'offset',options:{offset:this._getOffset()}}]};if(this._config.display==='static'){defaultBsPopperConfig.modifiers=[{name:'applyStyles',enabled:!1}]}
return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)}}
_selectMenuItem(event){const items=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(isVisible);if(!items.length){return}
let index=items.indexOf(event.target);if(event.key===ARROW_UP_KEY&&index>0){index--}
if(event.key===ARROW_DOWN_KEY&&index<items.length-1){index++}
index=index===-1?0:index;items[index].focus()}
static dropdownInterface(element,config){let data=Data.get(element,DATA_KEY$7);const _config=typeof config==='object'?config:null;if(!data){data=new Dropdown(element,_config)}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()}}
static jQueryInterface(config){return this.each(function(){Dropdown.dropdownInterface(this,config)})}
static clearMenus(event){if(event&&(event.button===RIGHT_MOUSE_BUTTON||event.type==='keyup'&&event.key!==TAB_KEY)){return}
const toggles=SelectorEngine.find(SELECTOR_DATA_TOGGLE$3);for(let i=0,len=toggles.length;i<len;i++){const context=Data.get(toggles[i],DATA_KEY$7);if(!context||context._config.autoClose===!1){continue}
if(!context._element.classList.contains(CLASS_NAME_SHOW$7)){continue}
const relatedTarget={relatedTarget:context._element};if(event){const composedPath=event.composedPath();const isMenuTarget=composedPath.includes(context._menu);if(composedPath.includes(context._element)||context._config.autoClose==='inside'&&!isMenuTarget||context._config.autoClose==='outside'&&isMenuTarget){continue}
if(context._menu.contains(event.target)&&(event.type==='keyup'&&event.key===TAB_KEY||/input|select|option|textarea|form/i.test(event.target.tagName))){continue}
if(event.type==='click'){relatedTarget.clickEvent=event}}
context._completeHide(relatedTarget)}}
static getParentFromElement(element){return getElementFromSelector(element)||element.parentNode}
static dataApiKeydownHandler(event){if(/input|textarea/i.test(event.target.tagName)?event.key===SPACE_KEY||event.key!==ESCAPE_KEY$2&&(event.key!==ARROW_DOWN_KEY&&event.key!==ARROW_UP_KEY||event.target.closest(SELECTOR_MENU)):!REGEXP_KEYDOWN.test(event.key)){return}
const isActive=this.classList.contains(CLASS_NAME_SHOW$7);if(!isActive&&event.key===ESCAPE_KEY$2){return}
event.preventDefault();event.stopPropagation();if(isDisabled(this)){return}
const getToggleButton=()=>this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0];if(event.key===ESCAPE_KEY$2){getToggleButton().focus();Dropdown.clearMenus();return}
if(!isActive&&(event.key===ARROW_UP_KEY||event.key===ARROW_DOWN_KEY)){getToggleButton().click();return}
if(!isActive||event.key===SPACE_KEY){Dropdown.clearMenus();return}
Dropdown.getInstance(getToggleButton())._selectMenuItem(event)}}
EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(event){event.preventDefault();Dropdown.dropdownInterface(this)});defineJQueryPlugin(Dropdown);const SELECTOR_FIXED_CONTENT='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';const SELECTOR_STICKY_CONTENT='.sticky-top';const getWidth=()=>{const documentWidth=document.documentElement.clientWidth;return Math.abs(window.innerWidth-documentWidth)};const hide=(width=getWidth())=>{_disableOverFlow();_setElementAttributes('body','paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight',calculatedValue=>calculatedValue+width);_setElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight',calculatedValue=>calculatedValue-width)};const _disableOverFlow=()=>{const actualValue=document.body.style.overflow;if(actualValue){Manipulator.setDataAttribute(document.body,'overflow',actualValue)}
document.body.style.overflow='hidden'};const _setElementAttributes=(selector,styleProp,callback)=>{const scrollbarWidth=getWidth();SelectorEngine.find(selector).forEach(element=>{if(element!==document.body&&window.innerWidth>element.clientWidth+scrollbarWidth){return}
const actualValue=element.style[styleProp];const calculatedValue=window.getComputedStyle(element)[styleProp];Manipulator.setDataAttribute(element,styleProp,actualValue);element.style[styleProp]=`${callback(Number.parseFloat(calculatedValue))}px`})};const reset=()=>{_resetElementAttributes('body','overflow');_resetElementAttributes('body','paddingRight');_resetElementAttributes(SELECTOR_FIXED_CONTENT,'paddingRight');_resetElementAttributes(SELECTOR_STICKY_CONTENT,'marginRight')};const _resetElementAttributes=(selector,styleProp)=>{SelectorEngine.find(selector).forEach(element=>{const value=Manipulator.getDataAttribute(element,styleProp);if(typeof value==='undefined'){element.style.removeProperty(styleProp)}else{Manipulator.removeDataAttribute(element,styleProp);element.style[styleProp]=value}})};const Default$6={isVisible:!0,isAnimated:!1,rootElement:document.body,clickCallback:null};const DefaultType$6={isVisible:'boolean',isAnimated:'boolean',rootElement:'element',clickCallback:'(function|null)'};const NAME$7='backdrop';const CLASS_NAME_BACKDROP='modal-backdrop';const CLASS_NAME_FADE$5='fade';const CLASS_NAME_SHOW$6='show';const EVENT_MOUSEDOWN=`mousedown.bs.${NAME$7}`;class Backdrop{constructor(config){this._config=this._getConfig(config);this._isAppended=!1;this._element=null}
show(callback){if(!this._config.isVisible){execute(callback);return}
this._append();if(this._config.isAnimated){reflow(this._getElement())}
this._getElement().classList.add(CLASS_NAME_SHOW$6);this._emulateAnimation(()=>{execute(callback)})}
hide(callback){if(!this._config.isVisible){execute(callback);return}
this._getElement().classList.remove(CLASS_NAME_SHOW$6);this._emulateAnimation(()=>{this.dispose();execute(callback)})}
_getElement(){if(!this._element){const backdrop=document.createElement('div');backdrop.className=CLASS_NAME_BACKDROP;if(this._config.isAnimated){backdrop.classList.add(CLASS_NAME_FADE$5)}
this._element=backdrop}
return this._element}
_getConfig(config){config={...Default$6,...(typeof config==='object'?config:{})};config.rootElement=config.rootElement||document.body;typeCheckConfig(NAME$7,config,DefaultType$6);return config}
_append(){if(this._isAppended){return}
this._config.rootElement.appendChild(this._getElement());EventHandler.on(this._getElement(),EVENT_MOUSEDOWN,()=>{execute(this._config.clickCallback)});this._isAppended=!0}
dispose(){if(!this._isAppended){return}
EventHandler.off(this._element,EVENT_MOUSEDOWN);this._getElement().parentNode.removeChild(this._element);this._isAppended=!1}
_emulateAnimation(callback){if(!this._config.isAnimated){execute(callback);return}
const backdropTransitionDuration=getTransitionDurationFromElement(this._getElement());EventHandler.one(this._getElement(),'transitionend',()=>execute(callback));emulateTransitionEnd(this._getElement(),backdropTransitionDuration)}}
const NAME$6='modal';const DATA_KEY$6='bs.modal';const EVENT_KEY$6=`.${DATA_KEY$6}`;const DATA_API_KEY$3='.data-api';const ESCAPE_KEY$1='Escape';const Default$5={backdrop:!0,keyboard:!0,focus:!0};const DefaultType$5={backdrop:'(boolean|string)',keyboard:'boolean',focus:'boolean'};const EVENT_HIDE$3=`hide${EVENT_KEY$6}`;const EVENT_HIDE_PREVENTED=`hidePrevented${EVENT_KEY$6}`;const EVENT_HIDDEN$3=`hidden${EVENT_KEY$6}`;const EVENT_SHOW$3=`show${EVENT_KEY$6}`;const EVENT_SHOWN$3=`shown${EVENT_KEY$6}`;const EVENT_FOCUSIN$2=`focusin${EVENT_KEY$6}`;const EVENT_RESIZE=`resize${EVENT_KEY$6}`;const EVENT_CLICK_DISMISS$2=`click.dismiss${EVENT_KEY$6}`;const EVENT_KEYDOWN_DISMISS$1=`keydown.dismiss${EVENT_KEY$6}`;const EVENT_MOUSEUP_DISMISS=`mouseup.dismiss${EVENT_KEY$6}`;const EVENT_MOUSEDOWN_DISMISS=`mousedown.dismiss${EVENT_KEY$6}`;const EVENT_CLICK_DATA_API$2=`click${EVENT_KEY$6}${DATA_API_KEY$3}`;const CLASS_NAME_OPEN='modal-open';const CLASS_NAME_FADE$4='fade';const CLASS_NAME_SHOW$5='show';const CLASS_NAME_STATIC='modal-static';const SELECTOR_DIALOG='.modal-dialog';const SELECTOR_MODAL_BODY='.modal-body';const SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]';const SELECTOR_DATA_DISMISS$2='[data-bs-dismiss="modal"]';class Modal extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,this._element);this._backdrop=this._initializeBackDrop();this._isShown=!1;this._ignoreBackdropClick=!1;this._isTransitioning=!1}
static get Default(){return Default$5}
static get NAME(){return NAME$6}
toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget)}
show(relatedTarget){if(this._isShown||this._isTransitioning){return}
if(this._isAnimated()){this._isTransitioning=!0}
const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget});if(this._isShown||showEvent.defaultPrevented){return}
this._isShown=!0;hide();document.body.classList.add(CLASS_NAME_OPEN);this._adjustDialog();this._setEscapeEvent();this._setResizeEvent();EventHandler.on(this._element,EVENT_CLICK_DISMISS$2,SELECTOR_DATA_DISMISS$2,event=>this.hide(event));EventHandler.on(this._dialog,EVENT_MOUSEDOWN_DISMISS,()=>{EventHandler.one(this._element,EVENT_MOUSEUP_DISMISS,event=>{if(event.target===this._element){this._ignoreBackdropClick=!0}})});this._showBackdrop(()=>this._showElement(relatedTarget))}
hide(event){if(event){event.preventDefault()}
if(!this._isShown||this._isTransitioning){return}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$3);if(hideEvent.defaultPrevented){return}
this._isShown=!1;const isAnimated=this._isAnimated();if(isAnimated){this._isTransitioning=!0}
this._setEscapeEvent();this._setResizeEvent();EventHandler.off(document,EVENT_FOCUSIN$2);this._element.classList.remove(CLASS_NAME_SHOW$5);EventHandler.off(this._element,EVENT_CLICK_DISMISS$2);EventHandler.off(this._dialog,EVENT_MOUSEDOWN_DISMISS);this._queueCallback(()=>this._hideModal(),this._element,isAnimated)}
dispose(){[window,this._dialog].forEach(htmlElement=>EventHandler.off(htmlElement,EVENT_KEY$6));this._backdrop.dispose();super.dispose();EventHandler.off(document,EVENT_FOCUSIN$2)}
handleUpdate(){this._adjustDialog()}
_initializeBackDrop(){return new Backdrop({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}
_getConfig(config){config={...Default$5,...Manipulator.getDataAttributes(this._element),...config};typeCheckConfig(NAME$6,config,DefaultType$5);return config}
_showElement(relatedTarget){const isAnimated=this._isAnimated();const modalBody=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);if(!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');this._element.scrollTop=0;if(modalBody){modalBody.scrollTop=0}
if(isAnimated){reflow(this._element)}
this._element.classList.add(CLASS_NAME_SHOW$5);if(this._config.focus){this._enforceFocus()}
const transitionComplete=()=>{if(this._config.focus){this._element.focus()}
this._isTransitioning=!1;EventHandler.trigger(this._element,EVENT_SHOWN$3,{relatedTarget})};this._queueCallback(transitionComplete,this._dialog,isAnimated)}
_enforceFocus(){EventHandler.off(document,EVENT_FOCUSIN$2);EventHandler.on(document,EVENT_FOCUSIN$2,event=>{if(document!==event.target&&this._element!==event.target&&!this._element.contains(event.target)){this._element.focus()}})}
_setEscapeEvent(){if(this._isShown){EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,event=>{if(this._config.keyboard&&event.key===ESCAPE_KEY$1){event.preventDefault();this.hide()}else if(!this._config.keyboard&&event.key===ESCAPE_KEY$1){this._triggerBackdropTransition()}})}else{EventHandler.off(this._element,EVENT_KEYDOWN_DISMISS$1)}}
_setResizeEvent(){if(this._isShown){EventHandler.on(window,EVENT_RESIZE,()=>this._adjustDialog())}else{EventHandler.off(window,EVENT_RESIZE)}}
_hideModal(){this._element.style.display='none';this._element.setAttribute('aria-hidden',!0);this._element.removeAttribute('aria-modal');this._element.removeAttribute('role');this._isTransitioning=!1;this._backdrop.hide(()=>{document.body.classList.remove(CLASS_NAME_OPEN);this._resetAdjustments();reset();EventHandler.trigger(this._element,EVENT_HIDDEN$3)})}
_showBackdrop(callback){EventHandler.on(this._element,EVENT_CLICK_DISMISS$2,event=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}
if(event.target!==event.currentTarget){return}
if(this._config.backdrop===!0){this.hide()}else if(this._config.backdrop==='static'){this._triggerBackdropTransition()}});this._backdrop.show(callback)}
_isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$4)}
_triggerBackdropTransition(){const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED);if(hideEvent.defaultPrevented){return}
const isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;if(!isModalOverflowing){this._element.style.overflowY='hidden'}
this._element.classList.add(CLASS_NAME_STATIC);const modalTransitionDuration=getTransitionDurationFromElement(this._dialog);EventHandler.off(this._element,'transitionend');EventHandler.one(this._element,'transitionend',()=>{this._element.classList.remove(CLASS_NAME_STATIC);if(!isModalOverflowing){EventHandler.one(this._element,'transitionend',()=>{this._element.style.overflowY=''});emulateTransitionEnd(this._element,modalTransitionDuration)}});emulateTransitionEnd(this._element,modalTransitionDuration);this._element.focus()}
_adjustDialog(){const isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;const scrollbarWidth=getWidth();const isBodyOverflowing=scrollbarWidth>0;if(!isBodyOverflowing&&isModalOverflowing&&!isRTL()||isBodyOverflowing&&!isModalOverflowing&&isRTL()){this._element.style.paddingLeft=`${scrollbarWidth}px`}
if(isBodyOverflowing&&!isModalOverflowing&&!isRTL()||!isBodyOverflowing&&isModalOverflowing&&isRTL()){this._element.style.paddingRight=`${scrollbarWidth}px`}}
_resetAdjustments(){this._element.style.paddingLeft='';this._element.style.paddingRight=''}
static jQueryInterface(config,relatedTarget){return this.each(function(){const data=Modal.getInstance(this)||new Modal(this,typeof config==='object'?config:{});if(typeof config!=='string'){return}
if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config](relatedTarget)})}}
EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(event){const target=getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault()}
EventHandler.one(target,EVENT_SHOW$3,showEvent=>{if(showEvent.defaultPrevented){return}
EventHandler.one(target,EVENT_HIDDEN$3,()=>{if(isVisible(this)){this.focus()}})});const data=Modal.getInstance(target)||new Modal(target);data.toggle(this)});defineJQueryPlugin(Modal);const NAME$5='offcanvas';const DATA_KEY$5='bs.offcanvas';const EVENT_KEY$5=`.${DATA_KEY$5}`;const DATA_API_KEY$2='.data-api';const EVENT_LOAD_DATA_API$1=`load${EVENT_KEY$5}${DATA_API_KEY$2}`;const ESCAPE_KEY='Escape';const Default$4={backdrop:!0,keyboard:!0,scroll:!1};const DefaultType$4={backdrop:'boolean',keyboard:'boolean',scroll:'boolean'};const CLASS_NAME_SHOW$4='show';const OPEN_SELECTOR='.offcanvas.show';const EVENT_SHOW$2=`show${EVENT_KEY$5}`;const EVENT_SHOWN$2=`shown${EVENT_KEY$5}`;const EVENT_HIDE$2=`hide${EVENT_KEY$5}`;const EVENT_HIDDEN$2=`hidden${EVENT_KEY$5}`;const EVENT_FOCUSIN$1=`focusin${EVENT_KEY$5}`;const EVENT_CLICK_DATA_API$1=`click${EVENT_KEY$5}${DATA_API_KEY$2}`;const EVENT_CLICK_DISMISS$1=`click.dismiss${EVENT_KEY$5}`;const EVENT_KEYDOWN_DISMISS=`keydown.dismiss${EVENT_KEY$5}`;const SELECTOR_DATA_DISMISS$1='[data-bs-dismiss="offcanvas"]';const SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]';class Offcanvas extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._isShown=!1;this._backdrop=this._initializeBackDrop();this._addEventListeners()}
static get NAME(){return NAME$5}
static get Default(){return Default$4}
toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget)}
show(relatedTarget){if(this._isShown){return}
const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$2,{relatedTarget});if(showEvent.defaultPrevented){return}
this._isShown=!0;this._element.style.visibility='visible';this._backdrop.show();if(!this._config.scroll){hide();this._enforceFocusOnElement(this._element)}
this._element.removeAttribute('aria-hidden');this._element.setAttribute('aria-modal',!0);this._element.setAttribute('role','dialog');this._element.classList.add(CLASS_NAME_SHOW$4);const completeCallBack=()=>{EventHandler.trigger(this._element,EVENT_SHOWN$2,{relatedTarget})};this._queueCallback(completeCallBack,this._element,!0)}
hide(){if(!this._isShown){return}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$2);if(hideEvent.defaultPrevented){return}
EventHandler.off(document,EVENT_FOCUSIN$1);this._element.blur();this._isShown=!1;this._element.classList.remove(CLASS_NAME_SHOW$4);this._backdrop.hide();const completeCallback=()=>{this._element.setAttribute('aria-hidden',!0);this._element.removeAttribute('aria-modal');this._element.removeAttribute('role');this._element.style.visibility='hidden';if(!this._config.scroll){reset()}
EventHandler.trigger(this._element,EVENT_HIDDEN$2)};this._queueCallback(completeCallback,this._element,!0)}
dispose(){this._backdrop.dispose();super.dispose();EventHandler.off(document,EVENT_FOCUSIN$1)}
_getConfig(config){config={...Default$4,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'?config:{})};typeCheckConfig(NAME$5,config,DefaultType$4);return config}
_initializeBackDrop(){return new Backdrop({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}
_enforceFocusOnElement(element){EventHandler.off(document,EVENT_FOCUSIN$1);EventHandler.on(document,EVENT_FOCUSIN$1,event=>{if(document!==event.target&&element!==event.target&&!element.contains(event.target)){element.focus()}});element.focus()}
_addEventListeners(){EventHandler.on(this._element,EVENT_CLICK_DISMISS$1,SELECTOR_DATA_DISMISS$1,()=>this.hide());EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,event=>{if(this._config.keyboard&&event.key===ESCAPE_KEY){this.hide()}})}
static jQueryInterface(config){return this.each(function(){const data=Data.get(this,DATA_KEY$5)||new Offcanvas(this,typeof config==='object'?config:{});if(typeof config!=='string'){return}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError(`No method named "${config}"`)}
data[config](this)})}}
EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(event){const target=getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault()}
if(isDisabled(this)){return}
EventHandler.one(target,EVENT_HIDDEN$2,()=>{if(isVisible(this)){this.focus()}});const allReadyOpen=SelectorEngine.findOne(OPEN_SELECTOR);if(allReadyOpen&&allReadyOpen!==target){Offcanvas.getInstance(allReadyOpen).hide()}
const data=Data.get(target,DATA_KEY$5)||new Offcanvas(target);data.toggle(this)});EventHandler.on(window,EVENT_LOAD_DATA_API$1,()=>{SelectorEngine.find(OPEN_SELECTOR).forEach(el=>(Data.get(el,DATA_KEY$5)||new Offcanvas(el)).show())});defineJQueryPlugin(Offcanvas);const uriAttrs=new Set(['background','cite','href','itemtype','longdesc','poster','src','xlink:href']);const ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;const SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i;const DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;const allowedAttribute=(attr,allowedAttributeList)=>{const attrName=attr.nodeName.toLowerCase();if(allowedAttributeList.includes(attrName)){if(uriAttrs.has(attrName)){return Boolean(SAFE_URL_PATTERN.test(attr.nodeValue)||DATA_URL_PATTERN.test(attr.nodeValue))}
return!0}
const regExp=allowedAttributeList.filter(attrRegex=>attrRegex instanceof RegExp);for(let i=0,len=regExp.length;i<len;i++){if(regExp[i].test(attrName)){return!0}}
return!1};const DefaultAllowlist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],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:[]};function sanitizeHtml(unsafeHtml,allowList,sanitizeFn){if(!unsafeHtml.length){return unsafeHtml}
if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml)}
const domParser=new window.DOMParser();const createdDocument=domParser.parseFromString(unsafeHtml,'text/html');const allowlistKeys=Object.keys(allowList);const elements=[].concat(...createdDocument.body.querySelectorAll('*'));for(let i=0,len=elements.length;i<len;i++){const el=elements[i];const elName=el.nodeName.toLowerCase();if(!allowlistKeys.includes(elName)){el.parentNode.removeChild(el);continue}
const attributeList=[].concat(...el.attributes);const allowedAttributes=[].concat(allowList['*']||[],allowList[elName]||[]);attributeList.forEach(attr=>{if(!allowedAttribute(attr,allowedAttributes)){el.removeAttribute(attr.nodeName)}})}
return createdDocument.body.innerHTML}
const NAME$4='tooltip';const DATA_KEY$4='bs.tooltip';const EVENT_KEY$4=`.${DATA_KEY$4}`;const CLASS_PREFIX$1='bs-tooltip';const BSCLS_PREFIX_REGEX$1=new RegExp(`(^|\\s)${CLASS_PREFIX$1}\\S+`,'g');const DISALLOWED_ATTRIBUTES=new Set(['sanitize','allowList','sanitizeFn']);const DefaultType$3={animation:'boolean',template:'string',title:'(string|element|function)',trigger:'string',delay:'(number|object)',html:'boolean',selector:'(string|boolean)',placement:'(string|function)',offset:'(array|string|function)',container:'(string|element|boolean)',fallbackPlacements:'array',boundary:'(string|element)',customClass:'(string|function)',sanitize:'boolean',sanitizeFn:'(null|function)',allowList:'object',popperConfig:'(null|object|function)'};const AttachmentMap={AUTO:'auto',TOP:'top',RIGHT:isRTL()?'left':'right',BOTTOM:'bottom',LEFT:isRTL()?'right':'left'};const Default$3={animation:!0,template:'<div class="tooltip" role="tooltip">'+'<div class="tooltip-arrow"></div>'+'<div class="tooltip-inner"></div>'+'</div>',trigger:'hover focus',title:'',delay:0,html:!1,selector:!1,placement:'top',offset:[0,0],container:!1,fallbackPlacements:['top','right','bottom','left'],boundary:'clippingParents',customClass:'',sanitize:!0,sanitizeFn:null,allowList:DefaultAllowlist,popperConfig:null};const Event$2={HIDE:`hide${EVENT_KEY$4}`,HIDDEN:`hidden${EVENT_KEY$4}`,SHOW:`show${EVENT_KEY$4}`,SHOWN:`shown${EVENT_KEY$4}`,INSERTED:`inserted${EVENT_KEY$4}`,CLICK:`click${EVENT_KEY$4}`,FOCUSIN:`focusin${EVENT_KEY$4}`,FOCUSOUT:`focusout${EVENT_KEY$4}`,MOUSEENTER:`mouseenter${EVENT_KEY$4}`,MOUSELEAVE:`mouseleave${EVENT_KEY$4}`};const CLASS_NAME_FADE$3='fade';const CLASS_NAME_MODAL='modal';const CLASS_NAME_SHOW$3='show';const HOVER_STATE_SHOW='show';const HOVER_STATE_OUT='out';const SELECTOR_TOOLTIP_INNER='.tooltip-inner';const TRIGGER_HOVER='hover';const TRIGGER_FOCUS='focus';const TRIGGER_CLICK='click';const TRIGGER_MANUAL='manual';class Tooltip extends BaseComponent{constructor(element,config){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)')}
super(element);this._isEnabled=!0;this._timeout=0;this._hoverState='';this._activeTrigger={};this._popper=null;this._config=this._getConfig(config);this.tip=null;this._setListeners()}
static get Default(){return Default$3}
static get NAME(){return NAME$4}
static get Event(){return Event$2}
static get DefaultType(){return DefaultType$3}
enable(){this._isEnabled=!0}
disable(){this._isEnabled=!1}
toggleEnabled(){this._isEnabled=!this._isEnabled}
toggle(event){if(!this._isEnabled){return}
if(event){const context=this._initializeOnDelegatedTarget(event);context._activeTrigger.click=!context._activeTrigger.click;if(context._isWithActiveTrigger()){context._enter(null,context)}else{context._leave(null,context)}}else{if(this.getTipElement().classList.contains(CLASS_NAME_SHOW$3)){this._leave(null,this);return}
this._enter(null,this)}}
dispose(){clearTimeout(this._timeout);EventHandler.off(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this.tip&&this.tip.parentNode){this.tip.parentNode.removeChild(this.tip)}
if(this._popper){this._popper.destroy()}
super.dispose()}
show(){if(this._element.style.display==='none'){throw new Error('Please use show on visible elements')}
if(!(this.isWithContent()&&this._isEnabled)){return}
const showEvent=EventHandler.trigger(this._element,this.constructor.Event.SHOW);const shadowRoot=findShadowRoot(this._element);const isInTheDom=shadowRoot===null?this._element.ownerDocument.documentElement.contains(this._element):shadowRoot.contains(this._element);if(showEvent.defaultPrevented||!isInTheDom){return}
const tip=this.getTipElement();const tipId=getUID(this.constructor.NAME);tip.setAttribute('id',tipId);this._element.setAttribute('aria-describedby',tipId);this.setContent();if(this._config.animation){tip.classList.add(CLASS_NAME_FADE$3)}
const placement=typeof this._config.placement==='function'?this._config.placement.call(this,tip,this._element):this._config.placement;const attachment=this._getAttachment(placement);this._addAttachmentClass(attachment);const{container}=this._config;Data.set(tip,this.constructor.DATA_KEY,this);if(!this._element.ownerDocument.documentElement.contains(this.tip)){container.appendChild(tip);EventHandler.trigger(this._element,this.constructor.Event.INSERTED)}
if(this._popper){this._popper.update()}else{this._popper=createPopper(this._element,tip,this._getPopperConfig(attachment))}
tip.classList.add(CLASS_NAME_SHOW$3);const customClass=typeof this._config.customClass==='function'?this._config.customClass():this._config.customClass;if(customClass){tip.classList.add(...customClass.split(' '))}
if('ontouchstart' in document.documentElement){[].concat(...document.body.children).forEach(element=>{EventHandler.on(element,'mouseover',noop)})}
const complete=()=>{const prevHoverState=this._hoverState;this._hoverState=null;EventHandler.trigger(this._element,this.constructor.Event.SHOWN);if(prevHoverState===HOVER_STATE_OUT){this._leave(null,this)}};const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated)}
hide(){if(!this._popper){return}
const tip=this.getTipElement();const complete=()=>{if(this._isWithActiveTrigger()){return}
if(this._hoverState!==HOVER_STATE_SHOW&&tip.parentNode){tip.parentNode.removeChild(tip)}
this._cleanTipClass();this._element.removeAttribute('aria-describedby');EventHandler.trigger(this._element,this.constructor.Event.HIDDEN);if(this._popper){this._popper.destroy();this._popper=null}};const hideEvent=EventHandler.trigger(this._element,this.constructor.Event.HIDE);if(hideEvent.defaultPrevented){return}
tip.classList.remove(CLASS_NAME_SHOW$3);if('ontouchstart' in document.documentElement){[].concat(...document.body.children).forEach(element=>EventHandler.off(element,'mouseover',noop))}
this._activeTrigger[TRIGGER_CLICK]=!1;this._activeTrigger[TRIGGER_FOCUS]=!1;this._activeTrigger[TRIGGER_HOVER]=!1;const isAnimated=this.tip.classList.contains(CLASS_NAME_FADE$3);this._queueCallback(complete,this.tip,isAnimated);this._hoverState=''}
update(){if(this._popper!==null){this._popper.update()}}
isWithContent(){return Boolean(this.getTitle())}
getTipElement(){if(this.tip){return this.tip}
const element=document.createElement('div');element.innerHTML=this._config.template;this.tip=element.children[0];return this.tip}
setContent(){const tip=this.getTipElement();this.setElementContent(SelectorEngine.findOne(SELECTOR_TOOLTIP_INNER,tip),this.getTitle());tip.classList.remove(CLASS_NAME_FADE$3,CLASS_NAME_SHOW$3)}
setElementContent(element,content){if(element===null){return}
if(isElement$1(content)){content=getElement(content);if(this._config.html){if(content.parentNode!==element){element.innerHTML='';element.appendChild(content)}}else{element.textContent=content.textContent}
return}
if(this._config.html){if(this._config.sanitize){content=sanitizeHtml(content,this._config.allowList,this._config.sanitizeFn)}
element.innerHTML=content}else{element.textContent=content}}
getTitle(){let title=this._element.getAttribute('data-bs-original-title');if(!title){title=typeof this._config.title==='function'?this._config.title.call(this._element):this._config.title}
return title}
updateAttachment(attachment){if(attachment==='right'){return'end'}
if(attachment==='left'){return'start'}
return attachment}
_initializeOnDelegatedTarget(event,context){const dataKey=this.constructor.DATA_KEY;context=context||Data.get(event.delegateTarget,dataKey);if(!context){context=new this.constructor(event.delegateTarget,this._getDelegateConfig());Data.set(event.delegateTarget,dataKey,context)}
return context}
_getOffset(){const{offset}=this._config;if(typeof offset==='string'){return offset.split(',').map(val=>Number.parseInt(val,10))}
if(typeof offset==='function'){return popperData=>offset(popperData,this._element)}
return offset}
_getPopperConfig(attachment){const defaultBsPopperConfig={placement:attachment,modifiers:[{name:'flip',options:{fallbackPlacements:this._config.fallbackPlacements}},{name:'offset',options:{offset:this._getOffset()}},{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'arrow',options:{element:`.${this.constructor.NAME}-arrow`}},{name:'onChange',enabled:!0,phase:'afterWrite',fn:data=>this._handlePopperPlacementChange(data)}],onFirstUpdate:data=>{if(data.options.placement!==data.placement){this._handlePopperPlacementChange(data)}}};return{...defaultBsPopperConfig,...(typeof this._config.popperConfig==='function'?this._config.popperConfig(defaultBsPopperConfig):this._config.popperConfig)}}
_addAttachmentClass(attachment){this.getTipElement().classList.add(`${CLASS_PREFIX$1}-${this.updateAttachment(attachment)}`)}
_getAttachment(placement){return AttachmentMap[placement.toUpperCase()]}
_setListeners(){const triggers=this._config.trigger.split(' ');triggers.forEach(trigger=>{if(trigger==='click'){EventHandler.on(this._element,this.constructor.Event.CLICK,this._config.selector,event=>this.toggle(event))}else if(trigger!==TRIGGER_MANUAL){const eventIn=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN;const eventOut=trigger===TRIGGER_HOVER?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;EventHandler.on(this._element,eventIn,this._config.selector,event=>this._enter(event));EventHandler.on(this._element,eventOut,this._config.selector,event=>this._leave(event))}});this._hideModalHandler=()=>{if(this._element){this.hide()}};EventHandler.on(this._element.closest(`.${CLASS_NAME_MODAL}`),'hide.bs.modal',this._hideModalHandler);if(this._config.selector){this._config={...this._config,trigger:'manual',selector:''}}else{this._fixTitle()}}
_fixTitle(){const title=this._element.getAttribute('title');const originalTitleType=typeof this._element.getAttribute('data-bs-original-title');if(title||originalTitleType!=='string'){this._element.setAttribute('data-bs-original-title',title||'');if(title&&!this._element.getAttribute('aria-label')&&!this._element.textContent){this._element.setAttribute('aria-label',title)}
this._element.setAttribute('title','')}}
_enter(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusin'?TRIGGER_FOCUS:TRIGGER_HOVER]=!0}
if(context.getTipElement().classList.contains(CLASS_NAME_SHOW$3)||context._hoverState===HOVER_STATE_SHOW){context._hoverState=HOVER_STATE_SHOW;return}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_SHOW;if(!context._config.delay||!context._config.delay.show){context.show();return}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_SHOW){context.show()}},context._config.delay.show)}
_leave(event,context){context=this._initializeOnDelegatedTarget(event,context);if(event){context._activeTrigger[event.type==='focusout'?TRIGGER_FOCUS:TRIGGER_HOVER]=context._element.contains(event.relatedTarget)}
if(context._isWithActiveTrigger()){return}
clearTimeout(context._timeout);context._hoverState=HOVER_STATE_OUT;if(!context._config.delay||!context._config.delay.hide){context.hide();return}
context._timeout=setTimeout(()=>{if(context._hoverState===HOVER_STATE_OUT){context.hide()}},context._config.delay.hide)}
_isWithActiveTrigger(){for(const trigger in this._activeTrigger){if(this._activeTrigger[trigger]){return!0}}
return!1}
_getConfig(config){const dataAttributes=Manipulator.getDataAttributes(this._element);Object.keys(dataAttributes).forEach(dataAttr=>{if(DISALLOWED_ATTRIBUTES.has(dataAttr)){delete dataAttributes[dataAttr]}});config={...this.constructor.Default,...dataAttributes,...(typeof config==='object'&&config?config:{})};config.container=config.container===!1?document.body:getElement(config.container);if(typeof config.delay==='number'){config.delay={show:config.delay,hide:config.delay}}
if(typeof config.title==='number'){config.title=config.title.toString()}
if(typeof config.content==='number'){config.content=config.content.toString()}
typeCheckConfig(NAME$4,config,this.constructor.DefaultType);if(config.sanitize){config.template=sanitizeHtml(config.template,config.allowList,config.sanitizeFn)}
return config}
_getDelegateConfig(){const config={};if(this._config){for(const key in this._config){if(this.constructor.Default[key]!==this._config[key]){config[key]=this._config[key]}}}
return config}
_cleanTipClass(){const tip=this.getTipElement();const tabClass=tip.getAttribute('class').match(BSCLS_PREFIX_REGEX$1);if(tabClass!==null&&tabClass.length>0){tabClass.map(token=>token.trim()).forEach(tClass=>tip.classList.remove(tClass))}}
_handlePopperPlacementChange(popperData){const{state}=popperData;if(!state){return}
this.tip=state.elements.popper;this._cleanTipClass();this._addAttachmentClass(this._getAttachment(state.placement))}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$4);const _config=typeof config==='object'&&config;if(!data&&/dispose|hide/.test(config)){return}
if(!data){data=new Tooltip(this,_config)}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()}})}}
defineJQueryPlugin(Tooltip);const NAME$3='popover';const DATA_KEY$3='bs.popover';const EVENT_KEY$3=`.${DATA_KEY$3}`;const CLASS_PREFIX='bs-popover';const BSCLS_PREFIX_REGEX=new RegExp(`(^|\\s)${CLASS_PREFIX}\\S+`,'g');const Default$2={...Tooltip.Default,placement:'right',offset:[0,8],trigger:'click',content:'',template:'<div class="popover" role="tooltip">'+'<div class="popover-arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div>'+'</div>'};const DefaultType$2={...Tooltip.DefaultType,content:'(string|element|function)'};const Event$1={HIDE:`hide${EVENT_KEY$3}`,HIDDEN:`hidden${EVENT_KEY$3}`,SHOW:`show${EVENT_KEY$3}`,SHOWN:`shown${EVENT_KEY$3}`,INSERTED:`inserted${EVENT_KEY$3}`,CLICK:`click${EVENT_KEY$3}`,FOCUSIN:`focusin${EVENT_KEY$3}`,FOCUSOUT:`focusout${EVENT_KEY$3}`,MOUSEENTER:`mouseenter${EVENT_KEY$3}`,MOUSELEAVE:`mouseleave${EVENT_KEY$3}`};const CLASS_NAME_FADE$2='fade';const CLASS_NAME_SHOW$2='show';const SELECTOR_TITLE='.popover-header';const SELECTOR_CONTENT='.popover-body';class Popover extends Tooltip{static get Default(){return Default$2}
static get NAME(){return NAME$3}
static get Event(){return Event$1}
static get DefaultType(){return DefaultType$2}
isWithContent(){return this.getTitle()||this._getContent()}
setContent(){const tip=this.getTipElement();this.setElementContent(SelectorEngine.findOne(SELECTOR_TITLE,tip),this.getTitle());let content=this._getContent();if(typeof content==='function'){content=content.call(this._element)}
this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT,tip),content);tip.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2)}
_addAttachmentClass(attachment){this.getTipElement().classList.add(`${CLASS_PREFIX}-${this.updateAttachment(attachment)}`)}
_getContent(){return this._element.getAttribute('data-bs-content')||this._config.content}
_cleanTipClass(){const tip=this.getTipElement();const tabClass=tip.getAttribute('class').match(BSCLS_PREFIX_REGEX);if(tabClass!==null&&tabClass.length>0){tabClass.map(token=>token.trim()).forEach(tClass=>tip.classList.remove(tClass))}}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY$3);const _config=typeof config==='object'?config:null;if(!data&&/dispose|hide/.test(config)){return}
if(!data){data=new Popover(this,_config);Data.set(this,DATA_KEY$3,data)}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()}})}}
defineJQueryPlugin(Popover);const NAME$2='scrollspy';const DATA_KEY$2='bs.scrollspy';const EVENT_KEY$2=`.${DATA_KEY$2}`;const DATA_API_KEY$1='.data-api';const Default$1={offset:10,method:'auto',target:''};const DefaultType$1={offset:'number',method:'string',target:'(string|element)'};const EVENT_ACTIVATE=`activate${EVENT_KEY$2}`;const EVENT_SCROLL=`scroll${EVENT_KEY$2}`;const EVENT_LOAD_DATA_API=`load${EVENT_KEY$2}${DATA_API_KEY$1}`;const CLASS_NAME_DROPDOWN_ITEM='dropdown-item';const CLASS_NAME_ACTIVE$1='active';const SELECTOR_DATA_SPY='[data-bs-spy="scroll"]';const SELECTOR_NAV_LIST_GROUP$1='.nav, .list-group';const SELECTOR_NAV_LINKS='.nav-link';const SELECTOR_NAV_ITEMS='.nav-item';const SELECTOR_LIST_ITEMS='.list-group-item';const SELECTOR_DROPDOWN$1='.dropdown';const SELECTOR_DROPDOWN_TOGGLE$1='.dropdown-toggle';const METHOD_OFFSET='offset';const METHOD_POSITION='position';class ScrollSpy extends BaseComponent{constructor(element,config){super(element);this._scrollElement=this._element.tagName==='BODY'?window:this._element;this._config=this._getConfig(config);this._selector=`${this._config.target} ${SELECTOR_NAV_LINKS}, ${this._config.target} ${SELECTOR_LIST_ITEMS}, ${this._config.target} .${CLASS_NAME_DROPDOWN_ITEM}`;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;EventHandler.on(this._scrollElement,EVENT_SCROLL,()=>this._process());this.refresh();this._process()}
static get Default(){return Default$1}
static get NAME(){return NAME$2}
refresh(){const autoMethod=this._scrollElement===this._scrollElement.window?METHOD_OFFSET:METHOD_POSITION;const offsetMethod=this._config.method==='auto'?autoMethod:this._config.method;const offsetBase=offsetMethod===METHOD_POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();const targets=SelectorEngine.find(this._selector);targets.map(element=>{const targetSelector=getSelectorFromElement(element);const target=targetSelector?SelectorEngine.findOne(targetSelector):null;if(target){const targetBCR=target.getBoundingClientRect();if(targetBCR.width||targetBCR.height){if(this._scrollElement===this._scrollElement.window&&'offset'==offsetMethod){return[targetBCR.top+this._scrollElement.window.pageYOffset+offsetBase,targetSelector]}
return[Manipulator[offsetMethod](target).top+offsetBase,targetSelector]}}
return null}).filter(item=>item).sort((a,b)=>a[0]-b[0]).forEach(item=>{this._offsets.push(item[0]);this._targets.push(item[1])})}
dispose(){EventHandler.off(this._scrollElement,EVENT_KEY$2);super.dispose()}
_getConfig(config){config={...Default$1,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'&&config?config:{})};if(typeof config.target!=='string'&&isElement$1(config.target)){let{id}=config.target;if(!id){id=getUID(NAME$2);config.target.id=id}
config.target=`#${id}`}
typeCheckConfig(NAME$2,config,DefaultType$1);return config}
_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}
_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}
_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}
_process(){const scrollTop=this._getScrollTop()+this._config.offset;const scrollHeight=this._getScrollHeight();const maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight();if(this._scrollHeight!==scrollHeight){this.refresh()}
if(scrollTop>=maxScroll){const target=this._targets[this._targets.length-1];if(this._activeTarget!==target){this._activate(target)}
return}
if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return}
for(let i=this._offsets.length;i--;){const isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==='undefined'||scrollTop<this._offsets[i+1]);if(isActiveTarget){this._activate(this._targets[i])}}}
_activate(target){this._activeTarget=target;this._clear();const queries=this._selector.split(',').map(selector=>`${selector}[data-bs-target="${target}"],${selector}[href="${target}"]`);const link=SelectorEngine.findOne(queries.join(','));if(link.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,link.closest(SELECTOR_DROPDOWN$1)).classList.add(CLASS_NAME_ACTIVE$1);link.classList.add(CLASS_NAME_ACTIVE$1)}else{link.classList.add(CLASS_NAME_ACTIVE$1);SelectorEngine.parents(link,SELECTOR_NAV_LIST_GROUP$1).forEach(listGroup=>{SelectorEngine.prev(listGroup,`${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1));SelectorEngine.prev(listGroup,SELECTOR_NAV_ITEMS).forEach(navItem=>{SelectorEngine.children(navItem,SELECTOR_NAV_LINKS).forEach(item=>item.classList.add(CLASS_NAME_ACTIVE$1))})})}
EventHandler.trigger(this._scrollElement,EVENT_ACTIVATE,{relatedTarget:target})}
_clear(){SelectorEngine.find(this._selector).filter(node=>node.classList.contains(CLASS_NAME_ACTIVE$1)).forEach(node=>node.classList.remove(CLASS_NAME_ACTIVE$1))}
static jQueryInterface(config){return this.each(function(){const data=ScrollSpy.getInstance(this)||new ScrollSpy(this,typeof config==='object'?config:{});if(typeof config!=='string'){return}
if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()})}}
EventHandler.on(window,EVENT_LOAD_DATA_API,()=>{SelectorEngine.find(SELECTOR_DATA_SPY).forEach(spy=>new ScrollSpy(spy))});defineJQueryPlugin(ScrollSpy);const NAME$1='tab';const DATA_KEY$1='bs.tab';const EVENT_KEY$1=`.${DATA_KEY$1}`;const DATA_API_KEY='.data-api';const EVENT_HIDE$1=`hide${EVENT_KEY$1}`;const EVENT_HIDDEN$1=`hidden${EVENT_KEY$1}`;const EVENT_SHOW$1=`show${EVENT_KEY$1}`;const EVENT_SHOWN$1=`shown${EVENT_KEY$1}`;const EVENT_CLICK_DATA_API=`click${EVENT_KEY$1}${DATA_API_KEY}`;const CLASS_NAME_DROPDOWN_MENU='dropdown-menu';const CLASS_NAME_ACTIVE='active';const CLASS_NAME_FADE$1='fade';const CLASS_NAME_SHOW$1='show';const SELECTOR_DROPDOWN='.dropdown';const SELECTOR_NAV_LIST_GROUP='.nav, .list-group';const SELECTOR_ACTIVE='.active';const SELECTOR_ACTIVE_UL=':scope > li > .active';const SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle';const SELECTOR_DROPDOWN_ACTIVE_CHILD=':scope > .dropdown-menu .active';class Tab extends BaseComponent{static get NAME(){return NAME$1}
show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(CLASS_NAME_ACTIVE)){return}
let previous;const target=getElementFromSelector(this._element);const listElement=this._element.closest(SELECTOR_NAV_LIST_GROUP);if(listElement){const itemSelector=listElement.nodeName==='UL'||listElement.nodeName==='OL'?SELECTOR_ACTIVE_UL:SELECTOR_ACTIVE;previous=SelectorEngine.find(itemSelector,listElement);previous=previous[previous.length-1]}
const hideEvent=previous?EventHandler.trigger(previous,EVENT_HIDE$1,{relatedTarget:this._element}):null;const showEvent=EventHandler.trigger(this._element,EVENT_SHOW$1,{relatedTarget:previous});if(showEvent.defaultPrevented||hideEvent!==null&&hideEvent.defaultPrevented){return}
this._activate(this._element,listElement);const complete=()=>{EventHandler.trigger(previous,EVENT_HIDDEN$1,{relatedTarget:this._element});EventHandler.trigger(this._element,EVENT_SHOWN$1,{relatedTarget:previous})};if(target){this._activate(target,target.parentNode,complete)}else{complete()}}
_activate(element,container,callback){const activeElements=container&&(container.nodeName==='UL'||container.nodeName==='OL')?SelectorEngine.find(SELECTOR_ACTIVE_UL,container):SelectorEngine.children(container,SELECTOR_ACTIVE);const active=activeElements[0];const isTransitioning=callback&&active&&active.classList.contains(CLASS_NAME_FADE$1);const complete=()=>this._transitionComplete(element,active,callback);if(active&&isTransitioning){active.classList.remove(CLASS_NAME_SHOW$1);this._queueCallback(complete,element,!0)}else{complete()}}
_transitionComplete(element,active,callback){if(active){active.classList.remove(CLASS_NAME_ACTIVE);const dropdownChild=SelectorEngine.findOne(SELECTOR_DROPDOWN_ACTIVE_CHILD,active.parentNode);if(dropdownChild){dropdownChild.classList.remove(CLASS_NAME_ACTIVE)}
if(active.getAttribute('role')==='tab'){active.setAttribute('aria-selected',!1)}}
element.classList.add(CLASS_NAME_ACTIVE);if(element.getAttribute('role')==='tab'){element.setAttribute('aria-selected',!0)}
reflow(element);if(element.classList.contains(CLASS_NAME_FADE$1)){element.classList.add(CLASS_NAME_SHOW$1)}
let parent=element.parentNode;if(parent&&parent.nodeName==='LI'){parent=parent.parentNode}
if(parent&&parent.classList.contains(CLASS_NAME_DROPDOWN_MENU)){const dropdownElement=element.closest(SELECTOR_DROPDOWN);if(dropdownElement){SelectorEngine.find(SELECTOR_DROPDOWN_TOGGLE,dropdownElement).forEach(dropdown=>dropdown.classList.add(CLASS_NAME_ACTIVE))}
element.setAttribute('aria-expanded',!0)}
if(callback){callback()}}
static jQueryInterface(config){return this.each(function(){const data=Data.get(this,DATA_KEY$1)||new Tab(this);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config]()}})}}
EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault()}
if(isDisabled(this)){return}
const data=Data.get(this,DATA_KEY$1)||new Tab(this);data.show()});defineJQueryPlugin(Tab);const NAME='toast';const DATA_KEY='bs.toast';const EVENT_KEY=`.${DATA_KEY}`;const EVENT_CLICK_DISMISS=`click.dismiss${EVENT_KEY}`;const EVENT_MOUSEOVER=`mouseover${EVENT_KEY}`;const EVENT_MOUSEOUT=`mouseout${EVENT_KEY}`;const EVENT_FOCUSIN=`focusin${EVENT_KEY}`;const EVENT_FOCUSOUT=`focusout${EVENT_KEY}`;const EVENT_HIDE=`hide${EVENT_KEY}`;const EVENT_HIDDEN=`hidden${EVENT_KEY}`;const EVENT_SHOW=`show${EVENT_KEY}`;const EVENT_SHOWN=`shown${EVENT_KEY}`;const CLASS_NAME_FADE='fade';const CLASS_NAME_HIDE='hide';const CLASS_NAME_SHOW='show';const CLASS_NAME_SHOWING='showing';const DefaultType={animation:'boolean',autohide:'boolean',delay:'number'};const Default={animation:!0,autohide:!0,delay:5000};const SELECTOR_DATA_DISMISS='[data-bs-dismiss="toast"]';class Toast extends BaseComponent{constructor(element,config){super(element);this._config=this._getConfig(config);this._timeout=null;this._hasMouseInteraction=!1;this._hasKeyboardInteraction=!1;this._setListeners()}
static get DefaultType(){return DefaultType}
static get Default(){return Default}
static get NAME(){return NAME}
show(){const showEvent=EventHandler.trigger(this._element,EVENT_SHOW);if(showEvent.defaultPrevented){return}
this._clearTimeout();if(this._config.animation){this._element.classList.add(CLASS_NAME_FADE)}
const complete=()=>{this._element.classList.remove(CLASS_NAME_SHOWING);this._element.classList.add(CLASS_NAME_SHOW);EventHandler.trigger(this._element,EVENT_SHOWN);this._maybeScheduleHide()};this._element.classList.remove(CLASS_NAME_HIDE);reflow(this._element);this._element.classList.add(CLASS_NAME_SHOWING);this._queueCallback(complete,this._element,this._config.animation)}
hide(){if(!this._element.classList.contains(CLASS_NAME_SHOW)){return}
const hideEvent=EventHandler.trigger(this._element,EVENT_HIDE);if(hideEvent.defaultPrevented){return}
const complete=()=>{this._element.classList.add(CLASS_NAME_HIDE);EventHandler.trigger(this._element,EVENT_HIDDEN)};this._element.classList.remove(CLASS_NAME_SHOW);this._queueCallback(complete,this._element,this._config.animation)}
dispose(){this._clearTimeout();if(this._element.classList.contains(CLASS_NAME_SHOW)){this._element.classList.remove(CLASS_NAME_SHOW)}
super.dispose()}
_getConfig(config){config={...Default,...Manipulator.getDataAttributes(this._element),...(typeof config==='object'&&config?config:{})};typeCheckConfig(NAME,config,this.constructor.DefaultType);return config}
_maybeScheduleHide(){if(!this._config.autohide){return}
if(this._hasMouseInteraction||this._hasKeyboardInteraction){return}
this._timeout=setTimeout(()=>{this.hide()},this._config.delay)}
_onInteraction(event,isInteracting){switch(event.type){case 'mouseover':case 'mouseout':this._hasMouseInteraction=isInteracting;break;case 'focusin':case 'focusout':this._hasKeyboardInteraction=isInteracting;break}
if(isInteracting){this._clearTimeout();return}
const nextElement=event.relatedTarget;if(this._element===nextElement||this._element.contains(nextElement)){return}
this._maybeScheduleHide()}
_setListeners(){EventHandler.on(this._element,EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,()=>this.hide());EventHandler.on(this._element,EVENT_MOUSEOVER,event=>this._onInteraction(event,!0));EventHandler.on(this._element,EVENT_MOUSEOUT,event=>this._onInteraction(event,!1));EventHandler.on(this._element,EVENT_FOCUSIN,event=>this._onInteraction(event,!0));EventHandler.on(this._element,EVENT_FOCUSOUT,event=>this._onInteraction(event,!1))}
_clearTimeout(){clearTimeout(this._timeout);this._timeout=null}
static jQueryInterface(config){return this.each(function(){let data=Data.get(this,DATA_KEY);const _config=typeof config==='object'&&config;if(!data){data=new Toast(this,_config)}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError(`No method named "${config}"`)}
data[config](this)}})}}
defineJQueryPlugin(Toast);var index_umd={Alert,Button,Collapse,Dropdown,Modal,Offcanvas,Popover,ScrollSpy,Tab,Toast,Tooltip};return index_umd})))
;!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){function n(e){return r.raw?e:encodeURIComponent(e)}function o(e){return r.raw?e:decodeURIComponent(e)}function t(e,n){var o=r.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(i," ")),r.json?JSON.parse(e):e}catch(e){}}(e);return"function"==typeof n?n(o):o}var i=/\+/g,r=e.cookie=function(i,c,u){if(arguments.length>1&&"function"!=typeof c){if("number"==typeof(u=e.extend({},r.defaults,u)).expires){var f=u.expires,p=u.expires=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*f)}return document.cookie=[n(i),"=",function(e){return n(r.json?JSON.stringify(e):String(e))}(c),u.expires?"; expires="+u.expires.toUTCString():"",u.path?"; path="+u.path:"",u.domain?"; domain="+u.domain:"",u.secure?"; secure":""].join("")}for(var s=i?void 0:{},d=document.cookie?document.cookie.split("; "):[],a=0,l=d.length;a<l;a++){var m=d[a].split("="),x=o(m.shift()),y=m.join("=");if(i===x){s=t(y,c);break}i||void 0===(y=t(y))||(s[x]=y)}return s};r.defaults={},e.removeCookie=function(n,o){return e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n)}});
;/**
 * Owl Carousel v2.3.4
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
 */
/**
 * Owl carousel
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 * @todo Lazy Load Icon
 * @todo prevent animationend bubling
 * @todo itemsScaleUp
 * @todo Test Zepto
 * @todo stagePadding calculate wrong active classes
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates a carousel.
     * @class The Owl Carousel.
     * @public
     * @param {HTMLElement|jQuery} element - The element to create the carousel for.
     * @param {Object} [options] - The options
     */
    function Owl( element, options ) {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        margin: 0,
        stagePadding: 0,

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

        startPosition: 0,
        rtl: false,

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

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

        fallbackEasing: 'swing',
        slideTransition: '',

        info: false,

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

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

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

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

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

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

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

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

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

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

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

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

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

            repeat /= 2;

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

            this._clones = clones;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            this.refresh();

            return;
        }

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

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

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

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

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

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

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

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

        // register event handlers
        this.registerEventHandlers();

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

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

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

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

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

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

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

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

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

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

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

        return event.data;
    };

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

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

        this._invalidated = {};

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

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

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

        this.setup();

        this.optionsLogic();

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

        this.update();

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

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

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

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

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

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

        this.enter( 'resizing' );

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

        this.invalidate( 'width' );

        this.refresh();

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

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

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

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

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

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

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

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

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

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

        this.speed( 0 );

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

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

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

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

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

            event.preventDefault();

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

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

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

        event.preventDefault();

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

        this._drag.stage.current = stage;

        this.animate( stage.x );
    };

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

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

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

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

            this._drag.direction = direction;

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

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

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

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

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

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

        return position;
    };

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

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

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

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

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

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

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

        position = this.normalize( position );

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

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

            this._current = position;

            this.invalidate( 'position' );

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

        return this._current;
    };

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

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

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

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

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

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

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

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

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

        return position;
    };

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return this._speed;
    };

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

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

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

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

        coordinate = Math.ceil( coordinate );

        return coordinate;
    };

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        this.invalidate( 'items' );
    };

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

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

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

        content = this.prepare( content );

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

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

        this.invalidate( 'items' );

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

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

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

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

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

        this.invalidate( 'items' );

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return event;
    };

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    };

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

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

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

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

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

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

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

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

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

/**
 * AutoRefresh Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the auto refresh plugin.
     * @class The Auto Refresh Plugin
     * @param {Owl} carousel - The Owl Carousel
     */
    var AutoRefresh = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

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

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

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

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

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

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

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

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

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

        this._visible = !this._visible;

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

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

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

        window.clearInterval( this._interval );

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

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

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

/**
 * Lazy Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the lazy plugin.
     * @class The Lazy Plugin
     * @param {Owl} carousel - The Owl Carousel
     */
    var Lazy = function ( carousel ) {

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

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

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

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

                if ( ( e.property && e.property.name == 'position' ) || e.type == 'initialized' ) {
                    var settings = this._core.settings,
                        n = ( settings.center && Math.ceil( settings.items / 2 ) || settings.items ),
                        i = ( ( settings.center && n * -1 ) || 0 ),
                        position = ( e.property && e.property.value !== undefined ? e.property.value : this._core.current() ) + i,
                        clones = this._core.clones().length,
                        load = $.proxy( function ( i, v ) { this.load( v ) }, this );
                    //TODO: Need documentation for this new option
                    if ( settings.lazyLoadEager > 0 ) {
                        n += settings.lazyLoadEager;
                        // If the carousel is looping also preload images that are to the "left"
                        if ( settings.loop ) {
                            position -= settings.lazyLoadEager;
                            n++;
                        }
                    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * AutoHeight Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the auto height plugin.
     * @class The Auto Height Plugin
     * @param {Owl} carousel - The Owl Carousel
     */
    var AutoHeight = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

        this._previousHeight = null;

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

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

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

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

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

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

    };

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

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

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

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

        if ( maxheight <= 1 && lazyLoadEnabled && this._previousHeight ) {
            maxheight = this._previousHeight;
        }

        this._previousHeight = maxheight;

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

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

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

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

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

/**
 * Video Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the video plugin.
     * @class The Video Plugin
     * @param {Owl} carousel - The Owl Carousel
     */
    var Video = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

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

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

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

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

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

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

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

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

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

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

        if ( url ) {

            /*
                Parses the id's out of the following urls (and probably more):
                https://www.youtube.com/watch?v=:id
                https://youtu.be/:id
                https://vimeo.com/:id
                https://vimeo.com/channels/:channel/:id
                https://vimeo.com/groups/:group/videos/:id
                https://app.vzaar.com/videos/:id
      
                Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
            */

            id = url.match( /(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/ );

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

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

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

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

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

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

        // wrap video content into owl-video-wrapper div
        target.wrap( $( '<div/>', {
            "class": "owl-video-wrapper",
            "style": dimensions
        } ) );

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

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

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

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

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

        if ( this._playing ) {
            return;
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * Animate Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the animate plugin.
     * @class The Navigation Plugin
     * @param {Owl} scope - The Owl Carousel
     */
    var Animate = function ( scope ) {
        this.core = scope;
        this.core.options = $.extend( {}, Animate.Defaults, this.core.options );
        this.swapping = true;
        this.previous = undefined;
        this.next = undefined;

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

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

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

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

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

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

        this.core.speed( 0 );

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

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

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

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

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

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

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

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

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

/**
 * Autoplay Plugin
 * @version 2.3.4
 * @author Bartosz Wojciechowski
 * @author Artus Kolanowski
 * @author David Deutsch
 * @author Tom De Caluwé
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    /**
     * Creates the autoplay plugin.
     * @class The Autoplay Plugin
     * @param {Owl} scope - The Owl Carousel
     */
    var Autoplay = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        this.stop();

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

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

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

/**
 * Navigation Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {
    'use strict';

    /**
     * Creates the navigation plugin.
     * @class The Navigation Plugin
     * @param {Owl} carousel - The Owl Carousel.
     */
    var Navigation = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            e.preventDefault();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return position;
    };

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

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

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

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

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

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

/**
 * Hash Plugin
 * @version 2.3.4
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {
    'use strict';

    /**
     * Creates the hash plugin.
     * @class The Hash Plugin
     * @param {Owl} carousel - The Owl Carousel
     */
    var Hash = function ( carousel ) {
        /**
         * Reference to the core.
         * @protected
         * @type {Owl}
         */
        this._core = carousel;

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

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

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

                    if ( !hash ) {
                        return;
                    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * Support Plugin
 *
 * @version 2.3.4
 * @author Vivid Planet Software GmbH
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
; ( function ( $, window, document, undefined ) {

    var style = $( '<support>' ).get( 0 ).style,
        prefixes = 'Webkit Moz O ms'.split( ' ' ),
        events = {
            transition: {
                end: {
                    WebkitTransition: 'webkitTransitionEnd',
                    MozTransition: 'transitionend',
                    OTransition: 'oTransitionEnd',
                    transition: 'transitionend'
                }
            },
            animation: {
                end: {
                    WebkitAnimation: 'webkitAnimationEnd',
                    MozAnimation: 'animationend',
                    OAnimation: 'oAnimationEnd',
                    animation: 'animationend'
                }
            }
        },
        tests = {
            csstransforms: function () {
                return !!test( 'transform' );
            },
            csstransforms3d: function () {
                return !!test( 'perspective' );
            },
            csstransitions: function () {
                return !!test( 'transition' );
            },
            cssanimations: function () {
                return !!test( 'animation' );
            }
        };

    function test( property, prefixed ) {
        var result = false,
            upper = property.charAt( 0 ).toUpperCase() + property.slice( 1 );

        $.each( ( property + ' ' + prefixes.join( upper + ' ' ) + upper ).split( ' ' ), function ( i, property ) {
            if ( style[ property ] !== undefined ) {
                result = prefixed ? property : true;
                return false;
            }
        } );

        return result;
    }

    function prefixed( property ) {
        return test( property, true );
    }

    if ( tests.csstransitions() ) {
        /* jshint -W053 */
        $.support.transition = new String( prefixed( 'transition' ) )
        $.support.transition.end = events.transition.end[ $.support.transition ];
    }

    if ( tests.cssanimations() ) {
        /* jshint -W053 */
        $.support.animation = new String( prefixed( 'animation' ) )
        $.support.animation.end = events.animation.end[ $.support.animation ];
    }

    if ( tests.csstransforms() ) {
        /* jshint -W053 */
        $.support.transform = new String( prefixed( 'transform' ) );
        $.support.transform3d = tests.csstransforms3d();
    }

} )( window.Zepto || window.jQuery, window, document );
;/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!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})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(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;function 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}));
;/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!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,Array.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=Array.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.st.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).trigger('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;if(!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).trigger('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;var 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}}});var 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()});
;var js_porto_vars={"rtl":"","theme_url":"https:\/\/optimuspet.com\/wp-content\/themes\/optimus","ajax_url":"https:\/\/optimuspet.com\/wp-admin\/admin-ajax.php","change_logo":"1","container_width":"960","grid_gutter_width":"30","show_sticky_header":"1","show_sticky_header_tablet":"1","show_sticky_header_mobile":"1","ajax_loader_url":"\/\/optimuspet.com\/wp-content\/themes\/porto\/images\/ajax-loader@2x.gif","category_ajax":"","compare_popup":"","compare_popup_title":"","prdctfltr_ajax":"","slider_loop":"1","slider_autoplay":"1","slider_autoheight":"","slider_speed":"5000","slider_nav":"","slider_nav_hover":"1","slider_margin":"","slider_dots":"1","slider_animatein":"","slider_animateout":"","product_thumbs_count":"4","product_zoom":"1","product_zoom_mobile":"1","product_image_popup":"1","zoom_type":"inner","zoom_scroll":"1","zoom_lens_size":"200","zoom_lens_shape":"square","zoom_contain_lens":"1","zoom_lens_border":"1","zoom_border_color":"#888888","zoom_border":"0","screen_lg":"990","mfp_counter":"%curr% of %total%","mfp_img_error":"<a href=\"%url%\">The image<\/a> could not be loaded.","mfp_ajax_error":"<a href=\"%url%\">The content<\/a> could not be loaded.","popup_close":"Close","popup_prev":"Previous","popup_next":"Next","request_error":"The requested content cannot be loaded.<br\/>Please try again later.","loader_text":"Loading...","submenu_back":"Back","porto_nonce":"37c0172dd0","use_skeleton_screen":[],"user_edit_pages":""}
;if(!String.prototype.endsWith){String.prototype.endsWith=function(search,this_len){if(this_len===undefined||this_len>this.length){this_len=this.length}
return this.substring(this_len-search.length,this_len)===search}}
if(window.NodeList&&!NodeList.prototype.forEach){NodeList.prototype.forEach=Array.prototype.forEach}
if(!String.prototype.trim){String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'')}}(function($,sr){'use strict';var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)
func.apply(obj,args);timeout=null}
if(timeout&&timeout.val)
theme.deleteTimeout(timeout);else if(execAsap)
func.apply(obj,args);timeout=theme.requestTimeout(delayed,threshold||100)}};jQuery.fn[sr]=function(fn){return fn?this.on('resize',debounce(fn)):this.trigger(sr)}})(jQuery,'smartresize');jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b}});(function($){$.fn.visible=function(partial,hidden,direction,container){if(this.length<1)
return;var $t=this.length>1?this.eq(0):this,isContained=typeof container!=='undefined'&&container!==null,$w=isContained?$(container):$(window),wPosition=isContained?$w.position():0,t=$t.get(0),vpWidth=$w.outerWidth(),vpHeight=$w.outerHeight(),direction=(direction)?direction:'both',clientSize=hidden===!0?t.offsetWidth*t.offsetHeight:!0;if(typeof t.getBoundingClientRect==='function'){var rec=t.getBoundingClientRect(),tViz=isContained?rec.top-wPosition.top>=0&&rec.top<vpHeight+wPosition.top:rec.top>=0&&rec.top<vpHeight,bViz=isContained?rec.bottom-wPosition.top>0&&rec.bottom<=vpHeight+wPosition.top:rec.bottom>0&&rec.bottom<=vpHeight,lViz=isContained?rec.left-wPosition.left>=0&&rec.left<vpWidth+wPosition.left:rec.left>=0&&rec.left<vpWidth,rViz=isContained?rec.right-wPosition.left>0&&rec.right<vpWidth+wPosition.left:rec.right>0&&rec.right<=vpWidth,vVisible=partial?tViz||bViz:tViz&&bViz,hVisible=partial?lViz||rViz:lViz&&rViz;if(direction==='both')
return clientSize&&vVisible&&hVisible;else if(direction==='vertical')
return clientSize&&vVisible;else if(direction==='horizontal')
return clientSize&&hVisible}else{var viewTop=isContained?0:wPosition,viewBottom=viewTop+vpHeight,viewLeft=$w.scrollLeft(),viewRight=viewLeft+vpWidth,position=$t.position(),_top=position.top,_bottom=_top+$t.height(),_left=position.left,_right=_left+$t.width(),compareTop=partial===!0?_bottom:_top,compareBottom=partial===!0?_top:_bottom,compareLeft=partial===!0?_right:_left,compareRight=partial===!0?_left:_right;if(direction==='both')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop))&&((compareRight<=viewRight)&&(compareLeft>=viewLeft));else if(direction==='vertical')
return!!clientSize&&((compareBottom<=viewBottom)&&(compareTop>=viewTop));else if(direction==='horizontal')
return!!clientSize&&((compareRight<=viewRight)&&(compareLeft>=viewLeft))}}})(jQuery);window.theme={};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{rtl:js_porto_vars.rtl=='1'?!0:!1,rtl_browser:$('html').hasClass('browser-rtl'),ajax_url:js_porto_vars.ajax_url,request_error:js_porto_vars.request_error,change_logo:js_porto_vars.change_logo=='1'?!0:!1,show_sticky_header:js_porto_vars.show_sticky_header=='1'?!0:!1,show_sticky_header_tablet:js_porto_vars.show_sticky_header_tablet=='1'?!0:!1,show_sticky_header_mobile:js_porto_vars.show_sticky_header_mobile=='1'?!0:!1,category_ajax:js_porto_vars.category_ajax=='1'?!0:!1,prdctfltr_ajax:js_porto_vars.prdctfltr_ajax=='1'?!0:!1,container_width:parseInt(js_porto_vars.container_width),grid_gutter_width:parseInt(js_porto_vars.grid_gutter_width),screen_lg:parseInt(js_porto_vars.screen_lg),slider_loop:js_porto_vars.slider_loop=='1'?!0:!1,slider_autoplay:js_porto_vars.slider_autoplay=='1'?!0:!1,slider_autoheight:js_porto_vars.slider_autoheight=='1'?!0:!1,slider_speed:js_porto_vars.slider_speed?js_porto_vars.slider_speed:5000,slider_nav:js_porto_vars.slider_nav=='1'?!0:!1,slider_nav_hover:js_porto_vars.slider_nav_hover=='1'?!0:!1,slider_margin:js_porto_vars.slider_margin=='1'?40:0,slider_dots:js_porto_vars.slider_dots=='1'?!0:!1,slider_animatein:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:'',slider_animateout:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',product_thumbs_count:js_porto_vars.product_thumbs_count?js_porto_vars.product_thumbs_count:4,product_zoom:js_porto_vars.product_zoom=='1'?!0:!1,product_zoom_mobile:js_porto_vars.product_zoom_mobile=='1'?!0:!1,product_image_popup:js_porto_vars.product_image_popup=='1'?'fadeOut':!1,animation_support:!$('html').hasClass('no-csstransitions')&&window.innerWidth>767,owlConfig:{rtl:js_porto_vars.rtl=='1'?!0:!1,loop:js_porto_vars.slider_loop=='1'?!0:!1,autoplay:js_porto_vars.slider_autoplay=='1'?!0:!1,autoHeight:js_porto_vars.slider_autoheight=='1'?!0:!1,autoplayTimeout:js_porto_vars.slider_speed?js_porto_vars.slider_speed:7000,autoplayHoverPause:!0,lazyLoad:!0,nav:js_porto_vars.slider_nav=='1'?!0:!1,navText:["",""],dots:js_porto_vars.slider_dots=='1'?!0:!1,stagePadding:(js_porto_vars.slider_nav_hover!='1'&&js_porto_vars.slider_margin=='1')?40:0,animateOut:js_porto_vars.slider_animateout?js_porto_vars.slider_animateout:'',animateIn:js_porto_vars.slider_animatein?js_porto_vars.slider_animatein:''},sticky_nav_height:0,is_device_mobile:/(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|phone)|xda|xiino/i.test(navigator.userAgent||navigator.vendor||window.opera)||/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((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)),getScrollbarWidth:function(){if(this.scrollbarSize===undefined){this.scrollbarSize=window.innerWidth-document.documentElement.clientWidth}
return this.scrollbarSize},isTablet:function(){if(window.innerWidth<992)
return!0;return!1},isMobile:function(){if(window.innerWidth<=480)
return!0;return!1},isIOS:function(){return['iPad Simulator','iPhone Simulator','iPod Simulator','iPad','iPhone','iPod'].includes(navigator.platform)||(navigator.userAgent.includes("Mac")&&"ontouchend" in document)},refreshVCContent:function($elements){if($elements||$(document.body).hasClass('elementor-page')){$(window).trigger('resize')}
theme.refreshStickySidebar(!0);if(typeof window.vc_js=='function')
window.vc_js();$(document.body).trigger('porto_refresh_vc_content',[$elements])},adminBarHeight:function(){if(theme.adminBarHeightNum||0===theme.adminBarHeightNum){return theme.adminBarHeightNum}
var obj=document.getElementById('wpadminbar'),fixed_top=$('.porto-scroll-progress.fixed-top');if(fixed_top.length){theme.adminBarHeightNum=fixed_top.height()}else{theme.adminBarHeightNum=0}
if(obj&&obj.offsetHeight&&window.innerWidth>600){theme.adminBarHeightNum+=obj.offsetHeight}
return theme.adminBarHeightNum},refreshStickySidebar:function(timeout){var $sticky_sidebar=$('.sidebar [data-plugin-sticky]');if($sticky_sidebar.get(0)){if(timeout){theme.requestTimeout(function(){$sticky_sidebar.trigger('recalc.pin')},400)}else{$sticky_sidebar.trigger('recalc.pin')}}},scrolltoContainer:function($container,timeout){if($container.get(0)){if(window.innerWidth<992){$('.sidebar-overlay').trigger('click')}
if(!timeout){timeout=600}
$('html, body').stop().animate({scrollTop:$container.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height-18},timeout,'easeOutQuad')}},requestFrame:function(fn){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,1000/60)}
var rt=new Object()
rt.val=handler(fn);return rt},requestTimeout:function(fn,delay){var handler=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;if(!handler){return setTimeout(fn,delay)}
var start,rt=new Object();function loop(timestamp){if(!start){start=timestamp}
var progress=timestamp-start;progress>=delay?fn.call():rt.val=handler(loop)};rt.val=handler(loop);return rt},deleteTimeout:function(timeoutID){if(!timeoutID){return}
var handler=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame;if(!handler){return clearTimeout(timeoutID)}
if(timeoutID.val){return handler(timeoutID.val)}},execPluginFunction:function(functionName,context){var args=Array.prototype.slice.call(arguments,2);var namespaces=functionName.split(".");var func=namespaces.pop();for(var i=0;i<namespaces.length;i++){context=context[namespaces[i]]}
return context[func].apply(context,args)},getOptions:function(opts){if(typeof(opts)=='object'){return opts}else if(typeof(opts)=='string'){try{return JSON.parse(opts.replace(/'/g,'"').replace(';',''))}catch(e){return{}}}else{return{}}},mergeOptions:function(obj1,obj2){var obj3={};for(var attrname in obj1){obj3[attrname]=obj1[attrname]}
for(var attrname in obj2){obj3[attrname]=obj2[attrname]}
return obj3},intObs:function(selector,functionName,accY){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector)}else{$el=selector}
var intersectionObserverOptions={rootMargin:'200px'}
if(typeof accY!='undefined'){intersectionObserverOptions.rootMargin='0px 0px '+Number(accY)+'px 0px'}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){var $this=$(entry.target),opts;if(typeof functionName=='string'){var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;theme.execPluginFunction(functionName,$this,opts)}else{var callback=functionName;callback.call($this)}
observer.unobserve(entry.target)}}},intersectionObserverOptions);Array.prototype.forEach.call($el,function(obj){observer.observe(obj)})},dynIntObsInit:function(selector,functionName,pluginDefaults){var $el;if(typeof selector=='string'){$el=document.querySelectorAll(selector)}else{$el=selector}
Array.prototype.forEach.call($el,function(obj){var $this=$(obj),opts;if($this.data('observer-init')){return}
var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;var mergedPluginDefaults=theme.mergeOptions(pluginDefaults,opts)
var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px',thresholds:0}
if(mergedPluginDefaults.accY){intersectionObserverOptions.rootMargin='0px 0px '+Number(mergedPluginDefaults.accY)+'px 0px'}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){theme.execPluginFunction(functionName,$this,mergedPluginDefaults);observer.unobserve(entry.target)}}},intersectionObserverOptions);observer.observe(obj);$this.data('observer-init',!0)})}});if(theme.isIOS()){document.body.classList.add('ios')}}).apply(this,[window.theme,jQuery]);!function(){"use strict";if("object"==typeof window)if("IntersectionObserver" in window&&"IntersectionObserverEntry" in window&&"intersectionRatio" in window.IntersectionObserverEntry.prototype)"isIntersecting" in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,o=i(e);o;)o=i(e=o.ownerDocument);return e}(),e=[],o=null,n=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,o){n=t&&o?l(t,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach(function(t){t._checkForIntersections()})}),o},s._resetCrossOriginUpdater=function(){o=null,n=null},s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,o){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==o[e-1]})},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var o=e.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(h(o,"resize",n,!0),h(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver" in o&&(s=new o.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(r&&t.clearInterval(r),c(t,"resize",n,!0)),c(e,"scroll",n,!0),s&&s.disconnect()});var u=this.root&&(this.root.ownerDocument||this.root)||t;if(e!=u){var a=i(e);a&&this._monitorIntersections(a.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var o=this._monitoringDocuments.indexOf(e);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var o=t.element.ownerDocument;if(o==e)return!0;for(;o&&o!=n;){var r=i(o);if((o=r&&r.ownerDocument)==e)return!0}return!1})){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),e!=n){var s=i(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||n){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var i=n.element,s=u(i),h=this._rootContainsTarget(i),c=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=null;this._rootContainsTarget(i)?o&&!this.root||(l=e):l={top:0,bottom:0,left:0,right:0,width:0,height:0};var f=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:l,intersectionRect:a});c?t&&h?this._hasCrossedThreshold(c,f)&&this._queuedEntries.push(f):c&&c.isIntersecting&&this._queuedEntries.push(f):this._queuedEntries.push(f)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,i,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,c,a,f,d,g,m,v=i,_=p(e),b=!1;!b&&_;){var w=null,y=1==_.nodeType?window.getComputedStyle(_):{};if("none"==y.display)return null;if(_==this.root||9==_.nodeType)if(b=!0,_==this.root||_==t)o&&!this.root?!n||0==n.width&&0==n.height?(_=null,w=null,v=null):w=n:w=r;else{var I=p(_),E=I&&u(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(_=I,w=l(E,T)):(_=null,v=null)}else{var R=_.ownerDocument;_!=R.body&&_!=R.documentElement&&"visible"!=y.overflow&&(w=u(_))}if(w&&(s=w,h=v,c=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,c=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-c,v=(g=d-f)>=0&&m>=0&&{top:c,bottom:a,left:f,right:d,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},s.prototype._getRootRect=function(){var e;if(this.root&&!d(this.root))e=u(this.root);else{var o=d(this.root)?this.root:t,n=o.documentElement,i=o.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,o){return"px"==e.unit?e.value:e.value*(o%2?t.width:t.height)/100}),o={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return o.width=o.right-o.left,o.height=o.bottom-o.top,o},s.prototype._hasCrossedThreshold=function(t,e){var o=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(o!==n)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==o||r==n||r<o!=r<n)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){var o=this.root&&(this.root.ownerDocument||this.root)||t;return f(o,e)&&(!this.root||o==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,o=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;this.intersectionRatio=o?Number((i/o).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var o,n,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(o=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){o(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,o,n){"function"==typeof t.addEventListener?t.addEventListener(e,o,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,o)}function c(t,e,o,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,o,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,o)}function u(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x" in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var o=e.top-t.top,n=e.left-t.left;return{top:o,left:n,height:e.height,width:e.width,bottom:o+e.height,right:n+e.width}}function f(t,e){for(var o=e;o;){if(o==t)return!0;o=p(o)}return!1}function p(e){var o=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function d(t){return t&&9===t.nodeType}}();(function($){'use strict';$.extend({browserSelector:function(){var hasTouch='ontouchstart' in window||navigator.msMaxTouchPoints;var u=navigator.userAgent,ua=u.toLowerCase(),is=function(t){return ua.indexOf(t)>-1},g='gecko',w='webkit',s='safari',o='opera',h=document.documentElement,b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+parseFloat(navigator.appVersion.split("MSIE")[1])):is('firefox/2')?g+' ff2':is('firefox/3.5')?g+' ff3 ff3_5':is('firefox/3')?g+' ff3':is('gecko/')?g:is('opera')?o+(/version\/(\d+)/.test(ua)?' '+o+RegExp.jQuery1:(/opera(\s|\/)(\d+)/.test(ua)?' '+o+RegExp.jQuery2:'')):is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('iron')?w+' iron':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.jQuery1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js'];var c=b.join(' ');if(theme.is_device_mobile){c+=' mobile'}
if(hasTouch){c+=' touch'}
h.className+=' '+c;var isIE11=!(window.ActiveXObject)&&"ActiveXObject" in window;if(isIE11){$('html').removeClass('gecko').addClass('ie ie11');return}}});$.browserSelector()})(jQuery);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordion';var Accordion=function($el,opts){return this.initialize($el,opts)};Accordion.defaults={};Accordion.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Accordion.defaults,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.collapse){return this}
var $el=this.options.wrapper,$collapse=$el.find('.collapse'),collapsible=$el.data('collapsible'),active_num=$el.data('active-tab');if($collapse.length>0){if($el.data('use-accordion')&&'yes'==$el.data('use-accordion')){$el.find('.collapse').attr('data-parent','#'+$el.attr('id'))}
if(collapsible=='yes'){$collapse.collapse({toggle:!1,parent:'#'+$el.attr('id')})}else if(!isNaN(active_num)&&active_num==parseInt(active_num)&&$el.find('.collapse').length>active_num){$el.find('.collapse').collapse({toggle:!1,parent:'#'+$el.attr('id')});$el.find('.collapse').eq(active_num-1).collapse('toggle')}else{$el.find('.collapse').collapse({parent:'#'+$el.attr('id')})}}
return this}};$.extend(theme,{Accordion:Accordion});$.fn.themeAccordion=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Accordion($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__accordionMenu';var AccordionMenu=function($el,opts){return this.initialize($el,opts)};AccordionMenu.defaults={};AccordionMenu.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},AccordionMenu.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,$el=this.options.wrapper;$el.find('li.menu-item.active').each(function(){var $this=$(this);if($this.find('> .arrow').get(0))
$this.find('> .arrow').trigger('click')});$el.on('click','.arrow',function(e){e.preventDefault();e.stopPropagation();var $this=$(this),$parent=$this.closest('li');if(typeof self.options.open_one!='undefined'){$parent.siblings('.open').children('.arrow').next().hide();$parent.siblings('.open').removeClass('open');$this.next().stop().toggle()}else{$this.next().stop().slideToggle()}
if($parent.hasClass('open')){$parent.removeClass('open')}else{$parent.addClass('open')}
return!1});return this}};$.extend(theme,{AccordionMenu:AccordionMenu});$.fn.themeAccordionMenu=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.AccordionMenu($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{lazyload_menu:function($el,menu_type){if(!js_porto_vars.lazyload_menu&&'mobile_menu'!=menu_type){return}
if(menu_type){var reload_menu=!1,menu_loaded_fn=function(data){if(!data){return}
var $data=$(data);if('mobile_menu'!=menu_type){$el.each(function(i){var $menu=$(this),$main_menu=$data.children('.mega-menu, .sidebar-menu').eq(i);if(!$main_menu.length){$main_menu=$data.find('.mega-menu, .sidebar-menu').eq(i)}
$menu.children('li.menu-item-has-children').each(function(index){var popup=$main_menu.children('li.menu-item-has-children').eq(index).children('.popup, .sub-menu');if(popup.hasClass('popup')){popup=popup.children('.inner')}
if(popup.length){if($(this).children('.popup').length){$(this).children('.popup').children('.inner').replaceWith(popup)}else if($menu.hasClass('overlay')){$(this).children('.sub-menu').remove();$(this).append(popup)}else{$(this).children('.sub-menu').replaceWith(popup)}}});if($menu.hasClass('mega-menu')){theme.MegaMenu.build($menu)}else{if($menu.hasClass('side-menu-accordion')){$menu.themeAccordionMenu({'open_one':!0})}else{theme.SidebarMenu.build($menu)}}
$menu.addClass('sub-ready').trigger('sub-loaded')})}
if($data.find('#nav-panel, #side-nav-panel').length||'mobile_menu'==menu_type){var lazyload_again=!1;if($('#nav-panel').length){var $menu_content=$data.find('.mobile-nav-wrap > *');if($menu_content.length){$('#nav-panel .mobile-nav-wrap > *').replaceWith($menu_content);$('#nav-panel .mobile-nav-wrap').removeClass('skeleton-body porto-ajax-loading');$('#nav-panel .accordion-menu').themeAccordionMenu()}else{lazyload_again=!0}}else if($('#side-nav-panel').length){var $menu_content=$data.find('.side-nav-panel-close');if($menu_content.length){$('#side-nav-panel').replaceWith($menu_content.parent());$('#side-nav-panel .accordion-menu').themeAccordionMenu()}else{lazyload_again=!0}}
if(lazyload_again&&!reload_menu){reload_menu=!0;lazyload_again=!1;$.post(window.location.href,{action:'porto_lazyload_menu',porto_lazyload_menu_2:1,menu_type:menu_type,nonce:js_porto_vars.porto_nonce},menu_loaded_fn)}}};$.post(window.location.href,{action:'porto_lazyload_menu',menu_type:menu_type,nonce:js_porto_vars.porto_nonce},menu_loaded_fn)}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__chartCircular';var ChartCircular=function($el,opts){return this.initialize($el,opts)};ChartCircular.defaults={accX:0,accY:-150,delay:1,barColor:'#0088CC',trackColor:'#f2f2f2',scaleColor:!1,scaleLength:5,lineCap:'round',lineWidth:13,size:175,rotate:0,animate:({duration:2500,enabled:!0})};ChartCircular.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},ChartCircular.defaults,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.easyPieChart){return this}
var self=this,$el=this.options.wrapper,value=this.options.percentValue?parseInt(this.options.percentValue):parseInt($el.attr('data-percent'),10),percentEl=$el.find('.percent');if(!value)value=1;var labelValue=this.options.labelValue?parseInt(this.options.labelValue,10):value;$.extend(!0,self.options,{onStep:function(from,to,currentValue){percentEl.html(parseInt(labelValue*currentValue/value))}});$el.attr('data-percent',0).easyPieChart(self.options);var handler;if(Number(self.options.delay)<=1000/60){handler=theme.requestFrame}else{handler=theme.requestTimeout}
handler(function(){if($el.data('easyPieChart')){$el.data('easyPieChart').update(value);$el.attr('data-percent',value)}},self.options.delay);return this}};$.extend(theme,{ChartCircular:ChartCircular});$.fn.themeChartCircular=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.ChartCircular($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__fitVideo';var FitVideo=function($el,opts){return this.initialize($el,opts)};FitVideo.defaults={};FitVideo.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},FitVideo.defaults,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.fitVids){return this}
var $el=this.options.wrapper;$el.fitVids();$(window).on('resize',function(){$el.fitVids()});return this}};$.extend(theme,{FitVideo:FitVideo});$.fn.themeFitVideo=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.FitVideo($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__videobackground';var PluginVideoBackground=function($el,opts){return this.initialize($el,opts)};PluginVideoBackground.defaults={overlay:!0,volume:1,playbackRate:1,muted:!0,loop:!0,autoplay:!0,position:'50% 50%',posterType:'detect'};PluginVideoBackground.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},PluginVideoBackground.defaults,opts,{path:this.$el.data('video-path'),wrapper:this.$el});return this},build:function(){if(!$.fn.vide||!this.options.path){return this}
if(this.options.overlay){this.options.wrapper.prepend($('<div />').addClass('video-overlay'))}
this.options.wrapper.vide(this.options.path,this.options);return this}};$.extend(theme,{PluginVideoBackground:PluginVideoBackground});$.fn.themePluginVideoBackground=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new PluginVideoBackground($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__flickrZoom';var FlickrZoom=function($el,opts){return this.initialize($el,opts)};FlickrZoom.defaults={};FlickrZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},FlickrZoom.defaults,opts,{wrapper:this.$el});return this},build:function(){var $el=this.options.wrapper,links=[],i=0,$flickr_links=$el.find('.flickr_badge_image > a');$flickr_links.each(function(){var slide={},$image=$(this).find('> img');slide.src=$image.attr('src').replace('_s.','_b.');slide.title=$image.attr('title');links[i]=slide;i++});$flickr_links.on('click',function(e){e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,{items:links,gallery:{enabled:!0},type:'image'}),$flickr_links.index($(this)))}});return this}};$.extend(theme,{FlickrZoom:FlickrZoom});$.fn.themeFlickrZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.FlickrZoom($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__lazyload';var PluginLazyLoad=function($el,opts){return this.initialize($el,opts)};PluginLazyLoad.defaults={effect:'show',appearEffect:'',appear:function(elements_left,settings){},load:function(elements_left,settings){$(this).addClass('lazy-load-loaded')}};PluginLazyLoad.prototype={initialize:function($el,opts){if(!$el.length){return this}
if(!$.fn.lazyload){return this}
var options=$.extend(!0,{},PluginLazyLoad.defaults,opts,{});return lazyload($el,options)}};$.extend(theme,{PluginLazyLoad:PluginLazyLoad});$.fn.themePluginLazyLoad=function(opts){var $this=$(this);if($this.data(instanceName)){return this}else{var ins=new PluginLazyLoad($.makeArray(this),opts);$this.data(instanceName,ins)}
return this}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var loadingOverlayTemplate=['<div class="loading-overlay">','<div class="loader"></div>','</div>'].join('');var LoadingOverlay=function($wrapper,options){return this.initialize($wrapper,options)};LoadingOverlay.prototype={options:{css:{}},initialize:function($wrapper,options){this.$wrapper=$wrapper;this.setVars().setOptions(options).build().events();this.$wrapper.data('loadingOverlay',this)},setVars:function(){this.$overlay=this.$wrapper.find('.loading-overlay');return this},setOptions:function(options){if(!this.$overlay.get(0)){this.matchProperties()}
this.options=$.extend(!0,{},this.options,options);this.loaderClass=this.getLoaderClass(this.options.css.backgroundColor);return this},build:function(){if(!this.$overlay.closest(document.documentElement).get(0)){if(!this.$cachedOverlay){this.$overlay=$(loadingOverlayTemplate).clone();if(this.options.css){this.$overlay.css(this.options.css);this.$overlay.find('.loader').addClass(this.loaderClass)}}else{this.$overlay=this.$cachedOverlay.clone()}
this.$wrapper.append(this.$overlay)}
if(!this.$cachedOverlay){this.$cachedOverlay=this.$overlay.clone()}
return this},events:function(){var _self=this;if(this.options.startShowing){_self.show()}
if(this.$wrapper.is('body')||this.options.hideOnWindowLoad){$(window).on('load error',function(){_self.hide()})}
if(this.options.listenOn){$(this.options.listenOn).on('loading-overlay:show beforeSend.ic',function(e){e.stopPropagation();_self.show()}).on('loading-overlay:hide complete.ic',function(e){e.stopPropagation();_self.hide()})}
this.$wrapper.on('loading-overlay:show beforeSend.ic',function(e){e.stopPropagation();_self.show()}).on('loading-overlay:hide complete.ic',function(e){e.stopPropagation();_self.hide()});return this},show:function(){this.build();this.position=this.$wrapper.css('position').toLowerCase();if(this.position!='relative'||this.position!='absolute'||this.position!='fixed'){this.$wrapper.css({position:'relative'})}
this.$wrapper.addClass('loading-overlay-showing')},hide:function(){var _self=this;this.$wrapper.removeClass('loading-overlay-showing');setTimeout(function(){if(this.position!='relative'||this.position!='absolute'||this.position!='fixed'){_self.$wrapper.css({position:''})}},500)},matchProperties:function(){var i,l,properties;properties=['backgroundColor','borderRadius'];l=properties.length;for(i=0;i<l;i++){var obj={};obj[properties[i]]=this.$wrapper.css(properties[i]);$.extend(this.options.css,obj)}},getLoaderClass:function(backgroundColor){if(!backgroundColor||backgroundColor==='transparent'||backgroundColor==='inherit'){return'black'}
var hexColor,r,g,b,yiq;var colorToHex=function(color){var hex,rgb;if(color.indexOf('#')>-1){hex=color.replace('#','')}else{rgb=color.match(/\d+/g);hex=('0'+parseInt(rgb[0],10).toString(16)).slice(-2)+('0'+parseInt(rgb[1],10).toString(16)).slice(-2)+('0'+parseInt(rgb[2],10).toString(16)).slice(-2)}
if(hex.length===3){hex=hex+hex}
return hex};hexColor=colorToHex(backgroundColor);r=parseInt(hexColor.substr(0,2),16);g=parseInt(hexColor.substr(2,2),16);b=parseInt(hexColor.substr(4,2),16);yiq=((r*299)+(g*587)+(b*114))/1000;return(yiq>=128)?'black':'white'}};$.extend(theme,{LoadingOverlay:LoadingOverlay});$.fn.loadingOverlay=function(opts){return this.each(function(){var $this=$(this);var loadingOverlay=$this.data('loadingOverlay');if(loadingOverlay){return loadingOverlay}else{var options=opts||$this.data('loading-overlay-options')||{};return new LoadingOverlay($this,options)}})}
$('body.loading-overlay-showing, [data-loading-overlay]').loadingOverlay()}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__masonry';var Masonry=function($el,opts){return this.initialize($el,opts)};Masonry.defaults={itemSelector:'li',isOriginLeft:!theme.rtl};Masonry.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Masonry.defaults,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.isotope){return this}
var self=this,$el=this.options.wrapper,trigger_timer=null;$el.isotope(this.options);$el.isotope('on','layoutComplete',function(){if(typeof this.options.callback=='function'){this.options.callback.call()}
if($el.find('.porto-lazyload:not(.lazy-load-loaded):visible').length){$(window).trigger('scroll')}});$el.isotope('layout');self.resize();$(window).smartresize(function(){self.resize()});return this},resize:function(){var self=this,$el=this.options.wrapper;if(self.resizeTimer){theme.deleteTimeout(self.resizeTimer)}
self.resizeTimer=theme.requestTimeout(function(){if($el.data('isotope')){$el.isotope('layout')}
delete self.resizeTimer},600)}};$.extend(theme,{Masonry:Masonry});$.fn.themeMasonry=function(opts){return this.map(function(){var $this=$(this);imagesLoaded(this,function(){if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Masonry($this,opts)}})})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__previewImage';var PreviewImage=function($el,opts){return this.initialize($el,opts)};PreviewImage.defaults={};PreviewImage.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},PreviewImage.defaults,opts,{wrapper:this.$el});return this},build:function(){var $el=this.options.wrapper,image=$el.data('image');if(image){$el.css('background-image','url('+image+')')}
return this}};$.extend(theme,{PreviewImage:PreviewImage});$.fn.themePreviewImage=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.PreviewImage($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var Toggle=function($el,opts){return this.initialize($el,opts)};Toggle.defaults={};Toggle.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Toggle.defaults,opts,{wrapper:this.$el});return this},build:function(){var $el=this.options.wrapper;if($el.hasClass('active'))
$el.find("> div.toggle-content").stop().slideDown(350,function(){$(this).attr('style','').show()});$el.on('click',"> label",function(e){var parentSection=$(this).parent(),parentWrapper=$(this).closest("div.toogle"),parentToggles=$(this).closest(".porto-toggles"),isAccordion=parentWrapper.hasClass("toogle-accordion"),toggleContent=parentSection.find("> div.toggle-content");if(isAccordion&&typeof(e.originalEvent)!="undefined"){parentWrapper.find("section.toggle.active > label").trigger("click")}
if(!parentSection.hasClass("active")){if(parentToggles.length){if(parentToggles.data('view')=='one-toggle'){parentToggles.find('.toggle').each(function(){$(this).removeClass('active');$(this).find("> div.toggle-content").stop().slideUp(350,function(){$(this).attr('style','').hide()})})}}
toggleContent.stop().slideDown(350,function(){$(this).attr('style','').show();theme.refreshVCContent(toggleContent)});parentSection.addClass("active")}else{if(!parentToggles.length||parentToggles.data('view')!='one-toggle'){toggleContent.stop().slideUp(350,function(){$(this).attr('style','').hide()});parentSection.removeClass("active")}}});return this}};$.extend(theme,{Toggle:Toggle});$.fn.themeToggle=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Toggle($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Parallax=function($el,opts){return this.initialize($el,opts)};Parallax.defaults={speed:1.5,horizontalPosition:'50%',offset:0,};Parallax.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Parallax.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,$window=$(window),offset,yPos,bgpos,background;background=$('<div class="parallax-background"></div>');var bg=self.options.wrapper.data('image-src')?'url('+self.options.wrapper.data('image-src')+')':self.options.wrapper.css('background-image');background.css({'background-image':bg,'background-size':'cover','background-position':'50% 0%','position':'absolute','top':0,'left':0,'width':'100%','height':self.options.speed*100+'%'});self.options.wrapper.prepend(background);self.options.wrapper.css({'position':'relative','overflow':'hidden'});if(self.options.wrapper.attr('data-parallax-type')){self.options.parallaxType='horizontal';background.css({'background-position':'0% 50%','width':self.options.speed*100+'%','height':'100%',})}
var parallaxEffectOnScrolResize=function(){var skrollr_size=100*self.options.speed,skrollr_start=-(skrollr_size-100);if(!self.options.parallaxType){background.attr("data-bottom-top","top: "+skrollr_start+"%;").attr("data-top-bottom","top: 0%;")}else{skrollr_start/=9.8;background.attr("data-bottom-top","left: "+skrollr_start+"%;").attr("data-top-bottom","left: 0%;")}}
if(!theme.is_device_mobile){parallaxEffectOnScrolResize()}else{if(self.options.enableOnMobile==!0){parallaxEffectOnScrolResize()}else{self.options.wrapper.addClass('parallax-disabled')}}
return this}};$.extend(theme,{Parallax:Parallax});$.fn.themeParallax=function(opts){if(typeof skrollr=='undefined'){return this}
var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Parallax($this,opts)}});if(theme.portoSkrollr){theme.portoSkrollr.refresh()}else if(!theme.is_device_mobile){theme.portoSkrollr=skrollr.init({forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return theme.is_device_mobile}})}
return obj}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$.fn.themePin=function(options){var scrollY=0,lastScrollY=0,elements=[],disabled=!1,$window=$(window),fixedSideTop=[],fixedSideBottom=[],prevDataTo=[];options=options||{};var recalculateLimits=function(){for(var i=0,len=elements.length;i<len;i++){var $this=elements[i];if(options.minWidth&&window.innerWidth<options.minWidth){if($this.parent().hasClass("pin-wrapper")){$this.unwrap()}
$this.css({width:"",left:"",top:"",position:""});if(options.activeClass){$this.removeClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');disabled=!0;continue}else{disabled=!1}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),offset=$this.offset(),containerOffset=$container.offset();if(typeof containerOffset=='undefined'){continue}
var parentOffset=$this.parent().offset();if(!$this.parent().hasClass("pin-wrapper")){$this.wrap("<div class='pin-wrapper'>");if($this.hasClass('elementor-element-populated')){var $el_cont=$this.closest('.elementor-container');if($el_cont.length){var matches=$el_cont.attr('class').match(/elementor-column-gap-([a-z]*)/g);if(matches&&matches.length){var gap=matches[0].replace('elementor-column-gap-','');$this.addClass('porto-gap-'+gap)}}}}
var pad=$.extend({top:0,bottom:0},options.padding||{});var $pin=$this.parent(),pt=parseInt($pin.parent().css('padding-top')),pb=parseInt($pin.parent().css('padding-bottom'));if(options.autoInit){if($('#header').hasClass('header-side')){pad.top=theme.adminBarHeight()}else{pad.top=theme.adminBarHeight();if($('#header > .main-menu-wrap').length||!$('#header').hasClass('sticky-menu-header')){pad.top+=theme.StickyHeader.sticky_height}}
if(typeof options.paddingOffsetTop!='undefined'){pad.top+=parseInt(options.paddingOffsetTop,10)}else{pad.top+=18}
if(typeof options.paddingOffsetBottom!='undefined'){pad.bottom=parseInt(options.paddingOffsetBottom,10)}else{pad.bottom=0}}
var bb=$this.css('border-bottom'),h=$this.outerHeight();$this.css('border-bottom','1px solid transparent');var o_h=$this.outerHeight()-h-1;$this.css('border-bottom',bb);$this.css({width:$this.outerWidth()<=$pin.width()?$this.outerWidth():$pin.width()});$pin.css("height",$this.outerHeight()+o_h);if((!options.autoFit&&!options.fitToBottom)||$this.outerHeight()<=$window.height()){$this.data("themePin",{pad:pad,from:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h})}else{$this.data("themePin",{pad:pad,fromFitTop:(options.containerSelector?containerOffset.top:offset.top)-pad.top+pt,from:(options.containerSelector?containerOffset.top:offset.top)+$this.outerHeight()-window.innerHeight+pt,pb:pb,parentTop:parentOffset.top-pt,offset:o_h})}}};var onScroll=function(){if(disabled){return}
scrollY=$window.scrollTop();var window_height=window.innerHeight||$window.height();for(var i=0,len=elements.length;i<len;i++){var $this=$(elements[i]),data=$this.data("themePin"),sidebarTop;if(!data||typeof data.pad=='undefined'){continue}
var $container=options.containerSelector?($this.closest(options.containerSelector).length?$this.closest(options.containerSelector):$(options.containerSelector)):$(document.body),isFitToTop=(!options.autoFit&&!options.fitToBottom)||($this.outerHeight()+data.pad.top)<=window_height;data.end=$container.offset().top+$container.height();if(isFitToTop){data.to=$container.offset().top+$container.height()-$this.outerHeight()-data.pad.bottom-data.pb}else{data.to=$container.offset().top+$container.height()-window_height-data.pb;data.to2=$container.height()-$this.outerHeight()-data.pad.bottom-data.pb}
if(prevDataTo[i]===0){prevDataTo[i]=data.to}
if(isFitToTop){var from=data.from-data.pad.bottom,to=data.to-data.pad.top-data.offset;if(typeof data.fromFitTop!='undefined'&&data.fromFitTop){from=data.fromFitTop-data.pad.bottom}
if(from+$this.outerHeight()>data.end||from>=to){$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue}
if(scrollY>from&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute')}else if(scrollY>=to){$this.css({left:"",top:to-data.parentTop+data.pad.top}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass)}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute')}else{$this.css({position:"",top:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute')}}else if(options.fitToBottom){var from=data.from,to=data.to;if(data.from+window_height>data.end||data.from>=to){$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute');continue}
if(scrollY>from&&scrollY<to){!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute')}else if(scrollY>=to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass)}
if($this.hasClass('sticky-absolute'))$this.addClass('sticky-transition');$this.addClass('sticky-absolute')}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass)}
$this.removeClass('sticky-transition');$this.removeClass('sticky-absolute')}}else{var this_height=$this.outerHeight()
if(prevDataTo[i]!=data.to){if(fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=!1}}
if((this_height+data.pad.top+data.pad.bottom)>window_height||fixedSideTop[i]||fixedSideBottom[i]){var padTop=parseInt($this.parent().parent().css('padding-top'));if(scrollY+data.pad.top-padTop<=data.parentTop){$this.css({position:"",top:"",bottom:"",left:""});fixedSideTop[i]=fixedSideBottom[i]=!1;if(options.activeClass){$this.removeClass(options.activeClass)}}else if(scrollY>=data.to){$this.css({left:"",top:data.to2,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass)}}else{if(scrollY>=lastScrollY){if(fixedSideTop[i]){fixedSideTop[i]=!1;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass)}}else if(!fixedSideBottom[i]&&this_height+$this.offset().top+data.pad.bottom<scrollY+window_height){fixedSideBottom[i]=!0;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,bottom:data.pad.bottom,top:""}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass)}}}else if(scrollY<lastScrollY){if(fixedSideBottom[i]){fixedSideBottom[i]=!1;sidebarTop=$this.offset().top-data.parentTop;$this.css({left:"",top:sidebarTop,bottom:""}).css("position","absolute");if(options.activeClass){$this.addClass(options.activeClass)}}else if(!fixedSideTop[i]&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=!0;!($this.css("position")=="fixed")&&$this.css({left:$this.offset().left,top:data.pad.top,bottom:''}).css("position","fixed");if(options.activeClass){$this.addClass(options.activeClass)}}else if(!fixedSideBottom[i]&&fixedSideTop[i]&&$this.css('position')=='absolute'&&$this.offset().top>=scrollY+data.pad.top){fixedSideTop[i]=!1}}}}else{if(scrollY>=(data.parentTop-data.pad.top)){$this.css({position:'fixed',top:data.pad.top})}else{$this.css({position:"",top:"",bottom:"",left:""});if(options.activeClass){$this.removeClass(options.activeClass)}}
fixedSideTop[i]=fixedSideBottom[i]=!1}}
prevDataTo[i]=data.to}
lastScrollY=scrollY};var update=function(){recalculateLimits();onScroll()},r_timer=null;this.each(function(){var $this=$(this),data=$this.data('themePin')||{};if(data&&data.update){return}
elements.push($this);$("img",this).one("load",function(){if(r_timer){theme.deleteTimeout(r_timer)}
r_timer=theme.requestFrame(recalculateLimits)});data.update=update;$this.data('themePin',data);fixedSideTop.push(!1);fixedSideBottom.push(!1);prevDataTo.push(0)});window.addEventListener('touchmove',onScroll,{passive:!0});window.addEventListener('scroll',onScroll,{passive:!0});recalculateLimits();if(!theme.isLoaded){$window.on('load',update)}
$(this).on('recalc.pin',function(){recalculateLimits();onScroll()});return this};theme=theme||{};var instanceName='__sticky';var Sticky=function($el,opts){return this.initialize($el,opts)};Sticky.defaults={autoInit:!1,minWidth:767,activeClass:'sticky-active',padding:{top:0,bottom:0},offsetTop:0,offsetBottom:0,autoFit:!1,fitToBottom:!1};Sticky.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Sticky.defaults,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.themePin){return this}
var self=this,$el=this.options.wrapper,stickyResizeTrigger;if($el.hasClass('porto-sticky-nav')){this.options.padding.top=theme.StickyHeader.sticky_height+theme.adminBarHeight();this.options.activeClass='sticky-active';this.options.containerSelector='.main-content-wrap';theme.sticky_nav_height=$el.outerHeight();if(this.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0}
$el.themePin(this.options);$(window).smartresize(function(){if(stickyResizeTrigger){clearTimeout(stickyResizeTrigger)}
stickyResizeTrigger=setTimeout(function(){$el.trigger('recalc.pin')},800);var $parent=$el.parent();$el.outerWidth($parent.width());if($el.css('position')=='fixed'){$el.css('left',$parent.offset().left)}
if($el.hasClass('porto-sticky-nav')){theme.sticky_nav_height=$el.outerHeight();if(self.options.minWidth>window.innerWidth)
theme.sticky_nav_height=0}});return this}};$.extend(theme,{Sticky:Sticky});$.fn.themeSticky=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){$this.trigger('recalc.pin');setTimeout(function(){$this.trigger('recalc.pin')},800);return $this.data(instanceName)}else{return new theme.Sticky($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document.body).on('click','.mobile-toggle',function(e){var $nav_panel=$('#nav-panel');if($nav_panel.length>0){if($(this).closest('.header-main').length&&$nav_panel.closest('.header-builder-p').length&&!$nav_panel.parent('.header-main').length){$nav_panel.appendTo($(this).closest('.header-main'))}
if($nav_panel.is(':visible')&&$('#header').hasClass('sticky-header')){var h_h=$('#header').height(),p_h=$nav_panel.outerHeight();if(h_h>p_h+30){$('#header').css('height',h_h-p_h)}}
$nav_panel.stop().slideToggle()}else if($('#side-nav-panel').length>0){$('html').toggleClass('panel-opened');$('.panel-overlay').toggleClass('active')}
if($('#nav-panel .skeleton-body, #side-nav-panel .skeleton-body').length){theme.lazyload_menu(1,'mobile_menu')}
e.preventDefault()});$(document.body).on('click','.panel-overlay',function(){$('html').css('transition','margin .3s').removeClass('panel-opened');theme.requestTimeout(function(){$('html').css('transition','')},260);$(this).removeClass('active')});$(document.body).on('click','#side-nav-panel .side-nav-panel-close',function(e){e.preventDefault();$('.panel-overlay').trigger('click')});$(window).on('resize',function(){if(window.innerWidth>991){$('#nav-panel').hide();if($('html').hasClass('panel-opened')){$('.panel-overlay').trigger('click')}}})})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';$(function(){$(document).on('click','.blog-like, .portfolio-like',function(e){e.preventDefault();var $this=$(this),parentObj=this.parentNode,item_id=$this.attr('data-id'),is_blog=$this.hasClass('blog-like'),sendData={nonce:js_porto_vars.porto_nonce};if(is_blog){if($this.hasClass('updating')){return!1}
$this.addClass('updating').text('...');sendData.blog_id=item_id;sendData.action='porto_blog-like'}else{sendData.portfolio_id=item_id;sendData.action='porto_portfolio-like'}
$.post(theme.ajax_url,sendData,function(data){if(data){$this.remove();parentObj.innerHTML=data;if(typeof bootstrap!='undefined'){var tooltipTriggerList=[].slice.call(parentObj.querySelectorAll('[data-bs-tooltip]'));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)})}}});return!1})})}).apply(this,[window.theme,jQuery]);var scrolltotop={setting:{startline:100,scrollto:0,scrollduration:1000,fadeduration:[500,100]},controlHTML:'<img src="assets/img/up.png" style="width:40px; height:40px" />',controlattrs:{offsetx:10,offsety:10},anchorkeyword:'#top',state:{isvisible:!1,shouldvisible:!1},scrollup:function(){if(!this.cssfixedsupport)
this.$control.css({opacity:0});var dest=isNaN(this.setting.scrollto)?this.setting.scrollto:parseInt(this.setting.scrollto);if(typeof dest=="string"&&jQuery('#'+dest).length==1)
dest=jQuery('#'+dest).offset().top;else dest=0;this.$body.stop().animate({scrollTop:dest},this.setting.scrollduration)},keepfixed:function(){var $window=jQuery(window);var controlx=$window.scrollLeft()+$window.width()-this.$control.width()-this.controlattrs.offsetx;var controly=$window.scrollTop()+$window.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:controlx+'px',top:controly+'px'})},togglecontrol:function(){var scrolltop=jQuery(window).scrollTop();if(!this.cssfixedsupport)
this.keepfixed();this.state.shouldvisible=(scrolltop>=this.setting.startline)?!0:!1;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=!0}else if(this.state.shouldvisible==!1&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=!1}},init:function(){jQuery(document).ready(function($){var mainobj=scrolltotop;var iebrws=document.all;mainobj.cssfixedsupport=!iebrws||iebrws&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest
mainobj.$body=(window.opera)?(document.compatMode=="CSS1Compat"?$('html'):$('body')):$('html,body');mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>').css({position:mainobj.cssfixedsupport?'fixed':'absolute',bottom:mainobj.controlattrs.offsety,opacity:0,cursor:'pointer'}).attr({title:''}).on('click',function(){mainobj.scrollup();return!1}).appendTo('body');if(document.all&&!window.XMLHttpRequest&&mainobj.$control.text()!='')
mainobj.$control.css({width:mainobj.$control.width()});mainobj.togglecontrol();$('a[href="'+mainobj.anchorkeyword+'"]').on('click',function(){mainobj.scrollup();return!1});$(window).on('scroll resize',function(e){mainobj.togglecontrol()})})}};(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{ScrollToTop:{defaults:{html:'<i class="fas fa-chevron-up"></i>',offsetx:10,offsety:0},initialize:function(html,offsetx,offsety){if($('#topcontrol').length){return this}
this.html=(html||this.defaults.html);this.offsetx=(offsetx||this.defaults.offsetx);this.offsety=(offsety||this.defaults.offsety);this.build();return this},build:function(){var self=this;if(typeof scrolltotop!=='undefined'){scrolltotop.controlHTML=self.html;scrolltotop.controlattrs={offsetx:self.offsetx,offsety:self.offsety};scrolltotop.init()}
return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{MegaMenu:{defaults:{menu:$('.mega-menu')},initialize:function($menu){this.$menu=($menu||this.defaults.menu);this.build().events();return this},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width}
return popupWidth},calcMenuPosition:function(menu_obj){var menu=menu_obj,$header_container=$('#header .header-main').hasClass('elementor-section')?$('#header .header-main > .elementor-container'):($("#header .header-main .container-fluid").length?$("#header .header-main .container-fluid"):($("#header .header-main .container").length?$("#header .header-main .container"):null));if(null===$header_container||!$header_container.length){return}
var menuContainerWidth=$header_container.outerWidth()-parseInt($header_container.css('padding-left'))-parseInt($header_container.css('padding-right'));if(menuContainerWidth<900)return;if(menu.parent().hasClass('pos-fullwidth')){menu.get(0).style.width=menuContainerWidth+'px'}
var browserWidth=theme.bodyWidth,menuLeftPos=menu.offset().left-(browserWidth-menuContainerWidth)/2;if(window.theme.rtl){menuLeftPos=theme.bodyWidth-(menu.offset().left+menu.outerWidth())-(browserWidth-menuContainerWidth)/2}
var menuWidth=menu.width(),remainWidth=menuContainerWidth-(menuLeftPos+menuWidth),l=!1;if(menuLeftPos>remainWidth&&menuLeftPos<menuWidth){l=(menuLeftPos+remainWidth)/3}
if(remainWidth<0){l=-remainWidth}
return l},build:function($menu){var self=this;if(!$menu){$menu=self.$menu}
$menu.each(function(){var $menu=$(this),$menu_container=$menu.closest('.container'),container_width=self.popupWidth();if($menu.closest('.porto-popup-menu').length){return!1}
var $menu_items=$menu.children('li.has-sub');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0);popup_obj.style.display='block';if($menu_item.hasClass('wide')){popup_obj.style.left=0;var padding=parseInt($popup.css('padding-left'))+parseInt($popup.css('padding-right'))+parseInt($popup.find('> .inner').css('padding-left'))+parseInt($popup.find('> .inner').css('padding-right'));var row_number=4;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).attr('data-cols'));if(cols<=0||!cols)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&popup_max_width<container_width){col_width=parseInt(popup_max_width)/row_number}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else this.style.width=(100/row_number*cols)+'%'});if($menu_item.hasClass('pos-center')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';var left_position=$popup.offset().left-(theme.bodyWidth-col_width*col_length)/2;popup_obj.style.left='-'+left_position+'px'}else if($menu_item.hasClass('pos-left')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.left='-15px'}else if($menu_item.hasClass('pos-right')){$popup.find('> .inner > ul').get(0).style.width=(col_width*col_length-padding)+'px';popup_obj.style.right='-15px';popup_obj.style.left='auto'}else{if(!$menu_item.hasClass('pos-fullwidth')){$popup.find('> .inner > ul').get(0).style.width=(container_width-padding)+'px'}
if(theme.rtl){popup_obj.style.right=0;popup_obj.style.left='auto'}
var left_position=self.calcMenuPosition($popup);if(theme.rtl){popup_obj.style.right='-15px';popup_obj.style.left='auto';if(left_position){popup_obj.style.right='-'+left_position+'px'}}else{popup_obj.style.left='-15px';popup_obj.style.right='auto';if(left_position){popup_obj.style.left='-'+left_position+'px'}}}}else{if($menu_item.hasClass('pos-center')){}else if($menu_item.hasClass('pos-left')){}else if($menu_item.hasClass('pos-right')){}else{if($popup.offset().left+$popup.width()>window.innerWidth){$menu_item.addClass('pos-right')}else if($popup.find('> .inner > ul').length){var $sub_menu=$popup.find('> .inner > ul').eq(0);if($sub_menu.offset().left+$sub_menu.width()+200>window.innerWidth){$sub_menu.addClass('pos-left')}}}}
$menu_item.addClass('sub-ready')}})});return self},events:function(){var self=this;$(window).smartresize(function(){self.build()});if(theme.isLoaded){theme.requestFrame(function(){self.build()})}else{$(window).on('load',function(){theme.requestFrame(function(){self.build()})})}
return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SidebarMenu:{defaults:{menu:$('.sidebar-menu:not(.side-menu-accordion)'),toggle:$('.widget_sidebar_menu .widget-title .toggle'),menu_toggle:$('#main-toggle-menu .menu-title')},rtl:theme.rtl,initialize:function($menu,$toggle,$menu_toggle){if(this.$menu&&this.$menu.length&&$menu&&$menu.length){this.$menu=$.uniqueSort($.merge(this.$menu,$menu));this.build();return this}
this.$menu=($menu||this.defaults.menu);if(!this.$menu.length){return this}
this.$toggle=($toggle||this.defaults.toggle);this.$menu_toggle=($menu_toggle||this.defaults.menu_toggle);this.build().events();return this},isRightSidebar:function($menu){var flag=!1;if(this.rtl){flag=!($('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar'))}else{flag=$('#main').hasClass('column2-right-sidebar')||$('#main').hasClass('column2-wide-right-sidebar')}
if($menu.closest('#main-toggle-menu').length){if(this.rtl){flag=!0}else{flag=!1}}
var $header_wrapper=$menu.closest('.header-wrapper');if($header_wrapper.length&&$header_wrapper.hasClass('header-side-nav')){if(this.rtl){flag=!0}else{flag=!1}
if($('.page-wrapper').hasClass('side-nav-right')){if(this.rtl){flag=!1}else{flag=!0}}}
return flag},popupWidth:function(){var winWidth=window.innerWidth,popupWidth=theme.bodyWidth-theme.grid_gutter_width*2;if(!$('body').hasClass('wide')){if(winWidth>=theme.container_width+theme.grid_gutter_width-1)
popupWidth=theme.container_width-theme.grid_gutter_width;else if(winWidth>=992)
popupWidth=960-theme.grid_gutter_width;else if(winWidth>=768)
popupWidth=720-theme.grid_gutter_width}
return popupWidth},build:function($menus){var self=this;if(!$menus){$menus=self.$menu}
if(!$menus.length){return}
var $parent_toggle_wrap=$menus.parent('.toggle-menu-wrap'),parent_toogle_wrap=null;if($parent_toggle_wrap.length&&$parent_toggle_wrap.is(':hidden')){parent_toogle_wrap=$parent_toggle_wrap.get(0);parent_toogle_wrap.style.display='block';parent_toogle_wrap.style.visibility='hidden'}
$menus.each(function(){var menuobj=this,$menu=$(this),container_width;if(menuobj.classList.contains('side-menu-slide')){return}
if(window.innerWidth<992)
container_width=self.popupWidth();else{var menu_width=this.offsetWidth?this.offsetWidth:$menu.width();container_width=self.popupWidth()-menu_width-45}
var is_right_sidebar=self.isRightSidebar($menu),$menu_items=$menu.children('li');$menu_items.each(function(){var $menu_item=$(this),$popup=$menu_item.children('.popup');if($popup.length){var popup_obj=$popup.get(0),is_opened=!1;if($popup.is(':visible')){is_opened=!0}else{popup_obj.style.display='block'}
if($menu_item.hasClass('wide')){if(!$menu.hasClass('side-menu-columns')){popup_obj.style.left=0}
var row_number=4;if($menu_item.hasClass('col-2'))row_number=2;if($menu_item.hasClass('col-3'))row_number=3;if($menu_item.hasClass('col-4'))row_number=4;if($menu_item.hasClass('col-5'))row_number=5;if($menu_item.hasClass('col-6'))row_number=6;if(window.innerWidth<992)
row_number=1;var col_length=0;$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(!cols||cols<=0)
cols=1;if(cols>row_number)
cols=row_number;col_length+=cols});if(col_length>row_number)col_length=row_number;var popup_max_width=$popup.data('popup-mw')?$popup.data('popup-mw'):$popup.find('.inner').css('max-width'),col_width=container_width/row_number;if('none'!==popup_max_width&&popup_max_width<container_width){col_width=parseInt(popup_max_width)/row_number}
$popup.find('> .inner > ul > li').each(function(){var cols=parseFloat($(this).data('cols'));if(cols<=0)
cols=1;if(cols>row_number)
cols=row_number;if($menu_item.hasClass('pos-center')||$menu_item.hasClass('pos-left')||$menu_item.hasClass('pos-right'))
this.style.width=(100/col_length*cols)+'%';else this.style.width=(100/row_number*cols)+'%'});popup_obj.children[0].children[0].style.width=col_width*col_length+1+'px';if(!$menu.hasClass('side-menu-columns')){if(is_right_sidebar){popup_obj.style.left='auto';popup_obj.style.right=(this.offsetWidth?this.offsetWidth:$(this).width())+'px'}else{popup_obj.style.left=(this.offsetWidth?this.offsetWidth:$(this).width())+'px';popup_obj.style.right='auto'}}}
if(!is_opened){popup_obj.style.display='none'}
if(menuobj.classList.contains('side-menu-accordion')){}else if(menuobj.classList.contains('side-menu-slide')){}else if(!$menu_item.hasClass('sub-ready')){if(!('ontouchstart' in document)&&window.innerWidth>991){$menu_item.on('mouseenter',function(){$menu_items.find('.popup').hide();$popup.show();$popup.parent().addClass('open')}).on('mouseleave',function(){$popup.hide();$popup.parent().removeClass('open')})}else{$menu_item.on('click','.arrow',function(){$popup.slideToggle();$popup.parent().toggleClass('open')})}
$menu_item.addClass('sub-ready')}}})});if($menus.hasClass('side-menu-slide')){var slideNavigation={$mainNav:$menus,$mainNavItem:$menus.find('li'),build:function(){var self=this;self.menuNav()},initSub:function($obj){var currentMenu=$obj.closest('ul'),nextMenu=$obj.parent().find('ul').first();if(nextMenu.children('.menu-item').children('.go-back').length<1){nextMenu.prepend('<li class="menu-item"><a class="go-back" href="#">'+js_porto_vars.submenu_back+'</a></li>')}
var nextMenuHeightDiff=nextMenu.find('> li').length*nextMenu.find('> li').outerHeight()-nextMenu.outerHeight();currentMenu.addClass('next-menu');nextMenu.addClass('visible');currentMenu.css({overflow:'visible','overflow-y':'visible'});if(nextMenuHeightDiff>0){nextMenu.css({overflow:'hidden','overflow-y':'scroll'})}
if(nextMenu.outerHeight()<(nextMenu.closest('.header-main').outerHeight()-100)){nextMenu.css({height:nextMenu.outerHeight()+nextMenu.find('> li').outerHeight()})}
nextMenu.css({'padding-top':nextMenuHeightDiff+'px'})},menuNav:function(){var self=this;self.$mainNav.find('.menu-item-has-children > a.nolink').removeClass('nolink').attr('href','');self.$mainNav.find('.menu-item-has-children > a:not(.go-back)').off('click').on('click',function(e){e.stopImmediatePropagation();e.preventDefault();var $this=$(this);if(js_porto_vars.lazyload_menu&&!self.$mainNav.hasClass('sub-ready')){self.initSub($this);self.$mainNav.on('sub-loaded',function(){self.initSub($this)})}else{self.initSub($this)}})}};slideNavigation.build()}
if(parent_toogle_wrap){parent_toogle_wrap.style.display='';parent_toogle_wrap.style.visibility=''}
return self},events:function(){var self=this;self.$toggle.on('click',function(){var $widget=$(this).parent().parent();var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$widget.removeClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show();self.build()})}else{$this.addClass('closed');$widget.addClass('closed');$widget.find('.sidebar-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide()})}});this.$menu_toggle.on('click',function(){var $toggle_menu=$(this).parent();if($toggle_menu.hasClass('show-always')||$toggle_menu.hasClass('show-hover')){return}
var $this=$(this);if($this.hasClass('closed')){$this.removeClass('closed');$toggle_menu.removeClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideDown(400,function(){$(this).attr('style','').show()});self.build()}else{$this.addClass('closed');$toggle_menu.addClass('closed');$toggle_menu.find('.toggle-menu-wrap').stop().slideUp(400,function(){$(this).attr('style','').hide()})}});if(self.$menu.hasClass('side-menu-slide')){self.$menu.on('click','.go-back',function(e){e.preventDefault();var prevMenu=$(this).closest('.next-menu'),prevMenuHeightDiff=0;if(prevMenu.length&&prevMenu.find('> li').length){prevMenuHeightDiff=prevMenu.find('> li').length*prevMenu.find('> li').outerHeight()-prevMenu.outerHeight()}
prevMenu.removeClass('next-menu');$(this).closest('ul').removeClass('visible');if(prevMenuHeightDiff>0){prevMenu.css({overflow:'hidden','overflow-y':'scroll'})}})}
if($('.sidebar-menu:not(.side-menu-accordion)').closest('[data-plugin-sticky]').length){var sidebarRefreshTimer;$(window).smartresize(function(){if(sidebarRefreshTimer){clearTimeout(sidebarRefreshTimer)}
sidebarRefreshTimer=setTimeout(function(){self.build()},800)})}else{$(window).smartresize(function(){self.build()})}
setTimeout(function(){self.build()},400);return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{StickyHeader:{defaults:{header:$('#header')},initialize:function($header){this.$header=($header||this.defaults.header);this.sticky_height=0;this.sticky_pos=0;this.change_logo=theme.change_logo;if(!theme.show_sticky_header||!this.$header.length||$('.side-header-narrow-bar').length)
return this;var self=this;var $menu_wrap=self.$header.find('> .main-menu-wrap');if($menu_wrap.length){self.$menu_wrap=$menu_wrap;self.menu_height=$menu_wrap.height()}else{self.$menu_wrap=!1}
self.$header_main=self.$header.find('.header-main');if(!self.$header_main.length&&self.$header.children('.elementor-location-header').length){self.$header_main=self.$header.children('.elementor-location-header').last().addClass('header-main')}
if(!self.$header_main.length){return this}
self.reveal=self.$header.parents('.header-wrapper').hasClass('header-reveal');self.is_sticky=!1;self.reset().build().events();return self},build:function(){var self=this;if(!self.is_sticky&&(window.innerHeight+self.header_height+theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'))>=$(document).height())){return self}
if(window.innerHeight>$(document.body).height())
window.scrollTo(0,0);var scroll_top=$(window).scrollTop();if(self.$menu_wrap&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','');if(scroll_top>self.sticky_pos){if(!self.$header.hasClass('sticky-header')){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$menu_wrap.stop().css('top',theme.adminBarHeight());var selectric=self.$header.find('.header-main .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.$header.parent().hasClass('fixed-header')){self.$header_main.hide();self.$header.css('height','')}
if(!self.init_toggle_menu){self.init_toggle_menu=!0;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',!0);$('#main-toggle-menu').removeClass('show-always')}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','')}}
self.is_sticky=!0}}else{if(self.$header.hasClass('sticky-header')){self.$header.removeClass('sticky-header');self.$header.css('height','');self.$menu_wrap.stop().css('top',0);self.$header_main.show();var selectric=self.$header.find('.main-menu-wrap .searchform select').data('selectric');if(selectric&&typeof selectric.close!='undefined')
selectric.close();if(self.init_toggle_menu){self.init_toggle_menu=!1;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','')}}}
self.is_sticky=!1}}}else{self.$header_main.show();if(self.$header.parent().hasClass('fixed-header')&&$('#wpadminbar').length&&$('#wpadminbar').css('position')=='absolute'){self.$header.parent().css('top',($('#wpadminbar').height()-scroll_top)<0?-$('#wpadminbar').height():-scroll_top)}else if(self.$header.parent().hasClass('fixed-header')){self.$header.parent().attr('style','')}else{if(self.$header.parent().hasClass('fixed-header'))
self.$header.parent().attr('style','')}
if(self.$header.hasClass('sticky-menu-header')&&!theme.isTablet()){self.$header_main.stop().css('top',0);if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.is_sticky=!1;self.sticky_height=0}else{if(self.$menu_wrap)
self.$menu_wrap.stop().css('top',0);if(scroll_top>self.sticky_pos&&(!theme.isTablet()||(theme.isTablet()&&(!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile)))){if(!self.$header.hasClass('sticky-header')){var header_height=self.$header.outerHeight();self.$header.addClass('sticky-header').css('height',header_height);self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.$header_main.stop().css('top',theme.adminBarHeight());if(!self.init_toggle_menu){self.init_toggle_menu=!0;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').hasClass('show-always')){$('#main-toggle-menu').data('show-always',!0);$('#main-toggle-menu').removeClass('show-always')}
$('#main-toggle-menu').addClass('closed');$('#main-toggle-menu .menu-title').addClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','')}}
self.is_sticky=!0}}else{if(self.$header.hasClass('sticky-header')){if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header');self.$header.css('height','');self.$header_main.stop().css('top',0);if(self.init_toggle_menu){self.init_toggle_menu=!1;theme.MegaMenu.build();if($('#main-toggle-menu').length){if($('#main-toggle-menu').data('show-always')){$('#main-toggle-menu').addClass('show-always');$('#main-toggle-menu').removeClass('closed');$('#main-toggle-menu .menu-title').removeClass('closed');$('#main-toggle-menu .toggle-menu-wrap').attr('style','')}}}
self.is_sticky=!1}}}}
if(!self.$header.hasClass('header-loaded'))
self.$header.addClass('header-loaded');if(!self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').addClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&!self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').addClass('overlay-logo-transition');return self},reset:function(){var self=this;if(self.$header.find('.logo').hasClass('logo-transition'))
self.$header.find('.logo').removeClass('logo-transition');if(self.$header.find('.overlay-logo').get(0)&&self.$header.find('.overlay-logo').hasClass('overlay-logo-transition'))
self.$header.find('.overlay-logo').removeClass('overlay-logo-transition');if(self.$menu_wrap&&!theme.isTablet()){self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.menu_height=self.$menu_wrap.height()+parseInt(self.$menu_wrap.css('padding-top'))+parseInt(self.$menu_wrap.css('padding-bottom'));self.sticky_pos=(self.header_height-self.sticky_height)+parseInt($('body').css('padding-top'))+parseInt(self.$header.css('border-top-width'));if($('.banner-before-header').length){self.sticky_pos+=$('.banner-before-header').height()}
if($('.porto-block-html-top').length){self.sticky_pos+=$('.porto-block-html-top').height()}}else{self.$header.addClass('sticky-header sticky-header-calc');self.$header_main.addClass('sticky');if(self.change_logo)self.$header_main.addClass('change-logo');self.sticky_height=self.$header_main.outerHeight();if(self.change_logo)self.$header_main.removeClass('change-logo');self.$header_main.removeClass('sticky');self.$header.removeClass('sticky-header sticky-header-calc');self.header_height=self.$header.height()+parseInt(self.$header.css('margin-top'));self.main_height=self.$header_main.height();if(!(!theme.isTablet()||(theme.isTablet()&&!theme.isMobile()&&theme.show_sticky_header_tablet)||(theme.isMobile()&&theme.show_sticky_header_tablet&&theme.show_sticky_header_mobile))){self.sticky_height=0}
self.sticky_pos=self.$header.offset().top+self.header_height-self.sticky_height-theme.adminBarHeight()+parseInt(self.$header.css('border-top-width'))}
if(self.reveal){if(self.menu_height){self.sticky_pos+=self.menu_height+30}else{self.sticky_pos+=30}}
if(self.sticky_pos<0){self.sticky_pos=0}
self.init_toggle_menu=!1;self.$header_main.removeAttr('style');if(!theme.isTablet()&&self.$header.hasClass('header-side')&&typeof self.$header.attr('data-plugin-sticky')!='undefined'){self.$header.css('height','')}else{self.$header.removeAttr('style')}
return self},events:function(){var self=this,win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){self.reset().build();win_width=window.innerWidth}});window.addEventListener('scroll',function(){theme.requestFrame(function(){self.build()})},{passive:!0});return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SideNav:{defaults:{side_nav:$('.header-side-nav #header')},bc_pos_top:0,initialize:function($side_nav){this.$side_nav=($side_nav||this.defaults.side_nav);if(!this.$side_nav.length)
return this;var self=this;self.$side_nav.addClass('initialize');self.reset().build().events();return self},build:function(){var self=this;var $page_top=$('.page-top'),$main=$('#main');if(theme.isTablet()){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','')}else{var scroll_top=$(window).scrollTop();if($page_top.length&&$page_top.outerHeight()<100&&!$('.side-header-narrow-bar-top').length){if(self.page_top_offset==theme.adminBarHeight()||self.page_top_offset<=scroll_top){if(!$page_top.hasClass("fixed-pos")){$page_top.addClass("fixed-pos");$page_top.css('top',theme.adminBarHeight());$main.css('padding-top',$page_top.outerHeight())}}else{if($page_top.hasClass("fixed-pos")){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','')}}}
$main.css('min-height',window.innerHeight-theme.adminBarHeight()-$('.page-top:not(.fixed-pos)').height()-$('.footer-wrapper').height())}
return self},reset:function(){var self=this;if(theme.isTablet()){self.$side_nav.attr('style','')}else{var w_h=window.innerHeight,$side_bottom=self.$side_nav.find('.side-bottom');self.$side_nav.css({'min-height':w_h-theme.adminBarHeight(),'padding-bottom':$side_bottom.length?$side_bottom.height()+parseInt($side_bottom.css('margin-top'))+parseInt($side_bottom.css('margin-bottom')):''});var appVersion=navigator.appVersion;var webkitVersion_positionStart=appVersion.indexOf("AppleWebKit/")+12;var webkitVersion_positionEnd=webkitVersion_positionStart+3;var webkitVersion=appVersion.slice(webkitVersion_positionStart,webkitVersion_positionEnd);if(webkitVersion<537){self.$side_nav.css('-webkit-backface-visibility','hidden');self.$side_nav.css('-webkit-perspective','1000')}}
var $page_top=$('.page-top'),$main=$('#main');if($page_top.length){$page_top.removeClass("fixed-pos");$page_top.attr('style','');$main.attr('style','');self.page_top_offset=$page_top.offset().top}
return self},events:function(){var self=this;$(window).on('resize',function(){self.reset().build()});window.addEventListener('scroll',function(){self.build()},{passive:!0});if($('.side-header-narrow-bar-top').length){if($(window).scrollTop()>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky')}
window.addEventListener('scroll',function(){var scroll_top=$(this).scrollTop();if(scroll_top>theme.adminBarHeight()+$('.side-header-narrow-bar-top').height()){$('.side-header-narrow-bar-top').addClass('side-header-narrow-bar-sticky')}else{$('.side-header-narrow-bar-top').removeClass('side-header-narrow-bar-sticky')}},{passive:!0})}
$('.side-header-narrow-bar .hamburguer-btn').on('click',function(){$(this).toggleClass('active');$('#header').toggleClass('side-header-visible');if($(this).closest('.side-header-narrow-bar-top').length&&!$('#header > .hamburguer-btn').length){$(this).closest('.side-header-narrow-bar-top').toggle()}});$('.hamburguer-close').on('click',function(){$('.side-header-narrow-bar .hamburguer-btn').trigger('click')});return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{Search:{defaults:{popup:$('.searchform-popup'),form:$('.searchform')},initialize:function($popup,$form){this.$popup=($popup||this.defaults.popup);this.$form=($form||this.defaults.form);this.build().events();return this},build:function(){var self=this;var $search_form_texts=self.$form.find('.text input'),$search_form_cats=self.$form.find('.cat');if($('.searchform .cat').get(0)&&$.fn.selectric){$('.searchform .cat').selectric({arrowButtonMarkup:'',expandToItemText:!0,maxHeight:240})}
$search_form_texts.on('change',function(){var $this=$(this),val=$this.val();$search_form_texts.each(function(){if($this!=$(this))$(this).val(val)})});$search_form_cats.on('change',function(){var $this=$(this),val=$this.val();$search_form_cats.each(function(){if($this!=$(this))$(this).val(val)})});return this},events:function(){var self=this;self.$popup.on('click',function(e){e.stopPropagation()});self.$popup.find('.search-toggle').on('click',function(e){e.preventDefault();$(this).toggleClass('opened');$(this).next().toggle();if($(this).hasClass('opened')){$('#mini-cart.open').removeClass('open');$(this).next().find('input[type="text"]').focus();if(self.$popup.find('.btn-close-search-form').length){self.$popup.parent().addClass('position-static')}}
e.preventDefault();e.stopPropagation()});$('html,body').on('click',function(){self.removeFormStyle()});if(!('ontouchstart' in document)){$(window).on('resize',function(){self.removeFormStyle()})}
$('.btn-close-search-form').on('click',function(e){e.preventDefault();self.removeFormStyle()});return self},removeFormStyle:function(){this.$form.removeAttr('style');this.$popup.find('.search-toggle').removeClass('opened');if(this.$popup.find('.btn-close-search-form').length){this.$popup.parent().removeClass('position-static')}}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{HashScroll:{initialize:function(){this.build().events();return this},build:function(){var self=this;try{var hash=window.location.hash;var target=$(hash);if(target.length&&!(hash=='#review_form'||hash=='#reviews'||hash.indexOf('#comment-')!=-1)){$('html, body').delay(600).stop().animate({scrollTop:target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1},600,'easeOutQuad')}
return self}catch(err){return self}},getTarget:function(href){if('#'==href||href.endsWith('#')){return!1}
var target;if(href.indexOf('#')==0){target=$(href)}else{var url=window.location.href;url=url.substring(url.indexOf('://')+3);if(url.indexOf('#')!=-1)
url=url.substring(0,url.indexOf('#'));href=href.substring(href.indexOf('://')+3);href=href.substring(href.indexOf(url)+url.length);if(href.indexOf('#')==0){target=$(href)}}
return target},activeMenuItem:function(){var self=this;var scroll_pos=$(window).scrollTop();var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');if($menu_items.length){$menu_items.each(function(){var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){if($this.parent().is(':last-child')&&scroll_pos+window.innerHeight>=target.offset().top+target.outerHeight()){$this.parent().siblings().removeClass('active');$this.parent().addClass('active')}else{var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1,$parent=$this.parent();if(scroll_to<=scroll_pos+5){$parent.siblings().removeClass('active');$parent.addClass('active');if($parent.closest('.secondary-menu').length){$parent.closest('#header').find('.main-menu').eq(0).children('.menu-item.active').removeClass('active')}}else{$parent.removeClass('active')}}}})}
return self},events:function(){var self=this;$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"], a[href*="#"].hash-scroll, .hash-scroll-wrap a[href*="#"]').on('click',function(e){e.preventDefault();var $this=$(this),href=$this.attr('href'),target=self.getTarget(href);if(target&&target.get(0)){var $parent=$this.parent();var scroll_to=target.offset().top-theme.StickyHeader.sticky_height-theme.adminBarHeight()-theme.sticky_nav_height+1;$('html, body').stop().animate({scrollTop:scroll_to},600,'easeOutQuad',function(){$parent.siblings().removeClass('active');$parent.addClass('active')});if($this.closest('.porto-popup-menu.opened').length){$this.closest('.porto-popup-menu.opened').children('.hamburguer-btn').trigger('click')}}else if(('#'!=href||!$this.closest('.porto-popup-menu.opened').length)&&!$this.hasClass('nolink')){window.location.href=$this.attr('href')}});var $menu_items=$('.menu-item > a[href*="#"], .porto-sticky-nav .nav > li > a[href*="#"]');$menu_items.each(function(){var rootMargin='-20% 0px -79.9% 0px',isLast=$(this).parent().is(':last-child');if(isLast){var obj=document.getElementById(this.hash.replace('#',''));if(obj&&document.body.offsetHeight-obj.offsetTop<window.innerHeight){var ratio=(window.innerHeight-document.body.offsetHeight+obj.offsetTop)/window.innerHeight*0.8;ratio=Math.round(ratio*100);rootMargin='-'+(20+ratio)+'% 0px -'+(79.9-ratio)+'% 0px'}}
var callback=function(){if(this&&typeof this[0]!='undefined'&&this[0].id){$('.menu-item > a[href*="#'+this[0].id+'"], .porto-sticky-nav .nav > li > a[href*="#'+this[0].id+'"]').parent().addClass('active').siblings().removeClass('active')}};self.scrollSpyIntObs(this.hash,callback,{rootMargin:rootMargin,thresholds:0},!0,isLast,!0,$menu_items,$(this).parent().index())});return self},scrollSpyIntObs:function(selector,functionName,intObsOptions,alwaysObserve,isLast,firstLoad,$allItems,index){if(typeof IntersectionObserver=='undefined'){return this}
var obj=document.getElementById(selector.replace('#',''));if(!obj){return this}
var self=this;var intersectionObserverOptions={rootMargin:'0px 0px 200px 0px'}
if(Object.keys(intObsOptions).length){intersectionObserverOptions=$.extend(intersectionObserverOptions,intObsOptions)}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.intersectionRatio>0){if(typeof functionName==='string'){var func=Function('return '+functionName)()}else{var callback=functionName;callback.call($(entry.target))}}else{if(firstLoad==!1){if(isLast){$allItems.filter('[href*="'+entry.target.id+'"]').parent().prev().addClass('active').siblings().removeClass('active')}}
firstLoad=!1}}},intersectionObserverOptions);observer.observe(obj);return this}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{SortFilter:{defaults:{filters:'.porto-sort-filters ul',elements:'.porto-sort-container .row'},initialize:function($elements,$filters){this.$elements=($elements||$(this.defaults.elements));this.$filters=($filters||$(this.defaults.filters));this.build();return this},build:function(){var self=this;self.$elements.each(function(){var $this=$(this);$this.isotope({itemSelector:'.porto-sort-item',layoutMode:'masonry',getSortData:{popular:'[data-popular] parseInt'},sortBy:'popular',isOriginLeft:!theme.rtl});imagesLoaded(this,function(){if($this.data('isotope')){$this.isotope('layout')}})});self.$filters.each(function(){var $this=$(this);var id=$this.attr('data-sort-id');var $container=$('#'+id);if($container.length){$this.on('click','li',function(e){e.preventDefault();var $that=$(this);$this.find('li').removeClass('active');$that.addClass("active");var sortByValue=$that.attr('data-sort-by');$container.isotope({sortBy:sortByValue});var filterByValue=$that.attr('data-filter-by');if(filterByValue){$container.isotope({filter:filterByValue})}else{$container.isotope({filter:'.porto-sort-item'})}
theme.refreshVCContent()});$this.find('li[data-active]').trigger('click')}});return self}}})}).apply(this,[window.theme,jQuery]);(function($){var $footerReveal={$wrapper:$('.footer-reveal'),init:function(){var self=this;self.build();self.events()},build:function(){var self=this,footer_height=self.$wrapper.outerHeight(!0),window_height=window.innerHeight-theme.adminBarHeight();if($('#header .header-main').length){window_height-=$('#header .header-main').height()}
if(footer_height>window_height){$('.footer-wrapper').removeClass('footer-reveal');$('.page-wrapper').css('margin-bottom',0)}else{$('.footer-wrapper').addClass('footer-reveal');$('.page-wrapper').css('margin-bottom',footer_height);if(document.body.offsetHeight<window.innerHeight){document.body.style.paddingBottom='0.1px'}}},events:function(){var self=this,$window=$(window);$window.smartresize(function(){self.build()})}}
if($('.footer-reveal').get(0)){$footerReveal.init()}})(jQuery);(function(theme,$){'use strict';theme=theme||{};var instanceName='__floatElement';var PluginFloatElement=function($el,opts){return this.initialize($el,opts)};PluginFloatElement.defaults={startPos:'top',speed:3,horizontal:!1,transition:!1,transitionDelay:0,transitionDuration:500};PluginFloatElement.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},PluginFloatElement.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,$el=this.options.wrapper,$window=$(window),minus;if(self.options.style){$el.attr('style',self.options.style)}
if($window.width()>767){if(self.options.startPos=='none'){minus=''}else if(self.options.startPos=='top'){$el.css({top:0});minus=''}else{$el.css({bottom:0});minus='-'}
if(self.options.transition){$el.css({transition:'ease-out transform '+self.options.transitionDuration+'ms '+self.options.transitionDelay+'ms'})}
self.movement(minus);window.addEventListener('scroll',function(){self.movement(minus)},{passive:!0})}
return this},movement:function(minus){var self=this,$el=this.options.wrapper,$window=$(window),scrollTop=$window.scrollTop(),elementOffset=$el.offset().top,currentElementOffset=(elementOffset-scrollTop);var scrollPercent=100*currentElementOffset/($window.height());if(elementOffset+$el.height()>=scrollTop&&elementOffset<=scrollTop+window.innerHeight){if(!self.options.horizontal){$el.css({transform:'translate3d(0, '+minus+scrollPercent/self.options.speed+'%, 0)'})}else{$el.css({transform:'translate3d('+minus+scrollPercent/self.options.speed+'%, '+minus+scrollPercent/self.options.speed+'%, 0)'})}}}};$.extend(theme,{PluginFloatElement:PluginFloatElement});$.fn.themePluginFloatElement=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new PluginFloatElement($this,opts)}})}}).apply(this,[window.theme,jQuery]);function porto_init($wrap){'use strict';jQuery(window).on('touchstart',function(){});if(!$wrap){$wrap=jQuery(document.body)}
var wrapObj=$wrap.get(0);$wrap.trigger('porto_init_start',[wrapObj]);(function($){if($.fn.themeAccordion){$(function(){$wrap.find('.accordion:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordion(opts)})})}
if($.fn.themeAccordionMenu){$(function(){$wrap.find('.accordion-menu:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeAccordionMenu(opts)})})}
if($.fn.themeChartCircular){var $objects=wrapObj.querySelectorAll('[data-plugin-chart-circular]:not(.manual), .circular-bar-chart:not(.manual)');if($objects.length){theme.dynIntObsInit($objects,'themeChartCircular',theme.ChartCircular.defaults)}}
if($.fn.themeFitVideo){$(function(){$wrap.find('.fit-video:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFitVideo(opts)})})}
if($.fn.themePluginVideoBackground){$(function(){$wrap.find('[data-plugin-video-background]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginVideoBackground(opts)})})}
if($.fn.themeFlickrZoom){$(function(){$wrap.find('.wpb_flickr_widget:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeFlickrZoom(opts)})})}
if($.fn.themePluginLazyLoad){$(function(){$wrap.find('[data-plugin-lazyload]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themePluginLazyLoad(opts)});$wrap.find('.porto-lazyload').filter(function(){if($(this).data('__lazyload')||($(this).closest('.owl-carousel').length&&$(this).closest('.owl-carousel').find('.owl-item.cloned').length)){return!1}
return!0}).themePluginLazyLoad({effect:'fadeIn',effect_speed:400});if($wrap.find('.porto-lazyload').closest('.nivoSlider').length){theme.requestTimeout(function(){$wrap.find('.nivoSlider').each(function(){if($(this).find('.porto-lazyload').length){$(this).closest('.nivoSlider').find('.nivo-main-image').attr('src',$(this).closest('.nivoSlider').find('.porto-lazyload').eq(0).attr('src'))}})},100)}
if($wrap.find('.porto-lazyload').closest('.porto-carousel-wrapper').length){theme.requestTimeout(function(){$wrap.find('.porto-carousel-wrapper').each(function(){if($(this).find('.porto-lazyload:not(.lazy-load-loaded)').length){$(this).find('.slick-list').css('height','auto')}})},100)}})}
if($.fn.themeMasonry){$(function(){$wrap.find('[data-plugin-masonry]:not(.manual)').each(function(){var $this=$(this),opts;if($this.hasClass('elementor-row')){$this.children('.elementor-column').addClass('porto-grid-item')}
var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeMasonry(opts)});$wrap.find('.posts-masonry .posts-container:not(.manual)').each(function(){var pluginOptions=$(this).data('plugin-options');if(!pluginOptions){pluginOptions={}}
pluginOptions.itemSelector='.post';$(this).themeMasonry(pluginOptions)});$wrap.find('.page-portfolios .portfolio-row:not(.manual)').each(function(){if($(this).closest('.porto-grid-container').length>0||typeof $(this).attr('data-plugin-masonry')!='undefined'){return}
var $parent=$(this).parent(),layoutMode='masonry',options,columnWidth='.portfolio:not(.w2)',timer=null;if($parent.hasClass('portfolios-grid')){}else if($parent.hasClass('portfolios-masonry')){if(!$parent.children('.bounce-loader').length){$parent.append('<div class="bounce-loader"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div>')}}
options={itemSelector:'.portfolio',layoutMode:layoutMode,callback:function(){timer&&clearTimeout(timer);timer=setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'))}
$parent.addClass('portfolio-iso-active')},400)}};if(layoutMode=='masonry'){if(!$parent.find('.portfolio:not(.w2)').length)
columnWidth='.portfolio';options=$.extend(!0,{},options,{masonry:{columnWidth:columnWidth}})}
$(this).themeMasonry(options)});$wrap.find('.page-members .member-row:not(.manual)').each(function(){$(this).themeMasonry({itemSelector:'.member',callback:function(){setTimeout(function(){if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-members'))}},400)}})})})}
if($.fn.themePreviewImage){$(function(){$wrap.find('.thumb-info-preview .thumb-info-image:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themePreviewImage(opts)})})}
if($.fn.themeToggle){$(function(){$wrap.find('section.toggle:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeToggle(opts)})})}
if($.fn.themeParallax){$(function(){$wrap.find('[data-plugin-parallax]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeParallax(opts)})})}
if($.fn.themeSticky){$(function(){$wrap.find('[data-plugin-sticky]:not(.manual), .porto-sticky:not(.manual), .porto-sticky-nav:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if($this.is(':visible')){$this.themeSticky(opts)}})})}
if($.fn.themePluginFloatElement){$(function(){$wrap.find('[data-plugin-float-element]:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themePluginFloatElement(opts)})})}
if(typeof bootstrap!='undefined'){var tooltipTriggerList=[].slice.call(wrapObj.querySelectorAll("[data-bs-tooltip]:not(.manual), [data-toggle='tooltip']:not(.manual), .star-rating:not(.manual)"));tooltipTriggerList.map(function(tooltipTriggerEl){return new bootstrap.Tooltip(tooltipTriggerEl)});var popoverTriggerList=[].slice.call(wrapObj.querySelectorAll("[data-toggle='popover']"));popoverTriggerList.map(function(popoverTriggerEl){return new bootstrap.Popover(popoverTriggerEl)})}
$wrap.find('a[data-bs-toggle="tab"]').off('shown.bs.tab').on('shown.bs.tab',function(e){$(this).parents('.nav-tabs').find('.active').removeClass('active');$(this).addClass('active').parent().addClass('active')});if($.fn.vcwaypoint){$wrap.find('.vc_progress_bar').each(function(){var $this=$(this);if(!$this.find('.progress-bar-tooltip').length){return}
$this.vcwaypoint(function(){var $tooltips=$this.find('.progress-bar-tooltip'),index=0,count=$tooltips.length;function loop(){theme.requestTimeout(function(){$tooltips.animate({opacity:1})},200);index++;if(index<count){loop()}}
loop()},{offset:'85%'})})}
if(typeof theme.initAsync=='function'){theme.initAsync($wrap,wrapObj)}else{$(document.body).on('porto_async_init',function(){theme.initAsync($wrap,wrapObj)})}})(jQuery);jQuery(document.body).trigger('porto_init',[$wrap])}(function(theme,$){'use strict';$(document).ready(function(){var win_width=0;$(window).smartresize(function(){if(win_width!=window.innerWidth){theme.adminBarHeightNum=null;win_width=window.innerWidth}});if(typeof theme.ScrollToTop!=='undefined'){theme.ScrollToTop.initialize()}
setTimeout(function(){porto_init()},0);(function(){theme.bodyWidth=theme.bodyWidth||document.body.offsetWidth;if(typeof theme.MegaMenu!=='undefined'){theme.MegaMenu.initialize()}
if(typeof theme.SidebarMenu!=='undefined'){theme.SidebarMenu.initialize();$('.sidebar-menu.side-menu-accordion').themeAccordionMenu({'open_one':!0})}})();(function(){if($('.porto-popup-menu').length){$('.porto-popup-menu .hamburguer-btn').on('click',function(e){e.preventDefault();var $this=$(this);if($('.porto-popup-menu-spacer').length){$('.porto-popup-menu-spacer').remove()}else{$('<div class="porto-popup-menu-spacer"></div>').insertBefore($this.parent());$('.porto-popup-menu-spacer').width($this.parent().width())}
$this.parent().toggleClass('opened');theme.requestFrame(function(){$this.toggleClass('active')})});$('.porto-popup-menu .main-menu').scrollbar();$('.porto-popup-menu').on('click','li.menu-item-has-children > a',function(e){e.preventDefault();$(this).parent().siblings('li.menu-item-has-children.opened').removeClass('opened');$(this).parent().toggleClass('opened')})}
if(js_porto_vars.lazyload_menu){var menu_type,$menu_obj,porto_menu_loaded=!1;if($('.secondary-menu.mega-menu').length){menu_type='secondary_menu';$menu_obj=$('.mega-menu.main-menu')}else if($('.mega-menu.main-menu:not(.scroll-wrapper)').length){menu_type='main_menu';$menu_obj=$('.mega-menu.main-menu:not(.scroll-wrapper)')}else if($('.toggle-menu-wrap .sidebar-menu').length){menu_type='toggle_menu';$menu_obj=$('.toggle-menu-wrap .sidebar-menu')}else if($('.main-sidebar-menu .sidebar-menu').length){menu_type='sidebar_menu';$menu_obj=$('.main-sidebar-menu .sidebar-menu')}else if($('.header-side-nav .sidebar-menu').length){menu_type='header_side_menu';$menu_obj=$('.header-side-nav .sidebar-menu')}
if($menu_obj&&$menu_obj.length){if('pageload'==js_porto_vars.lazyload_menu){theme.lazyload_menu($menu_obj,menu_type)}else if('firsthover'==js_porto_vars.lazyload_menu){$menu_obj.one('mouseenter touchstart','li.menu-item-has-children',function(){if(porto_menu_loaded){return!0}
theme.lazyload_menu($menu_obj,menu_type);porto_menu_loaded=!0})}}}
if(typeof theme.SideNav!=='undefined'){theme.SideNav.initialize()}
if(typeof theme.StickyHeader!=='undefined'){theme.StickyHeader.initialize()}})();if(typeof theme.HashScroll!=='undefined'){theme.HashScroll.initialize()}
if(js_porto_vars.use_skeleton_screen.length>0&&$('.skeleton-loading').length){var dclFired=!1,dclPromise=(function(){var deferred=$.Deferred();$(function(){deferred.resolve();dclFired=!0});return deferred.promise()})(),observer=!1,NativeMutationObserver=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver;if(typeof NativeMutationObserver!='undefined'){observer=new NativeMutationObserver(function(mutationsList,observer){for(var i in mutationsList){var mutation=mutationsList[i];if(mutation.type=='childList'){$(mutation.target).trigger('skeleton:initialised')}}})}
var killObserverTrigger=setTimeout(function(){if(observer){observer.disconnect();observer=undefined}},4000);var skeletonTimer;$('.skeleton-loading').each(function(e){var $this=$(this),skeletonInitialisedPromise=(function(){var deferred=$.Deferred();$this.on('skeleton:initialised',function(evt){if(evt.target.classList.contains('skeleton-loading')){deferred.resolve(evt)}});return deferred.promise()})(),resourcesLoadedPromise=(function(){return $.Deferred().resolve().promise()})();$.when(skeletonInitialisedPromise,resourcesLoadedPromise,dclPromise).done(function(e){var $real=$(e.target),$placeholder=$real.siblings('.skeleton-body');if(!$placeholder.length){$placeholder=$real.parent().parent().parent().find('[class="'+$real.attr('class').replace('skeleton-loading','skeleton-body')+'"]')}
porto_init($real);if($real.find('.sidebar-menu:not(.side-menu-accordion)').length){theme.SidebarMenu.initialize($real.find('.sidebar-menu:not(.side-menu-accordion)'))}
if(skeletonTimer){theme.deleteTimeout(skeletonTimer)}
$real.trigger('skeleton-loaded');theme.requestTimeout(function(){if($placeholder.length){if($placeholder.parent().hasClass('yit-wcan-container')){$placeholder.parent().remove()}else{$placeholder.remove()}}
$real.removeClass('skeleton-loading');if($real.closest('.skeleton-loading-wrap')){$real.closest('.skeleton-loading-wrap').removeClass('skeleton-loading-wrap')}
if($(document.body).hasClass('elementor-default')||$(document.body).hasClass('elementor-page')){$(window).trigger('resize')}
theme.refreshStickySidebar(!1)},100);if(!$('.skeleton-loading').length){clearTimeout(killObserverTrigger);observer.disconnect();observer=undefined}});if($this.children('script[type="text/template"]').length){var content=$(JSON.parse($this.children('script[type="text/template"]').eq(0).html()));$this.children('script[type="text/template"]').eq(0).remove();if(observer){observer.observe(this,{childList:!0,subtree:!1})}
$this.append(content);if(!observer){$this.trigger('skeleton:initialised')}}})}
$(document).trigger('porto_theme_init')});$(window).on('load',function(){setTimeout(function(){if(typeof theme.Search!=='undefined'){theme.Search.initialize()}},0);if(typeof theme.SortFilter!=='undefined'){theme.SortFilter.initialize()}
$(document).on('click','.sidebar-toggle',function(e){e.preventDefault();var $html=$('html');if($(this).siblings('.porto-product-filters').length){if($html.hasClass('filter-sidebar-opened')){$html.removeClass('filter-sidebar-opened');$('.sidebar-overlay').removeClass('active')}else{$html.removeClass('sidebar-opened');$html.addClass('filter-sidebar-opened');$('.sidebar-overlay').addClass('active')}}else{if($html.hasClass('sidebar-opened')){$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active')}else{$html.addClass('sidebar-opened');$('.sidebar-overlay').addClass('active')}}});$('.minicart-offcanvas .cart-head').on('click',function(){$(this).closest('.minicart-offcanvas').toggleClass('minicart-opened')});$('.minicart-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.minicart-offcanvas').removeClass('minicart-opened')});$(document.body).on('click','.sidebar-overlay',function(){$('html').removeClass('sidebar-opened');$('html').removeClass('filter-sidebar-opened');$(this).removeClass('active')});$(window).on('resize',function(e){if(e.originalEvent&&window.innerWidth>991&&$('html').hasClass('sidebar-opened')){$('.sidebar-overlay').trigger('click')}});var $matchHeightObj=$('.tabs-simple .featured-box .box-content, .porto-content-box .featured-box .box-content, .vc_general.vc_cta3, .match-height');if($matchHeightObj.length){if($.fn.matchHeight){$matchHeightObj.matchHeight()}else{var script=document.createElement("script");script.addEventListener("load",function(event){$matchHeightObj.matchHeight()});script.src=js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/libs/jquery.matchHeight.min.js');script.async=!0;document.body.appendChild(script)}}
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block')}
$(document).ajaxComplete(function(event,xhr,options){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){$('.share-whatsapp').css('display','inline-block')}});var ua=window.navigator.userAgent,ie12=ua.indexOf('Edge/')>0;if(ie12)$('html').addClass('ie12');$(document).on('click','.portfolios-lightbox a.portfolio-link',function(e){$(this).find('.thumb-info-zoom').trigger('click');return!1});$('.porto-faqs').each(function(){if($(this).find('.faq .toggle.active').length<1){$(this).find('.faq').eq(0).find('.toggle').addClass('active');$(this).find('.faq').eq(0).find('.toggle-content').show()}});$(document).on('shown.bs.collapse','.collapse',function(){var panel=$(this);theme.refreshVCContent(panel)});$(document).on('shown.bs.tab','a[data-bs-toggle="tab"]',function(e){var panel=$($(e.target).attr('href'));theme.refreshVCContent(panel)});$('.porto-tooltip .tooltip-icon').on('click',function(){if($(this).parent().children(".tooltip-popup").css("display")=="none"){$(this).parent().children(".tooltip-popup").fadeIn(200)}else{$(this).parent().children(".tooltip-popup").fadeOut(200)}});$('.porto-tooltip .tooltip-close').on('click',function(){$(this).parent().fadeOut(200)})})}).apply(this,[window.theme,jQuery]);(function(theme,$,undefined){"use strict";$(document).ready(function(){$(window).on('vc_reload',function(){porto_init();$('.type-post').addClass('post');$('.type-portfolio').addClass('portfolio');$('.type-member').addClass('member');$('.type-block').addClass('block')})});var timelineHeightAdjust={$timeline:$('#exp-timeline'),$timelineBar:$('#exp-timeline .timeline-bar'),$firstTimelineItem:$('#exp-timeline .timeline-box').first(),$lastTimelineItem:$('#exp-timeline .timeline-box').last(),build:function(){var self=this;self.adjustHeight()},adjustHeight:function(){var self=this,calcFirstItemHeight=(self.$firstTimelineItem.outerHeight(!0)/2)+5,calcLastItemHeight=(self.$lastTimelineItem.outerHeight(!0)/2)+5;self.$timelineBar.css({top:calcFirstItemHeight,bottom:calcLastItemHeight})}}
if($('#exp-timeline').get(0)){var timeline_timer=null;$(window).smartresize(function(){if(timeline_timer){clearTimeout(timeline_timer)}
timeline_timer=setTimeout(function(){timelineHeightAdjust.build()},800)});timelineHeightAdjust.build()}
$('.custom-view-our-location').on('click',function(e){e.preventDefault();var this_=$(this);$('.custom-googlemap').slideDown('1000',function(){this_.delay(700).hide()})})})(window.theme,jQuery);(function(theme,$,undefined){'use strict';function porto_headings_init(){$('.porto-u-heading').each(function(){var align=$(this).attr('data-halign'),spacer=$(this).attr('data-hspacer');if(spacer=='line_only'){if(align=='right'||align=='left'){if($(this).find('.porto-u-heading-spacer').find('.porto-u-headings-line')[0].style.width!='auto'){$(this).find('.porto-u-heading-spacer').find('.porto-u-headings-line').css({'float':align})}}else{$(this).find('.porto-u-heading-spacer').find('.porto-u-headings-line').css({'margin':'0 auto'})}}})}
window.onload=function(){theme.isLoaded=!0};$(document).ready(function(){porto_headings_init();if(typeof elementorFrontend!='undefined'){$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addFilter('frontend/handlers/menu_anchor/scroll_top_distance',function(scrollTop){if(theme&&theme.StickyHeader&&typeof theme.sticky_nav_height!='undefined'){if(elementorFrontend.elements.$wpAdminBar.length){scrollTop+=elementorFrontend.elements.$wpAdminBar.height()}
scrollTop=scrollTop-theme.adminBarHeight()-theme.StickyHeader.sticky_height-theme.sticky_nav_height+1}
return scrollTop})})}
if(js_porto_vars.user_edit_pages){var porto_init_builder_tooltip=function(obj){var tooltipTriggerList=[].slice.call(obj.querySelectorAll('.pb-edit-link'));tooltipTriggerList.map(function(o){var title=o.getAttribute('data-title');if(o.nextSibling&&o.nextSibling.classList.contains('porto-block')){var tooltipobj=o.nextSibling;tooltipobj.classList.add('has-pb-edit');var tooltip_ins=new bootstrap.Tooltip(tooltipobj,{html:!0,template:'<div class="tooltip porto-tooltip-wrap" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'manual',title:'<a href="'+o.getAttribute('data-link')+'"><i class="porto-icon-edit me-1"></i>'+title+'</a>',delay:300});if(tooltip_ins&&tooltip_ins._element){tooltip_ins._element.addEventListener('mouseenter',function(e){tooltip_ins._enter(e,tooltip_ins)});tooltip_ins._element.addEventListener('mouseleave',function(e){tooltip_ins._leave(e,tooltip_ins)})}}
o.parentNode.removeChild(o)})};porto_init_builder_tooltip(document.body);$('.skeleton-loading').on('skeleton-loaded',function(){porto_init_builder_tooltip(this)});$(document.body).on('mouseenter mouseleave','.porto-tooltip-wrap[role="tooltip"]',function(e){var $element=$('.porto-block[aria-describedby="'+$(this).attr('id')+'"]');if($element.length){var ins=bootstrap.Tooltip.getInstance($element.get(0));if(ins){var fn_name='mouseenter'==e.type?'_enter':'_leave';ins[fn_name](e,ins)}}}).on('porto_init_start',function(e,wrapObj){if(wrapObj.classList.contains('porto-posts-grid')){porto_init_builder_tooltip(wrapObj)}})}});$('.porto-btn[data-hover]').on('mouseenter',function(){var hoverColor=$(this).data('hover'),hover_border_color=$(this).data('border-hover');if(hoverColor){$(this).data('originalColor',$(this).css('color'));$(this).css('color',hoverColor)}
if(hover_border_color){$(this).data('originalBorderColor',$(this).css('border-color'));$(this).css('border-color',hover_border_color)}}).on('mouseleave',function(){var originalColor=$(this).data('originalColor'),original_border_color=$(this).data('originalBorderColor');if(originalColor){$(this).css('color',originalColor)}
if(original_border_color){$(this).css('border-color',original_border_color)}});$('#footer .widget_wysija .wysija-submit:not(.btn)').addClass('btn btn-default');if($('[data-vc-parallax] .owl-carousel').length){theme.requestTimeout(function(){if(typeof window.vcParallaxSkroll=='object'){window.vcParallaxSkroll.refresh()}},200)}
if($('.page-content > .alignfull, .post-content > .alignfull').length){var initAlignFull=function(){$('.page-content > .alignfull, .post-content > .alignfull').each(function(){$(this).css('left',-1*$(this).parent().offset().left).css('right',-1*$(this).parent().offset().left).css('width',$('body').width()-(parseInt($(this).css('margin-left'),10)+parseInt($(this).css('margin-right'),10)))})};initAlignFull();$(window).smartresize(function(){initAlignFull()})}})(window.theme,jQuery);(function(theme,$){'use strict';var $header_main=$('#header .header-main');var $menu_wrap=$('#header .main-menu-wrap');if($('.porto-sticky-navbar').length>0){window.addEventListener('scroll',function(){if(window.innerWidth<576){var headerOffset=-1;var scrollTop=$(window).scrollTop();if($header_main.length){headerOffset=Math.max($header_main.scrollTop()+$header_main.height(),headerOffset)}
if($menu_wrap.length){headerOffset=Math.max($menu_wrap.scrollTop()+$menu_wrap.height(),headerOffset)}
if(headerOffset<=0){if($('#header').length>0&&$('#header').height()>10)headerOffset=$('#header').scrollTop()+$('#header').height();else headerOffset=100}
if(headerOffset<=scrollTop){$('.porto-sticky-navbar').addClass('fixed')}else{$('.porto-sticky-navbar').removeClass('fixed')}}},{passive:!0})}})(window.theme,jQuery)
;(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{mfpConfig:{tClose:js_porto_vars.popup_close,tLoading:'<div class="porto-ajax-loading"><i class="porto-loading-icon"></i></div>',gallery:{tPrev:js_porto_vars.popup_prev,tNext:js_porto_vars.popup_next,tCounter:js_porto_vars.mfp_counter},image:{tError:js_porto_vars.mfp_img_error},ajax:{tError:js_porto_vars.mfp_ajax_error},callbacks:{open:function(){$('body').addClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right',theme.getScrollbarWidth())}
var that=$(this._lastFocusedEl);if((that.closest('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){var portfolio_lightbox_thumbnails_base=that.closest('.portfolios-lightbox.with-thumbs').find('.porto-portfolios-lighbox-thumbnails').clone(),magnificPopup=$.magnificPopup.instance;$('body').prepend(portfolio_lightbox_thumbnails_base);var $portfolios_lightbox_thumbnails=$('body > .porto-portfolios-lighbox-thumbnails'),$portfolios_lightbox_thumbnails_carousel=$portfolios_lightbox_thumbnails.children('.owl-carousel');$portfolios_lightbox_thumbnails_carousel.themeCarousel($portfolios_lightbox_thumbnails_carousel.data('plugin-options'));$portfolios_lightbox_thumbnails_carousel.trigger('refresh.owl.carousel');var $carousel_items_wrapper=$portfolios_lightbox_thumbnails_carousel.find('.owl-stage');$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current');$.magnificPopup.instance.next=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.next.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current')};$.magnificPopup.instance.prev=function(){var magnificPopup=$.magnificPopup.instance;$.magnificPopup.proto.prev.call(this);$carousel_items_wrapper.find('.owl-item').removeClass('current');$carousel_items_wrapper.find('.owl-item').eq(magnificPopup.currItem.index).addClass('current')};$carousel_items_wrapper.find('.owl-item').on('click',function(){$carousel_items_wrapper.find('.owl-item').removeClass('current');$.magnificPopup.instance.goTo($(this).index());$(this).addClass('current')})}},close:function(){$('body').removeClass('lightbox-opened');var fixed=this.st.fixedContentPos;if(fixed){$('#header.sticky-header .header-main.sticky, #header.sticky-header .main-menu-wrap, .fixed-header #header.sticky-header .header-main, .fixed-header #header.sticky-header .main-menu-wrap').css(theme.rtl_browser?'left':'right','')}
$('.owl-carousel .owl-stage').each(function(){var $this=$(this),w=$this.width()+parseInt($this.css('padding-left'))+parseInt($this.css('padding-right'));$this.css({'width':w+200});setTimeout(function(){$this.css({'width':w})},0)});var that=$(this._lastFocusedEl);if((that.parents('.portfolios-lightbox').hasClass('with-thumbs'))&&$(document).width()>=1024){$(' body > .porto-portfolios-lighbox-thumbnails').remove()}}}},})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__animate';var Animate=function($el,opts){return this.initialize($el,opts)};Animate.defaults={accX:0,accY:-120,delay:1,duration:1000};Animate.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,!0);return this},setOptions:function(opts){this.options=$.extend(!0,{},Animate.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,$el=this.options.wrapper,delay=0,duration=0;if($el.data('appear-animation-svg')){$el.find('[data-appear-animation]').each(function(){var $this=$(this),opts;var pluginOptions=theme.getOptions($this.data('plugin-options'));if(pluginOptions)
opts=pluginOptions;$this.themeAnimate(opts)});return this}
$el.addClass('appear-animation');var el_obj=$el.get(0);delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):self.options.delay);if(delay>1){el_obj.style.animationDelay=delay+'ms'}
duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):self.options.duration);if(duration!=1000){el_obj.style.animationDuration=duration+'ms'}
$el.addClass($el.data('appear-animation')+' appear-animation-visible');return this}};$.extend(theme,{Animate:Animate});$.fn.themeAnimate=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this}else{return new theme.Animate($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__animatedLetters';var PluginAnimatedLetters=function($el,opts){return this.initialize($el,opts)};PluginAnimatedLetters.defaults={animationName:'typeWriter',animationSpeed:50,startDelay:500,minWindowWidth:768,letterClass:''};PluginAnimatedLetters.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
var self=this;this.$el=$el;this.initialText=$el.text();this.timeoutId=null;this.setData().setOptions(opts).build().events();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},PluginAnimatedLetters.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,letters=self.$el.text().split('');if($(window).width()<self.options.minWindowWidth){self.$el.addClass('initialized');return this}
if(self.options.firstLoadNoAnim){self.$el.css({visibility:'visible'});if(self.$el.closest('.owl-carousel').get(0)){setTimeout(function(){self.$el.closest('.owl-carousel').on('change.owl.carousel',function(){self.options.firstLoadNoAnim=!1;self.build()})},500)}
return this}
self.$el.addClass('initialized');self.setMinHeight();self.$el.text('');if(self.options.animationName=='typeWriter'){self.$el.append('<span class="letters-wrapper"></span><span class="typeWriter"></pre>');var index=0;var timeout=function(){var st=setTimeout(function(){var letter=letters[index];self.$el.find('.letters-wrapper').append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+'">'+letter+'</span>');index++;timeout()},self.options.animationSpeed);if(index>=letters.length){clearTimeout(st)}};timeout()}else{this.timeoutId=setTimeout(function(){for(var i=0;i<letters.length;i++){var letter=letters[i];self.$el.append('<span class="letter '+(self.options.letterClass?self.options.letterClass+' ':'')+self.options.animationName+' animated" style="animation-delay: '+(i*self.options.animationSpeed)+'ms;">'+letter+'</span>')}},self.options.startDelay)}
return this},setMinHeight:function(){var self=this;if(self.$el.closest('.owl-carousel').get(0)){self.$el.closest('.owl-carousel').addClass('d-block');self.$el.css('min-height',self.$el.height());self.$el.closest('.owl-carousel').removeClass('d-block')}else{self.$el.css('min-height',self.$el.height())}
return this},destroy:function(){var self=this;self.$el.html(self.initialText).css('min-height','');if(this.timeoutId){clearTimeout(this.timeoutId);this.timeoutId=null}
return this},events:function(){var self=this;self.$el.on('animated.letters.destroy',function(){self.destroy()});self.$el.on('animated.letters.initialize',function(){self.build()});return this}};$.extend(theme,{PluginAnimatedLetters:PluginAnimatedLetters});$.fn.themePluginAnimatedLetters=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new PluginAnimatedLetters($this,opts)}})}}).apply(this,[window.theme,jQuery]);if(typeof jQuery.fn.owlCarousel=='function'){(function(theme,$){'use strict';theme=theme||{};var instanceName='__carousel';var Carousel=function($el,opts){return this.initialize($el,opts)};Carousel.defaults=$.extend({},{loop:!0,navText:[],themeConfig:!1,lazyLoad:!0,lg:0,md:0,sm:0,xs:0,single:!1,rtl:theme.rtl});Carousel.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,!0);return this},setOptions:function(opts){if((opts&&opts.themeConfig)||!opts){this.options=$.extend(!0,{},Carousel.defaults,theme.owlConfig,opts,{wrapper:this.$el,themeConfig:!0})}else{this.options=$.extend(!0,{},Carousel.defaults,opts,{wrapper:this.$el})}
return this},calcOwlHeight:function($el){var h=0;$el.find('.owl-item.active').each(function(){if(h<$(this).height())
h=$(this).height()});$el.children('.owl-stage-outer').height(h)},build:function(){if(!$.fn.owlCarousel){return this}
var $el=this.options.wrapper,loop=this.options.loop,lg=this.options.lg,md=this.options.md,sm=this.options.sm,xs=this.options.xs,single=this.options.single,zoom=$el.find('.zoom').get(0),responsive={},items,count=$el.find('.owl-item').length>0?$el.find('.owl-item:not(.cloned)').length:$el.find('> *').length,fullscreen=typeof this.options.fullscreen=='undefined'?!1:this.options.fullscreen;if(single){items=1}else if(typeof this.options.responsive!='undefined'){for(var w in this.options.responsive){var number_items=Number(this.options.responsive[w]);responsive[Number(w)]={items:number_items,loop:(loop&&count>=number_items)?!0:!1}}}else{items=this.options.items?this.options.items:(lg?lg:1);var isResponsive=(this.options.xl||lg||md||sm||xs);if(isResponsive){if(this.options.xl){responsive[1400]={items:this.options.xl,loop:(loop&&count>this.options.xl)?!0:!1,mergeFit:this.options.mergeFit}}else{if(lg&&items>lg+1){responsive[1400]={items:items,loop:(loop&&count>items)?!0:!1,mergeFit:this.options.mergeFit};responsive[theme.screen_lg]={items:lg+1,loop:(loop&&count>lg+1)?!0:!1,mergeFit:this.options.mergeFit}}}
if(typeof responsive[theme.screen_lg]=='undefined'){responsive[theme.screen_lg]={items:items,loop:(loop&&count>=items)?!0:!1,mergeFit:this.options.mergeFit}}
if(lg)responsive[992]={items:lg,loop:(loop&&count>=lg)?!0:!1,mergeFit:this.options.mergeFit_lg};if(md)responsive[768]={items:md,loop:(loop&&count>md)?!0:!1,mergeFit:this.options.mergeFit_md};if(sm){responsive[576]={items:sm,loop:(loop&&count>sm)?!0:!1,mergeFit:this.options.mergeFit_sm}}else{responsive[576]={items:1,mergeFit:!1}}
if(xs){responsive[0]={items:xs,loop:(loop&&count>xs)?!0:!1,mergeFit:this.options.mergeFit_xs}}else{responsive[0]={items:1}}}}
if(!$el.hasClass('show-nav-title')&&this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover){$el.addClass('show-nav-hover')}
this.options=$.extend(!0,{},this.options,{items:items,loop:(loop&&count>items)?!0:!1,responsive:responsive,onInitialized:function(){if($el.hasClass('stage-margin')){$el.find('.owl-stage-outer').css({'margin-left':this.options.stagePadding,'margin-right':this.options.stagePadding})}
var heading_cls='.porto-u-heading, .vc_custom_heading, .slider-title, .elementor-widget-heading, .porto-heading';if($el.hasClass('show-dots-title')&&($el.prev(heading_cls).length||$el.closest('.slider-wrapper').prev(heading_cls).length||$el.closest('.porto-recent-posts').prev(heading_cls).length||$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls).length)){var $obj=$el.prev(heading_cls);if(!$obj.length){$obj=$el.closest('.slider-wrapper').prev(heading_cls)}
if(!$obj.length){$obj=$el.closest('.porto-recent-posts').prev(heading_cls)}
if(!$obj.length){$obj=$el.closest('.elementor-widget-porto_recent_posts, .elementor-section').prev(heading_cls)}
try{var innerWidth=$obj.addClass('w-auto').css('display','inline-block').width();$obj.removeClass('w-auto').css('display','');if(innerWidth+15+$el.find('.owl-dots').width()<=$obj.width()){$el.find('.owl-dots').css('left',innerWidth+15+($el.width()-$obj.width())/2);$el.find('.owl-dots').css('top',-1*$obj.height()/2-parseInt($obj.css('margin-bottom'))-$el.find('.owl-dots').height()/2+2)}else{$el.find('.owl-dots').css('position','static')}}catch(e){}}}});if(this.options.autoHeight){var thisobj=this;$(window).on('resize',function(){thisobj.calcOwlHeight($el)});if(theme.isLoaded){setTimeout(function(){thisobj.calcOwlHeight($el)},100)}else{$(window).on('load',function(){thisobj.calcOwlHeight($el)})}}
var links=!1;if(zoom){links=[];var i=0;$el.find('.zoom').each(function(){var slide={},$zoom=$(this);slide.src=$zoom.data('src')?$zoom.data('src'):$zoom.data('mfp-src');slide.title=$zoom.data('title');links[i]=slide;$zoom.data('index',i);i++})}
if($el.hasClass('show-nav-title')){this.options.stagePadding=0}else{if(this.options.themeConfig&&theme.slider_nav&&theme.slider_nav_hover)
$el.addClass('show-nav-hover');if(this.options.themeConfig&&!theme.slider_nav_hover&&theme.slider_margin)
$el.addClass('stage-margin')}
if($el.hasClass('has-ccols-spacing')){$el.removeClass('has-ccols-spacing')}
$el.owlCarousel(this.options);if(zoom&&links){$el.on('click','.zoom',function(e){e.preventDefault();if($.fn.magnificPopup){var image_index=$(this).data('index');if(typeof image_index=='undefined'){image_index=($(this).closest('.owl-item').index()-$el.find('.cloned').length/2)%$el.data('owl.carousel').items().length}
$.magnificPopup.close();$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,{items:links,gallery:{enabled:!0},type:'image'}),image_index)}
return!1})}
return this}}
$.extend(theme,{Carousel:Carousel});$.fn.themeCarousel=function(opts,zoom){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this}else{return new theme.Carousel($this,opts,zoom)}})}}).apply(this,[window.theme,jQuery])}(function(theme,$){'use strict';theme=theme||{};var instanceName='__lightbox';var Lightbox=function($el,opts){return this.initialize($el,opts)};Lightbox.defaults={callbacks:{open:function(){$('body').addClass('lightbox-opened')},close:function(){$('body').removeClass('lightbox-opened')}}};Lightbox.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},Lightbox.defaults,theme.mfpConfig,opts,{wrapper:this.$el});return this},build:function(){if(!$.fn.magnificPopup){return this}
this.options.wrapper.magnificPopup(this.options);return this}};$.extend(theme,{Lightbox:Lightbox});$.fn.themeLightbox=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Lightbox($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__toggle';var VcImageZoom=function($el,opts){return this.initialize($el,opts)};VcImageZoom.defaults={};VcImageZoom.prototype={initialize:function($el,opts){if($el.data(instanceName)){return this}
this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},VcImageZoom.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this,$el=this.options.container;$el.parent().magnificPopup($.extend(!0,{},theme.mfpConfig,{delegate:".porto-vc-zoom",gallery:{enabled:!0},mainClass:'mfp-with-zoom',zoom:{enabled:!0,duration:300},type:'image'}));return this}};$.extend(theme,{VcImageZoom:VcImageZoom});$.fn.themeVcImageZoom=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.VcImageZoom($this,opts)}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var $rev_sliders;$.extend(theme,{PostAjaxModal:{defaults:{elements:'.page-portfolios'},initialize:function($elements,post_type){this.$elements=($elements||$(this.defaults.elements));if(typeof post_type=='undefined'){post_type='portfolio'}
this.build(post_type);return this},build:function(post_type){var parentobj=this,postAjaxOnModal={$wrapper:null,modals:[],currentModal:0,total:0,p_type:'portfolio',build:function($this,p_type){var self=this;self.$wrapper=$this;if(!self.$wrapper){return}
self.modals=[];self.total=0;self.p_type=p_type;$this.find('a[data-ajax-on-modal]').each(function(){self.add($(this))});$this.off('mousedown','a[data-ajax-on-modal]').on('mousedown','a[data-ajax-on-modal]',function(ev){if(ev.which==2){ev.preventDefault();return!1}})},add:function($el){var self=this,href=$el.attr('href'),index=self.total;self.modals.push({src:href});self.total++;$el.off('click').on('click',function(e){e.preventDefault();self.show(index);return!1})},next:function(){var self=this;if(self.currentModal+1<self.total){self.show(self.currentModal+1)}else{self.show(0)}},prev:function(){var self=this;if((self.currentModal-1)>=0){self.show(self.currentModal-1)}else{self.show(self.total-1)}},show:function(i){var self=this;self.currentModal=i;if(i<0||i>(self.total-1)){return!1}
$.magnificPopup.close();$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,{type:'ajax',items:self.modals,gallery:{enabled:!0},ajax:{settings:{type:'post',data:{ajax_action:self.p_type+'_ajax_modal'}}},mainClass:self.p_type+'-ajax-modal',fixedContentPos:!1,callbacks:{parseAjax:function(mfpResponse){var $response=$(mfpResponse.data),$post=$response.find('#content article.'+self.p_type),$vc_css=$response.filter('style[data-type]:not("")'),vc_css='';$vc_css.each(function(){vc_css+=$(this).text()});if($('#'+self.p_type+'AjaxCSS').get(0)){$('#'+self.p_type+'AjaxCSS').text(vc_css)}else{$('<style id="'+self.p_type+'AjaxCSS">'+vc_css+'</style>').appendTo("head")}
$post.find('.'+self.p_type+'-nav-all').html('<a href="#" data-ajax-'+self.p_type+'-close data-bs-tooltip data-original-title="'+js_porto_vars.popup_close+'" data-bs-placement="bottom"><i class="fas fa-th"></i></a>');$post.find('.'+self.p_type+'-nav').html('<a href="#" data-ajax-'+self.p_type+'-prev class="'+self.p_type+'-nav-prev" data-bs-tooltip data-original-title="'+js_porto_vars.popup_prev+'" data-bs-placement="bottom"><i class="fa"></i></a><a href="#" data-toggle="tooltip" data-ajax-'+self.p_type+'-next class="'+self.p_type+'-nav-next" data-bs-tooltip data-original-title="'+js_porto_vars.popup_next+'" data-bs-placement="bottom"><i class="fa"></i></a>');$post.find('.elementor-invisible').removeClass('elementor-invisible');mfpResponse.data='<div class="ajax-container">'+$post.html()+'</div>'},ajaxContentAdded:function(){var $wrapper=$('.'+self.p_type+'-ajax-modal');$wrapper.find('a[data-ajax-'+self.p_type+'-close]').on('click',function(e){e.preventDefault();$.magnificPopup.close();return!1});$rev_sliders=$wrapper.find('.rev_slider, rs-module');if(self.modals.length<=1){$wrapper.find('a[data-ajax-'+self.p_type+'-prev], a[data-ajax-'+self.p_type+'-next]').remove()}else{$wrapper.find('a[data-ajax-'+self.p_type+'-prev]').on('click',function(e){e.preventDefault();if($rev_sliders&&$rev_sliders.get(0)){try{$rev_sliders.revkill()}catch(err){}}
$wrapper.find('.mfp-arrow-left').trigger('click');return!1});$wrapper.find('a[data-ajax-'+self.p_type+'-next]').on('click',function(e){e.preventDefault();if($rev_sliders&&$rev_sliders.get(0)){try{$rev_sliders.revkill()}catch(err){}}
$wrapper.find('.mfp-arrow-right').trigger('click');return!1})}
if('portfolio'==self.p_type){$(window).trigger('resize')}
porto_init();theme.refreshVCContent($wrapper);setTimeout(function(){var videos=$wrapper.find('video');if(videos.get(0)){videos.each(function(){$(this)[0].play();$(this).parent().parent().parent().find('.video-controls').attr('data-action','play');$(this).parent().parent().parent().find('.video-controls').html('<i class="ult-vid-cntrlpause"></i>')})}},600);$wrapper.off('scroll').on('scroll',function(){$.fn.appear.run()})},change:function(){$('.mfp-wrap .ajax-container').trigger('click')},beforeClose:function(){if($rev_sliders&&$rev_sliders.get(0)){try{$rev_sliders.revkill()}catch(err){}}
var $wrapper=$('.'+self.p_type+'-ajax-modal');$wrapper.off('scroll')}}}),i)}};parentobj.$elements.each(function(){var $this=$(this);if(!$this.find('a[data-ajax-on-modal]').get(0)){return}
if($this.data(post_type+'AjaxOnModal')){return}
postAjaxOnModal.build($this,post_type);$this.data(post_type+'AjaxOnModal',postAjaxOnModal)});return parentobj}}});$(document.documentElement).on('keydown',function(e){try{if(e.keyCode==37||e.keyCode==39){if($rev_sliders&&$rev_sliders.get(0)){$rev_sliders.revkill()}}}catch(err){}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var activePortfolioAjaxOnPage;$.extend(theme,{PortfolioAjaxPage:{defaults:{elements:'.page-portfolios'},initialize:function($elements){this.$elements=($elements||$(this.defaults.elements));this.build();return this},build:function(){var self=this;self.$elements.each(function(){var $this=$(this);if(!$this.find('#portfolioAjaxBox').get(0)){return}
if($this.data('portfolioAjaxOnPage')){return}
var $container=$(this),portfolioAjaxOnPage={$wrapper:$container,pages:[],currentPage:0,total:0,$ajaxBox:$this.find('#portfolioAjaxBox'),$ajaxBoxContent:$this.find('#portfolioAjaxBoxContent'),build:function(){var self=this;self.pages=[];self.total=0;$this.find('a[data-ajax-on-page]').each(function(){self.add($(this))});$this.off('mousedown','a[data-ajax-on-page]').on('mousedown','a[data-ajax-on-page]',function(ev){if(ev.which==2){ev.preventDefault();return!1}})},add:function($el){var self=this,href=$el.attr('href');self.pages.push(href);self.total++;$el.off('click').on('click',function(e){e.preventDefault();var _class=e.target.className
if(_class=='owl-next'){return!1}else if(_class=='owl-prev'){return!1}else{self.show(self.pages.indexOf(href))}
return!1})},events:function(){var self=this;$this.off('click','a[data-ajax-portfolio-close]').on('click','a[data-ajax-portfolio-close]',function(e){e.preventDefault();self.close();return!1});if(self.total<=1){$('a[data-ajax-portfolio-prev], a[data-ajax-portfolio-next]').remove()}else{$this.off('click','a[data-ajax-portfolio-prev]').on('click','a[data-ajax-portfolio-prev]',function(e){e.preventDefault();self.prev();return!1});$this.off('click','a[data-ajax-portfolio-next]').on('click','a[data-ajax-portfolio-next]',function(e){e.preventDefault();self.next();return!1})}},close:function(){var self=this;if(self.$ajaxBoxContent.find('.rev_slider, rs-module').get(0)){try{self.$ajaxBoxContent.find('.rev_slider, rs-module').revkill()}catch(err){}}
self.$ajaxBoxContent.empty();self.$ajaxBox.removeClass('ajax-box-init').removeClass('ajax-box-loading')},next:function(){var self=this;if(self.currentPage+1<self.total){self.show(self.currentPage+1)}else{self.show(0)}},prev:function(){var self=this;if((self.currentPage-1)>=0){self.show(self.currentPage-1)}else{self.show(self.total-1)}},show:function(i){var self=this;activePortfolioAjaxOnPage=null;if(self.$ajaxBoxContent.find('.rev_slider, rs-module').get(0)){try{self.$ajaxBoxContent.find('.rev_slider, rs-module').revkill()}catch(err){}}
self.$ajaxBoxContent.empty();self.$ajaxBox.removeClass('ajax-box-init').addClass('ajax-box-loading');theme.scrolltoContainer(self.$ajaxBox);self.currentPage=i;if(i<0||i>(self.total-1)){self.close();return!1}
$.ajax({url:self.pages[i],complete:function(data){var $response=$(data.responseText),$portfolio=$response.find('#content article.portfolio'),$vc_css=$response.filter('style[data-type]:not("")'),vc_css='';if($('#portfolioAjaxCSS').get(0)){$('#portfolioAjaxCSS').text(vc_css)}else{$('<style id="portfolioAjaxCSS">'+vc_css+'</style>').appendTo("head")}
$portfolio.find('.portfolio-nav-all').html('<a href="#" data-ajax-portfolio-close data-bs-tooltip data-original-title="'+js_porto_vars.popup_close+'"><i class="fas fa-th"></i></a>');$portfolio.find('.portfolio-nav').html('<a href="#" data-ajax-portfolio-prev class="portfolio-nav-prev" data-bs-tooltip data-original-title="'+js_porto_vars.popup_prev+'"><i class="fa"></i></a><a href="#" data-toggle="tooltip" data-ajax-portfolio-next class="portfolio-nav-next" data-bs-tooltip data-original-title="'+js_porto_vars.popup_next+'"><i class="fa"></i></a>');self.$ajaxBoxContent.html($portfolio.html()).append('<div class="row"><div class="col-lg-12"><hr class="tall"></div></div>');self.$ajaxBox.removeClass('ajax-box-loading');$(window).trigger('resize');porto_init();theme.refreshVCContent(self.$ajaxBoxContent);self.events();activePortfolioAjaxOnPage=self;self.$ajaxBoxContent.find('.lightbox:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;$this.themeLightbox(opts)})}})}};portfolioAjaxOnPage.build();$this.data('portfolioAjaxOnPage',portfolioAjaxOnPage)});return self}}});$(document.documentElement).on('keyup',function(e){try{if(!activePortfolioAjaxOnPage)return;if(e.keyCode==39){activePortfolioAjaxOnPage.next()}
if(e.keyCode==37){activePortfolioAjaxOnPage.prev()}}catch(err){}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{PostFilter:{cache:{},defaults:{elements:'.portfolio-filter'},initialize:function($elements,post_type){this.$elements=($elements||$(this.defaults.elements));this.build(post_type);return this},filterFn:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return}
var self=e.data.selfobj;if(self.isLoading){return!1}
var $this=e.data.thisobj,$elements=e.data.elements,position=e.data.position,post_type=e.data.post_type,$parent=e.data.parent,$posts_wrap=e.data.posts_wrap,use_ajax=e.data.use_ajax,page_path=e.data.page_path,infinite_load=e.data.infinite_load,load_more=e.data.load_more;e.preventDefault();if($(this).hasClass('active')){return}
self.isLoading=!0;var selector=$(this).attr('data-filter');if('sidebar'==position){$('.sidebar-overlay').trigger('click')}
$this.find('.active').removeClass('active');if(use_ajax){var current_cat='*'==selector?'':selector;if(!page_path){page_path=$posts_wrap.data('page_path')}
if(page_path){$posts_wrap.data('page_path',page_path.replace(/&category=[^&]*&/,'&category='+current_cat+'&'))}
$(this).addClass('active');self.load_posts(current_cat,infinite_load||load_more?!0:!1,$parent,post_type,$posts_wrap,undefined,$(this).children('a').attr('href'))}else if('faq'==post_type){$parent.find('.faq').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(!0).slideDown(timeout,easing,function(){$(this).attr('style','').show()});selected++}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(!0).slideDown(timeout,easing,function(){$(this).attr('style','').show()});selected++}else{if($that.css('display')!='none')$that.stop(!0).slideUp(timeout,easing,function(){$(this).attr('style','').hide()})}}});if(!selected&&$parent.find('.faqs-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.faqs-infinite').infinitescroll('retrieve')}}else if($parent.hasClass('portfolios-timeline')){var selected=0;$parent.find('.portfolio').each(function(){var $that=$(this),easing="easeInOutQuart",timeout=300;if(selector=='*'){if($that.css('display')=='none')$that.stop(!0).slideDown(timeout,easing,function(){$(this).attr('style','').show()});selected++}else{if($that.hasClass(selector)){if($that.css('display')=='none')$that.stop(!0).slideDown(timeout,easing,function(){$(this).attr('style','').show()});selected++}else{if($that.css('display')!='none')$that.stop(!0).slideUp(timeout,easing,function(){$(this).attr('style','').hide()})}}});if(!selected&&$parent.find('.portfolios-infinite').length&&typeof($.fn.infinitescroll)!='undefined'){$parent.find('.portfolios-infinite').infinitescroll('retrieve')}
setTimeout(function(){theme.FilterZoom.initialize($parent)},400)}else{$parent.find('.'+post_type+'-row').isotope({filter:selector=='*'?selector:'.'+selector})}
if(!use_ajax){$(this).addClass('active');self.isLoading=!1}
if(position=='sidebar'){self.$elements.each(function(){var $that=$(this);if($that==$this&&$that.data('position')!='sidebar')return;$that.find('li').removeClass('active');$that.find('li[data-filter="'+selector+'"]').addClass('active')})}
if(!use_ajax){window.location.hash='#'+selector}
theme.refreshVCContent();return!1},build:function(post_type_param){var self=this;self.$elements.each(function(){var $this=$(this),position=$this.data('position'),$parent,post_type;if(typeof post_type_param=='undefined'){if($this.hasClass('member-filter')){post_type='member'}else if($this.hasClass('faq-filter')){post_type='faq'}else if($this.hasClass('product-filter')){post_type='product'}else if($this.hasClass('post-filter')){post_type='post'}else if($this.hasClass('portfolio-filter')){post_type='portfolio'}else{post_type=$this.attr('data-filter-type')}}else{post_type=post_type_param}
if('sidebar'==position){$parent=$('.main-content .page-'+post_type+'s')}else if('global'==position){$parent=$('.main-content .page-'+post_type+'s')}else{$parent=$this.closest('.page-'+post_type+'s')}
if(!$parent.length){$parent=$this.closest('.porto-posts-grid')}
if(!$parent||!$parent.length){return}
var use_ajax=$this.hasClass('porto-ajax-filter'),infinite_load=$parent.hasClass('load-infinite'),load_more=$parent.hasClass('load-more');var $posts_wrap=$parent.find('.'+post_type+'s-container'),page_path;if(use_ajax&&((!infinite_load&&!load_more)||!$parent.data('ajax_load_options'))){var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0]}
page_path=theme.ajax_url+'?action=porto_ajax_posts&nonce='+js_porto_vars.porto_nonce+'&post_type='+post_type+'&current_link='+current_url+'&category=&page=%cur_page%';if($parent.data('post_layout')){page_path+='&post_layout='+$parent.data('post_layout')}
$posts_wrap.data('page_path',page_path)}
$this.find('li').on('click',{thisobj:$this,selfobj:self,elements:self.$elements,position:position,parent:$parent,post_type:post_type,posts_wrap:$posts_wrap,use_ajax:use_ajax,page_path:page_path,infinite_load:infinite_load,load_more:load_more},self.filterFn)});$(window).on('hashchange',{elements:self.$elements},self.hashchange);self.hashchange({data:{elements:self.$elements}});return self},hashchange:function(e){if(typeof e=='undefined'||typeof e.data=='undefined'||typeof e.data.elements=='undefined'||!e.data.elements||!e.data.elements.length){return}
var $elements=e.data.elements,$filter=$($elements.get(0)),hash=window.location.hash;if(hash){var $o=$filter.find('li[data-filter="'+hash.replace('#','')+'"]');if(!$o.hasClass('active')){$o.trigger('click')}}},set_elements:function($elements){var self=this;if(typeof $elements=='undefined'||!$elements||!$elements.length){self.destroy(self.$elements);return}
self.$elements=$elements;$(window).off('hashchange',self.hashchange).on('hashchange',{elements:$elements},self.hashchange)},destroy:function($elements){if(typeof $elements=='undefined'||!$elements||!$elements.length){return}
var self=this;$elements.find('li').off('click',self.filterFn);$(window).off('hashchange',self.hashchange)},load_posts:function(cat,is_infinite,$parent,post_type,$posts_wrap,default_args,page_url){var pid=$parent.attr('id'),self=this,is_archive=$parent.hasClass('archive-posts'),successfn=function(res,directcall){if(!res){return}
if((typeof directcall=='undefined'||!0!==directcall)&&typeof default_args=='undefined'&&pid){if(!self.cache[pid]){self.cache[pid]={}}
self.cache[pid][cat]=res}
var $res=$(res),is_shop=$parent.hasClass('archive-products'),$posts=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap').children();if(!$posts.length){return}
if(typeof $posts_wrap=='undefined'||is_archive){$posts_wrap=$parent.find('.'+post_type+'s-container')}
if(!$posts_wrap.length){return}
if($posts_wrap.data('isotope')){$posts_wrap.isotope('remove',$posts_wrap.children())}else{$posts_wrap.children().remove()}
if($posts_wrap.hasClass('owl-loaded')){$posts_wrap.removeClass('owl-loaded')}
$posts_wrap.append($posts);theme.refreshVCContent($posts);var $old_filter=$parent.find('.'+post_type+'-filter');if($old_filter.length&&!$old_filter.hasClass('porto-ajax-filter')&&!$parent.hasClass('load-infinite')&&!$parent.hasClass('load-more')){var $new_filter=$res.find((is_archive?'.archive-posts ':'')+'.'+post_type+'-filter');if($new_filter.length){$old_filter.find('li:first-child').trigger('click');theme.PostFilter.destroy($old_filter);$old_filter.replaceWith($new_filter);theme.PostFilter.initialize($new_filter,post_type);theme.PostFilter.set_elements($('ul[data-filter-type]'))}}
porto_init($parent);var behavior_action='';if(post_type!='product'&&post_type!='member'&&post_type!='faq'&&post_type!='portfolio'&&post_type!='post'){behavior_action='ptu'}else{behavior_action=post_type}
theme.PostsInfinite[behavior_action+'Behavior']($posts,$posts_wrap);var $old_pagination=$parent.find('.pagination-wrap'),$new_pagination=$res.find((is_archive?'.archive-posts ':'')+'.pagination-wrap').eq(0),has_pagination=!1;if($old_pagination.length){if($new_pagination.length){$old_pagination.replaceWith($new_pagination);has_pagination=!0}else{$old_pagination.children().remove()}}else if($new_pagination.length){$parent.append($new_pagination);has_pagination=!0}
if(is_infinite){var infinitescroll_ins=$posts_wrap.data('infinitescroll');if(has_pagination){var $new_posts_wrap=$res.find(is_archive?'.archive-posts .posts-wrap':'.posts-wrap');if($new_posts_wrap.data('cur_page')){$posts_wrap.data('cur_page',$new_posts_wrap.data('cur_page'));$posts_wrap.data('max_page',$new_posts_wrap.data('max_page'))}
var should_init_again=!0;if(infinitescroll_ins){if(infinitescroll_ins.options.state.isDestroyed){$posts_wrap.removeData('infinitescroll')}else{should_init_again=!1;if($new_posts_wrap.data('cur_page')){infinitescroll_ins.update({maxPage:$new_posts_wrap.data('max_page'),state:{currPage:$new_posts_wrap.data('cur_page')}})}
if(infinitescroll_ins.options.state.isPaused){infinitescroll_ins.resume()}}}
if(should_init_again){var ins=$posts_wrap.data('__postsinfinite');if(ins){ins.destroy()}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type)}
if(is_archive){var page_path=$posts_wrap.siblings('.pagination-wrap').find('.next').attr('href');if(page_path){page_path+=(-1!==page_path.indexOf('?')?'&':'?')+'portoajax=1&load_posts_only=2';page_path=page_path.replace(/(paged=)(\d+)|(page\/)(\d+)/,'$1$3%cur_page%');$posts_wrap.data('page_path',page_path)}}
new theme.PostsInfinite($posts_wrap,'.'+post_type+', .timeline-date',$posts_wrap.data('infiniteoptions'),post_type)}}
if(is_archive){$('.sidebar-content').each(function(index){var $this=$(this),$that=$($res.find('.sidebar-content').get(index));$this.html($that.html());if(is_shop){if(typeof updateSelect2!='undefined'&&updateSelect2){if(jQuery().selectWoo){var porto_wc_layered_nav_select=function(){$this.find('select.woocommerce-widget-layered-nav-dropdown').each(function(){$(this).selectWoo({placeholder:$(this).find('option').eq(0).text(),minimumResultsForSearch:5,width:'100%',allowClear:typeof $(this).attr('multiple')!='undefined'&&$(this).attr('multiple')=='multiple'?'false':'true'})})};porto_wc_layered_nav_select()}
$('body').children('span.select2-container').remove()}}});if(is_shop){var $script=$res.filter('script:contains("var woocommerce_price_slider_params")').first();if($script&&$script.length&&$script.text().indexOf('{')!==-1&&$script.text().indexOf('}')!==-1){var arrStr=$script.text().substring($script.text().indexOf('{'),$script.text().indexOf('}')+1);window.woocommerce_price_slider_params=JSON.parse(arrStr)}
var $title=$('.entry-title');if($title.length){var $newTitle=$res.find('.entry-title').eq(0);if($newTitle.length){$title.html($newTitle.html())}}
var $desc=$('.entry-description');if($desc.length){var $newDesc=$res.find('.entry-description').eq(0);if($newDesc.length){$desc.html($newDesc.html())}}
var shop_before='.shop-loop-before',$shop_before=$(shop_before);if($shop_before.length){if($res.find(shop_before).length){$shop_before.each(function(index){var $res_shop_before=$res.find(shop_before).eq(index);if($res_shop_before.length){$(this).html($res_shop_before.html()).show()}})}else{$shop_before.empty()}}
var $count=$('.woocommerce-result-count');if($count.length){var $newCount=$res.find('.woocommerce-result-count').eq(0);if($newCount.length){$count[0].outerHTML=$newCount.length?$newCount[0].outerHTML:''}}
$(document).trigger('yith-wcan-ajax-filtered')}
if(page_url&&!navigator.userAgent.match(/msie/i)){window.history.pushState({'pageTitle':(res&&res.pageTitle)||''},'',page_url)}}
$(document.body).trigger('porto_load_posts_end',[$parent.parent()])};if(typeof default_args=='undefined'&&typeof self.cache[pid]!='undefined'&&typeof self.cache[pid][cat]!='undefined'&&self.cache[pid][cat]){successfn(self.cache[pid][cat],!0);self.isLoading=!1;$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove();return}
var ajax_load_options=$parent.data('ajax_load_options');if(($parent.hasClass('archive-products')&&-1!=js_porto_vars.use_skeleton_screen.indexOf('shop'))||(is_archive&&-1!=js_porto_vars.use_skeleton_screen.indexOf('blog'))){$posts_wrap=$parent.find('.'+post_type+'s-container');if(ajax_load_options){var tag_name='div';if('product'==post_type&&'ul'==$posts_wrap.get(0).tagName.toLowerCase()){tag_name='li'}
$posts_wrap.addClass('skeleton-body').empty();for(var i=0;i<Number(ajax_load_options.count||(ajax_load_options.columns&&ajax_load_options.columns*3)||12);i++){$posts_wrap.append('<'+tag_name+' class="porto-tb-item post '+post_type+('product'==post_type?' product-col':'')+'"></'+tag_name+'>')}}else{$posts_wrap.addClass('skeleton-body').children().empty()}}else{if(!$parent.children('.porto-loading-icon').length){$parent.append('<i class="porto-loading-icon"></i>')}
$parent.addClass('porto-ajax-loading')}
var current_url=window.location.href;if(-1!==current_url.indexOf('#')){current_url=current_url.split('#')[0]}
var args,load_url=theme.ajax_url;if($parent.hasClass('archive-posts')){args={portoajax:!0,load_posts_only:!0};if($parent.closest('.porto-block').length){args.builder_id=$parent.closest('.porto-block').data('id')}
load_url=typeof page_url!='undefined'?page_url:current_url}else{args={action:'porto_ajax_posts',nonce:js_porto_vars.porto_nonce,post_type:post_type,current_link:current_url};if($parent.data('post_layout')){args.post_layout=$parent.data('post_layout')}
if(ajax_load_options){args.extra=ajax_load_options}
if(typeof default_args!='undefined'){args=$.extend(args,default_args)}}
if(cat){args.category=cat}
$.ajax({url:load_url,type:'post',data:args,success:successfn,complete:function(){self.isLoading=!1;$posts_wrap.removeClass('skeleton-body');$parent.removeClass('porto-ajax-loading').removeClass('loading').find('.porto-loading-icon').remove()}})}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var activeMemberAjaxOnPage;$.extend(theme,{MemberAjaxPage:{defaults:{elements:'.page-members'},initialize:function($elements){this.$elements=($elements||$(this.defaults.elements));this.build();return this},build:function(){var self=this;self.$elements.each(function(){var $this=$(this);if(!$this.find('#memberAjaxBox').get(0))
return;var $container=$(this),memberAjaxOnPage={$wrapper:$container,pages:[],currentPage:0,total:0,$ajaxBox:$this.find('#memberAjaxBox'),$ajaxBoxContent:$this.find('#memberAjaxBoxContent'),build:function(){var self=this;self.pages=[];self.total=0;$this.find('a[data-ajax-on-page]').each(function(){self.add($(this))});$this.off('mousedown','a[data-ajax-on-page]').on('mousedown','a[data-ajax-on-page]',function(ev){if(ev.which==2){ev.preventDefault();return!1}})},add:function($el){var self=this,href=$el.attr('href');self.pages.push(href);self.total++;$el.off('click').on('click',function(e){e.preventDefault();self.show(self.pages.indexOf(href));return!1})},next:function(){var self=this;if(self.currentPage+1<self.total){self.show(self.currentPage+1)}else{self.show(0)}},prev:function(){var self=this;if((self.currentPage-1)>=0){self.show(self.currentPage-1)}else{self.show(self.total-1)}},show:function(i){var self=this;activeMemberAjaxOnPage=null;if(self.$ajaxBoxContent.find('.rev_slider, rs-module').get(0)){try{self.$ajaxBoxContent.find('.rev_slider, rs-module').revkill()}catch(err){}}
self.$ajaxBoxContent.empty();self.$ajaxBox.removeClass('ajax-box-init').addClass('ajax-box-loading');theme.scrolltoContainer(self.$ajaxBox);self.currentPage=i;if(i<0||i>(self.total-1)){self.close();return!1}
$.ajax({url:self.pages[i],complete:function(data){var $response=$(data.responseText),$member=$response.find('#content article.member'),$vc_css=$response.filter('style[data-type]:not("")'),vc_css='';$vc_css.each(function(){vc_css+=$(this).text()});if($('#memberAjaxCSS').get(0)){$('#memberAjaxCSS').text(vc_css)}else{$('<style id="memberAjaxCSS">'+vc_css+'</style>').appendTo("head")}
var $append=self.$ajaxBox.find('.ajax-content-append'),html='';if($append.length)html=$append.html();self.$ajaxBoxContent.html($member.html()).prepend('<div class="row"><div class="col-lg-12"><hr class="tall m-t-none"></div></div>').append('<div class="row"><div class="col-md-12"><hr class="m-t-md"></div></div>'+html);self.$ajaxBox.removeClass('ajax-box-loading');$(window).trigger('resize');porto_init();theme.refreshVCContent(self.$ajaxBoxContent);activeMemberAjaxOnPage=self}})}};memberAjaxOnPage.build();$this.data('memberAjaxOnPage',memberAjaxOnPage)});return self}}});$(document.documentElement).on('keyup',function(e){try{if(!activeMemberAjaxOnPage)return;if(e.keyCode==39){activeMemberAjaxOnPage.next()}
if(e.keyCode==37){activeMemberAjaxOnPage.prev()}}catch(err){}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};$.extend(theme,{FilterZoom:{defaults:{elements:null},initialize:function($elements){this.$elements=($elements||this.defaults.elements);this.build();return this},build:function(){var self=this;self.$elements.each(function(){var $this=$(this),zoom=$this.find('.zoom, .thumb-info-zoom').get(0);if(!zoom)return;$this.find('.zoom, .thumb-info-zoom').off('click');var links=[];var i=0;$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){var $zoom=$that.find('.zoom, .thumb-info-zoom'),slide,src=$zoom.data('src'),title=$zoom.data('title');$zoom.data('index',i);if(Array.isArray(src)){$.each(src,function(index,value){slide={};slide.src=value;slide.title=title[index];links[i]=slide;i++})}else{slide={};slide.src=src;slide.title=title;links[i]=slide;i++}}});$this.find('article').each(function(){var $that=$(this);if($that.css('display')!='none'){$that.off('click','.zoom, .thumb-info-zoom').on('click','.zoom, .thumb-info-zoom',function(e){var $zoom=$(this),$parent=$zoom.parents('.thumb-info'),offset=0;if($parent.get(0)){var $slider=$parent.find('.porto-carousel');if($slider.get(0)){offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2}}
e.preventDefault();if($.fn.magnificPopup){$.magnificPopup.close();$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,{items:links,gallery:{enabled:!0},type:'image'}),$zoom.data('index')+offset)}
return!1})}})});return self}}})}).apply(this,[window.theme,jQuery]);(function(theme,$){'use strict';theme=theme||{};var instanceName='__parallax';var Mouseparallax=function($el,opts){return this.initialize($el,opts)};Mouseparallax.prototype={initialize:function($el,opts){this.$el=$el;this.setData().setOptions(opts).build();return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},{wrapper:this.$el,opts:opts});return this},build:function(){if(!$.fn.parallax){return this}
var $el=this.options.wrapper,opts=this.options.opts
$el.parallax(opts)}};$.extend(theme,{Mouseparallax:Mouseparallax});$.fn.themeMouseparallax=function(opts){var obj=this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new theme.Mouseparallax($this,opts)}});return obj}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme=theme||{};var instanceName='__readmore';var PluginReadMore=function($el,opts){return this.initialize($el,opts)};PluginReadMore.defaults={buttonOpenLabel:'Read More <i class="fas fa-chevron-down text-2 ms-1"></i>',buttonCloseLabel:'Read Less <i class="fas fa-chevron-up text-2 ms-1"></i>',enableToggle:!0,maxHeight:300,overlayColor:'#43a6a3',overlayHeight:100,startOpened:!1,align:'left'};PluginReadMore.prototype={initialize:function($el,opts){var self=this;this.$el=$el;this.setData().setOptions(opts).build().events().resize();if(self.options.startOpened){self.options.wrapper.find('.readmore-button-wrapper > button').trigger('click')}
return this},setData:function(){this.$el.data(instanceName,this);return this},setOptions:function(opts){this.options=$.extend(!0,{},PluginReadMore.defaults,opts,{wrapper:this.$el});return this},build:function(){var self=this;self.options.wrapper.addClass('position-relative');self.options.wrapper.append('<div class="readmore-overlay"></div>');var backgroundCssValue='linear-gradient(180deg, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)';if($('html').hasClass('safari')){backgroundCssValue='-webkit-linear-gradient(top, rgba(2, 0, 36, 0) 0%, '+self.options.overlayColor+' 100%)'}
self.options.wrapper.find('.readmore-overlay').css({background:backgroundCssValue,position:'absolute',bottom:0,left:0,width:'100%',height:self.options.overlayHeight,'z-index':1});self.options.wrapper.find('.readmore-button-wrapper').removeClass('d-none').css({position:'absolute',bottom:0,left:0,width:'100%','z-index':2});self.options.wrapper.find('.readmore-button-wrapper > button').html(self.options.buttonOpenLabel);self.options.wrapper.css({'height':self.options.maxHeight,'overflow-y':'hidden'});switch(self.options.align){case 'center':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-center');break;case 'right':self.options.wrapper.find('.readmore-button-wrapper').addClass('text-end');break;case 'left':default:self.options.wrapper.find('.readmore-button-wrapper').addClass('text-start');break}
return this},events:function(){var self=this;self.readMore=function(){self.options.wrapper.find('.readmore-button-wrapper > button:not(.readless)').on('click',function(e){e.preventDefault();self.options.wrapper.addClass('opened');var $this=$(this);setTimeout(function(){self.options.wrapper.animate({'height':self.options.wrapper[0].scrollHeight},function(){if(!self.options.enableToggle){$this.fadeOut()}
$this.html(self.options.buttonCloseLabel).addClass('readless').off('click');self.readLess();self.options.wrapper.find('.readmore-overlay').fadeOut();self.options.wrapper.css({'max-height':'none','overflow':'visible'});self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:-20})})},200)})}
self.readLess=function(){self.options.wrapper.find('.readmore-button-wrapper > button.readless').on('click',function(e){e.preventDefault();self.options.wrapper.removeClass('opened');var $this=$(this);self.options.wrapper.find('.readmore-button-wrapper').animate({bottom:0});self.options.wrapper.find('.readmore-overlay').fadeIn();setTimeout(function(){self.options.wrapper.height(self.options.wrapper[0].scrollHeight).animate({'height':self.options.maxHeight},function(){$this.html(self.options.buttonOpenLabel).removeClass('readless').off('click');self.readMore();self.options.wrapper.css({'overflow':'hidden'})})},200)})}
self.readMore();return this},resize:function(){var self=this;window.addEventListener('resize',function(){self.options.wrapper.hasClass('opened')?self.options.wrapper.css({'height':'auto'}):self.options.wrapper.css({'height':self.options.maxHeight})})}};$.extend(theme,{PluginReadMore:PluginReadMore});$.fn.themePluginReadMore=function(opts){return this.map(function(){var $this=$(this);if($this.data(instanceName)){return $this.data(instanceName)}else{return new PluginReadMore($this,$this.data('plugin-options'))}})}}).apply(this,[window.theme,jQuery]);(function(theme,$){theme.initAsync=function($wrap,wrapObj){if($.fn.themeAnimate){$(function(){var svgAnimates=wrapObj.querySelectorAll('svg [data-appear-animation]');if(svgAnimates.length){$(svgAnimates).closest('svg').attr('data-appear-animation-svg','1')}
var $animates=wrapObj.querySelectorAll('[data-plugin-animate], [data-appear-animation], [data-appear-animation-svg]');if($animates.length){var animateResize=function(){if(window.innerWidth<768){window.removeEventListener('resize',animateResize);$animates.forEach(function(o){o.classList.add('appear-animation-visible')})}};if(theme.animation_support){window.addEventListener('resize',animateResize);theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults)}else{$animates.forEach(function(o){o.classList.add('appear-animation-visible')})}}})}
if($.fn.themePluginAnimatedLetters&&($('[data-plugin-animated-letters]').length||$('.animated-letters').length)){theme.intObs('[data-plugin-animated-letters]:not(.manual), .animated-letters','themePluginAnimatedLetters')}
if($.fn.themeCarousel){$(function(){var portoCarouselInit=function(e){var $this=$(e.currentTarget);$this.find('[data-appear-animation]:not(.appear-animation)').addClass('appear-animation');if($this.find('.owl-item.cloned').length){$this.find('.porto-lazyload:not(.lazy-load-loaded)').themePluginLazyLoad({effect:'fadeIn',effect_speed:400});var $animates=e.currentTarget.querySelectorAll('.appear-animation');if($animates.length){theme.dynIntObsInit($animates,'themeAnimate',theme.Animate.defaults)}
if($.fn.themePluginAnimatedLetters&&($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)').length)){theme.dynIntObsInit($(this).find('.owl-item.cloned [data-plugin-animated-letters]:not(.manual)'),'themePluginAnimatedLetters')}}
setTimeout(function(){var $hiddenItems=$this.find('.owl-item:not(.active)');if(!$('html').hasClass('no-csstransitions')&&window.innerWidth>767){$hiddenItems.find('.appear-animation').removeClass('appear-animation-visible');$hiddenItems.find('.appear-animation').each(function(){var $el=$(this),delay=Math.abs($el.data('appear-animation-delay')?$el.data('appear-animation-delay'):0);if(delay>1){this.style.animationDelay=delay+'ms'}
var duration=Math.abs($el.data('appear-animation-duration')?$el.data('appear-animation-duration'):1000);if(1000!=duration){this.style.animationDuration=duration+'ms'}})}
if(window.innerWidth>=1200){$hiddenItems.find('[data-vce-animate]').removeAttr('data-vcv-o-animated')}},300)};var portoCarouselTranslated=function(e){var $this=$(e.currentTarget);var $active=$this.find('.owl-item.active');if($active.hasClass('translating')){$active.removeClass('translating');return}
$this.find('.owl-item.translating').removeClass('translating');$this.find('[data-plugin-animated-letters]').removeClass('invisible');$this.find('.owl-item.active [data-plugin-animated-letters]').trigger('animated.letters.initialize');if(window.innerWidth>767){$this.find('.appear-animation').removeClass('appear-animation-visible');$active.find('.appear-animation').each(function(){var $animation_item=$(this),anim_name=$animation_item.data('appear-animation');$animation_item.addClass(anim_name+' appear-animation-visible')})}
$active.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings&&(settings._animation||settings.animation)){var animation=settings._animation||settings.animation,delay=settings._animation_delay||settings.animation_delay||0;theme.requestTimeout(function(){$animation_item.removeClass('elementor-invisible').addClass('animated '+animation)},delay)}});if(window.innerWidth>=1200){$this.find('[data-vce-animate]').removeAttr('data-vcv-o-animated').removeAttr('data-vcv-o-animated-fully');$active.find('[data-vce-animate]').each(function(){var $animation_item=$(this);if($animation_item.data('porto-origin-anim')){var anim_name=$animation_item.data('porto-origin-anim');$animation_item.attr('data-vce-animate',anim_name).attr('data-vcv-o-animated',!0);var duration=parseFloat(window.getComputedStyle(this)['animationDuration'])*1000,delay=parseFloat(window.getComputedStyle(this)['animationDelay'])*1000;window.setTimeout(function(){$animation_item.attr('data-vcv-o-animated-fully',!0)},delay+duration+5)}})}};var portoCarouselTranslateVC=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');if(window.innerWidth>=1200){$this.find('[data-vce-animate]').each(function(){var $animation_item=$(this);$animation_item.data('porto-origin-anim',$animation_item.data('vce-animate')).attr('data-vce-animate','')})}};var portoCarouselTranslateElementor=function(e){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.owl-item:not(.active) .slide-animate').addClass('elementor-invisible');$this.find('.slide-animate').each(function(){var $animation_item=$(this),settings=$animation_item.data('settings');if(settings._animation||settings.animation){$animation_item.removeClass(settings._animation||settings.animation)}})};var portoCarouselTranslateWPB=function(e){if(window.innerWidth>767){var $this=$(e.currentTarget);$this.find('.owl-item.active').addClass('translating');$this.find('.appear-animation').each(function(){var $animation_item=$(this);$animation_item.removeClass($animation_item.data('appear-animation'))})}};var carouselItems=$wrap.find('.owl-carousel:not(.manual)');carouselItems.on('initialized.owl.carousel refreshed.owl.carousel',portoCarouselInit).on('translated.owl.carousel',portoCarouselTranslated);carouselItems.on('translate.owl.carousel',function(){$(this).find('[data-plugin-animated-letters]').addClass('invisible');$(this).find('[data-plugin-animated-letters]').trigger('animated.letters.destroy')});carouselItems.filter(function(){if($(this).find('[data-vce-animate]').length){return!0}
return!1}).on('translate.owl.carousel',portoCarouselTranslateVC);carouselItems.filter(function(){var $anim_obj=$(this).find('.elementor-invisible');if($anim_obj.length){$anim_obj.addClass('slide-animate');return!0}
return!1}).on('translate.owl.carousel',portoCarouselTranslateElementor);carouselItems.filter(function(){if($(this).find('.appear-animation').length){return!0}
return!1}).on('translate.owl.carousel',portoCarouselTranslateWPB);$wrap.find('[data-plugin-carousel]:not(.manual), .porto-carousel:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;setTimeout(function(){$this.themeCarousel(opts)},0)})})}
$wrap.find('.thumb-gallery-thumbs').each(function(){var $thumbs=$(this),$detail=$thumbs.parent().find('.thumb-gallery-detail'),flag=!1,duration=300;if($thumbs.data('initThumbs'))
return;$detail.on('changed.owl.carousel',function(e){if(!flag){flag=!0;var len=$detail.find('.owl-item').length,cloned=$detail.find('.cloned').length;if(len){$thumbs.trigger('to.owl.carousel',[(e.item.index-cloned/2-1)%len,duration,!0])}
flag=!1}});$thumbs.on('changed.owl.carousel',function(e){if(!flag){flag=!0;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$detail.trigger('to.owl.carousel',[(e.item.index-cloned/2)%len,duration,!0])}
flag=!1}}).on('click','.owl-item',function(){if(!flag){flag=!0;var len=$thumbs.find('.owl-item').length,cloned=$thumbs.find('.cloned').length;if(len){$detail.trigger('to.owl.carousel',[($(this).index()-cloned/2)%len,duration,!0])}
flag=!1}}).data('initThumbs',!0)});$wrap.find('.video-fixed').each(function(){var $this=$(this),$video=$this.find('video, iframe');if($video.length){window.addEventListener('scroll',function(){var offset=$(window).scrollTop()-$this.position().top+theme.adminBarHeight();$video.css("cssText","top: "+offset+"px !important;")},{passive:!0})}})};$(document.body).trigger('porto_async_init')}).apply(this,[window.theme,jQuery]);jQuery(document).ready(function($){'use strict';if($.fn.themeVcImageZoom){$(function(){var $galleryParent=null;$('.porto-vc-zoom:not(.manual)').each(function(){var $this=$(this),opts,gallery=$this.attr('data-gallery');var pluginOptions=$this.data('plugin-options');if(pluginOptions)
opts=pluginOptions;if(typeof opts=="undefined"){opts={}}
opts.container=$this.parent();if(gallery=='true'){var container='vc_row';if($this.attr('data-container'))
container=$this.attr('data-container');var $parent=$($this.closest('.'+container).get(0));if($parent.length>0&&$galleryParent!=null&&$galleryParent.is($parent)){return}else if($parent.length>0){$galleryParent=$parent}
if($galleryParent!=null&&$galleryParent.length>0){opts.container=$galleryParent}}
$this.themeVcImageZoom(opts)})})}
function porto_modal_open($this){var trigger=$this.data('trigger-id'),overlayClass=$this.data('overlay-class'),extraClass=$this.data('extra-class')?$this.data('extra-class'):'',type=$this.data('type');if(typeof trigger!='undefined'){if(typeof type=='undefined'){type='inline'}
if(type=='inline'){trigger='#'+escape(trigger)}
var args={items:{src:trigger},type:type,mainClass:extraClass};if($this.hasClass('porto-onload')){args.callbacks={'beforeClose':function(){if($('.mfp-wrap .porto-disable-modal-onload').length&&($('.mfp-wrap .porto-disable-modal-onload').is(':checked')||$('.mfp-wrap .porto-disable-modal-onload input[type="checkbox"]').is(':checked'))){$.cookie('porto_modal_disable_onload','true',{expires:7})}}}}
if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass+=escape(overlayClass)}
$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,args),0)}}
function porto_init_magnific_popup_functions($wrap){if(typeof $wrap=='undefined'||!$wrap.length){$wrap=$(document.body)}
$wrap.find('.lightbox:not(.manual)').each(function(){var $this=$(this),opts;var pluginOptions=$this.data('lightbox-options');if(pluginOptions){opts=pluginOptions}else{pluginOptions=$this.data('plugin-options');if(typeof pluginOptions!='object'){pluginOptions=JSON.parse(pluginOptions)}
if(pluginOptions){opts=pluginOptions}}
$this.themeLightbox(opts)});$wrap.find('.porto-popup-iframe').magnificPopup($.extend(!0,{},theme.mfpConfig,{disableOn:700,type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:!1,fixedContentPos:!1}));$wrap.find('.porto-popup-ajax').magnificPopup($.extend(!0,{},theme.mfpConfig,{type:'ajax'}));$wrap.find('.porto-popup-content').each(function(){var animation=$(this).attr('data-animation');$(this).magnificPopup($.extend(!0,{},theme.mfpConfig,{type:'inline',fixedContentPos:!1,fixedBgPos:!0,overflowY:'auto',closeBtnInside:!0,preloader:!1,midClick:!0,removalDelay:300,mainClass:animation}))});$wrap.find('.popup-youtube, .popup-vimeo, .popup-gmaps').each(function(index){var overlayClass=$(this).find('.porto-modal-trigger').data('overlay-class'),args={type:'iframe',removalDelay:160,preloader:!1,fixedContentPos:!1};if(typeof overlayClass!="undefined"&&overlayClass){args.mainClass=escape(overlayClass)}
$(this).magnificPopup(args)});if($wrap.find('.porto-modal-trigger.porto-onload').length){var $obj=$wrap.find('.porto-modal-trigger.porto-onload').eq(0),timeout=0;if($obj.data('timeout')){timeout=parseInt($obj.data('timeout'),10)}
setTimeout(function(){porto_modal_open($obj)},timeout)}
$wrap.on('click','.porto-modal-trigger',function(e){e.preventDefault();porto_modal_open($(this))});if($wrap.hasClass('login-popup')){$wrap.find('.porto-link-login, .porto-link-register, .my-account').magnificPopup({items:{src:theme.ajax_url+'?action=porto_account_login_popup&nonce='+js_porto_vars.porto_nonce,type:'ajax'},tLoading:'<i class="porto-loading-icon"></i>',callbacks:{ajaxContentAdded:function(){$(window).trigger('porto_login_popup_opened')}}})}
$wrap.find('.product-images').magnificPopup($.extend(!0,{},theme.mfpConfig,{delegate:'.img-thumbnail a.zoom',type:'image',gallery:{enabled:!0}}));$wrap.find('.porto-posts-grid').each(function(){$(this).magnificPopup($.extend(!0,{},theme.mfpConfig,{delegate:'.porto-tb-featured-image span.zoom',type:'image',gallery:{enabled:!0}}))});$wrap.find('.porto-posts-grid .tb-image-type-slider div.zoom').each(function(){var $this=$(this),links=[];$this.find('a').each(function(){var slide={};slide.src=$(this).attr('href');slide.title=$(this).attr('title');links.push(slide)});if(links.length){$this.on('click',function(){var $slider=$this.siblings('.porto-carousel');if($slider.length){var offset=$slider.data('owl.carousel').current()-$slider.find('.cloned').length/2;$.magnificPopup.open($.extend(!0,{},theme.mfpConfig,{items:links,gallery:{enabled:!0},type:'image'}),offset)}})}})}
if($.fn.magnificPopup){porto_init_magnific_popup_functions()}else{setTimeout(function(){if($.fn.magnificPopup){porto_init_magnific_popup_functions()}},500)}
$(document.body).on('porto_load_posts_end',function(e,$posts_wrap){if($.fn.magnificPopup){porto_init_magnific_popup_functions($posts_wrap)}});if(typeof theme.PostAjaxModal!=='undefined'){if($('.page-portfolios').length){theme.PostAjaxModal.initialize($('.page-portfolios'))}
if($('.page-members').length){theme.PostAjaxModal.initialize($('.page-members'),'member')}}
if(typeof theme.PortfolioAjaxPage!=='undefined'){theme.PortfolioAjaxPage.initialize()}
if(typeof theme.PostFilter!=='undefined'){var $postFilterElements=$('ul[data-filter-type], .portfolio-filter, .member-filter, .faq-filter, .porto-ajax-filter.product-filter, .porto-ajax-filter.post-filter');if($postFilterElements.length){theme.PostFilter.initialize($postFilterElements)}}
$('body').on('click','.porto-ajax-load .pagination:not(.load-more) .page-numbers',function(e){var $this=$(this);if($this.hasClass('current')||$this.hasClass('dots')){return}
e.preventDefault();var $wrap=$this.closest('.porto-ajax-load'),post_type=$wrap.data('post_type'),$obj=$wrap.find('.'+post_type+'s-container');if(!$obj.length||$wrap.hasClass('loading')){return}
$wrap.addClass('loading');var $filter=$wrap.find('.porto-ajax-filter'),cat=$filter.length&&$filter.children('.active').length&&$filter.children('.active').data('filter');if('*'==cat){cat=''}
var default_args={},page=$this.attr('href').match(/paged=(\d+)|page\/(\d+)/);if(page&&Array.isArray(page)&&(page[1]||page[2])){default_args.page=parseInt(page[1]||page[2])}else{if($this.hasClass('prev')){default_args.page=parseInt($this.next().text())}else if($this.hasClass('next')){default_args.page=parseInt($this.prev().text())}else{default_args.page=parseInt($this.text())}}
theme.PostFilter.load_posts(cat,$wrap.hasClass('load-infinite'),$wrap,post_type,$obj,default_args,$this.attr('href'))});if(typeof theme.MemberAjaxPage!=='undefined'){theme.MemberAjaxPage.initialize()}
if(typeof theme.FilterZoom!=='undefined'){theme.FilterZoom.initialize($('.page-portfolios'));theme.FilterZoom.initialize($('.page-members'));theme.FilterZoom.initialize($('.blog-posts-related'))}
var $minicart_offcanvas=$('.minicart-offcanvas'),$wl_offcanvas=$('.wishlist-offcanvas'),$mobile_sidebar=$('.mobile-sidebar'),$mobile_panel=$('#side-nav-panel'),$overlay_search=$('#header .btn-close-search-form'),$html=$('html');if($minicart_offcanvas.length||$wl_offcanvas.length||$mobile_sidebar.length||$mobile_panel.length||$('.skeleton-loading').length||$overlay_search.length){$(document.documentElement).on('keyup',function(e){try{if(e.keyCode==27){$minicart_offcanvas.removeClass('minicart-opened');$wl_offcanvas.removeClass('minicart-opened');if($mobile_sidebar.length){$html.removeClass('filter-sidebar-opened');$html.removeClass('sidebar-opened');$('.sidebar-overlay').removeClass('active')}
if($mobile_panel.length&&$html.hasClass('panel-opened')){$html.removeClass('panel-opened');$('.panel-overlay').removeClass('active')}
if($overlay_search.length){$overlay_search.trigger('click')}}}catch(err){}});$('.skeleton-loading').on('skeleton-loaded',function(){$mobile_sidebar=$('.mobile-sidebar')})}
if($.fn.themeMouseparallax){$(function(){$('[data-plugin="mouse-parallax"]').each(function(){var $this=$(this),opts;if($this.data('parallax')){$this.parallax('disable');$this.removeData('parallax');$this.removeData('options')}
if($this.hasClass('elementor-element')){$this.children('.elementor-widget-container, .elementor-container, .elementor-widget-wrap, .elementor-column-wrap').addClass('layer').attr('data-depth',$this.attr('data-floating-depth'))}else{$this.children('.layer').attr('data-depth',$this.attr('data-floating-depth'))}
var pluginOptions=$this.data('options');if(pluginOptions)
opts=pluginOptions;$this.themeMouseparallax(opts)})})}
if($.fn.themePluginReadMore&&$('[data-plugin-readmore]').length){$('[data-plugin-readmore]:not(.manual)').themePluginReadMore()}});(function(theme,$){if($('.wishlist-popup').length){var worker=null;$('.wishlist-offcanvas .my-wishlist').on('click',function(e){e.preventDefault();$(this).parent().toggleClass('minicart-opened')});$('.wishlist-offcanvas .minicart-overlay').on('click',function(){$(this).closest('.wishlist-offcanvas').removeClass('minicart-opened')});var init_wishlist=function(){worker=new Worker(js_porto_vars.ajax_loader_url.replace('/images/ajax-loader@2x.gif','/js/woocommerce-worker.js'));worker.onmessage=function(e){$('.wishlist-popup').html(e.data)};worker.postMessage({initWishlist:!0,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce})};if(theme&&theme.isLoaded){setTimeout(function(){init_wishlist()},100)}else{$(window).on('load',function(){init_wishlist()})}
$('.wishlist-popup').on('click','.remove_from_wishlist',function(e){e.preventDefault();var $this=$(this),id=$this.attr('data-product_id'),$table=$('.wishlist_table #yith-wcwl-row-'+id+' .remove_from_wishlist');$this.closest('.wishlist-item').find('.ajax-loading').show();if($table.length){$table.trigger('click')}else{$.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:yith_wcwl_l10n.actions.remove_from_wishlist_action,remove_from_wishlist:id,nonce:yith_wcwl_l10n.nonce.remove_from_wishlist_nonce,from:'theme'},method:'post',success:function(data){var $wcwlWrap=$('.yith-wcwl-add-to-wishlist.add-to-wishlist-'+id);if($wcwlWrap.length){var fragmentOptions=$wcwlWrap.data('fragment-options'),$link=$wcwlWrap.find('a');if($link.length){if(fragmentOptions.in_default_wishlist){delete fragmentOptions.in_default_wishlist;$wcwlWrap.attr(JSON.stringify(fragmentOptions))}
$wcwlWrap.removeClass('exists');$wcwlWrap.find('.yith-wcwl-wishlistexistsbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistexistsbrowse');$wcwlWrap.find('.yith-wcwl-wishlistaddedbrowse').addClass('yith-wcwl-add-button').removeClass('yith-wcwl-wishlistaddedbrowse');$link.attr('href',location.href+'?post_type=product&amp;add_to_wishlist='+id).attr('data-product-id',id).attr('data-product-type',fragmentOptions.product_type);var text=$('.single_add_to_wishlist').data('title');if(!text){text='Add to wishlist'}
$link.attr('title',text).attr('data-title',text).addClass('add_to_wishlist single_add_to_wishlist').html('<span>'+text+'</span>')}}
$(document.body).trigger('removed_from_wishlist')}})}});$(document.body).on('added_to_wishlist removed_from_wishlist',function(e){if(worker){worker.postMessage({loadWishlist:!0,ajaxurl:theme.ajax_url,nonce:js_porto_vars.porto_nonce})}})}
var $youtube_videos=$('.porto-video-social.video-youtube');if($youtube_videos.length){window.onYouTubeIframeAPIReady=function(){$youtube_videos.each(function(){var $this=$(this),$wrap=$this.parent('.video-wrapper'),item_id=$this.attr('id'),youtube_id=$this.data('video'),is_loop=$this.data('loop'),enable_audio=$this.data('audio'),autoplay=1,controls=0;if('0'===$this.data('autoplay')){autoplay=0}
if($this.data('controls')){controls=parseInt($this.data('controls'))}
new YT.Player(item_id,{width:'100%',videoId:youtube_id,playerVars:{'autoplay':autoplay,'controls':controls,'modestbranding':1,'rel':0,'playsinline':1,'showinfo':0,'loop':is_loop},events:{onReady:function(t){if($wrap.length){$wrap.themeFitVideo()}
if(0===parseInt(enable_audio)&&t&&t.target&&t.target.mute){t.target.mute()}}}})})};if($('script[src*="www.youtube.com/iframe_api"]').length){setTimeout(onYouTubeIframeAPIReady,350)}else{var tag=document.createElement('script');tag.src="//www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}
var $vimeo_videos=$('.porto-video-social.video-vimeo');if($vimeo_videos.length){var portoVimeoInit=function(){$vimeo_videos.each(function(){var $this=$(this),$wrap=$this.parent('.fit-video'),item_id=$this.attr('id'),video_id=$this.data('video'),is_loop=$this.data('loop'),enable_audio=$this.data('audio'),autoplay=!0;if('0'===$this.data('autoplay')){autoplay=!1}
var player=new Vimeo.Player(item_id,{id:video_id,loop:1===parseInt(is_loop)?!0:!1,autoplay:autoplay,transparent:!1,background:!0,muted:0===parseInt(enable_audio)?!0:!1,events:{onReady:function(t){if($wrap.length){$wrap.themeFitVideo()}
if(0===parseInt(enable_audio)&&t&&t.target&&t.target.mute){t.target.mute()}}}});if(0===parseInt(enable_audio)){player.setVolume(0)}
if($wrap.length){player.ready().then(function(){$wrap.themeFitVideo()})}})};if($('script[src="https://player.vimeo.com/api/player.js"]').length){setTimeout(portoVimeoInit,350)}else{var tag=document.createElement('script');tag.addEventListener('load',function(event){setTimeout(portoVimeoInit,50)});tag.src="https://player.vimeo.com/api/player.js";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}}}).apply(this,[window.theme,jQuery])
;(function($){$('#nav_menu-3,#nav_menu-4').parent().addClass('col-md-6')})(jQuery)
;