// source --> https://janesto.com/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js?ver=10.6.2 
jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});
// source --> https://janesto.com/wp-content/plugins/divi-mega-pro/assets/js/popper-1.16.1.min.js?ver=1.9.9.8 
/*
 Copyright (C) Federico Zivolo 2020
 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popperv1=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',n=e.nodeName;if('BODY'===n||'HTML'===n){var i=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||i;return r[o]}return e[o]}function f(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=l(t,'top'),i=l(t,'left'),r=o?-1:1;return e.top+=n*r,e.bottom+=n*r,e.left+=i*r,e.right+=i*r,e}function m(e,t){var o='x'===t?'Left':'Top',n='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'])+parseFloat(e['border'+n+'Width'])}function h(e,t,o,n){return ee(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],r(10)?parseInt(o['offset'+e])+parseInt(n['margin'+('Height'===e?'Top':'Left')])+parseInt(n['margin'+('Height'===e?'Bottom':'Right')]):0)}function c(e){var t=e.body,o=e.documentElement,n=r(10)&&getComputedStyle(o);return{height:h('Height',t,o,n),width:h('Width',t,o,n)}}function g(e){return le({},e,{right:e.left+e.width,bottom:e.top+e.height})}function u(e){var o={};try{if(r(10)){o=e.getBoundingClientRect();var n=l(e,'top'),i=l(e,'left');o.top+=n,o.left+=i,o.bottom+=n,o.right+=i}else o=e.getBoundingClientRect()}catch(t){}var p={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},s='HTML'===e.nodeName?c(e.ownerDocument):{},d=s.width||e.clientWidth||p.width,a=s.height||e.clientHeight||p.height,f=e.offsetWidth-d,h=e.offsetHeight-a;if(f||h){var u=t(e);f-=m(u,'x'),h-=m(u,'y'),p.width-=f,p.height-=h}return g(p)}function b(e,o){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],p=r(10),s='HTML'===o.nodeName,d=u(e),a=u(o),l=n(e),m=t(o),h=parseFloat(m.borderTopWidth),c=parseFloat(m.borderLeftWidth);i&&s&&(a.top=ee(a.top,0),a.left=ee(a.left,0));var b=g({top:d.top-a.top-h,left:d.left-a.left-c,width:d.width,height:d.height});if(b.marginTop=0,b.marginLeft=0,!p&&s){var w=parseFloat(m.marginTop),y=parseFloat(m.marginLeft);b.top-=h-w,b.bottom-=h-w,b.left-=c-y,b.right-=c-y,b.marginTop=w,b.marginLeft=y}return(p&&!i?o.contains(l):o===l&&'BODY'!==l.nodeName)&&(b=f(b,o)),b}function w(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=e.ownerDocument.documentElement,n=b(e,o),i=ee(o.clientWidth,window.innerWidth||0),r=ee(o.clientHeight,window.innerHeight||0),p=t?0:l(o),s=t?0:l(o,'left'),d={top:p-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r};return g(d)}function y(e){var n=e.nodeName;if('BODY'===n||'HTML'===n)return!1;if('fixed'===t(e,'position'))return!0;var i=o(e);return!!i&&y(i)}function E(e){if(!e||!e.parentElement||r())return document.documentElement;for(var o=e.parentElement;o&&'none'===t(o,'transform');)o=o.parentElement;return o||document.documentElement}function v(e,t,r,p){var s=4<arguments.length&&void 0!==arguments[4]&&arguments[4],d={top:0,left:0},l=s?E(e):a(e,i(t));if('viewport'===p)d=w(l,s);else{var f;'scrollParent'===p?(f=n(o(t)),'BODY'===f.nodeName&&(f=e.ownerDocument.documentElement)):'window'===p?f=e.ownerDocument.documentElement:f=p;var m=b(f,l,s);if('HTML'===f.nodeName&&!y(l)){var h=c(e.ownerDocument),g=h.height,u=h.width;d.top+=m.top-m.marginTop,d.bottom=g+m.top,d.left+=m.left-m.marginLeft,d.right=u+m.left}else d=m}r=r||0;var v='number'==typeof r;return d.left+=v?r:r.left||0,d.top+=v?r:r.top||0,d.right-=v?r:r.right||0,d.bottom-=v?r:r.bottom||0,d}function x(e){var t=e.width,o=e.height;return t*o}function O(e,t,o,n,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=v(o,n,r,i),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return le({key:e},s[e],{area:x(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,n=e.height;return t>=o.clientWidth&&n>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function L(e,t,o){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,r=n?E(t):a(t,i(o));return b(o,r,n)}function S(e){var t=e.ownerDocument.defaultView,o=t.getComputedStyle(e),n=parseFloat(o.marginTop||0)+parseFloat(o.marginBottom||0),i=parseFloat(o.marginLeft||0)+parseFloat(o.marginRight||0),r={width:e.offsetWidth+i,height:e.offsetHeight+n};return r}function T(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function C(e,t,o){o=o.split('-')[0];var n=S(e),i={width:n.width,height:n.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return i[p]=t[p]+t[d]/2-n[d]/2,i[s]=o===s?t[s]-n[a]:t[T(s)],i}function D(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function N(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var n=D(e,function(e){return e[t]===o});return e.indexOf(n)}function P(t,o,n){var i=void 0===n?t:t.slice(0,N(t,'name',n));return i.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var n=t['function']||t.fn;t.enabled&&e(n)&&(o.offsets.popper=g(o.offsets.popper),o.offsets.reference=g(o.offsets.reference),o=n(o,t))}),o}function k(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=C(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?'fixed':'absolute',e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function W(e,t){return e.some(function(e){var o=e.name,n=e.enabled;return n&&o===t})}function B(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function H(){return this.state.isDestroyed=!0,W(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.position='',this.popper.style.top='',this.popper.style.left='',this.popper.style.right='',this.popper.style.bottom='',this.popper.style.willChange='',this.popper.style[B('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function A(e){var t=e.ownerDocument;return t?t.defaultView:window}function M(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||M(n(p.parentNode),t,o,i),i.push(p)}function F(e,t,o,i){o.updateBound=i,A(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return M(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=F(this.reference,this.options,this.state,this.scheduleUpdate))}function R(e,t){return A(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function U(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=R(this.reference,this.state))}function Y(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t){Object.keys(t).forEach(function(o){var n='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&Y(t[o])&&(n='px'),e.style[o]=t[o]+n})}function j(e,t){Object.keys(t).forEach(function(o){var n=t[o];!1===n?e.removeAttribute(o):e.setAttribute(o,t[o])})}function q(e,t){var o=e.offsets,n=o.popper,i=o.reference,r=$,p=function(e){return e},s=r(i.width),d=r(n.width),a=-1!==['left','right'].indexOf(e.placement),l=-1!==e.placement.indexOf('-'),f=t?a||l||s%2==d%2?r:Z:p,m=t?r:p;return{left:f(1==s%2&&1==d%2&&!l&&t?n.left-1:n.left),top:m(n.top),bottom:m(n.bottom),right:f(n.right)}}function K(e,t,o){var n=D(e,function(e){var o=e.name;return o===t}),i=!!n&&e.some(function(e){return e.name===o&&e.enabled&&e.order<n.order});if(!i){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return i}function z(e){return'end'===e?'start':'start'===e?'end':e}function G(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=he.indexOf(e),n=he.slice(o+1).concat(he.slice(0,o));return t?n.reverse():n}function _(e,t,o,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],p=i[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=n;}var d=g(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?ee(document.documentElement.clientHeight,window.innerHeight||0):ee(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function X(e,t,o,n){var i=[0,0],r=-1!==['right','left'].indexOf(n),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(D(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,n){var i=(1===n?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return _(e,i,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,n){Y(o)&&(i[t]+=o*('-'===e[n-1]?-1:1))})}),i}function J(e,t){var o,n=t.offset,i=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=i.split('-')[0];return o=Y(+n)?[+n,0]:X(n,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}var Q=Math.min,Z=Math.floor,$=Math.round,ee=Math.max,te='undefined'!=typeof window&&'undefined'!=typeof document&&'undefined'!=typeof navigator,oe=function(){for(var e=['Edge','Trident','Firefox'],t=0;t<e.length;t+=1)if(te&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),ne=te&&window.Promise,ie=ne?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oe))}},re=te&&!!(window.MSInputMethodContext&&document.documentMode),pe=te&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},de=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),ae=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},le=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},fe=te&&/Firefox/i.test(navigator.userAgent),me=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],he=me.slice(3),ce={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},ge=function(){function t(o,n){var i=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};se(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=le({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(le({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=le({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return le({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return de(t,[{key:'update',value:function(){return k.call(this)}},{key:'destroy',value:function(){return H.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return U.call(this)}}]),t}();return ge.Utils=('undefined'==typeof window?global:window).PopperUtils,ge.placements=me,ge.Defaults={placement:'bottom',positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],n=t.split('-')[1];if(n){var i=e.offsets,r=i.reference,p=i.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:ae({},d,r[d]),end:ae({},d,r[d]+r[a]-p[a])};e.offsets.popper=le({},p,l[n])}return e}},offset:{order:200,enabled:!0,fn:J,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||p(e.instance.popper);e.instance.reference===o&&(o=p(o));var n=B('transform'),i=e.instance.popper.style,r=i.top,s=i.left,d=i[n];i.top='',i.left='',i[n]='';var a=v(e.instance.popper,e.instance.reference,t.padding,o,e.positionFixed);i.top=r,i.left=s,i[n]=d,t.boundaries=a;var l=t.priority,f=e.offsets.popper,m={primary:function(e){var o=f[e];return f[e]<a[e]&&!t.escapeWithReference&&(o=ee(f[e],a[e])),ae({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=f[o];return f[e]>a[e]&&!t.escapeWithReference&&(n=Q(f[o],a[e]-('right'===e?f.width:f.height))),ae({},o,n)}};return l.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';f=le({},f,m[t](e))}),e.offsets.popper=f,e},priority:['left','right','top','bottom'],padding:0,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,n=t.reference,i=e.placement.split('-')[0],r=Z,p=-1!==['top','bottom'].indexOf(i),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(n[d])&&(e.offsets.popper[d]=r(n[d])-o[a]),o[d]>r(n[s])&&(e.offsets.popper[d]=r(n[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var n;if(!K(e.instance.modifiers,'arrow','keepTogether'))return e;var i=o.element;if('string'==typeof i){if(i=e.instance.popper.querySelector(i),!i)return e;}else if(!e.instance.popper.contains(i))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',c=a?'bottom':'right',u=S(i)[l];d[c]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[c]-u)),d[m]+u>s[c]&&(e.offsets.popper[m]+=d[m]+u-s[c]),e.offsets.popper=g(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f]),E=parseFloat(w['border'+f+'Width']),v=b-e.offsets.popper[m]-y-E;return v=ee(Q(s[l]-u,v),0),e.arrowElement=i,e.offsets.arrow=(n={},ae(n,m,$(v)),ae(n,h,''),n),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(W(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=v(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split('-')[0],i=T(n),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case ce.FLIP:p=[n,i];break;case ce.CLOCKWISE:p=G(n);break;case ce.COUNTERCLOCKWISE:p=G(n,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(n!==s||p.length===d+1)return e;n=e.placement.split('-')[0],i=T(n);var a=e.offsets.popper,l=e.offsets.reference,f=Z,m='left'===n&&f(a.right)>f(l.left)||'right'===n&&f(a.left)<f(l.right)||'top'===n&&f(a.bottom)>f(l.top)||'bottom'===n&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===n&&h||'right'===n&&c||'top'===n&&g||'bottom'===n&&u,w=-1!==['top','bottom'].indexOf(n),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u),E=!!t.flipVariationsByContent&&(w&&'start'===r&&c||w&&'end'===r&&h||!w&&'start'===r&&u||!w&&'end'===r&&g),v=y||E;(m||b||v)&&(e.flipped=!0,(m||b)&&(n=p[d+1]),v&&(r=z(r)),e.placement=n+(r?'-'+r:''),e.offsets.popper=le({},e.offsets.popper,C(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:0,boundariesElement:'viewport',flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],n=e.offsets,i=n.popper,r=n.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return i[p?'left':'top']=r[o]-(s?i[p?'width':'height']:0),e.placement=T(t),e.offsets.popper=g(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!K(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=D(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,n=t.y,i=e.offsets.popper,r=D(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==r&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===r?t.gpuAcceleration:r,l=p(e.instance.popper),f=u(l),m={position:i.position},h=q(e,2>window.devicePixelRatio||!fe),c='bottom'===o?'top':'bottom',g='right'===n?'left':'right',b=B('transform');if(d='bottom'==c?'HTML'===l.nodeName?-l.clientHeight+h.bottom:-f.height+h.bottom:h.top,s='right'==g?'HTML'===l.nodeName?-l.clientWidth+h.right:-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[g]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==g?-1:1;m[c]=d*w,m[g]=s*y,m.willChange=c+', '+g}var E={"x-placement":e.placement};return e.attributes=le({},E,e.attributes),e.styles=le({},m,e.styles),e.arrowStyles=le({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return V(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&V(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,n,i){var r=L(i,t,e,o.positionFixed),p=O(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),V(t,{position:o.positionFixed?'fixed':'absolute'}),o},gpuAcceleration:void 0}}},ge});
// source --> https://janesto.com/wp-content/plugins/divi-mega-pro/assets/js/tippy-5.2.1.min.js?ver=1.9.9.8 
/**!
* tippy.js v5.2.1
* (c) 2017-2020 atomiks
* MIT License
*/
var tippyv5 = (function (Popper) {
  'use strict';

  Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;

  var css = ".tippy-tooltip[data-animation=fade][data-state=hidden]{opacity:0}.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}";

  /**
   * Injects a string of CSS styles to a style node in <head>
   */
  function injectCSS(css) {
    var style = document.createElement('style');
    style.textContent = css;
    style.setAttribute('data-tippy-stylesheet', '');
    var head = document.head;
    var firstStyleOrLinkTag = document.querySelector('head>style,head>link');

    if (firstStyleOrLinkTag) {
      head.insertBefore(style, firstStyleOrLinkTag);
    } else {
      head.appendChild(style);
    }
  }

  function _extends() {
    _extends = Object.assign || function (target) {
      for (var i = 1; i < arguments.length; i++) {
        var source = arguments[i];

        for (var key in source) {
          if (Object.prototype.hasOwnProperty.call(source, key)) {
            target[key] = source[key];
          }
        }
      }

      return target;
    };

    return _extends.apply(this, arguments);
  }

  var PASSIVE = {
    passive: true
  };
  var ROUND_ARROW = '<svg viewBox="0 0 18 7" xmlns="http://www.w3.org/2000/svg"><path d="M0 7s2.021-.015 5.253-4.218C6.584 1.051 7.797.007 9 0c1.203-.007 2.416 1.035 3.761 2.782C16.012 7.005 18 7 18 7H0z"/></svg>';
  var IOS_CLASS = "tippy-iOS";
  var POPPER_CLASS = "tippy-popper";
  var TOOLTIP_CLASS = "tippy-tooltip";
  var CONTENT_CLASS = "tippy-content";
  var BACKDROP_CLASS = "tippy-backdrop";
  var ARROW_CLASS = "tippy-arrow";
  var SVG_ARROW_CLASS = "tippy-svg-arrow";
  var POPPER_SELECTOR = "." + POPPER_CLASS;
  var TOOLTIP_SELECTOR = "." + TOOLTIP_CLASS;
  var CONTENT_SELECTOR = "." + CONTENT_CLASS;
  var ARROW_SELECTOR = "." + ARROW_CLASS;
  var SVG_ARROW_SELECTOR = "." + SVG_ARROW_CLASS;

  /**
   * Triggers reflow
   */
  function reflow(element) {
    void element.offsetHeight;
  }
  /**
   * Sets the innerHTML of an element
   */

  function setInnerHTML(element, html) {
    element[innerHTML()] = html;
  }
  /**
   * Determines if the value is a reference element
   */

  function isReferenceElement(value) {
    return !!(value && value._tippy && value._tippy.reference === value);
  }
  /**
   * Safe .hasOwnProperty check, for prototype-less objects
   */

  function hasOwnProperty(obj, key) {
    return {}.hasOwnProperty.call(obj, key);
  }
  /**
   * Returns an array of elements based on the value
   */

  function getArrayOfElements(value) {
    if (isElement(value)) {
      return [value];
    }

    if (isNodeList(value)) {
      return arrayFrom(value);
    }

    if (Array.isArray(value)) {
      return value;
    }

    return arrayFrom(document.querySelectorAll(value));
  }
  /**
   * Returns a value at a given index depending on if it's an array or number
   */

  function getValueAtIndexOrReturn(value, index, defaultValue) {
    if (Array.isArray(value)) {
      var v = value[index];
      return v == null ? Array.isArray(defaultValue) ? defaultValue[index] : defaultValue : v;
    }

    return value;
  }
  /**
   * Prevents errors from being thrown while accessing nested modifier objects
   * in `popperOptions`
   */

  function getModifier(obj, key) {
    return obj && obj.modifiers && obj.modifiers[key];
  }
  /**
   * Determines if the value is of type
   */

  function isType(value, type) {
    var str = {}.toString.call(value);
    return str.indexOf('[object') === 0 && str.indexOf(type + "]") > -1;
  }
  /**
   * Determines if the value is of type Element
   */

  function isElement(value) {
    return isType(value, 'Element');
  }
  /**
   * Determines if the value is of type NodeList
   */

  function isNodeList(value) {
    return isType(value, 'NodeList');
  }
  /**
   * Determines if the value is of type MouseEvent
   */

  function isMouseEvent(value) {
    return isType(value, 'MouseEvent');
  }
  /**
   * Firefox extensions don't allow setting .innerHTML directly, this will trick
   * it
   */

  function innerHTML() {
    return 'innerHTML';
  }
  /**
   * Evaluates a function if one, or returns the value
   */

  function invokeWithArgsOrReturn(value, args) {
    return typeof value === 'function' ? value.apply(void 0, args) : value;
  }
  /**
   * Sets a popperInstance modifier's property to a value
   */

  function setModifierValue(modifiers, name, property, value) {
    modifiers.filter(function (m) {
      return m.name === name;
    })[0][property] = value;
  }
  /**
   * Returns a new `div` element
   */

  function div() {
    return document.createElement('div');
  }
  /**
   * Applies a transition duration to a list of elements
   */

  function setTransitionDuration(els, value) {
    els.forEach(function (el) {
      if (el) {
        el.style.transitionDuration = value + "ms";
      }
    });
  }
  /**
   * Sets the visibility state to elements so they can begin to transition
   */

  function setVisibilityState(els, state) {
    els.forEach(function (el) {
      if (el) {
        el.setAttribute('data-state', state);
      }
    });
  }
  /**
   * Debounce utility. To avoid bloating bundle size, we're only passing 1
   * argument here, a more generic function would pass all arguments. Only
   * `onMouseMove` uses this which takes the event object for now.
   */

  function debounce(fn, ms) {
    // Avoid wrapping in `setTimeout` if ms is 0 anyway
    if (ms === 0) {
      return fn;
    }

    var timeout;
    return function (arg) {
      clearTimeout(timeout);
      timeout = setTimeout(function () {
        fn(arg);
      }, ms);
    };
  }
  /**
   * Preserves the original function invocation when another function replaces it
   */

  function preserveInvocation(originalFn, currentFn, args) {
    if (originalFn && originalFn !== currentFn) {
      originalFn.apply(void 0, args);
    }
  }
  /**
   * Deletes properties from an object (pure)
   */

  function removeProperties(obj, keys) {
    var clone = _extends({}, obj);

    keys.forEach(function (key) {
      delete clone[key];
    });
    return clone;
  }
  /**
   * Ponyfill for Array.from - converts iterable values to an array
   */

  function arrayFrom(value) {
    return [].slice.call(value);
  }
  /**
   * Works like Element.prototype.closest, but uses a callback instead
   */

  function closestCallback(element, callback) {
    while (element) {
      if (callback(element)) {
        return element;
      }

      element = element.parentElement;
    }

    return null;
  }
  /**
   * Determines if an array or string includes a string
   */

  function includes(a, b) {
    return a.indexOf(b) > -1;
  }
  /**
   * Creates an array from string of values separated by whitespace
   */

  function splitBySpaces(value) {
    return value.split(/\s+/).filter(Boolean);
  }
  /**
   * Returns the `nextValue` if `nextValue` is not `undefined`, otherwise returns
   * `currentValue`
   */

  function useIfDefined(nextValue, currentValue) {
    return nextValue !== undefined ? nextValue : currentValue;
  }
  /**
   * Converts a value that's an array or single value to an array
   */

  function normalizeToArray(value) {
    return [].concat(value);
  }
  /**
   * Returns the ownerDocument of the first available element, otherwise global
   * document
   */

  function getOwnerDocument(elementOrElements) {
    var _normalizeToArray = normalizeToArray(elementOrElements),
        element = _normalizeToArray[0];

    return element ? element.ownerDocument || document : document;
  }
  /**
   * Adds item to array if array does not contain it
   */

  function pushIfUnique(arr, value) {
    if (arr.indexOf(value) === -1) {
      arr.push(value);
    }
  }
  /**
   * Adds `px` if value is a number, or returns it directly
   */

  function appendPxIfNumber(value) {
    return typeof value === 'number' ? value + "px" : value;
  }
  /**
   * Filters out duplicate elements in an array
   */

  function unique(arr) {
    return arr.filter(function (item, index) {
      return arr.indexOf(item) === index;
    });
  }
  /**
   * Returns number from number or CSS units string
   */

  function getNumber(value) {
    return typeof value === 'number' ? value : parseFloat(value);
  }
  /**
   * Gets number or CSS string units in pixels (e.g. `1rem` -> 16)
   */

  function getUnitsInPx(doc, value) {
    var isRem = typeof value === 'string' && includes(value, 'rem');
    var html = doc.documentElement;
    var rootFontSize = 16;

    if (html && isRem) {
      return parseFloat(getComputedStyle(html).fontSize || String(rootFontSize)) * getNumber(value);
    }

    return getNumber(value);
  }
  /**
   * Adds the `distancePx` value to the placement of a Popper.Padding object
   */

  function getComputedPadding(basePlacement, padding, distancePx) {
    if (padding === void 0) {
      padding = 0;
    }

    var freshPaddingObject = {
      top: 0,
      right: 0,
      bottom: 0,
      left: 0
    };
    var keys = Object.keys(freshPaddingObject);
    return keys.reduce(function (obj, key) {
      obj[key] = typeof padding === 'number' ? padding : padding[key];

      if (basePlacement === key) {
        obj[key] = typeof padding === 'number' ? padding + distancePx : padding[basePlacement] + distancePx;
      }

      return obj;
    }, freshPaddingObject);
  }

  var currentInput = {
    isTouch: false
  };
  var lastMouseMoveTime = 0;
  /**
   * When a `touchstart` event is fired, it's assumed the user is using touch
   * input. We'll bind a `mousemove` event listener to listen for mouse input in
   * the future. This way, the `isTouch` property is fully dynamic and will handle
   * hybrid devices that use a mix of touch + mouse input.
   */

  function onDocumentTouchStart() {
    if (currentInput.isTouch) {
      return;
    }

    currentInput.isTouch = true;

    if (window.performance) {
      document.addEventListener('mousemove', onDocumentMouseMove);
    }
  }
  /**
   * When two `mousemove` event are fired consecutively within 20ms, it's assumed
   * the user is using mouse input again. `mousemove` can fire on touch devices as
   * well, but very rarely that quickly.
   */

  function onDocumentMouseMove() {
    var now = performance.now();

    if (now - lastMouseMoveTime < 20) {
      currentInput.isTouch = false;
      document.removeEventListener('mousemove', onDocumentMouseMove);
    }

    lastMouseMoveTime = now;
  }
  /**
   * When an element is in focus and has a tippy, leaving the tab/window and
   * returning causes it to show again. For mouse users this is unexpected, but
   * for keyboard use it makes sense.
   * TODO: find a better technique to solve this problem
   */

  function onWindowBlur() {
    var activeElement = document.activeElement;

    if (isReferenceElement(activeElement)) {
      var instance = activeElement._tippy;

      if (activeElement.blur && !instance.state.isVisible) {
        activeElement.blur();
      }
    }
  }
  /**
   * Adds the needed global event listeners
   */

  function bindGlobalEventListeners() {
    document.addEventListener('touchstart', onDocumentTouchStart, _extends({}, PASSIVE, {
      capture: true
    }));
    window.addEventListener('blur', onWindowBlur);
  }

  var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
  var ua = isBrowser ? navigator.userAgent : '';
  var isIE = /MSIE |Trident\//.test(ua);
  var isIOS = isBrowser && /iPhone|iPad|iPod/.test(navigator.platform);
  function updateIOSClass(isAdd) {
    var shouldAdd = isAdd && isIOS && currentInput.isTouch;
    document.body.classList[shouldAdd ? 'add' : 'remove'](IOS_CLASS);
  }

  var version = "5.2.1";

  function createMemoryLeakWarning(method) {
    var txt = method === 'destroy' ? 'n already-' : ' ';
    return "\n    " + method + "() was called on a" + txt + "destroyed instance. This is a no-op but\n    indicates a potential memory leak.\n  ";
  }
  function clean(value) {
    var spacesAndTabs = /[ \t]{2,}/g;
    var lineStartWithSpaces = /^[ \t]*/gm;
    return value.replace(spacesAndTabs, ' ').replace(lineStartWithSpaces, '').trim();
  }

  function getDevMessage(message) {
    return clean("\n  %ctippy.js\n\n  %c" + clean(message) + "\n\n  %c\uD83D\uDC77\u200D This is a development-only message. It will be removed in production.\n  ");
  }

  function getFormattedMessage(message) {
    return [getDevMessage(message), // title
    'color: #00C584; font-size: 1.3em; font-weight: bold;', // message
    'line-height: 1.5', // footer
    'color: #a6a095;'];
  }
  /**
   * Helpful wrapper around `console.warn()`.
   * TODO: Should we use a cache so it only warns a single time and not spam the
   * console? (Need to consider hot reloading and invalidation though). Chrome
   * already batches warnings as well.
   */

  function warnWhen(condition, message) {

  }
  /**
   * Helpful wrapper around `console.error()`
   */

  function errorWhen(condition, message) {

  }
  /**
   * Validates the `targets` value passed to `tippy()`
   */

  function validateTargets(targets) {
    var didPassFalsyValue = !targets;
    var didPassPlainObject = Object.prototype.toString.call(targets) === '[object Object]' && !targets.addEventListener;
    errorWhen(didPassFalsyValue, ['tippy() was passed', '`' + String(targets) + '`', 'as its targets (first) argument. Valid types are: String, Element, Element[],', 'or NodeList.'].join(' '));
    errorWhen(didPassPlainObject, ['tippy() was passed a plain object which is no longer supported as an argument.', 'See: https://atomiks.github.io/tippyjs/misc/#custom-position'].join(' '));
  }

  var pluginProps = {
    animateFill: false,
    followCursor: false,
    inlinePositioning: false,
    sticky: false
  };
  var defaultProps = _extends({
    allowHTML: true,
    animation: 'fade',
    appendTo: function appendTo() {
      return document.body;
    },
    aria: 'describedby',
    arrow: true,
    boundary: 'scrollParent',
    content: '',
    delay: 0,
    distance: 10,
    duration: [300, 250],
    flip: true,
    flipBehavior: 'flip',
    flipOnUpdate: false,
    hideOnClick: true,
    ignoreAttributes: false,
    inertia: false,
    interactive: false,
    interactiveBorder: 2,
    interactiveDebounce: 0,
    lazy: true,
    maxWidth: 350,
    multiple: false,
    offset: 0,
    onAfterUpdate: function onAfterUpdate() {},
    onBeforeUpdate: function onBeforeUpdate() {},
    onCreate: function onCreate() {},
    onDestroy: function onDestroy() {},
    onHidden: function onHidden() {},
    onHide: function onHide() {},
    onMount: function onMount() {},
    onShow: function onShow() {},
    onShown: function onShown() {},
    onTrigger: function onTrigger() {},
    onUntrigger: function onUntrigger() {},
    placement: 'top',
    plugins: [],
    popperOptions: {},
    role: 'tooltip',
    showOnCreate: false,
    theme: '',
    touch: true,
    trigger: 'mouseenter focus',
    triggerTarget: null,
    updateDuration: 0,
    zIndex: 9999
  }, pluginProps);
  var defaultKeys = Object.keys(defaultProps);
  /**
   * If the setProps() method encounters one of these, the popperInstance must be
   * recreated
   */

  var POPPER_INSTANCE_DEPENDENCIES = ['arrow', 'boundary', 'distance', 'flip', 'flipBehavior', 'flipOnUpdate', 'offset', 'placement', 'popperOptions'];
  /**
   * Mutates the defaultProps object by setting the props specified
   */

  var setDefaultProps = function setDefaultProps(partialProps) {
    {
      validateProps(partialProps, []);
    }

    var keys = Object.keys(partialProps);
    keys.forEach(function (key) {
      defaultProps[key] = partialProps[key];
    });
  };
  /**
   * Returns an extended props object including plugin props
   */

  function getExtendedPassedProps(passedProps) {
    var plugins = passedProps.plugins || [];
    var pluginProps = plugins.reduce(function (acc, plugin) {
      var name = plugin.name,
          defaultValue = plugin.defaultValue;

      if (name) {
        acc[name] = passedProps[name] !== undefined ? passedProps[name] : defaultValue;
      }

      return acc;
    }, {});
    return _extends({}, passedProps, {}, pluginProps);
  }
  /**
   * Returns an object of optional props from data-tippy-* attributes
   */

  function getDataAttributeProps(reference, plugins) {
    var propKeys = plugins ? Object.keys(getExtendedPassedProps(_extends({}, defaultProps, {
      plugins: plugins
    }))) : defaultKeys;
    var props = propKeys.reduce(function (acc, key) {
      var valueAsString = (reference.getAttribute("data-tippy-" + key) || '').trim();

      if (!valueAsString) {
        return acc;
      }

      if (key === 'content') {
        acc[key] = valueAsString;
      } else {
        try {
          acc[key] = JSON.parse(valueAsString);
        } catch (e) {
          acc[key] = valueAsString;
        }
      }

      return acc;
    }, {});
    return props;
  }
  /**
   * Evaluates the props object by merging data attributes and disabling
   * conflicting props where necessary
   */

  function evaluateProps(reference, props) {
    var out = _extends({}, props, {
      content: invokeWithArgsOrReturn(props.content, [reference])
    }, props.ignoreAttributes ? {} : getDataAttributeProps(reference, props.plugins));

    if (out.interactive) {
      out.aria = null;
    }

    return out;
  }
  /**
   * Validates props with the valid `defaultProps` object
   */

  function validateProps(partialProps, plugins) {
    if (partialProps === void 0) {
      partialProps = {};
    }

    if (plugins === void 0) {
      plugins = [];
    }

    var keys = Object.keys(partialProps);
    keys.forEach(function (prop) {
      var value = partialProps[prop];
      var didSpecifyPlacementInPopperOptions = prop === 'popperOptions' && value !== null && typeof value === 'object' && hasOwnProperty(value, 'placement');
      var nonPluginProps = removeProperties(defaultProps, ['animateFill', 'followCursor', 'inlinePositioning', 'sticky']); // These props have custom warnings

      var customWarningProps = ['a11y', 'arrowType', 'showOnInit', 'size', 'target', 'touchHold'];
      var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop) && !includes(customWarningProps, prop); // Check if the prop exists in `plugins`

      if (didPassUnknownProp) {
        didPassUnknownProp = plugins.filter(function (plugin) {
          return plugin.name === prop;
        }).length === 0;
      }

      warnWhen(prop === 'target', ['The `target` prop was removed in v5 and replaced with the delegate() addon', 'in order to conserve bundle size.', 'See: https://atomiks.github.io/tippyjs/addons/#event-delegation'].join(' '));
      warnWhen(prop === 'a11y', ['The `a11y` prop was removed in v5. Make sure the element you are giving a', 'tippy to is natively focusable, such as <button> or <input>, not <div>', 'or <span>.'].join(' '));
      warnWhen(prop === 'showOnInit', 'The `showOnInit` prop was renamed to `showOnCreate` in v5.');
      warnWhen(prop === 'arrowType', ['The `arrowType` prop was removed in v5 in favor of overloading the `arrow`', 'prop.', '\n\n', '"round" string was replaced with importing the string from the package.', '\n\n', "* import {roundArrow} from 'tippy.js'; (ESM version)\n", '* const {roundArrow} = tippy; (IIFE CDN version)', '\n\n', 'Before: {arrow: true, arrowType: "round"}\n', 'After: {arrow: roundArrow}`'].join(' '));
      warnWhen(prop === 'touchHold', ['The `touchHold` prop was removed in v5 in favor of overloading the `touch`', 'prop.', '\n\n', 'Before: {touchHold: true}\n', 'After: {touch: "hold"}'].join(' '));
      warnWhen(prop === 'size', ['The `size` prop was removed in v5. Instead, use a theme that specifies', 'CSS padding and font-size properties.'].join(' '));
      warnWhen(prop === 'theme' && value === 'google', 'The included theme "google" was renamed to "material" in v5.');
      warnWhen(didSpecifyPlacementInPopperOptions, ['Specifying placement in `popperOptions` is not supported. Use the base-level', '`placement` prop instead.', '\n\n', 'Before: {popperOptions: {placement: "bottom"}}\n', 'After: {placement: "bottom"}'].join(' '));
      warnWhen(didPassUnknownProp, ["`" + prop + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's a", 'plugin, forgot to pass it in an array as props.plugins.', '\n\n', 'In v5, the following props were turned into plugins:', '\n\n', '* animateFill\n', '* followCursor\n', '* sticky', '\n\n', 'All props: https://atomiks.github.io/tippyjs/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/plugins/'].join(' '));
    });
  }

  /**
   * Returns the popper's placement, ignoring shifting (top-start, etc)
   */

  function getBasePlacement(placement) {
    return placement.split('-')[0];
  }
  /**
   * Adds `data-inertia` attribute
   */

  function addInertia(tooltip) {
    tooltip.setAttribute('data-inertia', '');
  }
  /**
   * Removes `data-inertia` attribute
   */

  function removeInertia(tooltip) {
    tooltip.removeAttribute('data-inertia');
  }
  /**
   * Adds interactive-related attributes
   */

  function addInteractive(tooltip) {
    tooltip.setAttribute('data-interactive', '');
  }
  /**
   * Removes interactive-related attributes
   */

  function removeInteractive(tooltip) {
    tooltip.removeAttribute('data-interactive');
  }
  /**
   * Sets the content of a tooltip
   */

  function setContent(contentEl, props) {
    if (isElement(props.content)) {
      setInnerHTML(contentEl, '');
      contentEl.appendChild(props.content);
    } else if (typeof props.content !== 'function') {
      var key = props.allowHTML ? 'innerHTML' : 'textContent';
      contentEl[key] = props.content;
    }
  }
  /**
   * Returns the child elements of a popper element
   */

  function getChildren(popper) {
    return {
      tooltip: popper.querySelector(TOOLTIP_SELECTOR),
      content: popper.querySelector(CONTENT_SELECTOR),
      arrow: popper.querySelector(ARROW_SELECTOR) || popper.querySelector(SVG_ARROW_SELECTOR)
    };
  }
  /**
   * Creates an arrow element and returns it
   */

  function createArrowElement(arrow) {
    var arrowElement = div();

    if (arrow === true) {
      arrowElement.className = ARROW_CLASS;
    } else {
      arrowElement.className = SVG_ARROW_CLASS;

      if (isElement(arrow)) {
        arrowElement.appendChild(arrow);
      } else {
        setInnerHTML(arrowElement, arrow);
      }
    }

    return arrowElement;
  }
  /**
   * Constructs the popper element and returns it
   */

  function createPopperElement(id, props) {
    var popper = div();
    popper.className = POPPER_CLASS;
    popper.style.position = 'absolute';
    popper.style.top = '0';
    popper.style.left = '0';
    var tooltip = div();
    tooltip.className = TOOLTIP_CLASS;
    tooltip.id = "tippy-" + id;
    tooltip.setAttribute('data-state', 'hidden');
    tooltip.setAttribute('tabindex', '-1');
    updateTheme(tooltip, 'add', props.theme);
    var content = div();
    content.className = CONTENT_CLASS;
    content.setAttribute('data-state', 'hidden');

    if (props.interactive) {
      addInteractive(tooltip);
    }

    if (props.arrow) {
      tooltip.setAttribute('data-arrow', '');
      tooltip.appendChild(createArrowElement(props.arrow));
    }

    if (props.inertia) {
      addInertia(tooltip);
    }

    setContent(content, props);
    tooltip.appendChild(content);
    popper.appendChild(tooltip);
    updatePopperElement(popper, props, props);
    return popper;
  }
  /**
   * Updates the popper element based on the new props
   */

  function updatePopperElement(popper, prevProps, nextProps) {
    var _getChildren = getChildren(popper),
        tooltip = _getChildren.tooltip,
        content = _getChildren.content,
        arrow = _getChildren.arrow;

    popper.style.zIndex = '' + nextProps.zIndex;
    tooltip.setAttribute('data-animation', nextProps.animation);
    tooltip.style.maxWidth = appendPxIfNumber(nextProps.maxWidth);

    if (nextProps.role) {
      tooltip.setAttribute('role', nextProps.role);
    } else {
      tooltip.removeAttribute('role');
    }

    if (prevProps.content !== nextProps.content) {
      setContent(content, nextProps);
    } // arrow


    if (!prevProps.arrow && nextProps.arrow) {
      // false to true
      tooltip.appendChild(createArrowElement(nextProps.arrow));
      tooltip.setAttribute('data-arrow', '');
    } else if (prevProps.arrow && !nextProps.arrow) {
      // true to false
      tooltip.removeChild(arrow);
      tooltip.removeAttribute('data-arrow');
    } else if (prevProps.arrow !== nextProps.arrow) {
      // true to 'round' or vice-versa
      tooltip.removeChild(arrow);
      tooltip.appendChild(createArrowElement(nextProps.arrow));
    } // interactive


    if (!prevProps.interactive && nextProps.interactive) {
      addInteractive(tooltip);
    } else if (prevProps.interactive && !nextProps.interactive) {
      removeInteractive(tooltip);
    } // inertia


    if (!prevProps.inertia && nextProps.inertia) {
      addInertia(tooltip);
    } else if (prevProps.inertia && !nextProps.inertia) {
      removeInertia(tooltip);
    } // theme


    if (prevProps.theme !== nextProps.theme) {
      updateTheme(tooltip, 'remove', prevProps.theme);
      updateTheme(tooltip, 'add', nextProps.theme);
    }
  }
  /**
   * Add/remove transitionend listener from tooltip
   */

  function updateTransitionEndListener(tooltip, action, listener) {
    ['transitionend', 'webkitTransitionEnd'].forEach(function (event) {
      tooltip[action + 'EventListener'](event, listener);
    });
  }
  /**
   * Adds/removes theme from tooltip's classList
   */

  function updateTheme(tooltip, action, theme) {
    splitBySpaces(theme).forEach(function (name) {
      tooltip.classList[action](name + "-theme");
    });
  }
  /**
   * Determines if the mouse cursor is outside of the popper's interactive border
   * region
   */

  function isCursorOutsideInteractiveBorder(popperTreeData, event) {
    var clientX = event.clientX,
        clientY = event.clientY;
    return popperTreeData.every(function (_ref) {
      var popperRect = _ref.popperRect,
          tooltipRect = _ref.tooltipRect,
          interactiveBorder = _ref.interactiveBorder;
      // Get min/max bounds of both the popper and tooltip rects due to
      // `distance` offset
      var mergedRect = {
        top: Math.min(popperRect.top, tooltipRect.top),
        right: Math.max(popperRect.right, tooltipRect.right),
        bottom: Math.max(popperRect.bottom, tooltipRect.bottom),
        left: Math.min(popperRect.left, tooltipRect.left)
      };
      var exceedsTop = mergedRect.top - clientY > interactiveBorder;
      var exceedsBottom = clientY - mergedRect.bottom > interactiveBorder;
      var exceedsLeft = mergedRect.left - clientX > interactiveBorder;
      var exceedsRight = clientX - mergedRect.right > interactiveBorder;
      return exceedsTop || exceedsBottom || exceedsLeft || exceedsRight;
    });
  }

  var idCounter = 1;
  var mouseMoveListeners = [];
  /**
   * Used by `hideAll()`
   */

  var mountedInstances = [];
  /**
   * Creates and returns a Tippy object. We're using a closure pattern instead of
   * a class so that the exposed object API is clean without private members
   * prefixed with `_`.
   */

  function createTippy(reference, passedProps) {
    var props = evaluateProps(reference, _extends({}, defaultProps, {}, getExtendedPassedProps(passedProps))); // If the reference shouldn't have multiple tippys, return null early

    if (!props.multiple && reference._tippy) {
      return null;
    }
    /* ======================= 🔒 Private members 🔒 ======================= */


    var showTimeout;
    var hideTimeout;
    var scheduleHideAnimationFrame;
    var isBeingDestroyed = false;
    var isVisibleFromClick = false;
    var didHideDueToDocumentMouseDown = false;
    var popperUpdates = 0;
    var lastTriggerEvent;
    var currentMountCallback;
    var currentTransitionEndListener;
    var listeners = [];
    var debouncedOnMouseMove = debounce(onMouseMove, props.interactiveDebounce);
    var currentTarget; // Support iframe contexts
    // Static check that assumes any of the `triggerTarget` or `reference`
    // nodes will never change documents, even when they are updated

    var doc = getOwnerDocument(props.triggerTarget || reference);
    /* ======================= 🔑 Public members 🔑 ======================= */

    var id = idCounter++;
    var popper = createPopperElement(id, props);
    var popperChildren = getChildren(popper);
    var popperInstance = null;
    var plugins = unique(props.plugins); // These two elements are static

    var tooltip = popperChildren.tooltip,
        content = popperChildren.content;
    var transitionableElements = [tooltip, content];
    var state = {
      // The current real placement (`data-placement` attribute)
      currentPlacement: null,
      // Is the instance currently enabled?
      isEnabled: true,
      // Is the tippy currently showing and not transitioning out?
      isVisible: false,
      // Has the instance been destroyed?
      isDestroyed: false,
      // Is the tippy currently mounted to the DOM?
      isMounted: false,
      // Has the tippy finished transitioning in?
      isShown: false
    };
    var instance = {
      // properties
      id: id,
      reference: reference,
      popper: popper,
      popperChildren: popperChildren,
      popperInstance: popperInstance,
      props: props,
      state: state,
      plugins: plugins,
      // methods
      clearDelayTimeouts: clearDelayTimeouts,
      setProps: setProps,
      setContent: setContent,
      show: show,
      hide: hide,
      enable: enable,
      disable: disable,
      destroy: destroy
    };
    /* ==================== Initial instance mutations =================== */

    reference._tippy = instance;
    popper._tippy = instance;
    var pluginsHooks = plugins.map(function (plugin) {
      return plugin.fn(instance);
    });
    var hadAriaExpandedAttributeOnCreate = reference.hasAttribute('aria-expanded');
    addListenersToTriggerTarget();
    handleAriaExpandedAttribute();

    if (!props.lazy) {
      createPopperInstance();
    }

    invokeHook('onCreate', [instance]);

    if (props.showOnCreate) {
      scheduleShow();
    } // Prevent a tippy with a delay from hiding if the cursor left then returned
    // before it started hiding


    popper.addEventListener('mouseenter', function () {
      if (instance.props.interactive && instance.state.isVisible) {
        instance.clearDelayTimeouts();
      }
    });
	
	let interactiveArea = popper;
	if ( instance.props.centerHorizontal === true ) {
		
		interactiveArea = content;
	}
    interactiveArea.addEventListener('mouseleave', function (event) {
      if (instance.props.interactive && includes(instance.props.trigger, 'mouseenter')) {
        debouncedOnMouseMove(event);
        doc.addEventListener('mousemove', debouncedOnMouseMove);
      }
    });
    return instance;
    /* ======================= 🔒 Private methods 🔒 ======================= */

    function getNormalizedTouchSettings() {
      var touch = instance.props.touch;
      return Array.isArray(touch) ? touch : [touch, 0];
    }

    function getIsCustomTouchBehavior() {
      return getNormalizedTouchSettings()[0] === 'hold';
    }

    function getCurrentTarget() {
      return currentTarget || reference;
    }

    function getDelay(isShow) {
      // For touch or keyboard input, force `0` delay for UX reasons
      // Also if the instance is mounted but not visible (transitioning out),
      // ignore delay
      if (instance.state.isMounted && !instance.state.isVisible || currentInput.isTouch || lastTriggerEvent && lastTriggerEvent.type === 'focus') {
        return 0;
      }

      return getValueAtIndexOrReturn(instance.props.delay, isShow ? 0 : 1, defaultProps.delay);
    }

    function invokeHook(hook, args, shouldInvokePropsHook) {
      if (shouldInvokePropsHook === void 0) {
        shouldInvokePropsHook = true;
      }

      pluginsHooks.forEach(function (pluginHooks) {
        if (hasOwnProperty(pluginHooks, hook)) {
          // @ts-ignore
          pluginHooks[hook].apply(pluginHooks, args);
        }
      });

      if (shouldInvokePropsHook) {
        var _instance$props;

        // @ts-ignore
        (_instance$props = instance.props)[hook].apply(_instance$props, args);
      }
    }

    function handleAriaDescribedByAttribute() {
      var aria = instance.props.aria;

      if (!aria) {
        return;
      }

      var attr = "aria-" + aria;
      var id = tooltip.id;
      var nodes = normalizeToArray(instance.props.triggerTarget || reference);
      nodes.forEach(function (node) {
        var currentValue = node.getAttribute(attr);

        if (instance.state.isVisible) {
          node.setAttribute(attr, currentValue ? currentValue + " " + id : id);
        } else {
          var nextValue = currentValue && currentValue.replace(id, '').trim();

          if (nextValue) {
            node.setAttribute(attr, nextValue);
          } else {
            node.removeAttribute(attr);
          }
        }
      });
    }

    function handleAriaExpandedAttribute() {
      // If the user has specified `aria-expanded` on their reference when the
      // instance was created, we have to assume they're controlling it externally
      // themselves
      if (hadAriaExpandedAttributeOnCreate) {
        return;
      }

      var nodes = normalizeToArray(instance.props.triggerTarget || reference);
      nodes.forEach(function (node) {
        if (instance.props.interactive) {
          node.setAttribute('aria-expanded', instance.state.isVisible && node === getCurrentTarget() ? 'true' : 'false');
        } else {
          node.removeAttribute('aria-expanded');
        }
      });
    }

    function cleanupInteractiveMouseListeners() {
      doc.body.removeEventListener('mouseleave', scheduleHide);
      doc.removeEventListener('mousemove', debouncedOnMouseMove);
      mouseMoveListeners = mouseMoveListeners.filter(function (listener) {
        return listener !== debouncedOnMouseMove;
      });
    }

    function onDocumentMouseDown(event) {
		
		let interactiveArea = popper;
		if ( instance.props.centerHorizontal === true ) {
			
			interactiveArea = content;
		}
		
      // Clicked on interactive popper
      if (instance.props.interactive && interactiveArea.contains(event.target)) {
        return;
      } // Clicked on the event listeners target
	  
      if (getCurrentTarget().contains(event.target)) {
        if (currentInput.isTouch) {
          return;
        }

        if (instance.state.isVisible && includes(instance.props.trigger, 'click')) {
          return;
        }
      }

      if (instance.props.hideOnClick === true) {
        isVisibleFromClick = false;
        instance.clearDelayTimeouts();
        instance.hide(); // `mousedown` event is fired right before `focus` if pressing the
        // currentTarget. This lets a tippy with `focus` trigger know that it
        // should not show

        didHideDueToDocumentMouseDown = true;
        setTimeout(function () {
          didHideDueToDocumentMouseDown = false;
        }); // The listener gets added in `scheduleShow()`, but this may be hiding it
        // before it shows, and hide()'s early bail-out behavior can prevent it
        // from being cleaned up

        if (!instance.state.isMounted) {
          removeDocumentMouseDownListener();
        }
      }
    }

    function addDocumentMouseDownListener() {
      doc.addEventListener('mousedown', onDocumentMouseDown, true);
    }

    function removeDocumentMouseDownListener() {
      doc.removeEventListener('mousedown', onDocumentMouseDown, true);
    }

    function onTransitionedOut(duration, callback) {
      onTransitionEnd(duration, function () {
        if (!instance.state.isVisible && popper.parentNode && popper.parentNode.contains(popper)) {
          callback();
        }
      });
    }

    function onTransitionedIn(duration, callback) {
      onTransitionEnd(duration, callback);
    }

    function onTransitionEnd(duration, callback) {
      function listener(event) {
        if (event.target === tooltip) {
          updateTransitionEndListener(tooltip, 'remove', listener);
          callback();
        }
      } // Make callback synchronous if duration is 0
      // `transitionend` won't fire otherwise


      if (duration === 0) {
        return callback();
      }

      updateTransitionEndListener(tooltip, 'remove', currentTransitionEndListener);
      updateTransitionEndListener(tooltip, 'add', listener);
      currentTransitionEndListener = listener;
    }

    function on(eventType, handler, options) {
      if (options === void 0) {
        options = false;
      }

      var nodes = normalizeToArray(instance.props.triggerTarget || reference);
      nodes.forEach(function (node) {
        node.addEventListener(eventType, handler, options);
        listeners.push({
          node: node,
          eventType: eventType,
          handler: handler,
          options: options
        });
      });
    }

    function addListenersToTriggerTarget() {
      if (getIsCustomTouchBehavior()) {
        on('touchstart', onTrigger, PASSIVE);
        on('touchend', onMouseLeave, PASSIVE);
      }

      splitBySpaces(instance.props.trigger).forEach(function (eventType) {
        if (eventType === 'manual') {
          return;
        }

        on(eventType, onTrigger);

        switch (eventType) {
          case 'mouseenter':
            on('mouseleave', onMouseLeave);
            break;

          case 'focus':
            on(isIE ? 'focusout' : 'blur', onBlurOrFocusOut);
            break;

          case 'focusin':
            on('focusout', onBlurOrFocusOut);
            break;
        }
      });
    }

    function removeListenersFromTriggerTarget() {
      listeners.forEach(function (_ref) {
        var node = _ref.node,
            eventType = _ref.eventType,
            handler = _ref.handler,
            options = _ref.options;
        node.removeEventListener(eventType, handler, options);
      });
      listeners = [];
    }

    function onTrigger(event) {
      var shouldScheduleClickHide = false;

      if (!instance.state.isEnabled || isEventListenerStopped(event) || didHideDueToDocumentMouseDown) {
        return;
      }

      lastTriggerEvent = event;
      currentTarget = event.currentTarget;
      handleAriaExpandedAttribute();

      if (!instance.state.isVisible && isMouseEvent(event)) {
        // If scrolling, `mouseenter` events can be fired if the cursor lands
        // over a new target, but `mousemove` events don't get fired. This
        // causes interactive tooltips to get stuck open until the cursor is
        // moved
        mouseMoveListeners.forEach(function (listener) {
          return listener(event);
        });
      } // Toggle show/hide when clicking click-triggered tooltips


      if (event.type === 'click' && (!includes(instance.props.trigger, 'mouseenter') || isVisibleFromClick) && instance.props.hideOnClick !== false && instance.state.isVisible) {
        shouldScheduleClickHide = true;
      } else {
        var _getNormalizedTouchSe = getNormalizedTouchSettings(),
            value = _getNormalizedTouchSe[0],
            duration = _getNormalizedTouchSe[1];

        if (currentInput.isTouch && value === 'hold' && duration) {
          // We can hijack the show timeout here, it will be cleared by
          // `scheduleHide()` when necessary
          showTimeout = setTimeout(function () {
            scheduleShow(event);
          }, duration);
        } else {
          scheduleShow(event);
        }
      }

      if (event.type === 'click') {
        isVisibleFromClick = !shouldScheduleClickHide;
      }

      if (shouldScheduleClickHide) {
        scheduleHide(event);
      }
    }

    function onMouseMove(event) {
      var isCursorOverReferenceOrPopper = closestCallback(event.target, function (el) {
		  
		let interactiveArea = popper;
		if ( instance.props.centerHorizontal === true ) {
			
			interactiveArea = content;
		}
		
        return el === reference || el === interactiveArea;
      });

      if (event.type === 'mousemove' && isCursorOverReferenceOrPopper) {
        return;
      }

      var popperTreeData = arrayFrom(popper.querySelectorAll(POPPER_SELECTOR)).concat(popper).map(function (popper) {
        var instance = popper._tippy;
        var tooltip = instance.popperChildren.tooltip;
        var interactiveBorder = instance.props.interactiveBorder;
		
		if ( instance.props.centerHorizontal === true ) {
			
			popper = popperChildren.content;
			tooltip = popperChildren.content;
		}
		
        return {
          popperRect: popper.getBoundingClientRect(),
          tooltipRect: tooltip.getBoundingClientRect(),
          interactiveBorder: interactiveBorder
        };
      });

      if (isCursorOutsideInteractiveBorder(popperTreeData, event)) {
        cleanupInteractiveMouseListeners();
        scheduleHide(event);
      }
    }

    function onMouseLeave(event) {
      if (isEventListenerStopped(event)) {
        return;
      }

      if (includes(instance.props.trigger, 'click') && isVisibleFromClick) {
        return;
      }

      if (instance.props.interactive) {
        doc.body.addEventListener('mouseleave', scheduleHide);
        doc.addEventListener('mousemove', debouncedOnMouseMove);
        pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
        debouncedOnMouseMove(event);
        return;
      }

      scheduleHide(event);
    }

    function onBlurOrFocusOut(event) {
		
      let interactiveArea = popper
	  , relatedTarget = event.relatedTarget;
	  
      if ( instance.props.centerHorizontal === true ) {
        interactiveArea = content;
      }
		
      if ( relatedTarget === null ) {
        relatedTarget = interactiveArea;
      }
		
      if (instance.props.trigger.indexOf('focusin') < 0 && event.target !== getCurrentTarget()) {
        return;
      } // If focus was moved to within the popper


      if (instance.props.interactive && relatedTarget && popper.contains(relatedTarget)) {
        return;
      }
	  
      // Clicked on interactive popper
      if (instance.props.interactive && interactiveArea.contains(event.target)) {
        return;
      } // Clicked on the event listeners target
	  

      scheduleHide(event);
    }

    function isEventListenerStopped(event) {
      var supportsTouch = 'ontouchstart' in window;
      var isTouchEvent = includes(event.type, 'touch');
      var isCustomTouch = getIsCustomTouchBehavior();
      return supportsTouch && currentInput.isTouch && isCustomTouch && !isTouchEvent || currentInput.isTouch && !isCustomTouch && isTouchEvent;
    }

    function createPopperInstance() {
      var popperOptions = instance.props.popperOptions;
      var arrow = instance.popperChildren.arrow;
      var flipModifier = getModifier(popperOptions, 'flip');
      var preventOverflowModifier = getModifier(popperOptions, 'preventOverflow');
      var distancePx;

      function applyMutations(data) {
        var prevPlacement = instance.state.currentPlacement;
        instance.state.currentPlacement = data.placement;

        if (instance.props.flip && !instance.props.flipOnUpdate) {
          if (data.flipped) {
            instance.popperInstance.options.placement = data.placement;
          }

          setModifierValue(instance.popperInstance.modifiers, 'flip', 'enabled', false);
        }

        tooltip.setAttribute('data-placement', data.placement);

        if (data.attributes['x-out-of-boundaries'] !== false) {
          tooltip.setAttribute('data-out-of-boundaries', '');
        } else {
          tooltip.removeAttribute('data-out-of-boundaries');
        }

        var basePlacement = getBasePlacement(data.placement);
        var isVerticalPlacement = includes(['top', 'bottom'], basePlacement);
        var isSecondaryPlacement = includes(['bottom', 'right'], basePlacement); // Apply `distance` prop

        tooltip.style.top = '0';
        tooltip.style.left = '0';
        tooltip.style[isVerticalPlacement ? 'top' : 'left'] = (isSecondaryPlacement ? 1 : -1) * distancePx + 'px'; // Careful not to cause an infinite loop here
        // Fixes https://github.com/FezVrasta/popper.js/issues/784

        if (prevPlacement && prevPlacement !== data.placement) {
          instance.popperInstance.update();
        }
      }

      var config = _extends({
        eventsEnabled: false,
        placement: instance.props.placement
      }, popperOptions, {
        modifiers: _extends({}, popperOptions && popperOptions.modifiers, {
          // We can't use `padding` on the popper el because of these bugs when
          // flipping from a vertical to horizontal placement or vice-versa,
          // there is severe flickering.
          // https://github.com/FezVrasta/popper.js/issues/720
          // This workaround increases bundle size by 250B minzip unfortunately,
          // due to need to custom compute the distance (since Popper rect does
          // not get affected by the inner tooltip's distance offset)
          tippyDistance: {
            enabled: true,
            order: 0,
            fn: function fn(data) {
              // `html` fontSize may change while `popperInstance` is alive
              // e.g. on resize in media queries
              distancePx = getUnitsInPx(doc, instance.props.distance);
              var basePlacement = getBasePlacement(data.placement);
              var computedPreventOverflowPadding = getComputedPadding(basePlacement, preventOverflowModifier && preventOverflowModifier.padding, distancePx);
              var computedFlipPadding = getComputedPadding(basePlacement, flipModifier && flipModifier.padding, distancePx);
              var instanceModifiers = instance.popperInstance.modifiers;
              setModifierValue(instanceModifiers, 'preventOverflow', 'padding', computedPreventOverflowPadding);
              setModifierValue(instanceModifiers, 'flip', 'padding', computedFlipPadding);
              return data;
            }
          },
          preventOverflow: _extends({
            boundariesElement: instance.props.boundary
          }, preventOverflowModifier),
          flip: _extends({
            enabled: instance.props.flip,
            behavior: instance.props.flipBehavior
          }, flipModifier),
          arrow: _extends({
            element: arrow,
            enabled: !!arrow
          }, getModifier(popperOptions, 'arrow')),
          offset: _extends({
            offset: instance.props.offset
          }, getModifier(popperOptions, 'offset'))
        }),
        onCreate: function onCreate(data) {
          applyMutations(data);
          preserveInvocation(popperOptions && popperOptions.onCreate, config.onCreate, [data]);
          runMountCallback();
        },
        onUpdate: function onUpdate(data) {
          applyMutations(data);
          preserveInvocation(popperOptions && popperOptions.onUpdate, config.onUpdate, [data]);
          runMountCallback();
        }
      });

      instance.popperInstance = new Popper(reference, popper, config);
    }

    function runMountCallback() {
      // Only invoke currentMountCallback after 2 updates
      // This fixes some bugs in Popper.js (TODO: aim for only 1 update)
      if (popperUpdates === 0) {
        popperUpdates++; // 1

        instance.popperInstance.update();
      } else if (currentMountCallback && popperUpdates === 1) {
        popperUpdates++; // 2

        reflow(popper);
        currentMountCallback();
      }
    }

    function mount() {
      // The mounting callback (`currentMountCallback`) is only run due to a
      // popperInstance update/create
      popperUpdates = 0;
      var appendTo = instance.props.appendTo;
      var parentNode; // By default, we'll append the popper to the triggerTargets's parentNode so
      // it's directly after the reference element so the elements inside the
      // tippy can be tabbed to
      // If there are clipping issues, the user can specify a different appendTo
      // and ensure focus management is handled correctly manually

      var node = getCurrentTarget();

      if (instance.props.interactive && appendTo === defaultProps.appendTo || appendTo === 'parent') {
        parentNode = node.parentNode;
      } else {
        parentNode = invokeWithArgsOrReturn(appendTo, [node]);
      } // The popper element needs to exist on the DOM before its position can be
      // updated as Popper.js needs to read its dimensions


      if (!parentNode.contains(popper)) {
        parentNode.appendChild(popper);
      }

      {
        // Accessibility check
        warnWhen(instance.props.interactive && appendTo === defaultProps.appendTo && node.nextElementSibling !== popper, ['Interactive tippy element may not be accessible via keyboard navigation', 'because it is not directly after the reference element in the DOM source', 'order.', '\n\n', 'Using a wrapper <div> or <span> tag around the reference element solves', 'this by creating a new parentNode context.', '\n\n', 'Specifying `appendTo: document.body` silences this warning, but it', 'assumes you are using a focus management solution to handle keyboard', 'navigation.', '\n\n', 'See: https://atomiks.github.io/tippyjs/accessibility/#interactivity'].join(' '));
      }

      setModifierValue(instance.popperInstance.modifiers, 'flip', 'enabled', instance.props.flip);
      instance.popperInstance.enableEventListeners(); // Mounting callback invoked in `onUpdate`

      instance.popperInstance.update();
    }

    function scheduleShow(event) {
      instance.clearDelayTimeouts();

      if (!instance.popperInstance) {
        createPopperInstance();
      }

      if (event) {
        invokeHook('onTrigger', [instance, event]);
      }

      addDocumentMouseDownListener();
      var delay = getDelay(true);

      if (delay) {
        showTimeout = setTimeout(function () {
          instance.show();
        }, delay);
      } else {
        instance.show();
      }
    }

    function scheduleHide(event) {
      instance.clearDelayTimeouts();
      invokeHook('onUntrigger', [instance, event]);

      if (!instance.state.isVisible) {
        removeDocumentMouseDownListener();
        return;
      } // For interactive tippies, scheduleHide is added to a document.body handler
      // from onMouseLeave so must intercept scheduled hides from mousemove/leave
      // events when trigger contains mouseenter and click, and the tip is
      // currently shown as a result of a click.


      if (includes(instance.props.trigger, 'mouseenter') && includes(instance.props.trigger, 'click') && includes(['mouseleave', 'mousemove'], event.type) && isVisibleFromClick) {
        return;
      }

      var delay = getDelay(false);

      if (delay) {
        hideTimeout = setTimeout(function () {
          if (instance.state.isVisible) {
            instance.hide();
          }
        }, delay);
      } else {
        // Fixes a `transitionend` problem when it fires 1 frame too
        // late sometimes, we don't want hide() to be called.
        scheduleHideAnimationFrame = requestAnimationFrame(function () {
          instance.hide();
        });
      }
    }
    /* ======================= 🔑 Public methods 🔑 ======================= */


    function enable() {
      instance.state.isEnabled = true;
    }

    function disable() {
      // Disabling the instance should also hide it
      // https://github.com/atomiks/tippy.js-react/issues/106
      instance.hide();
      instance.state.isEnabled = false;
    }

    function clearDelayTimeouts() {
      clearTimeout(showTimeout);
      clearTimeout(hideTimeout);
      cancelAnimationFrame(scheduleHideAnimationFrame);
    }

    function setProps(partialProps) {
      {
        warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('setProps'));
      }

      if (instance.state.isDestroyed) {
        return;
      }

      {
        validateProps(partialProps, plugins);
        warnWhen(partialProps.plugins ? partialProps.plugins.length !== plugins.length || plugins.some(function (p, i) {
          if (partialProps.plugins && partialProps.plugins[i]) {
            return p !== partialProps.plugins[i];
          } else {
            return true;
          }
        }) : false, "Cannot update plugins");
      }

      invokeHook('onBeforeUpdate', [instance, partialProps]);
      removeListenersFromTriggerTarget();
      var prevProps = instance.props;
      var nextProps = evaluateProps(reference, _extends({}, instance.props, {}, partialProps, {
        ignoreAttributes: true
      }));
      nextProps.ignoreAttributes = useIfDefined(partialProps.ignoreAttributes, prevProps.ignoreAttributes);
      instance.props = nextProps;
      addListenersToTriggerTarget();

      if (prevProps.interactiveDebounce !== nextProps.interactiveDebounce) {
        cleanupInteractiveMouseListeners();
        debouncedOnMouseMove = debounce(onMouseMove, nextProps.interactiveDebounce);
      }

      updatePopperElement(popper, prevProps, nextProps);
      instance.popperChildren = getChildren(popper); // Ensure stale aria-expanded attributes are removed

      if (prevProps.triggerTarget && !nextProps.triggerTarget) {
        normalizeToArray(prevProps.triggerTarget).forEach(function (node) {
          node.removeAttribute('aria-expanded');
        });
      } else if (nextProps.triggerTarget) {
        reference.removeAttribute('aria-expanded');
      }

      handleAriaExpandedAttribute();

      if (instance.popperInstance) {
        if (POPPER_INSTANCE_DEPENDENCIES.some(function (prop) {
          return hasOwnProperty(partialProps, prop) && partialProps[prop] !== prevProps[prop];
        })) {
          var currentReference = instance.popperInstance.reference;
          instance.popperInstance.destroy();
          createPopperInstance();
          instance.popperInstance.reference = currentReference;

          if (instance.state.isVisible) {
            instance.popperInstance.enableEventListeners();
          }
        } else {
          instance.popperInstance.update();
        }
      }

      invokeHook('onAfterUpdate', [instance, partialProps]);
    }

    function setContent(content) {
      instance.setProps({
        content: content
      });
    }

    function show(duration) {
      if (duration === void 0) {
        duration = getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
      }

      {
        warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
      } // Early bail-out


      var isAlreadyVisible = instance.state.isVisible;
      var isDestroyed = instance.state.isDestroyed;
      var isDisabled = !instance.state.isEnabled;
      var isTouchAndTouchDisabled = currentInput.isTouch && !instance.props.touch;

      if (isAlreadyVisible || isDestroyed || isDisabled || isTouchAndTouchDisabled) {
        return;
      } // Normalize `disabled` behavior across browsers.
      // Firefox allows events on disabled elements, but Chrome doesn't.
      // Using a wrapper element (i.e. <span>) is recommended.


      if (getCurrentTarget().hasAttribute('disabled')) {
        return;
      }

      if (!instance.popperInstance) {
        createPopperInstance();
      }

      invokeHook('onShow', [instance], false);

      if (instance.props.onShow(instance) === false) {
        return;
      }

      addDocumentMouseDownListener();
      popper.style.visibility = 'visible';
      instance.state.isVisible = true; // Prevent a transition of the popper from its previous position and of the
      // elements at a different placement
      // Check if the tippy was fully unmounted before `show()` was called, to
      // allow for smooth transition for `createSingleton()`

      if (!instance.state.isMounted) {
        setTransitionDuration(transitionableElements.concat(popper), 0);
      }

      currentMountCallback = function currentMountCallback() {
        if (!instance.state.isVisible) {
          return;
        }

        setTransitionDuration([popper], instance.props.updateDuration);
        setTransitionDuration(transitionableElements, duration);
        setVisibilityState(transitionableElements, 'visible');
        handleAriaDescribedByAttribute();
        handleAriaExpandedAttribute();
        pushIfUnique(mountedInstances, instance);
        updateIOSClass(true);
        instance.state.isMounted = true;
        invokeHook('onMount', [instance]);
        onTransitionedIn(duration, function () {
          instance.state.isShown = true;
          invokeHook('onShown', [instance]);
        });
      };

      mount();
    }

    function hide(duration) {
      if (duration === void 0) {
        duration = getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
      }

      {
        warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
      } // Early bail-out


      var isAlreadyHidden = !instance.state.isVisible && !isBeingDestroyed;
      var isDestroyed = instance.state.isDestroyed;
      var isDisabled = !instance.state.isEnabled && !isBeingDestroyed;

      if (isAlreadyHidden || isDestroyed || isDisabled) {
        return;
      }

      invokeHook('onHide', [instance], false);

      if (instance.props.onHide(instance) === false && !isBeingDestroyed) {
        return;
      }

      removeDocumentMouseDownListener();
      popper.style.visibility = 'hidden';
      instance.state.isVisible = false;
      instance.state.isShown = false;
      setTransitionDuration(transitionableElements, duration);
      setVisibilityState(transitionableElements, 'hidden');
      handleAriaDescribedByAttribute();
      handleAriaExpandedAttribute();
      onTransitionedOut(duration, function () {
        instance.popperInstance.disableEventListeners();
        instance.popperInstance.options.placement = instance.props.placement;
        popper.parentNode.removeChild(popper);
        mountedInstances = mountedInstances.filter(function (i) {
          return i !== instance;
        });

        if (mountedInstances.length === 0) {
          updateIOSClass(false);
        }

        instance.state.isMounted = false;
        invokeHook('onHidden', [instance]);
      });
    }

    function destroy() {
      {
        warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
      }

      if (instance.state.isDestroyed) {
        return;
      }

      isBeingDestroyed = true;
      instance.clearDelayTimeouts();
      instance.hide(0);
      removeListenersFromTriggerTarget();
      delete reference._tippy;

      if (instance.popperInstance) {
        instance.popperInstance.destroy();
      }

      isBeingDestroyed = false;
      instance.state.isDestroyed = true;
      invokeHook('onDestroy', [instance]);
    }
  }

  function tippy(targets, optionalProps,
  /** @deprecated use Props.plugins */
  plugins) {
    if (optionalProps === void 0) {
      optionalProps = {};
    }

    if (plugins === void 0) {
      plugins = [];
    }

    plugins = defaultProps.plugins.concat(optionalProps.plugins || plugins);

    {
      validateTargets(targets);
      validateProps(optionalProps, plugins);
    }

    bindGlobalEventListeners();

    var passedProps = _extends({}, optionalProps, {
      plugins: plugins
    });

    var elements = getArrayOfElements(targets);

    {
      var isSingleContentElement = isElement(passedProps.content);
      var isMoreThanOneReferenceElement = elements.length > 1;
      warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ['tippy() was passed an Element as the `content` prop, but more than one tippy', 'instance was created by this invocation. This means the content element will', 'only be appended to the last tippy instance.', '\n\n', 'Instead, pass the .innerHTML of the element, or use a function that returns a', 'cloned version of the element instead.', '\n\n', '1) content: element.innerHTML\n', '2) content: () => element.cloneNode(true)'].join(' '));
    }

    var instances = elements.reduce(function (acc, reference) {
      var instance = reference && createTippy(reference, passedProps);

      if (instance) {
        acc.push(instance);
      }

      return acc;
    }, []);
    return isElement(targets) ? instances[0] : instances;
  }

  tippy.version = version;
  tippy.defaultProps = defaultProps;
  tippy.setDefaultProps = setDefaultProps;
  tippy.currentInput = currentInput;
  /**
   * Hides all visible poppers on the document
   */

  var hideAll = function hideAll(_temp) {
    var _ref = _temp === void 0 ? {} : _temp,
        excludedReferenceOrInstance = _ref.exclude,
        duration = _ref.duration;

    mountedInstances.forEach(function (instance) {
      var isExcluded = false;

      if (excludedReferenceOrInstance) {
        isExcluded = isReferenceElement(excludedReferenceOrInstance) ? instance.reference === excludedReferenceOrInstance : instance.popper === excludedReferenceOrInstance.popper;
      }

      if (!isExcluded) {
        instance.hide(duration);
      }
    });
  };

  /**
   * Re-uses a single tippy element for many different tippy instances.
   * Replaces v4's `tippy.group()`.
   */

  var createSingleton = function createSingleton(tippyInstances, optionalProps,
  /** @deprecated use Props.plugins */
  plugins) {
    if (optionalProps === void 0) {
      optionalProps = {};
    }

    if (plugins === void 0) {
      plugins = [];
    }

    {
      errorWhen(!Array.isArray(tippyInstances), ['The first argument passed to createSingleton() must be an array of tippy', 'instances. The passed value was', String(tippyInstances)].join(' '));
    }

    plugins = optionalProps.plugins || plugins;
    tippyInstances.forEach(function (instance) {
      instance.disable();
    });

    var userAria = _extends({}, defaultProps, {}, optionalProps).aria;

    var currentAria;
    var currentTarget;
    var shouldSkipUpdate = false;
    var references = tippyInstances.map(function (instance) {
      return instance.reference;
    });
    var singleton = {
      fn: function fn(instance) {
        function handleAriaDescribedByAttribute(isShow) {
          if (!currentAria) {
            return;
          }

          var attr = "aria-" + currentAria;

          if (isShow && !instance.props.interactive) {
            currentTarget.setAttribute(attr, instance.popperChildren.tooltip.id);
          } else {
            currentTarget.removeAttribute(attr);
          }
        }

        return {
          onAfterUpdate: function onAfterUpdate(_, _ref) {
            var aria = _ref.aria;

            // Ensure `aria` for the singleton instance stays `null`, while
            // changing the `userAria` value
            if (aria !== undefined && aria !== userAria) {
              if (!shouldSkipUpdate) {
                userAria = aria;
              } else {
                shouldSkipUpdate = true;
                instance.setProps({
                  aria: null
                });
                shouldSkipUpdate = false;
              }
            }
          },
          onDestroy: function onDestroy() {
            tippyInstances.forEach(function (instance) {
              instance.enable();
            });
          },
          onMount: function onMount() {
            handleAriaDescribedByAttribute(true);
          },
          onUntrigger: function onUntrigger() {
            handleAriaDescribedByAttribute(false);
          },
          onTrigger: function onTrigger(_, event) {
            var target = event.currentTarget;
            var index = references.indexOf(target); // bail-out

            if (target === currentTarget) {
              return;
            }

            currentTarget = target;
            currentAria = userAria;

            if (instance.state.isVisible) {
              handleAriaDescribedByAttribute(true);
            }

            instance.popperInstance.reference = target;
            instance.setContent(tippyInstances[index].props.content);
          }
        };
      }
    };
    return tippy(div(), _extends({}, optionalProps, {
      plugins: [singleton].concat(plugins),
      aria: null,
      triggerTarget: references
    }));
  };

  var BUBBLING_EVENTS_MAP = {
    mouseover: 'mouseenter',
    focusin: 'focus',
    click: 'click'
  };
  /**
   * Creates a delegate instance that controls the creation of tippy instances
   * for child elements (`target` CSS selector).
   */

  function delegate(targets, props,
  /** @deprecated use Props.plugins */
  plugins) {
    if (plugins === void 0) {
      plugins = [];
    }

    {
      errorWhen(!(props && props.target), ['You must specity a `target` prop indicating a CSS selector string matching', 'the target elements that should receive a tippy.'].join(' '));
    }

    plugins = props.plugins || plugins;
    var listeners = [];
    var childTippyInstances = [];
    var target = props.target;
    var nativeProps = removeProperties(props, ['target']);

    var parentProps = _extends({}, nativeProps, {
      plugins: plugins,
      trigger: 'manual'
    });

    var childProps = _extends({}, nativeProps, {
      plugins: plugins,
      showOnCreate: true
    });

    var returnValue = tippy(targets, parentProps);
    var normalizedReturnValue = normalizeToArray(returnValue);

    function onTrigger(event) {
      if (!event.target) {
        return;
      }

      var targetNode = event.target.closest(target);

      if (!targetNode) {
        return;
      } // Get relevant trigger with fallbacks:
      // 1. Check `data-tippy-trigger` attribute on target node
      // 2. Fallback to `trigger` passed to `delegate()`
      // 3. Fallback to `defaultProps.trigger`


      var trigger = targetNode.getAttribute('data-tippy-trigger') || props.trigger || defaultProps.trigger; // Only create the instance if the bubbling event matches the trigger type

      if (!includes(trigger, BUBBLING_EVENTS_MAP[event.type])) {
        return;
      }

      var instance = tippy(targetNode, childProps);

      if (instance) {
        childTippyInstances = childTippyInstances.concat(instance);
      }
    }

    function on(node, eventType, handler, options) {
      if (options === void 0) {
        options = false;
      }

      node.addEventListener(eventType, handler, options);
      listeners.push({
        node: node,
        eventType: eventType,
        handler: handler,
        options: options
      });
    }

    function addEventListeners(instance) {
      var reference = instance.reference;
      on(reference, 'mouseover', onTrigger);
      on(reference, 'focusin', onTrigger);
      on(reference, 'click', onTrigger);
    }

    function removeEventListeners() {
      listeners.forEach(function (_ref) {
        var node = _ref.node,
            eventType = _ref.eventType,
            handler = _ref.handler,
            options = _ref.options;
        node.removeEventListener(eventType, handler, options);
      });
      listeners = [];
    }

    function applyMutations(instance) {
      var originalDestroy = instance.destroy;

      instance.destroy = function (shouldDestroyChildInstances) {
        if (shouldDestroyChildInstances === void 0) {
          shouldDestroyChildInstances = true;
        }

        if (shouldDestroyChildInstances) {
          childTippyInstances.forEach(function (instance) {
            instance.destroy();
          });
        }

        childTippyInstances = [];
        removeEventListeners();
        originalDestroy();
      };

      addEventListeners(instance);
    }

    normalizedReturnValue.forEach(applyMutations);
    return returnValue;
  }

  var animateFill = {
    name: 'animateFill',
    defaultValue: false,
    fn: function fn(instance) {
      var _instance$popperChild = instance.popperChildren,
          tooltip = _instance$popperChild.tooltip,
          content = _instance$popperChild.content;
      var backdrop = instance.props.animateFill ? createBackdropElement() : null;

      function addBackdropToPopperChildren() {
        instance.popperChildren.backdrop = backdrop;
      }

      return {
        onCreate: function onCreate() {
          if (backdrop) {
            addBackdropToPopperChildren();
            tooltip.insertBefore(backdrop, tooltip.firstElementChild);
            tooltip.setAttribute('data-animatefill', '');
            tooltip.style.overflow = 'hidden';
            instance.setProps({
              animation: 'shift-away',
              arrow: false
            });
          }
        },
        onMount: function onMount() {
          if (backdrop) {
            var transitionDuration = tooltip.style.transitionDuration;
            var duration = Number(transitionDuration.replace('ms', '')); // The content should fade in after the backdrop has mostly filled the
            // tooltip element. `clip-path` is the other alternative but is not
            // well-supported and is buggy on some devices.

            content.style.transitionDelay = Math.round(duration / 10) + "ms";
            backdrop.style.transitionDuration = transitionDuration;
            setVisibilityState([backdrop], 'visible'); // Warn if the stylesheets are not loaded

            {
              warnWhen(getComputedStyle(backdrop).position !== 'absolute', "The `tippy.js/dist/backdrop.css` stylesheet has not been\n              imported!\n              \n              The `animateFill` plugin requires this stylesheet to work.");
              warnWhen(getComputedStyle(tooltip).transform === 'none', "The `tippy.js/animations/shift-away.css` stylesheet has not\n              been imported!\n              \n              The `animateFill` plugin requires this stylesheet to work.");
            }
          }
        },
        onShow: function onShow() {
          if (backdrop) {
            backdrop.style.transitionDuration = '0ms';
          }
        },
        onHide: function onHide() {
          if (backdrop) {
            setVisibilityState([backdrop], 'hidden');
          }
        },
        onAfterUpdate: function onAfterUpdate() {
          // With this type of prop, it's highly unlikely it will be changed
          // dynamically. We'll leave out the diff/update logic it to save bytes.
          // `popperChildren` is assigned a new object onAfterUpdate
          addBackdropToPopperChildren();
        }
      };
    }
  };

  function createBackdropElement() {
    var backdrop = div();
    backdrop.className = BACKDROP_CLASS;
    setVisibilityState([backdrop], 'hidden');
    return backdrop;
  }

  var followCursor = {
    name: 'followCursor',
    defaultValue: false,
    fn: function fn(instance) {
      var reference = instance.reference,
          popper = instance.popper;
      var originalReference = null; // Support iframe contexts
      // Static check that assumes any of the `triggerTarget` or `reference`
      // nodes will never change documents, even when they are updated

      var doc = getOwnerDocument(instance.props.triggerTarget || reference); // Internal state

      var lastMouseMoveEvent;
      var mouseCoords = null;
      var isInternallySettingControlledProp = false; // These are controlled by this plugin, so we need to store the user's
      // original prop value

      var userProps = instance.props;

      function setUserProps(props) {
        var keys = Object.keys(props);
        keys.forEach(function (prop) {
          userProps[prop] = useIfDefined(props[prop], userProps[prop]);
        });
      }

      function getIsManual() {
        return instance.props.trigger.trim() === 'manual';
      }

      function getIsEnabled() {
        // #597
        var isValidMouseEvent = getIsManual() ? true : // Check if a keyboard "click"
        mouseCoords !== null && !(mouseCoords.clientX === 0 && mouseCoords.clientY === 0);
        return instance.props.followCursor && isValidMouseEvent;
      }

      function getIsInitialBehavior() {
        return currentInput.isTouch || instance.props.followCursor === 'initial' && instance.state.isVisible;
      }

      function resetReference() {
        if (instance.popperInstance && originalReference) {
          instance.popperInstance.reference = originalReference;
        }
      }

      function handlePlacement() {
        // Due to `getVirtualOffsets()`, we need to reverse the placement if it's
        // shifted (start -> end, and vice-versa)
        // Early bail-out
        if (!getIsEnabled() && instance.props.placement === userProps.placement) {
          return;
        }

        var placement = userProps.placement;
        var shift = placement.split('-')[1];
        isInternallySettingControlledProp = true;
        instance.setProps({
          placement: getIsEnabled() && shift ? placement.replace(shift, shift === 'start' ? 'end' : 'start') : placement
        });
        isInternallySettingControlledProp = false;
      }

      function handlePopperListeners() {
        if (!instance.popperInstance) {
          return;
        } // Popper's scroll listeners make sense for `true` only. TODO: work out
        // how to only listen horizontal scroll for "horizontal" and vertical
        // scroll for "vertical"


        if (getIsEnabled() && getIsInitialBehavior()) {
          instance.popperInstance.disableEventListeners();
        }
      }

      function handleMouseMoveListener() {
        if (getIsEnabled()) {
          addListener();
        } else {
          resetReference();
        }
      }

      function triggerLastMouseMove() {
        if (getIsEnabled()) {
          onMouseMove(lastMouseMoveEvent);
        }
      }

      function addListener() {
        doc.addEventListener('mousemove', onMouseMove);
      }

      function removeListener() {
        doc.removeEventListener('mousemove', onMouseMove);
      }

      function onMouseMove(event) {
        var _lastMouseMoveEvent = lastMouseMoveEvent = event,
            clientX = _lastMouseMoveEvent.clientX,
            clientY = _lastMouseMoveEvent.clientY;

        if (!instance.popperInstance || !instance.state.currentPlacement) {
          return;
        } // If the instance is interactive, avoid updating the position unless it's
        // over the reference element


        var isCursorOverReference = closestCallback(event.target, function (el) {
          return el === reference;
        });
        var followCursor = instance.props.followCursor;
        var isHorizontal = followCursor === 'horizontal';
        var isVertical = followCursor === 'vertical';
        var isVerticalPlacement = includes(['top', 'bottom'], getBasePlacement(instance.state.currentPlacement)); // The virtual reference needs some size to prevent itself from overflowing

        var _getVirtualOffsets = getVirtualOffsets(popper, isVerticalPlacement),
            size = _getVirtualOffsets.size,
            x = _getVirtualOffsets.x,
            y = _getVirtualOffsets.y;

        if (isCursorOverReference || !instance.props.interactive) {
          // Preserve custom position ReferenceObjects, which may not be the
          // original targets reference passed as an argument
          if (originalReference === null) {
            originalReference = instance.popperInstance.reference;
          }

          instance.popperInstance.reference = {
            referenceNode: reference,
            // These `client` values don't get used by Popper.js if they are 0
            clientWidth: 0,
            clientHeight: 0,
            getBoundingClientRect: function getBoundingClientRect() {
              var rect = reference.getBoundingClientRect();
              return {
                width: isVerticalPlacement ? size : 0,
                height: isVerticalPlacement ? 0 : size,
                top: (isHorizontal ? rect.top : clientY) - y,
                bottom: (isHorizontal ? rect.bottom : clientY) + y,
                left: (isVertical ? rect.left : clientX) - x,
                right: (isVertical ? rect.right : clientX) + x
              };
            }
          };
          instance.popperInstance.update();
        }

        if (getIsInitialBehavior()) {
          removeListener();
        }
      }

      return {
        onAfterUpdate: function onAfterUpdate(_, partialProps) {
          if (!isInternallySettingControlledProp) {
            setUserProps(partialProps);

            if (partialProps.placement) {
              handlePlacement();
            }
          } // A new placement causes the popperInstance to be recreated


          if (partialProps.placement) {
            handlePopperListeners();
          } // Wait for `.update()` to set `instance.state.currentPlacement` to
          // the new placement


          requestAnimationFrame(triggerLastMouseMove);
        },
        onMount: function onMount() {
          triggerLastMouseMove();
          handlePopperListeners();
        },
        onShow: function onShow() {
          if (getIsManual()) {
            // Since there's no trigger event to use, we have to use these as
            // baseline coords
            mouseCoords = {
              clientX: 0,
              clientY: 0
            }; // Ensure `lastMouseMoveEvent` doesn't access any other properties
            // of a MouseEvent here

            lastMouseMoveEvent = mouseCoords;
            handlePlacement();
            handleMouseMoveListener();
          }
        },
        onTrigger: function onTrigger(_, event) {
          // Tapping on touch devices can trigger `mouseenter` then `focus`
          if (mouseCoords) {
            return;
          }

          if (isMouseEvent(event)) {
            mouseCoords = {
              clientX: event.clientX,
              clientY: event.clientY
            };
            lastMouseMoveEvent = event;
          }

          handlePlacement();
          handleMouseMoveListener();
        },
        onUntrigger: function onUntrigger() {
          // If untriggered before showing (`onHidden` will never be invoked)
          if (!instance.state.isVisible) {
            removeListener();
            mouseCoords = null;
          }
        },
        onHidden: function onHidden() {
          removeListener();
          resetReference();
          mouseCoords = null;
        }
      };
    }
  };
  function getVirtualOffsets(popper, isVerticalPlacement) {
    var size = isVerticalPlacement ? popper.offsetWidth : popper.offsetHeight;
    return {
      size: size,
      x: isVerticalPlacement ? size : 0,
      y: isVerticalPlacement ? 0 : size
    };
  }

  // position. This will require the `followCursor` plugin's fixes for overflow
  // due to using event.clientX/Y values. (normalizedPlacement, getVirtualOffsets)

  var inlinePositioning = {
    name: 'inlinePositioning',
    defaultValue: false,
    fn: function fn(instance) {
      var reference = instance.reference;

      function getIsEnabled() {
        return !!instance.props.inlinePositioning;
      }

      return {
        onHidden: function onHidden() {
          if (getIsEnabled()) {
            instance.popperInstance.reference = reference;
          }
        },
        onShow: function onShow() {
          if (!getIsEnabled()) {
            return;
          }

          instance.popperInstance.reference = {
            referenceNode: reference,
            // These `client` values don't get used by Popper.js if they are 0
            clientWidth: 0,
            clientHeight: 0,
            getBoundingClientRect: function getBoundingClientRect() {
              return getInlineBoundingClientRect(instance.state.currentPlacement && getBasePlacement(instance.state.currentPlacement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()));
            }
          };
        }
      };
    }
  };
  function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects) {
    // Not an inline element, or placement is not yet known
    if (clientRects.length < 2 || currentBasePlacement === null) {
      return boundingRect;
    }

    switch (currentBasePlacement) {
      case 'top':
      case 'bottom':
        {
          var firstRect = clientRects[0];
          var lastRect = clientRects[clientRects.length - 1];
          var isTop = currentBasePlacement === 'top';
          var top = firstRect.top;
          var bottom = lastRect.bottom;
          var left = isTop ? firstRect.left : lastRect.left;
          var right = isTop ? firstRect.right : lastRect.right;
          var width = right - left;
          var height = bottom - top;
          return {
            top: top,
            bottom: bottom,
            left: left,
            right: right,
            width: width,
            height: height
          };
        }

      case 'left':
      case 'right':
        {
          var minLeft = Math.min.apply(Math, clientRects.map(function (rects) {
            return rects.left;
          }));
          var maxRight = Math.max.apply(Math, clientRects.map(function (rects) {
            return rects.right;
          }));
          var measureRects = clientRects.filter(function (rect) {
            return currentBasePlacement === 'left' ? rect.left === minLeft : rect.right === maxRight;
          });
          var _top = measureRects[0].top;
          var _bottom = measureRects[measureRects.length - 1].bottom;
          var _left = minLeft;
          var _right = maxRight;

          var _width = _right - _left;

          var _height = _bottom - _top;

          return {
            top: _top,
            bottom: _bottom,
            left: _left,
            right: _right,
            width: _width,
            height: _height
          };
        }

      default:
        {
          return boundingRect;
        }
    }
  }

  var sticky = {
    name: 'sticky',
    defaultValue: false,
    fn: function fn(instance) {
      var reference = instance.reference,
          popper = instance.popper;

      function getReference() {
        return instance.popperInstance ? instance.popperInstance.reference : reference;
      }

      function shouldCheck(value) {
        return instance.props.sticky === true || instance.props.sticky === value;
      }

      var prevRefRect = null;
      var prevPopRect = null;

      function updatePosition() {
        var currentRefRect = shouldCheck('reference') ? getReference().getBoundingClientRect() : null;
        var currentPopRect = shouldCheck('popper') ? popper.getBoundingClientRect() : null;

        if (currentRefRect && areRectsDifferent(prevRefRect, currentRefRect) || currentPopRect && areRectsDifferent(prevPopRect, currentPopRect)) {
          instance.popperInstance.update();
        }

        prevRefRect = currentRefRect;
        prevPopRect = currentPopRect;

        if (instance.state.isMounted) {
          requestAnimationFrame(updatePosition);
        }
      }

      return {
        onMount: function onMount() {
          if (instance.props.sticky) {
            updatePosition();
          }
        }
      };
    }
  };

  function areRectsDifferent(rectA, rectB) {
    if (rectA && rectB) {
      return rectA.top !== rectB.top || rectA.right !== rectB.right || rectA.bottom !== rectB.bottom || rectA.left !== rectB.left;
    }

    return true;
  }

  if (isBrowser) {
    injectCSS(css);
  }

  tippy.setDefaultProps({
    plugins: [animateFill, followCursor, inlinePositioning, sticky]
  });
  tippy.createSingleton = createSingleton;
  tippy.delegate = delegate;
  tippy.hideAll = hideAll;
  tippy.roundArrow = ROUND_ARROW;

  return tippy;

}(Popperv1));
// source --> https://janesto.com/wp-content/plugins/divi-mega-pro/assets/js/main.js?ver=1.9.9.8 
var dmpSingletonInstance=null;!function(send){var divimegapro_ajax_intercept=function(body){var isDiviMegaProOpen=document.querySelectorAll('.divimegapro.dmp-open'),isDiviOverlaysOpen=document.querySelectorAll('.overlay.open');if(isDiviMegaProOpen.length>0&&isDiviOverlaysOpen.length<1){try{if(body!==null){var doCustomFieldName='et_pb_signup_divimegaproid',action='action=et_pb_submit_subscribe_form',is_optin_submit_subscribe_form=body.indexOf(action),is_divimegapro_ref_form=body.indexOf(doCustomFieldName);if(is_optin_submit_subscribe_form!==-1&&is_divimegapro_ref_form!==-1){var result=[];body.split('&').forEach(function(part){var item=part.split("="),name=decodeURIComponent(item[0]),value=decodeURIComponent(item[1]),doCustomField='et_custom_fields['+doCustomFieldName+']';if(name!=doCustomField&&name!='et_post_id'){result.push(part)}if(name==doCustomField){result.push('et_post_id='+value)}});var url=result.join('&');body=url}send.call(this,body)}if(body===null){send.call(this)}}catch(err){send.call(this,body)}}else{send.call(this,body)}};XMLHttpRequest.prototype.send=divimegapro_ajax_intercept}(XMLHttpRequest.prototype.send);(function(){var dmp_nTimer=setInterval(function(){if(typeof jQuery!=='undefined'){function isNitroPackEnabled(){let nitropack=false;if(jQuery('[id^="nitropack"]').length>0||jQuery('[class^="nitropack"]').length>0||typeof window.IS_NITROPACK!=='undefined'||typeof window.NITROPACK_STATE!=='undefined'||jQuery('[id="nitro-telemetry"]').length>0){nitropack=true}return nitropack}let delayMegaProInit=(isNitroPackEnabled()===true)?1000:1;setTimeout(function(){;(function($,window,document,undefined){'use strict';var refMenuItemHasChildren=$('.menu-item.menu-item-has-children'),pagecontainer=$('#page-container'),divimegaprowrapper=$('.divimegapro-wrapper'),divimegaproOverlayBackground=$('<div/>').addClass('divimegapro-overlay-background').css('opacity','0').css('display','none'),body=$('body'),isIOS=body.hasClass('osx'),divimegapros={};$.fn.mainDiviMegaPro=function(options){var divimegapro_body,divimegapro,idx_divimegapro,divi_divimegapro_container_selector,$divimegapro=this,contentLengthcache,divimegaproHeightCache,diviMobile,isIphone,smallDevice,unSmallDevice,isDiviMenuBarVisible=$('.mobile_menu_bar').is(':visible'),themesBreakpoint={Divi:980,Extra:1024},vw,fixedElements,scrollCheck,diviElement_togglePro,initDiviElements_timer=null,initDiviFuncs_timer=null,diviet_fix_slider_height=window.et_fix_slider_height,defaultArrow='<svg xmlns="http://www.w3.org/2000/svg" focusable="false" viewBox="0 0 10 5" aria-hidden="true"><path fill-rule="evenodd" d="m0 5 5-5 5 5z"></path></svg>';const singletonContentCache=[],styleTagID='divi-mega-pro-styles',diviMenuHover_observeConfig={attributes:true,childList:false,subtree:false},diviMenuHover_callback=function(mutationsList,observer){mutationsList.forEach(function(mutation){if(mutation.type==='attributes'){let refElement=$(mutation.target);checkDiviMenuHover(refElement)}})},diviMenuHover_observer=new MutationObserver(diviMenuHover_callback),supportIGMap={},supportRevSlider={},hideOnEsc={name:'hideOnEsc',defaultValue:true,fn({hide}){function onKeyDown(event){if(event.keyCode===27){hide()}}return{onShow(){document.addEventListener('keydown',onKeyDown)},onHide(){document.removeEventListener('keydown',onKeyDown)}}}};function checkDiviMenuHover(refElement){if(!refElement.hasClass('et-hover')){refElement.addClass('et-hover')}}function emulateIOS(listener){let clicks=0;return function(){clicks+=1;if(clicks===2||isIOS){clicks=0;listener.apply(this,arguments)}}}const dmps={};const dmps_tippyinstances=[];var dmpsSingleton=0;var diviPageContainer=document.getElementById('page-container'),diviPageContainerBody=$('.et-db #et-boc .et-l').not(function(){return $(this).parents('#sidebar-divibar').length===1||$(this).parents('#sidebar-overlay').length===1||$(this).parents('.divimegapro-container').length===1||$(this).parents('.divi-mobile-menu').length===1}),diviTopHeader=document.getElementById('top-header'),diviAltHeader=document.querySelector('header.et-l--header'),diviAltHeaderMenu=document.querySelector('.et-l--header .et_pb_row--with-menu'),diviAltMainContentMenu=document.querySelector('#main-content .et_pb_row--with-menu'),diviMainHeader=document.getElementById('main-header'),diviMainFooter=document.getElementById('main-footer'),documentHTML=$('html'),documentBody=document.body,dynamicHeightTimer=0,dynamicHeightContent=0;if(diviPageContainerBody.length>0){diviPageContainer=diviPageContainerBody[0]}if(typeof options=='function'){options={success:options}}else if(options===undefined){options={}}$('<style id="'+styleTagID+'"></style>').appendTo('head');if($('div.divimegapro-container').length){diviMobile=isDiviMobile();isIphone=isIphone();if(window.matchMedia){smallDevice=window.matchMedia('(max-device-width: 414px)').matches}else{smallDevice=screen.width<=414}if(window.matchMedia){unSmallDevice=window.matchMedia('(max-device-width: 500px)').matches}else{unSmallDevice=screen.width<=500}if(true===unSmallDevice){divimegaproOverlayBackground.appendTo('body')}if(diviMobile){diviElement_togglePro=$('.et_mobile_nav_menu > .mobile_nav');if(diviElement_togglePro.length){diviElement_togglePro.on('click touchstart',function(e){if($('.tippy-popper').length&&$(e.target).hasClass('mobile_menu_bar')){var allPoppers=document.querySelectorAll('.tippy-popper');$.each(allPoppers,function(index,popper){const instance=popper._tippy;if(instance.state.isVisible){instance.hide()}})}})}}var divimegapro_container=$('div.divimegapro-wrapper'),container=$('div#page-container'),removeMonarchTimer=0;function applyAccesibility(pThis,selector){if(typeof pThis!=='undefined'&&pThis!==''){pThis.attr('aria-haspopup','dialog')}}function observeDiviDefaultStickyElems(elem){let setAttribute=elem.setAttribute;elem.setAttribute=function(key,value){setAttribute.call(elem,key,value)}}$(divimegapro_container).each(function(){let iddmp=this.id;if(typeof iddmp!=='undefined'&&iddmp!==''){$('[id="'+this.id+'"]:gt(0)').remove()}});function avoidDiviHashIssues(elemTrigger){let href=elemTrigger.attr('href');if(href!==undefined){let hash=href[0];if(typeof hash!=='undefined'){if(hash=='#'&&hash.length>1){elemTrigger.off('click')}}}else if(href===undefined){elemTrigger.attr('href','#dmp');elemTrigger.off('click')}}function removeEventsOnParentDiviNav(elemTrigger){let parent_has_divi_nav=elemTrigger.parents('.nav');if(diviMobile===true&&parent_has_divi_nav.length>0){elemTrigger.parent().off()}}$('body [class*="divimegapro"]').each(function(){let pThis=$(this),divimegaproArr=pThis.attr('class'),divimegapro_match=divimegaproArr.match(/divimegapro-(\d+)/),selector=this,divimegapro_id=null;if(null!=divimegapro_match){divimegapro_id=divimegapro_match[1];if(divimegapro_id){let is_divi_mobile_nav=pThis.parents('.mobile_nav');if(is_divi_mobile_nav.length>0){avoidDiviHashIssues(pThis);let aLink=pThis.find('a');if(aLink.length>0){aLink.attr('rel','divimegapro-'+divimegapro_id)}}else{selector.setAttribute('data-divimegaproid',divimegapro_id);applyAccesibility(pThis);createDiviMegaPro(divimegapro_id,selector)}}}});$('body [rel^="divimegapro"]').each(function(){let pThis=$(this),divimegaproArr=pThis.attr('rel').split('-'),divimegapro_id=parseInt(divimegaproArr[1]),selector=this;if(divimegapro_id){let is_divi_mobile_nav=pThis.parents('.mobile_nav');if(is_divi_mobile_nav.length>0){avoidDiviHashIssues(pThis)}else{removeEventsOnParentDiviNav(pThis)}selector.setAttribute('data-divimegaproid',divimegapro_id);applyAccesibility(pThis);createDiviMegaPro(divimegapro_id,selector)}});$('.nav a, .mobile_nav a').each(function(index,value){let href=$(value).attr('href');if(href!==undefined){idx_divimegapro=href.indexOf('divimegapro');if(idx_divimegapro!==-1){let idx_divimegaproArr=href.split('-');if(idx_divimegaproArr.length>1){let divimegapro_id=parseInt(idx_divimegaproArr[1]);if(divimegapro_id){let pThis=$(this),selector=this;selector.setAttribute('data-divimegaproid',divimegapro_id);applyAccesibility(pThis);createDiviMegaPro(divimegapro_id,selector)}}}}});if(typeof divimegapros_with_css_trigger!=='undefined'){var dmpTriggerType='',dmp_container_selector,dmp_container,dmp_options;if($(divimegapros_with_css_trigger).length>0){$.each(divimegapros_with_css_trigger,function(divimegapro_id,selector){$(selector).each(function(e){let pThis=$(this);this.setAttribute('data-divimegaproid',divimegapro_id);applyAccesibility(pThis);createDiviMegaPro(divimegapro_id,this)})})}}$('a').each(function(){let pThis=$(this),href=pThis.attr('href');if(href!==undefined){var hash=href[0],ref=href.indexOf('divimegapro');if(hash=='#'&&href.length>1&&ref!=-1){var divimegapro_id=parseInt(href.replace('#divimegapro-',''));if(typeof divimegapro_id=='number'){pThis.attr('data-divimegaproid',divimegapro_id);applyAccesibility(pThis);createDiviMegaPro(divimegapro_id,this)}}}});function addClosingListeners(){$('.divimegapro-close, .divimegapro-close a').off('click');body.on('click touchstart','.divimegapro-close, .divimegapro-close a',function(e){const pThis=this,$this=$(pThis),dmp=$this.parents('.tippy-popper'),childLink=$this.find('a:first-child'),currentTarget=$(e.currentTarget),instance=dmp[0]._tippy,etlinkdata=[];if(currentTarget.hasClass('et_clickable')&&'undefined'!==typeof et_link_options_data&&0<et_link_options_data.length){$.each(et_link_options_data,function(index,link_option_entry){if(link_option_entry.class&&link_option_entry.url&&link_option_entry.target){if(currentTarget.hasClass(link_option_entry.class)){dmp.attr('data-etlinkclass',link_option_entry.class);dmp.attr('data-etlinkurl',link_option_entry.url);dmp.attr('data-etlinktarget',link_option_entry.target)}}})}else if(childLink.length>0){dmp.attr('data-etlinkclass','nodivilink');dmp.attr('data-etlinkurl',childLink.attr('href'));dmp.attr('data-etlinktarget',childLink.attr('target'))}if(documentHTML.hasClass('divimegapro-opening')===false){if(instance.state.isVisible){instance.hide()}}})}addClosingListeners();function initDivi5ModulesOnCustomScroll(){if(!!window.divi){let CSSSelector='.dmmbasic-theme .tippy-content, .divimegapro, .divimegapro .et_pb_section',customScrollEventName='scroll.divilifeDiviMegaProInitDivi5';$(CSSSelector).off(customScrollEventName);let delayTriggerWindowEvents=false;$(CSSSelector).on(customScrollEventName,function(e){if(!delayTriggerWindowEvents){delayTriggerWindowEvents=true;window.dispatchEvent(new Event('resize'));window.dispatchEvent(new Event('scroll'));setTimeout(function(){delayTriggerWindowEvents=false},190)}})}}function onCloseScrollTo(dClass,dURL,dTarget){if('undefined'!==typeof dClass&&'undefined'!==typeof dURL&&'undefined'!==typeof dTarget){if(dURL=(dURL=dURL.replace(/&#91;/g,"[")).replace(/&#93;/g,"]"),"_blank"===dTarget){return void window.open(dURL)}if("_blank"===dTarget){return void window.open(dURL)}if(dURL&&dURL.indexOf('#')!==-1){if('#'!==dURL[0]){let hash=dURL.toLowerCase().substring(dURL.indexOf('#'));if('#'===hash[0]){dURL=hash}}let anchorElem=$(dURL);if('#'===dURL[0]&&dURL.length&&anchorElem.length){et_pb_smooth_scroll(anchorElem,!1,800,"swing"),setTimeout((function(){et_pb_smooth_scroll(anchorElem,!1,150,"linear")}),825);history.pushState(null,"",dURL)}}else{window.location=dURL}}}$('body').on('focusout','.divimegapro-close',function(e){let dmp=$(this).parents('.tippy-popper'),dmpid=dmp.data('dmpid'),alldmps=document.querySelectorAll('.dmp-'+dmpid);if(documentHTML.hasClass('divimegapro-opening')===false){$.each(alldmps,function(index,popper){const instance=popper._tippy;deflectFocusControl(instance,true)})}});function createDiviMegaPro(divimegapro_id,selector,dmp_parent_selector,singletonEnabled){var divimegapro_selector='#divimegapro-'+divimegapro_id,divimegapro=$(divimegapro_selector),divimegapro_container_selector='#divimegapro-container-'+divimegapro_id,divimegapro_container=$(divimegapro_container_selector);if(typeof dmp_parent_selector==='undefined'){var dmp_parent_selector=''}if(typeof singletonEnabled==='undefined'){var singletonEnabled=false}if(typeof divimegapro_container.data()=='undefined'){return}if(typeof divimegapros[divimegapro_id]==='undefined'){divimegapros[divimegapro_id]={}}divimegapros[divimegapro_id]['options']=divimegapro_container.data();var options=dmpGetOptions(divimegapro_id);if(options===null){return}var triggerType=options['triggertype'],exitType=options['exittype'],trigger=triggerType,hideOnClick=true,flip=false,flipBehavior=["top","bottom","right","left"],flipOnUpdate=true,interactiveDebounce=0,interactiveBorder=5,maxWidth='',popperOptions={},megaprofixedheight=0,tippyIns=null,zIndex=16777270;setContainerWidth(divimegapro_container,options);const refElement=$(selector);if(options['bgcolor']!=''){$(divimegapro_selector+' .divimegapro-pre-body').css({'background-color':options['bgcolor']})}if(!diviMobile){if(exitType=='hover'){if(trigger!='mouseenter click'&&exitType=='hover'){hideOnClick=false}}}if(exitType=='click'){interactiveDebounce=900000}if($('.et_social_inline').length){removeMonarch()}clickOffMobileLinkswithHashtagOnly();setTimeout(function(){var props={},allProps={},appendTo=props.appendTo=diviPageContainer,ariaRole='dialog',$document=$(document);props.parentDiviTopHeader=refElement.closest('#top-header');props.parentDiviMainHeader=refElement.closest('#main-header');props.parentDiviRowWithMenu=refElement.closest('.et_pb_row--with-menu');props.parentDiviModuleMenu=refElement.closest('.et_pb_menu, .et_pb_fullwidth_menu');props.parentSlideMenuContainer=refElement.closest('.et_slide_in_menu_container');props.parentDiviPageContainerHeader=refElement.closest('header.et-l--header');props.parentDiviPageContainer=refElement.closest('#page-container');props.parentDiviETMainArea=refElement.closest('#et-main-area');props.parentDiviMainContent=refElement.closest('#main-content');props.parentDiviMainFooter=refElement.closest('#main-footer');props.parentDiviETMainAreaAltFooter=refElement.closest('footer.et-l--footer');props.placement=options['placement'];props.parentDivioverlay=refElement.parents('.divioverlay');props.parentDiviDefaultSubmenu=refElement.parents('.sub-menu');props.parentDiviArticle=refElement.parents('article');if(props.parentDiviMainHeader.length<1){let closestMenuModule=refElement.closest('.et_pb_menu');if(closestMenuModule.parents('header').length>0&&closestMenuModule.parents('#et-main-area').length<1){props.parentDiviMainHeader=closestMenuModule;diviPageContainer=diviAltHeader}if(dmp_parent_selector!==''){props.parentDiviMainHeader=refElement.parents('.tippy-reference-header')}if(props.parentDiviMainHeader.length<1&&props.parentDiviRowWithMenu.length==1){if(diviAltHeaderMenu!==null){props.parentDiviMainHeader=props.parentDiviPageContainerHeader;diviPageContainer=diviAltHeaderMenu.parentNode}}if(diviAltHeaderMenu===null&&props.parentDiviRowWithMenu.length==1){if(diviAltMainContentMenu!==null){props.parentDiviMainHeader=props.parentDiviMainContent;if($(diviAltMainContentMenu).is(":visible")){diviPageContainer=diviAltMainContentMenu}else{diviAltMainContentMenu=diviAltMainContentMenu.parentNode.parentNode;diviPageContainer=diviAltMainContentMenu}}}if(0!==props.parentDiviArticle.length){diviPageContainer=props.parentDiviArticle[0]}if(!$(diviPageContainer).is(":visible")){diviPageContainer=diviPageContainer.parentNode}}let triggerFromDiviMenu=refElement.parents('.et-menu'),TriggerFromMobileMenu=refElement.parents('.mobile_nav'),cssClassTriggerFromMobileMenu='tippy-trigger-mobilemenu';if(((props.parentDiviTopHeader.length||props.parentDiviMainHeader.length)&&divimegapro_singleton['header']===true)||((props.parentDiviMainContent.length||props.parentDiviPageContainerHeader.length)&&divimegapro_singleton['content']===true)||((props.parentDiviMainFooter.length)&&divimegapro_singleton['footer']===true)){singletonEnabled=true}if(dmp_parent_selector!==''){if(refElement.parents('.tippy-popper-singleton').length===1){singletonEnabled=true}}if(diviMobile===true){singletonEnabled=false}let tippyDmpSelector=(singletonEnabled===true)?'[data-dmpid="'+divimegapro_id+'"]':'.dmp-'+divimegapro_id,boundary=(singletonEnabled===false)?documentBody:'scrollParent';if(options['arrowEnabled']===true){options['arrowEnabled']=defaultArrow;if(options['arrowType']==='round'){options['arrowEnabled']=tippyv5.roundArrow}}if(options['megaprowidth']=='100%'){maxWidth='100%';if(props.parentDiviTopHeader.length||props.parentDiviMainHeader.length){props.placement='bottom-start'}}if(props.placement==='bottom'&&diviMobile===true){props.placement='bottom-start'}if(props.placement==='bottom'&&dmp_parent_selector!==''){props.placement='bottom-start'}props.centerHorizontal=false;if(options['centerHorizontal']===true){props.centerHorizontal=true}if(diviMobile===false){if(!props.parentDiviMainContent.length&&!props.parentDiviMainFooter.length&&props.parentDiviPageContainerHeader.length){flip=false;flipBehavior=["bottom"]}}if(triggerFromDiviMenu.length>0){if(refElement.hasClass('menu-item')){if(!refElement.hasClass('menu-item-has-children')&&refMenuItemHasChildren.length>0){refElement.addClass('menu-item-has-children')}}}popperOptions={onUpdate:function onUpdate(data){let instance=data.instance,tippy=instance.reference._tippy;if(typeof tippy!=='undefined'&&tippy.popperChildren.content.firstChild!==null){let dmpClass,instanceClassName,dmpid=tippy.popperChildren.content.firstChild.getAttribute('data-dmpcid'),dmp_parent=$(selector).parents('.tippy-popper');if(dmp_parent.length===0&&singletonEnabled===false){appendTo=whereAppendTippy(tippy,props,'',singletonEnabled,'')}if(singletonEnabled===false||(dmp_parent_selector!==''&&singletonEnabled===true)){setCustomWidth(tippy,options,singletonEnabled);setMaxHeight(tippy,dmpid,props,false);updateDiviIframes('#'+tippy.popperChildren.content.firstChild.getAttribute('id'))}else if(singletonEnabled===true&&dmp_parent_selector===''){if(tippy.popperChildren.content.firstChild!==null&&tippy.popperChildren.content.firstChild.getAttribute!==undefined){dmpid=tippy.popperChildren.content.firstChild.getAttribute('data-dmpcid');instance.popper.setAttribute('data-dmpid',dmpid);dmpClass=removeClassRegExp(instance.popper.className,'dmp-');instanceClassName=instance.popper.className+'';instanceClassName=instanceClassName.replace(dmpClass,'');instanceClassName=instanceClassName.trim();instance.popper.className=instanceClassName+' dmp-'+dmpid;updateDiviIframes('#'+tippy.popperChildren.content.firstChild.getAttribute('id'))}}}}};popperOptions['modifiers']={};popperOptions['positionFixed']=false;if(options['position']==='fixed'){popperOptions['positionFixed']=true}if(singletonEnabled===false&&options['position']==='fixed'){boundary='viewport'}if(singletonEnabled===false||(dmp_parent_selector!==''&&singletonEnabled===true)){popperOptions['modifiers']={computeStyle:{gpuAcceleration:false}};if((options['megaprowidth']=='100%'||props.parentSlideMenuContainer.length)&&singletonEnabled!==true){popperOptions['modifiers']['computeStyle']['y']='left'}popperOptions['modifiers']['flip']={flipVariations:true,flipVariationsByContent:true};if(props.placement=='left'||props.placement=='right'){flip=true}if(props.placement=='top'){flip=true;flipBehavior=["top","left","right","bottom"]}if(props.placement=='left'){flipBehavior=["left","bottom","right","top"]}if(props.placement=='right'){flipBehavior=["right","bottom","left","top"]}if(dmp_parent_selector!==''){flip=true;flipBehavior=["bottom","left","right","top"];if((props.parentDiviTopHeader.length||props.parentDiviMainHeader.length)){flipBehavior=["bottom","left","right"];popperOptions['modifiers']['preventOverflow']={escapeWithReference:true}}}if(typeof selector!=='object'){selector=document.querySelector(selector)}appendTo=whereAppendTippy(null,props,dmp_parent_selector,singletonEnabled,refElement);if(props.parentSlideMenuContainer.length||appendTo==='parent'||(dmp_parent_selector!==''&&singletonEnabled===true)){popperOptions['modifiers']['preventOverflow']={priority:['left','top']};if(props.parentSlideMenuContainer.length&&props.parentSlideMenuContainer.css('right')!==''){popperOptions['modifiers']['computeStyle']['y']='right';popperOptions['modifiers']['preventOverflow']={priority:['right','top']}}}}function addReferences(divimegapro_id,instance,dmp_parent_selector,divimegapro){if(dmp_parent_selector===''){tippyv5.hideAll({duration:0,exclude:instance});$("html,body").addClass('divimegapro-open')}divimegapro.addClass('dmp-open');if(instance.popper.className.indexOf('dmp')==-1){instance.popper.className=instance.popper.className+' dmp-'+divimegapro_id;instance.popper.setAttribute('data-dmpid',divimegapro_id)}}function updateContent(divimegapro_id,instance,tippyDmpSelector,divimegapro_selector,returnContent){instance=(instance===undefined||instance===null)?'':instance;returnContent=(returnContent===undefined||returnContent===null)?'':returnContent;let cloneRef=(singletonEnabled===true&&instance==='')?'singleton':instance.id;let dmpContainerID='divimegapro-container-'+divimegapro_id+'-clone-'+cloneRef,dmpContainerPopper=tippyDmpSelector+'.tippy-popper .tippy-content';toggleSrcInPlayableTags(divimegapro);if($(divimegapro_container_selector+' '+divimegapro_selector).length){$(dmpContainerPopper).html('')}if(typeof divimegapros[divimegapro_id]!=='undefined'&&divimegapro_container.find('.divimegapro').length>0){divimegapros[divimegapro_id]['html']=$('.divimegapro-wrapper #divimegapro-container-'+divimegapro_id+' #divimegapro-'+divimegapro_id).detach()}let dmpCloneContainer=$(divimegapros[divimegapro_id]['html']).attr('id',dmpContainerID).attr('data-dmpcid',divimegapro_id);$.each(divimegapro_container.prop("attributes"),function(){if((this.name).indexOf('data')!==-1){dmpCloneContainer.attr(this.name,this.value)}});if(returnContent!==0){dmpCloneContainer.css('width',divimegapro_container.width())}if(returnContent===0){let isAppended=$(dmpContainerPopper).find(dmpCloneContainer).length;if(isAppended<=0){dmpCloneContainer.appendTo(dmpContainerPopper)}}else{return dmpCloneContainer[0].outerHTML}}if(dmp_parent_selector!==''&&singletonEnabled===true){boundary=documentBody;popperOptions['modifiers']={computeStyle:{gpuAcceleration:true}}}if(diviMobile===true){triggerType='mouseenter click';if(props.parentDiviTopHeader.length||props.parentDiviMainHeader.length){if(isDiviMenuBarVisible===true){if(false===options['mobileonly']){options['megaprowidth']='100%';maxWidth='100%'}flip=true;flipBehavior=["bottom","top","left","right"]}}else if(props.parentDiviMainContent.length){if(props.placement=='top'){flip=true;flipBehavior=["top","left","right"];boundary='viewport'}}}if(dmp_parent_selector===''&&singletonEnabled===false){if(props.parentDiviETMainArea.length&&props.parentDiviETMainAreaAltFooter.length){if(props.placement==='top'){flip=true;flipBehavior=["top","left","right","bottom"];boundary=document.querySelector('footer.et-l--footer')}}if(diviPageContainer===diviAltHeader){flip=true;flipBehavior=["top","bottom"]}}if(isIphone){if(false===options['mobileonly']){options['megaprowidth']='100%';maxWidth='100%'}flip=false;popperOptions['positionFixed']=true}if(diviMobile===true){boundary='viewport'}if(props.parentDiviTopHeader.length===0&&props.parentDiviMainHeader.length===0&&props.parentDiviRowWithMenu.length===0&&props.parentDiviModuleMenu.length===0&&props.parentSlideMenuContainer.length===0&&props.parentDiviPageContainerHeader.length===0&&props.parentDiviPageContainer.length===0&&props.parentDiviETMainArea.length===0&&props.parentDiviMainContent.length===0&&props.parentDiviMainFooter.length===0&&props.parentDiviETMainAreaAltFooter.length===0){if(props.placement==='top'){if(diviMobile===true){flipBehavior=["top","left","right"]}boundary=documentBody}}if((props.parentDiviTopHeader.length||props.parentDiviMainHeader.length)&&(props.parentDiviTopHeader.css('position')==='fixed'||props.parentDiviMainHeader.css('position')==='fixed')){popperOptions['positionFixed']=true}props.centerHorizontal=false;let bkpMegaProWidth='auto';if(options['megaprowidth']!=='100%'&&false===options['mobileonly']){bkpMegaProWidth=options['megaprowidth']}if(options['centerHorizontal']===true){options['megaprowidth']='100%';maxWidth='100%';popperOptions['positionFixed']=true;props.centerHorizontal=true;boundary=documentBody}if(haveNestingMenus(divimegapro_id)===true){interactiveDebounce=1;interactiveBorder=10}if(dmp_parent_selector===''&&singletonEnabled===false&&(props.parentDiviETMainArea.length!==0||props.parentDiviMainContent.length!==0)){flip=false;flipBehavior=[props.placement];popperOptions['modifiers']['preventOverflow']={escapeWithReference:false}}allProps={appendTo:appendTo,aria:'describedby',role:ariaRole,allowHTML:true,arrow:options['arrowEnabled'],boundary:boundary,maxWidth:maxWidth,placement:props.placement,content:function content(){if(singletonEnabled&&dmp_parent_selector===''){var content=updateContent(divimegapro_id,null,tippyDmpSelector,divimegapro_selector,1);return content}return ''},delay:[1,options['delay']],animation:options['animation'],distance:(options['distance']+'').concat('px'),offset:'0,0',interactive:true,interactiveDebounce:interactiveDebounce,interactiveBorder:interactiveBorder,zIndex:zIndex,trigger:triggerType,theme:'dmmbasic',lazy:false,flip:flip,flipBehavior:flipBehavior,flipOnUpdate:true,hideOnClick:hideOnClick,ignoreAttributes:true,sticky:true,popperOptions:popperOptions,plugins:[hideOnEsc],centerHorizontal:props.centerHorizontal,onCreate:function onCreate(instance){if(TriggerFromMobileMenu.length){instance.popper.className=instance.popper.className+' '+cssClassTriggerFromMobileMenu}if(options['arrowType']!=='round'){instance.popper.className=instance.popper.className+' tippy-arrow-triangle'}if((props.parentDiviTopHeader.length||props.parentDiviMainHeader.length)){instance.popper.className=instance.popper.className+' tippy-reference-header'}else if(props.parentDiviMainContent.length){instance.popper.className=instance.popper.className+' tippy-reference-content'}else if(props.parentDiviMainFooter.length){instance.popper.className=instance.popper.className+' tippy-reference-footer'}if(options['centerHorizontal']===true){instance.popperChildren.content.style.width=bkpMegaProWidth;instance.popper.className=instance.popper.className+' tippy-popper-centered-horizontal';instance.popperChildren.content.classList.add('tippy-content-centered-horizontal')}},onTrigger(instance,event){let insTippyContent=instance.reference._tippy.popperChildren.content;if(insTippyContent.getAttribute('data-eventtype')===null){insTippyContent.setAttribute('data-eventtype',event.type)}},onUntrigger(instance,event){let insTippyContent=instance.reference._tippy.popperChildren.content;if(insTippyContent.getAttribute('data-eventtype')!==null){insTippyContent.removeAttribute('data-eventtype',event.type)}},onShow:function onShow(instance){divimegaproOverlayBackground.css('display','block');instance.popper.removeAttribute('data-etlinkclass');instance.popper.removeAttribute('data-etlinkurl');instance.popper.removeAttribute('data-etlinktarget');documentHTML.addClass('divimegapro-opening');if(singletonEnabled===true&&dmp_parent_selector===''){if(instance.popper.className.indexOf('transition')==-1){instance.popper.className=instance.popper.className+' tippy-popper-transition'}if(instance.popper.className.indexOf('singleton')==-1){instance.popper.className=instance.popper.className+' tippy-popper-singleton';setTimeout(function(){var tippyContent=document.querySelector('.tippy-popper-singleton .tippy-tooltip .tippy-content')},1)}singletonTransitionListener(instance)}if(singletonEnabled===false||(dmp_parent_selector!==''&&singletonEnabled===true)){if(trigger=='mouseenter click'&&exitType=='click'&&!diviMobile){instance.setProps({trigger:'click'})}if((trigger=='click'||trigger=='mousedown click')&&exitType=='hover'&&!diviMobile){instance.setProps({trigger:'mouseenter click'})}}$document.trigger("divimegapro:onShow");$document.trigger("divimegapro:onShow:"+divimegapro_id)},onMount:function onMount(instance){if(singletonEnabled===true){instance.popperInstance.update()}var cloneRef=(singletonEnabled===true)?'singleton':instance.id,divimegapro_container_selector='#divimegapro-container-'+divimegapro_id,dmpContainerID='divimegapro-container-'+divimegapro_id+'-clone-'+cloneRef;addReferences(divimegapro_id,instance,dmp_parent_selector,divimegapro);if(singletonEnabled===false||(dmp_parent_selector!==''&&singletonEnabled===true)){updateContent(divimegapro_id,instance,tippyDmpSelector,divimegapro_selector,0);checkNestingMenus(divimegapro_id,singletonEnabled,instance)}initDiviElements(divimegapro_id,singletonEnabled);updateDiviIframes('#'+dmpContainerID);if(singletonEnabled===true&&dmp_parent_selector===''){animateContent(instance);animateWidthHeight(instance,divimegapro_id);var tippyIns=instance.reference._tippy}adminOnlyFunctions(true,refElement);$document.trigger("divimegapro:onMount");$document.trigger("divimegapro:onMount:"+divimegapro_id)},onBeforeUpdate:function onBeforeUpdate(instance){setTimeout(function(){if(instance.popperChildren.content.firstChild!==null){var tippyIns=instance.reference._tippy,dmpid=tippyIns.popperChildren.content.firstChild.getAttribute('data-dmpcid'),divimegapro_container_selector='#divimegapro-container-'+dmpid,divimegapro_container=$(divimegapro_container_selector),options=dmpGetOptions(divimegapro_id);setMaxHeight(tippyIns,dmpid,props,true,divimegapro_container_selector)}},1)},onAfterUpdate:function onAfterUpdate(instance,updatedProps){if(singletonEnabled&&dmp_parent_selector===''&&updatedProps.allowHTML!==null&&updatedProps.allowHTML===true){instance.props.popperOptions['positionFixed']=popperOptions['positionFixed'];tippyv5.hideAll({duration:500,exclude:instance});var tippyIns=instance.reference._tippy,dmpid=tippyIns.popperChildren.content.firstChild.getAttribute('data-dmpcid'),options=dmpGetOptions(dmpid),cloneRef='singleton',dmpContainerID='divimegapro-container-'+dmpid+'-clone-'+cloneRef,divimegapro_container_selector='#divimegapro-container-'+dmpid,divimegapro_container=$(divimegapro_container_selector),tippyContent=$(tippyIns.popperChildren.content);if(typeof divimegapros[dmpid]!=='undefined'&&divimegapro_container.find('.divimegapro').length===0){tippyContent.html('');$(divimegapros[dmpid]['html']).appendTo(tippyContent)}animateContent(instance);updateDiviIframes('#'+dmpContainerID);initDiviElements(dmpid,true);singletonTransitionListener(instance);animateWidthHeight(instance,dmpid)}},onShown:function onShown(instance){dmmTogglePlayableTags('.tippy-popper.dmp-'+divimegapro_id,1000,'show');let dmpContainerPopper=tippyDmpSelector+'.tippy-popper .tippy-content',tippyContent=$(dmpContainerPopper);let et_pb_newsletter=tippyContent.find('.et_pb_newsletter_form form .et_pb_newsletter_fields');if(et_pb_newsletter.length){var et_pb_signup_divimegaproid=et_pb_newsletter.find('.et_pb_signup_divimegaproid');if(et_pb_signup_divimegaproid.length<1){$('<input>').attr({type:'text',name:'et_pb_signup_divimegaproid',class:'et_pb_signup_divimegaproid et_pb_signup_custom_field','data-original_id':'et_pb_signup_divimegaproid',value:divimegapro_id}).appendTo(et_pb_newsletter)}}supportDiviMenu(dmpContainerPopper,refElement,triggerFromDiviMenu,false);if(options['megaprofixedheight']===''||options['megaprofixedheight']<=0){dynamicHeight(instance,false)}if(!refElement.is(':visible')){if(instance.popper.className.indexOf('topfixed')==-1){instance.popper.className=instance.popper.className+' topfixed'}}documentHTML.removeClass('divimegapro-opening');divimegapro.addClass('divimegapro-opened');dmpRemoveDiviFix(dmpContainerPopper);deflectFocusControl(instance);addClosingListeners();initDivi5ModulesOnCustomScroll();$document.trigger("divimegapro:onShown");$document.trigger("divimegapro:onShown:"+divimegapro_id)},onHide:function onHide(instance){let tippySingletonContent=$('.tippy-popper-singleton .tippy-tooltip .tippy-content');if(tippySingletonContent.length>0){tippySingletonContent.css({'height':'1px'})}let dmpContainerPopper=tippyDmpSelector+'.tippy-popper .tippy-content';supportDiviMenu(dmpContainerPopper,refElement,triggerFromDiviMenu,true);if(options['megaprofixedheight']===''||options['megaprofixedheight']<=0){dynamicHeight(instance,true)}if(singletonEnabled===false||(dmp_parent_selector!==''&&singletonEnabled===true)){if(trigger=='mouseenter click'&&exitType=='click'&&!diviMobile){instance.setProps({trigger:tippyv5.defaultProps.trigger})}if((trigger=='click'||trigger=='mousedown click')&&exitType=='hover'&&!diviMobile){instance.setProps({trigger:'click'})}}if(refElement.parents('.et_mobile_menu').is(':visible')){refElement.parents('.mobile_nav').removeClass('closed');refElement.parents('.mobile_nav').addClass('opened');refElement.parents('.et_mobile_menu').removeClass('dmp-divimobilemenu-visible');refElement.parents('.et_mobile_menu').attr('style','display:block')}divimegapro.removeClass('dmp-open');divimegapro.addClass('dmp-close');divimegapro.removeClass('divimegapro-opened');refElement.trigger("focus");setTimeout(function(){let popper=instance.popper,dataETlinkclass=popper.getAttribute('data-etlinkclass'),dataETlinkurl=popper.getAttribute('data-etlinkurl'),dataETlinktarget=popper.getAttribute('data-etlinktarget');if('undefined'!==dataETlinkclass&&dataETlinkclass!==''&&dataETlinkclass!==null){onCloseScrollTo(dataETlinkclass,dataETlinkurl,dataETlinktarget)}},1);adminOnlyFunctions(false,refElement);$document.trigger("divimegapro:onHide");$document.trigger("divimegapro:onHide:"+divimegapro_id)},onHidden:function onHidden(instance){divimegapro.removeClass('dmp-close');if(dmp_parent_selector==''&&$('.dmp-open').length===0){$("html,body").removeClass('divimegapro-open');let activeMegapro=$('.dmp-'+divimegapro_id);if($(documentBody).hasClass('admin-bar')&&activeMegapro.parents('.custom-fixed-header').length>0){activeMegapro.css('margin-top','')}}dmmTogglePlayableTags(divimegapro_selector,1,'hide');$document.trigger("divimegapro:onHidden");$document.trigger("divimegapro:onHidden:"+divimegapro_id);divimegaproOverlayBackground.css('display','none')}};if(!isIOS&&diviMobile===true){let dURL=refElement.attr('href');if('undefined'!==typeof dURL&&dURL!==''&&typeof refElement.attr('data-dmphref')==='undefined'){refElement.attr('data-dmphref',refElement.attr('href'));if('#'!==dURL[0]){refElement.attr('href','#dmpro')}const onClick=emulateIOS((e)=>{e.target.href=e.target.getAttribute('data-dmphref')});selector.removeEventListener('click',onClick);selector.addEventListener('click',onClick)}}let isChildMenu=$(selector).parents('.divimegapro-container');if(isChildMenu.length&&dmp_parent_selector===''){return}tippyIns=tippyv5(selector,allProps);if(typeof tippyIns!=='undefined'&&singletonEnabled===true&&dmp_parent_selector===''){tippyIns.disable();dmps_tippyinstances.push(tippyIns);setTimeout(function(){callSingleton(dmps_tippyinstances,allProps)},1)}},1)}function callSingleton(dmps_tippyinstances,allProps){if(dmpsSingleton===0){dmpsSingleton+=1;var tippyInstances=dmps_tippyinstances;var optionalProps={delay:[0,100],updateDuration:600,interactiveBorder:60,interactiveDebounce:200,plugins:[hideOnEsc],overrides:['aria','allowHTML','arrow','maxWidth','placement','content','animation','distance','offset','interactive','zIndex','theme','lazy','flip','flipBehavior','flipOnUpdate','ignoreAttributes','onShow','onMount','onBeforeUpdate','onAfterUpdate','onShown','onHide','onHidden']};if(optionalProps===void 0){optionalProps={}}if(!Array.isArray(tippyInstances)){console.log(['The first argument passed to createSingleton() must be an array of tippy','instances. The passed value was',String(tippyInstances)].join(' '));return}tippyInstances.forEach(function(instance){instance.disable()});var currentAria,currentTarget,overrides=optionalProps.overrides,shouldSkipUpdate=false,mutTippyInstances=tippyInstances,references=tippyInstances.map(function(instance){return instance.reference});var popperOptions=allProps.popperOptions;if(diviMobile===true){popperOptions['modifiers']={computeStyle:{gpuAcceleration:false}}}else{popperOptions['modifiers']={computeStyle:{gpuAcceleration:true}}}var singleton={fn:function fn(instance){function handleAriaDescribedByAttribute(isShow){if(!currentAria){return}var attr="aria-"+currentAria;if(isShow&&!instance.props.interactive){currentTarget.setAttribute(attr,instance.popperChildren.tooltip.id)}else{currentTarget.removeAttribute(attr)}}return{onDestroy:function onDestroy(){tippyInstances.forEach(function(instance){instance.enable()})},onCreate:function onCreate(instance){if(allProps['maxWidth']==='100%'){instance.popper.style.width='100%';instance.popperChildren.tooltip.style.maxWidth='100%'}instance.props.popperOptions['positionFixed']=popperOptions['positionFixed']},onHide:function onHide(instance){tippyv5.hideAll({duration:0,exclude:instance})},onUntrigger:function onUntrigger(){},onTrigger:function onTrigger(_,event){var target=event.currentTarget;var index=references.indexOf(target);if(target===currentTarget){return}currentTarget=target;currentAria=null;if(instance.state.isVisible){handleAriaDescribedByAttribute(true)}instance.popperInstance.reference=target;instance.setContent(tippyInstances[index].props.content);var overrideProps=(overrides||[]).concat('content').reduce(function(acc,prop){acc[prop]=mutTippyInstances[index].props[prop];return acc},{});instance.setProps(Object.assign({},overrideProps));instance.props.popperOptions=popperOptions}}}};dmpSingletonInstance=tippyv5(div(),Object.assign({},removeProperties(optionalProps,['overrides']),{appendTo:diviPageContainer,sticky:'reference',plugins:[singleton].concat(optionalProps.plugins||[]),triggerTarget:references}));var originalSetProps=dmpSingletonInstance.setProps;dmpSingletonInstance.setProps=function(props){overrides=props.overrides||overrides;originalSetProps(props)};return dmpSingletonInstance}}function adminOnlyFunctions(init,referenceTrigger){if(body.hasClass('admin-bar')){if(init===true){let ctrlExtraMargin_Timer=setInterval(function(){if($('.divimegapro-open .divimegapro').length===0){clearInterval(ctrlExtraMargin_Timer)}extraMarginTop(referenceTrigger)},100);diviHiddenMarginTop(referenceTrigger)}else if(init===false){}}}function diviHiddenMarginTop(referenceTrigger){if(referenceTrigger.parents('.et_pb_section.et_pb_sticky_module').length>0){let html=document.querySelector('html'),$wpAdminbar=$('#wpadminbar');if($wpAdminbar.length>0&&'0px'===$wpAdminbar.css('margin-top')){let $wpAdminbarHeight=$wpAdminbar.height()+'';html.style.setProperty('margin-top','0','important');html.style.setProperty('padding-top',($wpAdminbarHeight).concat('px'),'important')}}}function extraMarginTop(referenceTrigger){let activeMegapro=$('.divimegapro-open .divimegapro.dmp-open'),tippyMegapro=activeMegapro.parents('.tippy-popper'),placement=activeMegapro.attr('data-placement'),posNegOp='-';if('undefined'===typeof referenceTrigger){referenceTrigger=false}setTimeout(function(){if(activeMegapro.parents('.custom-fixed-header').length>0||(referenceTrigger&&referenceTrigger.parents('.et_pb_section--fixed').length>0)||(body.hasClass('et_fixed_nav')&&$('.et-fixed-header').length>0)){let bodyMarginTop=body.css('margin-top'),pageContainerMarginTop=documentHTML.css('margin-top'),megaproMarginTop=0;if(parseInt(bodyMarginTop)>0){megaproMarginTop=bodyMarginTop}if(parseInt(pageContainerMarginTop)>0){megaproMarginTop=pageContainerMarginTop}if('right'===placement||'left'===placement){posNegOp='+'}tippyMegapro.css('margin-top',(posNegOp).concat(megaproMarginTop))}else{tippyMegapro.css('margin-top','')}},10)}function div(){return document.createElement('div')}function removeProperties(obj,keys){var clone=Object.assign({},obj);keys.forEach(function(key){delete clone[key]});return clone}function removeClassRegExp(value,regexp){regexp=new RegExp(regexp);var classes=[];$.each(value.split(' '),function(i,c){if(regexp.test(c)){classes.push(c)}});return classes.join(' ')}function dynamicHeight(instance,off){if(off===true||typeof instance==='undefined'){clearTimeout(dynamicHeightTimer)}else if(off===false){const content=instance.popperChildren.content,instanceContentHeight=$(content).find('.divimegapro-body');if(instanceContentHeight.length===0){return}let instanceContentoffsetHeight=instanceContentHeight[0].offsetHeight;if(instanceContentoffsetHeight!==dynamicHeightContent){dynamicHeightContent=instanceContentoffsetHeight;dynamicHeightTimer=setTimeout(()=>{dynamicHeight(instance,false);instance.popperInstance.update()},500)}}}function supportDiviMenu(dmpContainerPopper,refElement,triggerFromDiviMenu,off){let menuItem,menuItemHasClass=refElement.hasClass('menu-item'),parentMenuItem=refElement.parent(),parentMenuItemHasClass=parentMenuItem.hasClass('menu-item'),refElementNode,dmpContainer=$(dmpContainerPopper);if(menuItemHasClass){menuItem=refElement;refElementNode=refElement[0]}if(parentMenuItemHasClass){menuItem=parentMenuItem;refElementNode=parentMenuItem[0]}if(typeof menuItem==='undefined'){return}diviMenuHover_observer.disconnect();if(!menuItem.hasClass('et-hover')){menuItem.addClass('et-hover')}if(off===true){dmpContainer.off("mousemove.dmpMousemove mouseenter.dmpMouseenter");setTimeout(()=>{menuItem.removeClass('et-hover')},50)}else if(off===false){if(triggerFromDiviMenu.length>0){if(menuItemHasClass||parentMenuItemHasClass){diviMenuHover_observer.observe(refElementNode,diviMenuHover_observeConfig);dmpContainer.on("mousemove.dmpMousemove mouseenter.dmpMouseenter",function(e){if(!menuItem.hasClass('et-hover')){menuItem.addClass('et-hover')}})}}}}function whereAppendTippy(tippy,props,dmp_parent_selector,singletonEnabled,refElement){var tippyInstance=false,tippyParent=props.appendTo,appendTo,refTippyInstance,options=[],dmpid;const wrapper=document.createElement('div');wrapper.className='tippy-wrapper';if(tippy!==null){tippyInstance=true}if(tippyInstance){let dmpid=tippy.popper.getAttribute('data-dmpid');if(dmpid!==null){options=dmpGetOptions(dmpid)}}if(props.parentDiviTopHeader.length){tippyParent=diviTopHeader}if(props.parentDiviMainHeader.length){tippyParent=diviPageContainer}if(props.parentDiviMainContent.length){tippyParent=diviPageContainer}if(window.et_is_vertical_nav&&(props.parentDiviTopHeader.length||props.parentDiviMainHeader.length)){tippyParent=diviPageContainer}if(dmp_parent_selector!==undefined&&dmp_parent_selector!==''&&refElement!==''){refTippyInstance=refElement._tippy;if(typeof refTippyInstance==='undefined'){tippyParent=document.querySelector(dmp_parent_selector)}else{tippyParent=document.querySelector(dmp_parent_selector);refTippyInstance.props.appendTo=tippyParent}}appendTo=tippyParent;if(appendTo===''||appendTo===null){tippyParent=appendTo='parent';if(tippyInstance){tippy.props.flip=true}}if(props.parentDivioverlay.length){tippyParent=appendTo=props.parentDivioverlay[0]}if(props.parentDiviDefaultSubmenu.length){tippyParent=appendTo=props.parentDiviDefaultSubmenu.parent()[0];if(props.centerHorizontal===true||options['centerHorizontal']===true){tippyParent=appendTo=diviPageContainer}}if(tippyInstance){var placement=tippy.props.placement;if(placement!=='left'&&placement!=='right'){if(tippyParent==diviPageContainer){tippy.props.flip=true;if((tippy.popper.className.indexOf('tippy-reference-header')!==-1&&tippy.props.placement==='bottom')||(tippy.popper.className.indexOf('tippy-reference-header')!==-1&&tippy.props.placement==='bottom-start')||(tippy.popper.className.indexOf('tippy-reference-footer')!==-1&&tippy.props.placement==='top')){tippy.props.flip=false}}else{tippy.props.flip=false}}if(singletonEnabled===true||diviMobile===true){tippy.props.appendTo=diviPageContainer}else{tippy.props.appendTo=tippyParent}}return appendTo}function haveNestingMenus(divimegapro_id){let $divimegapro=$('#divimegapro-'+divimegapro_id);if($divimegapro.find('[data-divimegaproid]').length){return true}return false}function checkNestingMenus(parentdmp_id,singletonEnabled,instance){var divimegapro_popper='.tippy-popper.dmp-'+parentdmp_id;setTimeout(function(){$(divimegapro_popper+' .divimegapro-body [data-divimegaproid]').each(function(){var pThis=this,divimegapro_id=parseInt($(pThis).attr('data-divimegaproid'));if(typeof divimegapro_id=='number'&&divimegapro_popper!==''){createDiviMegaPro(divimegapro_id,pThis,divimegapro_popper,singletonEnabled)}})},150)}function setCustomWidth(instance,options,singletonEnabled){var megaprowidth=options['megaprowidth']+'',tippyPopperWideClass='tippy-popper-wide';const viewportWidth=$(window).width();const customWidthInt=parseInt(megaprowidth);const customWidthUnit=megaprowidth.replace(/[0-9]/g,'');var customWidth=0;if(customWidthInt>0){if(customWidthUnit==''){customWidth=customWidthInt+'px'}else{customWidth=customWidthInt+customWidthUnit}if(customWidthInt>viewportWidth&&customWidthUnit=='px'){customWidth=viewportWidth+'px'}if(singletonEnabled===true){if(customWidthUnit==='%'){customWidth=Math.round(((customWidthInt/100)*viewportWidth))+'px'}}instance.popper.style.width=customWidth;instance.popper.className=instance.popper.className.replace(/\btippy-popper-wide\b/g,'');if(options['megaprowidth']=='100%'){instance.popper.className=instance.popper.className+' '+tippyPopperWideClass}}}function singletonTransitionListener(instance){var tippyIns=instance.reference._tippy,dmpid=tippyIns.popperChildren.content.firstChild.getAttribute('data-dmpcid'),dmpmainparent=tippyIns.popperChildren.content.firstChild.parentElement.parentElement.parentElement;if(dmpmainparent.getAttribute('data-dmpid')===null){dmpmainparent.setAttribute('data-dmpid',dmpid)}dmpid=dmpmainparent.getAttribute('data-dmpid');if(instance.popper.className.indexOf('transition')==-1){instance.popper.className=instance.popper.className+' tippy-popper-transition'}const tooltip=instance.popperChildren.tooltip;const content=instance.popperChildren.content;function onTransitionEnd(event){if((event.target===event.currentTarget&&event.propertyName==='transform')||(event.target===event.currentTarget&&event.propertyName==='opacity')){var dmpidCheck=tippyIns.popperChildren.content.firstChild.getAttribute('data-dmpcid');dmpmainparent=tippyIns.popperChildren.content.firstChild.parentElement.parentElement.parentElement;dmpid=dmpmainparent.getAttribute('data-dmpid');if(dmpid===dmpidCheck){setTimeout(function(){instance.popper.className=instance.popper.className.replace(/\btippy-popper-transition\b/g,'');checkNestingMenus(dmpid,true,instance)},500)}}}if(!instance._transitionEndListener){instance._transitionEndListener=onTransitionEnd}if(tooltip.getAttribute('data-event-transitionend')!=='true'){tooltip.setAttribute('data-event-transitionend','true');tooltip.addEventListener('transitionend',onTransitionEnd)}}function animateContent(instance){const content=instance.popperChildren.content;const diviRows=$(content).find('.et_pb_row');diviRows.each(function(){var e=$(this),v='0.3';e.css('opacity',v)});setTimeout(function(){diviRows.each(function(){var e=$(this),v='1';e.css('opacity',v)})},150)}function animateWidthHeight(instance,dmpid){let tippySingleton=$('.tippy-popper-singleton'),tippySingletonContent=$('.tippy-popper-singleton .tippy-tooltip .tippy-content');if(tippySingletonContent!==null&&(tippySingleton.parent()).length>0){let divimegaproBodySelector='#divimegapro-container-'+dmpid,divimegaproBody=$(divimegaproBodySelector);if('undefined'===typeof divimegaproBody){return}let divimegaproBodyOnSingleton=$(divimegaproBodySelector+'-clone-singleton');let divimegaproBodyWidth=divimegaproBody.width(),tippySingletonWidth=divimegaproBodyWidth,divimegaproBodyWidthPx=divimegaproBodyWidth+'px',divimegaproBodyCurrentHeight=divimegaproBody.height(),customHeight=0,divimegaproBodyHeight,options=dmpGetOptions(dmpid);if(options['megaprofixedheight']>0){customHeight=options['megaprofixedheight'];divimegaproBodyHeight=customHeight}let divimegaproBodyRealSize=divimegaproBodyOnSingleton.clone().attr('id',divimegaproBodySelector+'-temp').css('width',divimegaproBodyWidthPx).attr('class','dmphidden');divimegaproBodyRealSize.appendTo(tippySingleton.parent());setTimeout(()=>{divimegaproBodyRealSize.css('display','inline-block','important');divimegaproBodyHeight=divimegaproBodyRealSize[0].offsetHeight;divimegaproBodyRealSize.css('display','');divimegaproBodyRealSize.remove();let divimegaproBodyRealSizeElem=document.getElementById(divimegaproBodySelector+'-temp');if(divimegaproBodyRealSizeElem!==null){divimegaproBodyRealSizeElem.parentNode.removeChild(divimegaproBodyRealSizeElem);divimegaproBodyRealSizeElem.remove()}if('undefined'===typeof divimegaproBodyHeight){return}let viewportHeight=$(window).height(),distance=instance.props.distance,clientRect=instance.reference.getBoundingClientRect(),referenceHeight=clientRect['height'],maxHeight=viewportHeight-referenceHeight-distance,dmpTotalHeight,forceHeight=true,distanceFromTop=parseFloat(instance.popper.style.top),instanceMatrix=getMatrix(instance.popper),instanceX=instanceMatrix.x,instanceY=instanceMatrix.y;if(distanceFromTop===0&&customHeight==0){if(instance.popperInstance.options.placement==='top'||instance.popperInstance.options.placement==='bottom'){distanceFromTop=instanceY}}dmpTotalHeight=(divimegaproBodyHeight+distanceFromTop);maxHeight=viewportHeight-distanceFromTop;if(dmpTotalHeight>0&&dmpTotalHeight<=maxHeight){maxHeight=dmpTotalHeight}if(isNaN(maxHeight)){maxHeight=0}if((divimegaproBodyHeight!=divimegaproBodyCurrentHeight&&divimegaproBodyHeight<divimegaproBodyCurrentHeight&&maxHeight>divimegaproBodyCurrentHeight)||(divimegaproBodyHeight!=divimegaproBodyCurrentHeight&&divimegaproBodyHeight<divimegaproBodyCurrentHeight&&maxHeight<divimegaproBodyCurrentHeight)){divimegaproBodyHeight=divimegaproBodyCurrentHeight}if(customHeight>0){divimegaproBodyHeight=customHeight}instance.popper.style.width=divimegaproBodyWidthPx;divimegaproBodyOnSingleton.css({'width':divimegaproBodyWidthPx});tippySingleton.css({'width':tippySingletonWidth+'px'});tippySingletonContent.css({'width':divimegaproBodyWidthPx,'height':divimegaproBodyHeight+'px'});setTimeout(function(){setMaxHeight(instance.reference._tippy,dmpid,instance.props,true,'#divimegapro-container-'+dmpid)},500)},50)}}function setMaxHeight(instance,dmpid,props,forceHeight,divimegaproBodySelector){if(instance.popperChildren.content.firstChild===null){return}let tippyActive=$('.tippy-popper.dmp-'+dmpid),divimegaproBody=$(divimegaproBodySelector+'-clone-singleton'),refA,refB,refC,refD,options=dmpGetOptions(dmpid),reference;if('undefined'===typeof tippyActive[0]){return}if('undefined'!==typeof divimegaproBody){reference='singleton';if('undefined'===typeof tippyActive[0]._tippy){return}if('undefined'!==typeof tippyActive[0]&&tippyActive[0]._tippy.popperChildren.content.firstChild!==null){divimegaproBodySelector=tippyActive[0]._tippy.popperChildren.content.firstChild.getAttribute('id');divimegaproBody=$('#'+divimegaproBodySelector)}}if('undefined'===typeof divimegaproBody){return}if(reference!=='singleton'){setTimeout(()=>{let dmphiddens=$(tippyActive.parent()).find('.dmphidden');if(dmphiddens.length>1){dmphiddens.remove()}},1)}let divimegaproBodyWidth=divimegaproBody.width(),divimegaproBodyRealSize=divimegaproBody.clone().attr('id',divimegaproBodySelector+'-temp').attr('style','display:none').css('width',divimegaproBodyWidth).attr('class','dmphidden');divimegaproBodyRealSize.appendTo(tippyActive.parent());setTimeout(()=>{let divimegaproBodyCurrentHeight=divimegaproBody.height(),divimegaproBodyHeight;if(divimegaproBodyRealSize.length===0){divimegaproBodyRealSize.remove();return}divimegaproBodyRealSize.css('display','inline-block','important');divimegaproBodyHeight=divimegaproBodyRealSize[0].offsetHeight;divimegaproBodyRealSize.css('display','');if(divimegaproBodyHeight<1){divimegaproBodyHeight=divimegaproBodyCurrentHeight}divimegaproBodyRealSize.remove();let divimegaproBodyRealSizeElem=document.getElementById(divimegaproBodySelector+'-temp');if(divimegaproBodyRealSizeElem!==null){divimegaproBodyRealSizeElem.parentNode.removeChild(divimegaproBodyRealSizeElem);divimegaproBodyRealSizeElem.remove()}const viewportWidth=$(window).width();const viewportHeight=$(window).height();let dmpTotalHeight=divimegaproBodyHeight,customHeight=0,dmpTotalHeightDistanceFromTop=0,viewportHeightDistanceFromTop=0;if(dmpTotalHeight===0||'undefined'===typeof dmpTotalHeight){let allDiviSections=divimegaproBody.find('.et_pb_section'),totalHeightAllSections=0;allDiviSections.each(function(){totalHeightAllSections+=$(this).height()});if('undefined'!==typeof totalHeightAllSections&&!isNaN(totalHeightAllSections)&&totalHeightAllSections>0){dmpTotalHeight=divimegaproBodyHeight=totalHeightAllSections}else{return}}if('undefined'!==typeof options&&options['megaprofixedheight']>0){customHeight=options['megaprofixedheight']}if(forceHeight!==true){if(viewportWidth>=themesBreakpoint['Divi']&&(dmpTotalHeight<=viewportHeight&&customHeight===0)){if((props.parentDiviMainContent.length||props.parentDiviPageContainer.length||props.parentDiviETMainArea.length||props.parentDiviMainFooter.length)&&!(props.parentDiviTopHeader.length||props.parentDiviMainHeader.length||props.parentDiviModuleMenu.length||props.parentSlideMenuContainer.length)){instance.popperChildren.content.querySelector('.divimegapro-flexheight').style.height=dmpTotalHeight+'px';return}}}const clientRect=instance.reference.getBoundingClientRect();const referenceHeight=clientRect['height'];const referenceTop=clientRect['top'];const distance=instance.props.distance;var maxHeight=viewportHeight-referenceHeight-distance;var distanceFromTop=parseFloat(instance.popper.style.top);if(distanceFromTop===0&&customHeight==0){var instanceMatrix=getMatrix(instance.popper),instanceX=instanceMatrix.x,instanceY=instanceMatrix.y;if(instance.popperInstance.options.placement==='top'||instance.popperInstance.options.placement==='bottom'){distanceFromTop=instanceY}}if(distanceFromTop>0){dmpTotalHeightDistanceFromTop=(divimegaproBodyHeight+distanceFromTop);viewportHeightDistanceFromTop=viewportHeight-distanceFromTop}else{viewportHeightDistanceFromTop=viewportHeight}applyStylesfromFirstSection(instance);if(instance.popperChildren.content.querySelector('.divimegapro-flexheight')===null){return}instance.popperChildren.content.querySelector('.divimegapro-flexheight').style.height=dmpTotalHeight+'px';if(forceHeight!==true){if(dmpTotalHeight<=viewportHeight&&customHeight==0){if(dmpTotalHeight>divimegaproBodyCurrentHeight){instance.props.maxHeight=dmpTotalHeight;instance.popperChildren.tooltip.style.maxHeight=dmpTotalHeight+'px';instance.popperChildren.content.style.maxHeight=dmpTotalHeight+'px';instance.popperChildren.content.querySelector('.divimegapro-flexheight').style.height=dmpTotalHeight+'px'}return}}if(dmpTotalHeight>0&&dmpTotalHeight<=maxHeight){maxHeight=dmpTotalHeight}if(dmpTotalHeightDistanceFromTop>0&&viewportHeightDistanceFromTop>0&&dmpTotalHeightDistanceFromTop>viewportHeightDistanceFromTop){maxHeight=viewportHeightDistanceFromTop}if((divimegaproBodyHeight!=divimegaproBodyCurrentHeight&&divimegaproBodyHeight<divimegaproBodyCurrentHeight&&maxHeight>divimegaproBodyCurrentHeight)||(divimegaproBodyHeight!=divimegaproBodyCurrentHeight&&divimegaproBodyHeight<divimegaproBodyCurrentHeight&&maxHeight<divimegaproBodyCurrentHeight)){maxHeight=divimegaproBodyCurrentHeight}if(customHeight>0){maxHeight=customHeight;if(customHeight<dmpTotalHeight){instance.popperChildren.content.querySelector('.divimegapro-flexheight').style.height=maxHeight+'px'}}refA=instance.props.maxHeight;if(refA===maxHeight){return}if((''===instance.popperChildren.tooltip.style.maxHeight&&''===instance.popperChildren.content.style.maxHeight)||(maxHeight>instance.props.maxHeight&&maxHeight>parseFloat(instance.popperChildren.tooltip.style.maxHeight)&&maxHeight>parseFloat(instance.popperChildren.content.style.maxHeight))){instance.props.maxHeight=maxHeight;instance.popperChildren.tooltip.style.maxHeight=maxHeight+'px';instance.popperChildren.content.style.maxHeight=maxHeight+'px';if(dmpTotalHeight>=viewportHeight||(customHeight>0&&dmpTotalHeight>customHeight)){instance.popperChildren.content.style.overflowY='auto'}}},1)}function getMatrix(element){if('undefined'!==typeof element.style){let values=element.style.transform.split(/\w+\(|\);?/);if('undefined'!==typeof values[1]){let transform=values[1].split(/,\s?/g).map(function(numStr){return parseInt(numStr)});return{x:transform[0],y:transform[1],z:transform[2]}}}return{x:0,y:0,z:0}}function applyStylesfromFirstSection(instance){let firstDiviSection=instance.popperChildren.content.querySelectorAll('.et_pb_section:first-child'),$firstDiviSection=$(firstDiviSection),cssclass_nopaddingnoboxshadow='dl-noboxshadow-nopadding',cssclass_noboxshadow='dl-noboxshadow';if(firstDiviSection.length===0){return}firstDiviSection=$(firstDiviSection);if(firstDiviSection.length===0){return}if($firstDiviSection.hasClass(cssclass_nopaddingnoboxshadow)){$firstDiviSection.removeClass(cssclass_nopaddingnoboxshadow)}const firstDiviSectionBoxShadow=firstDiviSection.css('box-shadow');if(firstDiviSectionBoxShadow!==''&&firstDiviSectionBoxShadow!=='none'&&instance.popperChildren.content.style.boxShadow!==firstDiviSectionBoxShadow){instance.popperChildren.content.style.boxShadow=firstDiviSectionBoxShadow;$firstDiviSection.parent().addClass(cssclass_nopaddingnoboxshadow);$firstDiviSection.parent().addClass(cssclass_noboxshadow)}const firstDiviSectionborderTopLeftRadius=firstDiviSection.css('border-top-left-radius');const firstDiviSectionborderTopRightRadius=firstDiviSection.css('border-top-right-radius');const firstDiviSectionborderBottomRightRadius=firstDiviSection.css('border-bottom-right-radius');const firstDiviSectionborderBottomLeftRadius=firstDiviSection.css('border-bottom-left-radius');if(firstDiviSectionborderTopLeftRadius!==''&&firstDiviSectionborderTopLeftRadius!=='0px'&&firstDiviSectionborderTopLeftRadius!==instance.popperChildren.content.style.borderTopLeftRadius){instance.popperChildren.content.style.borderTopLeftRadius=firstDiviSectionborderTopLeftRadius}if(firstDiviSectionborderTopRightRadius!==''&&firstDiviSectionborderTopRightRadius!=='0px'&&firstDiviSectionborderTopRightRadius!==instance.popperChildren.content.style.borderTopRightRadius){instance.popperChildren.content.style.borderTopRightRadius=firstDiviSectionborderTopRightRadius}if(firstDiviSectionborderBottomRightRadius!==''&&firstDiviSectionborderBottomRightRadius!=='0px'&&firstDiviSectionborderBottomRightRadius!==instance.popperChildren.content.style.borderBottomRightRadius){instance.popperChildren.content.style.borderBottomRightRadius=firstDiviSectionborderBottomRightRadius}if(firstDiviSectionborderBottomLeftRadius!==''&&firstDiviSectionborderBottomLeftRadius!=='0px'&&firstDiviSectionborderBottomLeftRadius!==instance.popperChildren.content.style.borderBottomLeftRadius){instance.popperChildren.content.style.borderBottomLeftRadius=firstDiviSectionborderBottomLeftRadius}let firstDiviSectionBackgroundColor=firstDiviSection.css('background-color');if(firstDiviSection.css('background')==='rgba(0, 0, 0, 0) none repeat scroll 0% 0%'){firstDiviSectionBackgroundColor='#FFF'}if(firstDiviSectionBackgroundColor!==''&&firstDiviSectionBackgroundColor!==instance.popperChildren.content.style.backgroundColor){instance.popperChildren.content.style.backgroundColor=firstDiviSectionBackgroundColor}}function triggerCustomDefaultEvents(){$(window).trigger("resize");window.dispatchEvent(new Event('resize'));window.dispatchEvent(new Event('scroll'))}function initDiviElements(divimegapro_id,singletonEnabled){let $dmp=$(divimegapros[divimegapro_id]['html']),alreadyInit=typeof $dmp.attr('data-dmpinitdivielemsonce');if('undefined'!==alreadyInit){return}triggerCustomDefaultEvents();if('undefined'===alreadyInit){$dmp.attr('data-dmpinitdivielemsonce',1)}clearTimeout(initDiviElements_timer);clearTimeout(initDiviFuncs_timer);var dmpRef=(singletonEnabled===true)?'.tippy-popper[data-dmpid="'+divimegapro_id+'"]':'.tippy-popper.dmp-'+divimegapro_id,slowTimer,balanceTimer,fastTimer=1;if(singletonEnabled===true){slowTimer=1000,balanceTimer=500,fastTimer=10}else{slowTimer=balanceTimer=fastTimer}resetDiviAnimations(dmpRef);$(dmpRef+' .divimegapro-body .et_animated').each(function(){et_remove_animation($(this))});initIGMaps(divimegapro_id,dmpRef);initDiviGearProductCarousel();initDiviGearDiviBlogCarousel();initDiviGearDiviCarousel();initCCPWCalculator(dmpRef);initDMPRO_carousel();initDSM_BlogCarousel(dmpRef);initDiviElements_timer=setTimeout(function(){initDPX_AdvancedTabs(dmpRef);initDSM_AdvancedTabs(dmpRef);initDFH_AdvancedTabs(dmpRef);initRevSlider(divimegapro_id,dmpRef);var $divimegaprobody=$(dmpRef+' .divimegapro-body'),$et_pb_circle_counter=$(dmpRef+' .divimegapro-body .et_pb_circle_counter'),$et_pb_number_counter=$(dmpRef+' .divimegapro-body .et_pb_number_counter'),$et_pb_countdown_timer=$(dmpRef+' .divimegapro-body .et_pb_countdown_timer'),$et_pb_tabs=$(dmpRef+' .divimegapro-body .et_pb_tabs'),$et_pb_map=$(dmpRef+' .divimegapro-body .et_pb_map_container'),$et_pb_slider=$divimegaprobody.find(".et_pb_slider");if(!!window.et_fix_testimonial_inner_width){window.et_fix_testimonial_inner_width()}if(!!window.et_pb_reinit_circle_counters){$et_pb_circle_counter.length&&window.et_pb_reinit_circle_counters($et_pb_circle_counter)}if(!!window.et_pb_reinit_number_counters){$et_pb_number_counter.length&&window.et_pb_reinit_number_counters($et_pb_number_counter)}if(!!window.et_pb_countdown_timer_init){$et_pb_countdown_timer.length&&window.et_pb_countdown_timer_init($et_pb_countdown_timer)}else if(!!window.divi){window.et_pb_init_modules()}clear_et_tabs_cache($et_pb_tabs),$et_pb_tabs.length&&window.et_pb_tabs_init($et_pb_tabs),et_pb_init_maps($et_pb_map);if(!!window.et_fix_pricing_currency_position){window.et_fix_pricing_currency_position()}if(singletonEnabled===false){let tippyRef='.tippy-popper ',dt=$(tippyRef+".et_pb_contact_form_container");dt.each(function(){let t=$(this);t.find("form").off('submit')});window.et_reinit_waypoint_modules();let searchBar=$('.et_pb_searchform .et_pb_s'),bkpSearchBarHeight=searchBar.css('height');if(diviMobile!==true){if(!window.divi){window.et_pb_init_modules()}}else if(diviMobile===true){initETContactForm()}let fixDiviLoopWhenInitModules=setTimeout(function(){if(diviMobile===true){window.et_fix_slider_height=diviet_fix_slider_height}},200);searchBar.css('height',bkpSearchBarHeight);fixMobileMenuAfterDiviInit()}else{et_reinit_waypoint_modules(dmpRef)}fixDiviAccordionTogglingBug(dmpRef);clickOffMobileLinkswithHashtagOnly();initDiviFuncs_timer=setTimeout(function(){callDiviLifeFuncs(dmpRef+' ')},fastTimer)},balanceTimer)}function fixDiviAccordionTogglingBug(dmpRef){$("body").on("click",dmpRef+' .et_pb_toggle_title',(function(){let i=$(this).closest(".et_pb_toggle"),r=i.closest(".et_pb_accordion"),s=r.length;if(s){let maxTries=3,fixAccordionTogglingBugCount=0,fixAccordionTogglingBug=setInterval(function(){if(r.hasClass("et_pb_accordion_toggling")){r.removeClass("et_pb_accordion_toggling");clearInterval(fixAccordionTogglingBug)}fixAccordionTogglingBugCount+=1;if(fixAccordionTogglingBugCount===maxTries){clearInterval(fixAccordionTogglingBug)}},1000)}}))}function clear_et_tabs_cache(t){t.each(function(){var t=$(this);t.data("et_pb_simple_slider",'')})}function initIGMaps(dmpid,dmpRef){if(typeof iMaps!=='undefined'){let mapsindmp=$(dmpRef+' .divimegapro-body .map_render'),callMapsInit=false;if(mapsindmp.length>0){mapsindmp.each(function(){let pThis=$(this),mapid=pThis.attr('id').replace(/\D/g,'');if(typeof supportIGMap[dmpid]==='undefined'){let mapcontent=$('#divimegapro-'+dmpid+' #map_'+mapid).detach();supportIGMap[dmpid]={};supportIGMap[dmpid][mapid]=mapcontent}pThis.remove()})}if(typeof supportIGMap[dmpid]!=='undefined'){let maps=supportIGMap[dmpid];if(Object.keys(maps).length>0){callMapsInit=true;$.each(maps,function(mapid,mapcontent){$(dmpRef+' .divimegapro-body #map_wrapper_'+mapid+' .map_container').html(mapcontent)})}if(callMapsInit===true){iMaps.init()}}}}function initDiviGearProductCarousel(){var e=$,o=document,tippyRef='.tippy-popper ';if(e(tippyRef+".dgpc_product_carousel").length>0){e(tippyRef+".dgpc_product_carousel").each(function(t,o){var n=o.querySelector(tippyRef+".dgpc-container"),r=o.querySelector(tippyRef+".swiper-container"),a=n.dataset,c="on"==a.arrow&&{nextEl:".sbn"+a.order,prevEl:".sbp"+a.order},i="on"==a.dots&&{el:".sp"+a.order,clickable:!0},s=Number(a.spacebetween.replace(/[^0-9.]/g,"")),l={rotate:Number(parseInt(a.coverflow)),stretch:0,depth:100,modifier:1,slideShadows:"off"!==a.shadow};e(this).find(".products").addClass("dg-products"),e(this).find(".products").removeClass("products");var p=new Swiper(r,{slidesPerView:Number(a.slidesperview),slidesPerGroup:"on"==a.multislide?Number(a.slidesperview):1,spaceBetween:s>0?s:Number(0),speed:Number(a.transition),loop:"on"==a.loop,centeredSlides:"on"==a.center,autoplay:"on"==a.autoplay&&{delay:a.autospeed,disableOnInteraction:!1},slideClass:"product",wrapperClass:"dg-products",navigation:c,pagination:i,effect:a.effect,coverflowEffect:"coverflow"==a.effect?l:null,setWrapperSize:!0,observer:!0,observeParents:!0,observeSlideChildren:!0,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,touchMoveStopPropagation:!0,threshold:15,breakpoints:{981:{slidesPerView:Number(a.slidesperview),slidesPerGroup:"on"==a.multislide?Number(a.slidesperview):1},768:{slidesPerView:Number(a.tablet),slidesPerGroup:"on"==a.multislide?Number(a.tablet):1},1:{slidesPerView:Number(a.mobile),slidesPerGroup:"on"==a.multislide?Number(a.mobile):1}}});"on"==a.hoverpause&&"on"==a.autoplay&&(r.addEventListener("mouseover",function(){p.autoplay.stop()}),r.addEventListener("mouseout",function(){p.autoplay.start()}))})}}function initDiviGearDiviBlogCarousel(){var e=$,t=document,tippyRef='.tippy-popper ';if(e(tippyRef+".dgbc_blog_carousel").length>0){e(tippyRef+".dgbc_blog_carousel").each(function(e,t){var o=t.querySelector(tippyRef+".swiper-container"),r=t.querySelector(tippyRef+".dgbc_carousel_wrapper").dataset,n=JSON.parse(r.props),a=Number(n.spacing.replace(/[^0-9.]/g,"")),c=Number(n.tablet_spacing.replace(/[^0-9.]/g,"")),i=Number(n.mobile_spacing.replace(/[^0-9.]/g,"")),l="on"==n.arrow&&{nextEl:".dg-bc-arrow-next-"+n.order,prevEl:".dg-bc-arrow-prev-"+n.order},p="on"==n.dots&&{el:".dg-bc-dots-"+n.order,clickable:!0},s={rotate:Number(parseInt(n.coverflow)),stretch:0,depth:100,modifier:1,slideShadows:"off"!==n.shadow},u=new Swiper(o,{slidesPerView:Number(n.xlarge),slidesPerGroup:"on"==n.multislide?Number(n.xlarge):1,spaceBetween:a>=0?a:"0",speed:Number(n.speed),navigation:l,pagination:p,slideClass:"dgbc_post_item",wrapperClass:"swiper-wrapper",centeredSlides:"on"==n.centermode,loop:"on"==n.loop,autoplay:"on"==n.autoplay&&{delay:Number(n.autoplay_speed)},effect:n.effect,coverflowEffect:"coverflow"==n.effect?s:null,observer:!0,observeParents:!0,observeSlideChildren:!0,setWrapperSize:!0,cache:!1,threshold:15,breakpoints:{981:{slidesPerView:Number(n.desktop),slidesPerGroup:"on"==n.multislide?Number(n.desktop):1},768:{slidesPerView:Number(n.tablet),slidesPerGroup:"on"==n.multislide?Number(n.tablet):1,spaceBetween:c>=0?c:"0"},1:{slidesPerView:Number(n.mobile),slidesPerGroup:"on"==n.multislide?Number(n.mobile):1,spaceBetween:i>=0?i:"0"}}});"on"==n.hoverpause&&"on"==n.autoplay&&(o.addEventListener("mouseover",function(){u.autoplay.stop()}),o.addEventListener("mouseout",function(){u.autoplay.start()}))})}}function initDiviGearDiviCarousel(){var e=$,o=document,tippyRef='.tippy-popper ';if(e(tippyRef+".dica_divi_carousel").length>0){e(tippyRef+".dica_divi_carousel").each(function(t,o){var n=o.querySelector(tippyRef+".swiper-container"),a=o.querySelector(tippyRef+".dica-container"),r=JSON.parse(a.dataset.props),c=Number(r.speed),i=Number(r.desktop),l=Number(r.tablet),s=Number(r.mobile),p=r.arrow,d=r.dots,u=r.autoplay,_=Number(r.autoSpeed),h=r.loop,v=Number(r.item_spacing.replace(/[^0-9.]/g,"")),b=r.center_mode,f=r.slider_effec,m=r.pause_onhover,g=r.multislide,y=r.cfshadow,w=r.order,I="on"==r.lazyload&&{loadedClass:"swiper-lazy-loaded"},N=r.scroller_effect,x=Number(r.scroller_speed),P=r.autowidth,k=Number(r.item_spacing_tablet.replace(/[^0-9.]/g,"")),S=Number(r.item_spacing_phone.replace(/[^0-9.]/g,""));var O="on"==p&&{nextEl:".dica-next-btn-"+w,prevEl:".dica-prev-btn-"+w},C="on"==d&&{el:".dica-paination-"+w,clickable:!0},z=Number(parseInt(r.cover_rotate));z=isNaN(z)?0:z;var j=new Swiper(n,{slidesPerView:"on"!==P?i:"auto",slidesPerGroup:"on"==g&&"on"!==P&&"on"!==N?Number(i):1,navigation:O,pagination:C,spaceBetween:v,speed:"on"!==N?c:x,autoplay:"on"==u&&{delay:_,disableOnInteraction:!1},slideClass:"dica_divi_carouselitem",loop:"on"==h,centeredSlides:"on"==b,effect:"1"==f?"slide":f,coverflowEffect:{rotate:z,stretch:0,depth:100,modifier:1,slideShadows:"off"!==y},observer:!0,observeParents:!0,observeSlideChildren:!0,preloadImages:"on"!=r.lazyload,watchSlidesVisibility:!0,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,touchMoveStopPropagation:!0,threshold:15,lazy:I,breakpoints:{981:{slidesPerView:"on"!==P?i:"auto",slidesPerGroup:"on"==g&&"on"!==P&&"on"!==N?Number(i):1,spaceBetween:v},768:{slidesPerView:"on"!==P?l:"auto",slidesPerGroup:"on"==g&&"on"!==P&&"on"!==N?Number(l):1,spaceBetween:k},1:{slidesPerView:"on"!==P?s:"auto",slidesPerGroup:"on"==g&&"on"!==P&&"on"!==N?Number(s):1,spaceBetween:S}}});if("on"==N&&"on"==u){var E=function(){j.autoplay.start()};(j.freeMode=!0),j.autoplay.stop(),e(window).on("load",function(){setTimeout(E,1e3)})}"on"!==N&&j.on("observerUpdate",function(e){"on"==u&&((j.autoplay.paused=!1),(j.translate=0)),j.update()}),"on"==m&&"on"==u&&(n.addEventListener("mouseover",function(){j.autoplay.stop()}),n.addEventListener("mouseout",function(){j.autoplay.start()})),"on"==r.lazyload&&j.on("lazyImageReady",function(e,t){e.querySelector(".dica-item").classList.remove("loading")}),e(this).find(".dica_divi_carouselitem .et_pb_module_inner").on("click",function(t){var o=e(this).find(".dica-item")[0].dataset.link;if(o){t.stopPropagation();var n=e(this).find(".dica-item")[0].dataset.target;void 0!==o&&("_blank"===n?window.open(o):(window.location=o))}})})}}function initCCPWCalculator(dmpRef){$(dmpRef+' .divimegapro-body .ccpw_calculator').each(function(){let pThisCCPW=$(this),type=pThisCCPW.data("type"),ID,el=dmpRef+' .divimegapro-body [data-calc-id="'+pThisCCPW.attr("data-calc-id")+'"]';pThisCCPW.find('.select2').remove();$(el).removeAttr("data-select2-id");$(el).find(".crypto_select, .fiat_select").each(function(i,val){let pThis=$(this);pThis.removeClass('select2-hidden-accessible');pThis.off();pThis.select2({dropdownParent:$(dmpRef)})});let convert_numbers=function(){let crypto_amount=$(el).find("#crypto_amount").val(),cryptocurrency=$(el).find("#crypto_dd").val(),currency=$(el).find("#fiat_dd").val(),coin_name=$(el).find("#crypto_dd option:selected").text(),currency_name=$(el).find("#fiat_dd option:selected").text(),label,calculate_price,formated_price;if(""==crypto_amount&&(crypto_amount=1),"Crypto Currencies"==$(el).find("#fiat_dd option:selected").closest("optgroup").prop("label")){calculate_price=crypto_amount*(parseFloat(cryptocurrency)/parseFloat(currency))}else{calculate_price=parseFloat(cryptocurrency)*crypto_amount*parseFloat(currency)}if(calculate_price>=25){formated_price=numeral(calculate_price).format("0,0.00")}else if(calculate_price>=.5&&calculate_price<25){formated_price=numeral(calculate_price).format("0,0.000")}else if(calculate_price>=.01&&calculate_price<.5){formated_price=numeral(calculate_price).format("0,0.0000")}else if(calculate_price>=1e-4&&calculate_price<.01){formated_price=numeral(calculate_price).format("0,0.00000")}else{formated_price=numeral(calculate_price).format("0,0.00000000")}$(el).find(".cmc_cal_rs").text(formated_price+" "+currency_name),$(el).find(".cmc_rs_lbl").text(crypto_amount+" "+coin_name)};$(document).on("change keyup",el,convert_numbers),convert_numbers()})}function initRevSlider(dmpid,dmpRef){let slidersindmp=$('#divimegapro-container-'+dmpid+' rs-module-wrap');if(typeof supportRevSlider[dmpid]==='undefined'){if(slidersindmp.length>0){slidersindmp.each(function(){let pThis=$(this),sliderModule=pThis.find('rs-module'),sliderid=sliderModule.attr('id'),parent_etpbcodeCSSclasses=pThis.parents('.et_pb_code').attr('class'),slidercontent=pThis.detach();if(typeof supportRevSlider[dmpid]==='undefined'){supportRevSlider[dmpid]={}}if(typeof supportRevSlider[dmpid][sliderid]==='undefined'){supportRevSlider[dmpid][sliderid]={}}supportRevSlider[dmpid][sliderid]['content']=slidercontent;supportRevSlider[dmpid][sliderid]['parent']=parent_etpbcodeCSSclasses;pThis.remove()})}}if(typeof supportRevSlider[dmpid]!=='undefined'){let sliders=supportRevSlider[dmpid];if(Object.keys(sliders).length>0){$.each(sliders,function(sliderid,slider){let sliderModuleId=sliderid.replace(/\D/g,''),revsliderid='revslider'+sliderModuleId,sliderParentRef='.'+slider['parent'].replaceAll(' ','.'),sliderParent=$(dmpRef+' .divimegapro-body '+sliderParentRef);if(sliderParent.length>0){sliderParent.find('.et_pb_code_inner').html(slider['content'].prop("outerHTML"));let theSlider=$('#'+sliderid);if(theSlider.length>0){theSlider.revstart()}}})}}}function initDMPRO_carousel(){if(typeof window.dmpro_carousel!=='undefined'){window.dmpro_carousel()}}function initDPX_AdvancedTabs(dmpRef){if(typeof window.dipi_at_sticky!=='undefined'){let pThis=$(dmpRef+' .divimegapro-body'),tabs=pThis.find('.dipi-at-tabs .dipi-at-tab'),panels=pThis.find('.dipi-at-panels .dipi_advanced_tabs_item'),firstTab=pThis.find('.dipi-at-tab:first-child'),firstPanel=pThis.find('.dipi_advanced_tabs_item:first-child');tabs.off();tabs.removeClass("dipi-at-tab--active animated animateOut animateIn");panels.removeClass("dipi-at-panel--active animated animateOut animateIn");firstTab.addClass("dipi-at-tab--active");firstPanel.addClass("dipi-at-panel--active");pThis.find('.dipi-advanced-tabs-front').each(function(t,i){$(this).dipiAdvancedTabs()})}}function initDSM_AdvancedTabs(dmpRef){let e=document.querySelectorAll(dmpRef+' .dsm-advanced-tabs-container'),s=s=>{let{tabs:a,index:t,tabsContent:d,animationName:i,innerAnimationName:c,currentTabId:l,deepLink:n,container:r}=s,o=d[t].querySelector(".dsm-inner-content-wrapper");d.forEach((e,s)=>{o.classList.remove(`${ c }`),e.classList.remove("dsm-active",`${ i }`),a[s].classList.remove("dsm-active",`${ i }`)}),e.forEach(e=>{e&&e.classList.remove("dsm-active-deep-link")}),a[t].classList.add("dsm-active"),d[t].classList.add("dsm-active",`${ i }`),o.classList.add("animated",c),n&&(location.hash=l,location.hash.substring(1)===l&&r.classList.add("dsm-active-deep-link"))};e.forEach((e,a)=>{let t=e.querySelectorAll(".dsm-tab"),d=e.querySelectorAll(".dsm-content-wrapper"),i=e.dataset.trigger,c=e.dataset.animation,l=e.dataset.inner_animation,n="on"===e.dataset.deep_link;t.forEach((a,r)=>{let o=a.querySelector(".dsm-title"),m=null!=o?o.innerHTML.toLowerCase().replaceAll(" ","-"):"";""!==location.hash&&(""===location.hash||e.classList.contains("dsm-active-deep-link"))||(t[0].classList.add("dsm-active"),d[0].classList.add("dsm-active",`${ c }`),d[0].querySelector(".dsm-inner-content-wrapper").classList.add("animated",l));let h={tabs:t,index:r,deepLink:n,tabsContent:d,animationName:c,innerAnimationName:l,currentTabId:m,container:e};n&&""!==location.hash&&m===location.hash.substring(1)&&s(h),a.addEventListener("click",()=>{"click"===i&&s(h)}),a.addEventListener("mouseover",()=>{"hover"===i&&s(h)})})})}function initDFH_AdvancedTabs(dmpRef){$(dmpRef+' .difl_advancedtab').each(function(index,ele){let _this=$(this),container=_this.find('.df_at_container'),nav_container=_this.find('.df_at_nav_container'),navs=_this.find('.df_at_nav'),settings=_this.find('.df_at_container').data().settings,sticky_selector='.'+settings.module_class+' .df_at_nav_wrap',sticky_container='.'+settings.module_class+' .df_at_container',Sticky=null,space=df_tab_distance(settings);if(settings.use_sticky_nav==='on'){Sticky=new hcSticky(sticky_selector,{stickTo:sticky_container,top:space.desktop,responsive:{980:{top:space.tablet,disable:settings.turn_off_sticky==='tablet_phone'?true:false},767:{top:space.phone,disable:settings.turn_off_sticky==='phone'||settings.turn_off_sticky==='tablet_phone'?true:false}}});Sticky.refresh();if(typeof window.df_at_sticky!=='undefined'){window.df_at_sticky.push(Sticky)}}_this.find('.df_at_nav:first-child').addClass('df_at_nav_active');_this.find('.difl_advancedtabitem:first-child').addClass('df_at_content_active');navs.on(settings.tab_event_type,function(e){var active_class=e.currentTarget.classList[0];navs.removeClass('df_at_nav_active');$(this).addClass('df_at_nav_active');if(settings.use_sticky_nav==='on'){df_at_nav_sticky_scroll(container,space)}if(settings.use_sticky_nav!=='on'&&settings.use_scroll_to_content==='on'){df_scroll_to_content(_this.find('.df_at_all_tabs_wrap'))}df_tab_anime(_this,`.${settings.module_class } .df_at_all_tabs`,settings.tab_animation,parseInt(settings.animation_duration),active_class)})});onElementHeightChange(document.body,function(){if(typeof window.df_at_sticky!=='undefined'&&window.df_at_sticky.length>0){for(var i=0;i<window.df_at_sticky.length;i+=1){window.df_at_sticky[i].refresh()}}});function onElementHeightChange(elm,callback){var lastHeight=elm.clientHeight,newHeight;(function run(){newHeight=elm.clientHeight;if(lastHeight!==newHeight){callback()}lastHeight=newHeight;if(elm.onElementHeightChangeTimer){clearTimeout(elm.onElementHeightChangeTimer)}elm.onElementHeightChangeTimer=setTimeout(run,200)})()}function df_tab_distance(settings){var extra_space=settings.extra_space===true?32:0;var space=parseInt(settings.sticky_distance)+extra_space;var space_tablet=settings.sticky_distance_tablet!==''?parseInt(settings.sticky_distance_tablet)+extra_space:space;var space_phone=settings.sticky_distance_phone!==''?parseInt(settings.sticky_distance_phone)+extra_space:space_tablet;return{'desktop':space,'tablet':space_tablet,'phone':space_phone}}function df_at_nav_sticky_scroll(selector,space){var position_top=selector.offset().top;if($(window).width()>980){position_top=position_top-space.desktop}if($(window).width()<981&&$(window).width()>767){position_top=position_top-space.tablet}if($(window).width()<768){position_top=position_top-space.phone}$([document.documentElement,document.body]).animate({scrollTop:position_top},700)}function df_scroll_to_content(selector){var position_top=selector.offset().top;if($(window).width()<981){$([document.documentElement,document.body]).animate({scrollTop:position_top},500)}}var animations={slide_left:{opacity:['1','0'],translateX:['0','-100px']},slide_right:{opacity:['1','0'],translateX:['0','100px']},slide_up:{opacity:['1','0'],translateY:['0','-100px']},slide_down:{opacity:['1','0'],translateY:['0','100px']},fade_in:{opacity:['1','0']},zoom_left:{opacity:['1','0'],scale:['1','.5'],transformOrigin:['0% 50%','0% 50%'],},zoom_center:{opacity:['1','0'],scale:['1','.5'],transformOrigin:['50% 50%','50% 50%'],},zoom_right:{opacity:['1','0'],scale:['1','.5'],transformOrigin:['100% 50%','100% 50%'],}};function df_tab_anime(_this,selector,config='slide_left',duration,active_class){var object={targets:selector,direction:'alternate',easing:'linear',duration:duration,endDelay:1,update:function(anim){if(anim.progress===100){_this.find('.difl_advancedtabitem').removeClass('df_at_content_active');_this.find('.df_at_all_tabs .'+active_class).addClass('df_at_content_active')}}};var anime_config=Object.assign(object,animations[config]);if(window.anime){window.anime(anime_config)}}}function initDSM_BlogCarousel(dmpRef){let e=$;e(dmpRef+' .dsm_blog_carousel').each(function(o,t){let s=e(this),f=s.find(".dsm-blog-carousel").data(),r="."+s.attr("class").split(" ").join(".")+" .swiper-container",l={nextEl:".dsm-arrow-button-next"+f.ordernumber,prevEl:".dsm-arrow-button-prev"+f.ordernumber},a={el:".dsm-pagination"+f.ordernumber,clickable:!0,type:"progressbar"!==f.pagiButtonStyle?"bullets":"progressbar",dynamicBullets:"dynamic"===f.pagiButtonStyle},c=1===f.loop,n="on"===f.centered,i="on"!==f.touchMove,u="on"===f.grab,p=new Swiper(r,{effect:f.effect,coverflowEffect:{slideShadows:"on"===f.effectShadows,rotate:f.effectCoverflowRotate,depth:f.effectCoverflowDepth},flipEffect:{rotate:30,slideShadows:"on"===f.effectShadows},cubeEffect:{slideShadows:"on"===f.effectShadows,shadow:"on"===f.effectShadows,shadowOffset:20,shadowScale:.94},speed:Number(f.speed),loop:!0===n||"on"!==f.multiRow&&c,autoplay:"on"===f.autoplay&&{delay:f.autoplayspeed},setWrapperSize:"cube"!==f.effect&&"flip"!==f.effect,observer:!0,observeParents:!0,observeSlideChildren:!0,slideClass:"dsm-blog-carousel-item",wrapperClass:"dsm-blog-carousel-wrapper",navigation:l,pagination:a,centeredSlides:n,slidesPerColumn:"on"===f.multiRow?Number(f.row):1,slidesPerColumnFill:"row",grabCursor:!1!==i&&u,allowTouchMove:i,breakpoints:{320:{slidesPerView:"cube"===f.effect||"flip"===f.effect?1:Number(f.columnsphone),spaceBetween:"cube"===f.effect||"flip"===f.effect?0:Number(f.spacingphone)},480:{slidesPerView:"cube"===f.effect||"flip"===f.effect?1:Number(f.columnsphone),spaceBetween:"cube"===f.effect||"flip"===f.effect?0:Number(f.spacingphone)},768:{slidesPerView:"cube"===f.effect||"flip"===f.effect?1:Number(f.columnstablet),spaceBetween:"cube"===f.effect||"flip"===f.effect?0:Number(f.spacingtablet)},981:{slidesPerView:"cube"===f.effect||"flip"===f.effect?1:Number(f.columnsdesktop),spaceBetween:"cube"===f.effect||"flip"===f.effect?0:Number(f.spacing)}}});"on"===f.pauseOnHover&&(e(this).on("mouseenter",function(e){p.autoplay.stop()}),e(this).on("mouseleave",function(e){p.autoplay.start()}))})}function et_pb_init_maps($et_pb_map){$et_pb_map.each(function(){et_pb_map_init($(this))})}function et_get_animation_classes(){return["et_animated","infinite","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft"]}function et_remove_animation($element){var animation_classes=et_get_animation_classes();$element.removeClass(animation_classes.join(" ")),$element.removeAttr("style")}function et_reinit_waypoint_modules(dmpRef){initETContactForm();var n=$,o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},a="object"===o(window.ET_Builder),t=n(dmpRef+".et_pb_circle_counter"),e=n(dmpRef+".et_pb_number_counter"),i=n(dmpRef+".et_pb_section_video_bg video");if(n.fn.waypoint&&window.et_pb_custom&&"yes"!==window.et_pb_custom.ignore_waypoints&&!a){gt(!0),n(".et-waypoint").each(function(){ht(n(this),{offset:vt(n(this),"100%"),handler:function(){n(this.element).addClass("et-animated")}},2)}),t.length&&t.each(function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&!bt(t)&&ht(t,{offset:vt(n(this),"100%"),handler:function(){t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||r||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0))}},2)}),e.length&&e.each(function(){var t=n(this);bt(t)||ht(t,{offset:vt(n(this),"100%"),handler:function(){t.data("easyPieChart").update(t.data("number-value"))}})}),a||n.each(et_pb_custom.ab_tests,function(t,e){var r=jt(e.post_id);if(0===r.length){return!0}ht(r,{offset:vt(n(this),"80%"),handler:function(){!Z[e.post_id].read_goal&&r.length&&r.visible(!0)&&(setTimeout(function(){r.length&&r.visible(!0)&&!Z[e.post_id].read_goal&&Ct("read_goal",e.post_id,void 0,e.test_id)},3e3),xt(r,"view_goal"))}})})}else{gt(!1);var o=a?"et-animated--vb":"et-animated";n(".et-waypoint").addClass(o),n(".et-waypoint").each(function(){mt(n(this))}),t.length&&t.each(function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&(t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0)))}),e.length&&e.each(function(){var t=n(this);t.data("easyPieChart").update(t.data("number-value"))}),n.each(et_pb_custom.ab_tests,function(t,e){var n=jt(e.post_id);return(0===n.length||!(!Z[e.post_id].read_goal&&n.length&&n.visible(!0))||(setTimeout(function(){n.length&&n.visible(!0)&&!Z[e.post_id].read_goal&&Ct("read_goal",e.post_id,void 0,e.test_id)},3e3),void xt(n,"view_goal")))})}i.length&&i.each(function(){var t=n(this);et_pb_video_background_init(t,this)})}function initETContactForm(){let n=$,tippyRef='.tippy-popper ',lt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dt=n(tippyRef+".et_pb_contact_form_container"),gt=document.body.innerHTML.match(/<script [^>]*src="[^"].*google.com\/recaptcha\/api.js\?.*render.*"[^>]*>([\s\S]*?)<\/script>/gim),wt=n("#et-recaptcha-v3-js"),yt=gt&&gt.length>wt.length,at;if(n(".et_pb_module.et_pb_recaptcha_enabled").length>0&&typeof etCore!=='undefined'&&etCore.api.spam.recaptcha.isEnabled()){at=etCore.api.spam.recaptcha;n("body").addClass("et_pb_recaptcha_enabled")}if(dt.length){dt.each(function(){var t=n(this),e=t.find("form"),i=void 0!==t.data("redirect_url")?t.data("redirect_url"):"";e.find("input[type=checkbox]").on("change",(function(){var t=n(this),e=t.siblings("input[type=text]").first(),i=t.prop("checked");e.val(i?e.data("checked"):e.data("unchecked"))})),e.on("submit",(function(e){e.preventDefault();var a=n(this);if(!0!==a.data("submitted")){var o=a.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select'),r=a.find(".et_pb_contact_captcha"),s=t.find(".et-pb-contact-message"),c=void 0!==t.data("form_unique_num")?t.data("form_unique_num"):0,l=!1,_="",d="",p=[],u=[],h=n.Deferred();at&&t.hasClass("et_pb_recaptcha_enabled")?at.interaction("Divi/Module/ContactForm/".concat(c)).then((function(t){h.resolve(t)})):h.resolve(""),n.when(h).done((function(e){if(_="<ul>",o.removeClass("et_contact_error"),o.each((function(){var t=n(this),e=!1;"checkbox"===t.data("field_type")&&(e=t.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===t.data("type")&&(e=(t=t.find('input[type="radio"]')).parents(".et_pb_contact_field"));var i,a=t.attr("id"),o=t.val(),r=t.siblings("label").first().text(),s=void 0!==t.data("field_type")?t.data("field_type"):"text",c=void 0!==t.data("required_mark")?t.data("required_mark"):"not_required",f=void 0!==t.data("original_id")?t.data("original_id"):"",h=!1;if("radio"===s){if(0!==e.find('input[type="radio"]').length){s="radio";var b=e.find('input[type="radio"]').first();c=void 0!==b.data("required_mark")?b.data("required_mark"):"not_required",o="",e.find('input[type="radio"]:checked')&&(o=e.find('input[type="radio"]:checked').val())}r=e.find(".et_pb_contact_form_label").text(),a=e.find('input[type="radio"]').first().attr("name"),f=e.attr("data-id"),0===e.find('input[type="radio"]:checked').length&&(h=!0)}if("checkbox"===s){if(o="",0!==e.find('input[type="checkbox"]').length){s="checkbox";var v=e.find(".et_pb_checkbox_handle");c=void 0!==v.data("required_mark")?v.data("required_mark"):"not_required",e.find('input[type="checked"]:checked')&&(o=[],e.find('input[type="checkbox"]:checked').each((function(){o.push(n(this).val())})),o=o.join(", "))}if(e.find(".et_pb_checkbox_handle").val(o),0===(r=e.find(".et_pb_contact_form_label").text()).trim().length){var m=e.find('.et_pb_contact_field_checkbox input[type="checkbox"]');if(m.length>0){var g=[];m.each((function(){g.push(n(this).val())})),0===(r=g.join(", ")).trim().length&&(r=et_pb_custom.wrong_checkbox)}}a=e.find(".et_pb_checkbox_handle").attr("name"),f=e.attr("data-id"),0===e.find('input[type="checkbox"]:checked').length&&(h=!0)}if(r=r.replace(/"/g,"&quot;"),t.is(":visible")||!t.parents("[data-conditional-logic]").length||"hidden"===t.attr("type")||"radio"===t.attr("type")){if("hidden"!==t.attr("type")&&"radio"!==t.attr("type")||t.parents(".et_pb_contact_field").is(":visible")){if(void 0!==a&&p.push({field_id:a,original_id:f,required_mark:c,field_type:s,field_label:r}),"required"!==c||""!==o&&!0!==h||t.is('[id^="et_pb_contact_et_number_"]')||(!1===e?t.addClass("et_contact_error"):e.addClass("et_contact_error"),l=!0,""===(i=r)&&(i=et_pb_custom.captcha),d+="<li>".concat(i,"</li>")),"email"===s){var w=o.trim().toLowerCase(),y=function(t){if(6>t.length){return!1}if(!1===function(t,e,n){var i=(t+"").indexOf("@",1);return -1!==i&&i}(t)){return!1}var e=t.split("@",2),n=e[0],i=e[1];if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(n)){return!1}if(/\.{2,}/.test(i)){return!1}if(s(i," \t\n\r\0\v.")!==i){return!1}var a=i.split(".");if(2>a.length){return!1}for(var o in a){var r=a[o];if(s(r," \t\n\r\0\v-")!==r){return!1}if(!/^[a-z0-9-]+$/i.test(r)){return!1}}return!0;function s(t,e){var n=[" ","\n","\r","\t","\f","\v","\xa0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200a","\u200b","\u2028","\u2029","\u3000"].join(""),i=0,a=0;for(t+="",e&&(n=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),i=t.length,a=0;a<i;a+=1){if(-1===n.indexOf(t.charAt(a))){t=t.substring(a);break}}for(a=(i=t.length)-1;a>=0;a-=1){if(-1===n.indexOf(t.charAt(a))){t=t.substring(0,a+1);break}}return -1===n.indexOf(t.charAt(0))?t:""}}(w);""===w||r===w||y||(t.addClass("et_contact_error"),l=!0,y||(_+="<li>".concat(et_pb_custom.invalid,"</li>")))}}else{u.push(f)}}else{u.push(f)}})),r.length&&""!==r.val()){var h=parseInt(r.data("first_digit")),b=parseInt(r.data("second_digit"));parseInt(r.val())!==h+b&&(_+="<li>".concat(et_pb_custom.wrong_captcha,"</li>"),l=!0,h=Math.floor(15*Math.random()+1),b=Math.floor(15*Math.random()+1),r.data("first_digit",h),r.data("second_digit",b),r.val(""),a.find(".et_pb_contact_captcha_question").empty().append("".concat(h," + ").concat(b)))}if(!l){a.data("submitted",!0);var v=a.attr("action"),m=a.serializeArray();m.push({name:"et_pb_contact_email_fields_".concat(c),value:JSON.stringify(p)}),m.push({name:"token",value:e}),u.length>0&&m.push({name:"et_pb_contact_email_hidden_fields_".concat(c),value:JSON.stringify(u)}),t.removeClass("et_animated").removeAttr("style").fadeTo("fast",.2,(function(){t.load("".concat(v," #").concat(t.attr("id"),"> *"),m,(function(e,a){if("error"===a){var o=n("#".concat(t.attr("id")),e);o.length>0&&t.html(o)}n(e).find(".et_pb_contact_error_text").length||(xt(t,"con_goal"),""!==i&&(window.location.href=i)),t.fadeTo("fast",1)}))}))}_+="</ul>",""!==d&&("<ul></ul>"!==_&&(_='<p class="et_normal_padding">'.concat(et_pb_custom.contact_error_message,"</p>").concat(_)),d="<ul>".concat(d,"</ul>"),d="<p>".concat(et_pb_custom.fill_message,"</p>").concat(d),_=d+_),"<ul></ul>"!==_&&(s.html(_),t.parents(".et_pb_section_parallax").length&&t.parents(".et_pb_section_parallax").each((function(){!n(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&f.trigger("resize")})))}))}}))})}}function xt(t,e,n){var r=(function(t){var e=t.attr("class"),n=parseInt(e.replace(/^.*et_pb_ab_goal_id-(\d+).*$/,"$1"));return isNaN(n)?0:n})(t),i=void 0===e?"con_goal":e;t.hasClass("et_pb_ab_goal")&&!K[r][i]?Ct(i,r):void 0!==n&&n()}function ht(t,e,n){n=n||t.data("et_waypoint_max_instances")||1;var r=t.data("et_waypoint")||[];if(r.length<n){var i=t.waypoint(e);i&&i.length>0&&(r.push(i[0]),t.data("et_waypoint",r))}else{for(var o=0;o<r.length;o+=1){r[o].context.refresh()}}}function vt(t,e){var n=$,r=t.parents(".et_pb_section").index(),i=n(".et_pb_section").length-1,o=t.parents(".et_pb_row").index(),a=t.parents(".et_pb_section").children().length-1;return r===i&&o===a?"bottom-in-view":e}function mt(t){var e=t,n=$;if(!e.hasClass("et_had_animation")){var r=e.attr("data-animation-style"),i=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),a=e.attr("data-animation-delay"),s=e.attr("data-animation-intensity"),c=e.attr("data-animation-starting-opacity"),u=e.attr("data-animation-speed-curve"),l=e.parent(".et_pb_button_module_wrapper"),d=n("body").hasClass("edge");e.is(".et_pb_section")&&"roll"===r&&n(et_frontend_scripts.builderCssContainerPrefix+", "+et_frontend_scripts.builderCssLayoutPrefix).css("overflow-x","hidden"),(function(t){for(var e=[],r=t.get(0).attributes,i=0;i<r.length;i+=1){"data-animation-"===r[i].name.substring(0,15)&&e.push(r[i].name)}n.each(e,function(e,n){t.removeAttr(n)})})(e);var f=isNaN(parseInt(c))?0:0.01*parseInt(c);-1===n.inArray(u,["linear","ease","ease-in","ease-out","ease-in-out"])&&(u="ease-in-out"),l.length>0&&(e.removeClass("et_animated"),(e=l).addClass("et_animated")),e.css({"animation-duration":o,"animation-delay":a,opacity:f,"animation-timing-function":u}),("slideTop"!==r&&"slideBottom"!==r)||e.css("left",0);for(var p={},_=isNaN(parseInt(s))?50:parseInt(s),h=["slide","zoom","flip","fold","roll"],v=!1,m=!1,g=0;g<h.length;g+=1){var b=h[g];if(r&&r.substr(0,b.length)===b){(v=b),""!==(m=r.substr(b.length,r.length))&&(m=m.toLowerCase());break}}if((!1!==v&&!1!==m&&(p=(function(t,e,n){var r={};switch(t){case "slide":switch(e){case "top":r={transform:"translate3d(0, "+-2*n+"%, 0)"};break;case "right":r={transform:"translate3d("+2*n+"%, 0, 0)"};break;case "bottom":r={transform:"translate3d(0, "+2*n+"%, 0)"};break;case "left":r={transform:"translate3d("+-2*n+"%, 0, 0)"};break;default:r={transform:"scale3d("+(i=0.01*(100-n))+", "+i+", "+i+")"}}break;case "zoom":var i=0.01*(100-n);switch(e){case "top":case "right":case "bottom":case "left":default:r={transform:"scale3d("+i+", "+i+", "+i+")"}}break;case "flip":switch(e){case "right":r={transform:"perspective(2000px) rotateY("+Math.ceil(0.9*n)+"deg)"};break;case "left":r={transform:"perspective(2000px) rotateY("+-1*Math.ceil(0.9*n)+"deg)"};break;case "top":default:r={transform:"perspective(2000px) rotateX("+Math.ceil(0.9*n)+"deg)"};break;case "bottom":r={transform:"perspective(2000px) rotateX("+-1*Math.ceil(0.9*n)+"deg)"}}break;case "fold":switch(e){case "top":r={transform:"perspective(2000px) rotateX("+-1*Math.ceil(0.9*n)+"deg)"};break;case "bottom":r={transform:"perspective(2000px) rotateX("+Math.ceil(0.9*n)+"deg)"};break;case "left":r={transform:"perspective(2000px) rotateY("+Math.ceil(0.9*n)+"deg)"};break;case "right":default:r={transform:"perspective(2000px) rotateY("+-1*Math.ceil(0.9*n)+"deg)"}}break;case "roll":switch(e){case "right":case "bottom":r={transform:"rotateZ("+-1*Math.ceil(3.6*n)+"deg)"};break;case "top":case "left":default:r={transform:"rotateZ("+Math.ceil(3.6*n)+"deg)"}}}return r})(v,m,_)),n.isEmptyObject(p)||e.css(d?n.extend(p,{transition:"transform 0s ease-in"}):p),e.addClass("et_animated"),e.addClass(r),e.addClass(i),!i)){var w=parseInt(o),y=parseInt(a);setTimeout(function(){wt(e)},w+y),d&&!n.isEmptyObject(p)&&setTimeout(function(){e.css("transition","")},w+y+50)}}}function gt(t){if("undefined"!=typeof et_animation_data&&et_animation_data.length>0){var n=$,X='';n("body").css("overflow-x","hidden"),n("#page-container").css("overflow-y","hidden");for(var e=0;e<et_animation_data.length;e+=1){var r=et_animation_data[e];if(r.class&&r.style&&r.repeat&&r.duration&&r.delay&&r.intensity&&r.starting_opacity&&r.speed_curve){var i=n(".tippy-popper ."+r.class),o=Ot(),a="desktop"===o;X=o;var s="";a||(s+="_"+o);var c=a||void 0===r["style"+s]?r.style:r["style"+s],u=a||void 0===r["repeat"+s]?r.repeat:r["repeat"+s],l=a||void 0===r["duration"+s]?r.duration:r["duration"+s],d=a||void 0===r["delay"+s]?r.delay:r["delay"+s],f=a||void 0===r["intensity"+s]?r.intensity:r["intensity"+s],p=a||void 0===r["starting_opacity"+s]?r.starting_opacity:r["starting_opacity"+s],_=a||void 0===r["speed_curve"+s]?r.speed_curve:r["speed_curve"+s];i.attr({"data-animation-style":c,"data-animation-repeat":"once"===u?"":"infinite","data-animation-duration":l,"data-animation-delay":d,"data-animation-intensity":f,"data-animation-starting-opacity":p,"data-animation-speed-curve":_}),!0===t?i.hasClass("et_pb_circle_counter")?(ht(i,{offset:"100%",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),mt(n(this.element)))}}),ht(i,{offset:"bottom-in-view",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),mt(n(this.element)))}})):i.hasClass("et_pb_number_counter")?(ht(i,{offset:"100%",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),mt(n(this.element))}}),ht(i,{offset:"bottom-in-view",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),mt(n(this.element))}})):ht(i,{offset:"100%",handler:function(){mt(n(this.element))}}):mt(i)}}}}function bt(t){var e=!1;if("undefined"!=typeof et_animation_data&&et_animation_data.length>0){for(var n=0;n<et_animation_data.length;n+=1){var r=et_animation_data[n];if(r.class&&t.hasClass(r.class)){e=!0;break}}}return e}function wt(t){if(!t.hasClass("infinite")){t.is(".et_pb_section")&&t.is(".roll")&&n(et_frontend_scripts.builderCssContainerPrefix+", "+et_frontend_scripts.builderCssLayoutPrefix).css("overflow-x",""),t.removeClass(["et_animated","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"].join(" ")),t.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",left:""}),t.addClass("et_had_animation")}}function Ot(){var c=$(window),t=c.width(),e="desktop";return t<=980&&t>479?(e="tablet"):t<=479&&(e="phone"),e}function resetDiviAnimations(dmpRef){$(dmpRef+' .et_pb_section.et_animated').each(function(){var e=$(this);e.removeClass('et_animated')});return;$(dmpRef+' .et_had_animation').each(function(){var e=$(this),c=e.attr("data-animation-starting-opacity"),f=isNaN(parseInt(c))?0:0.01*parseInt(c);e.css('opacity',f);e.removeClass('et_had_animation')})}function setContainerWidth(divimegapro_container,options){let divimegaproBodyWidth;divimegaproBodyWidth=dmpGetContainerWidth(options);divimegapro_container.css('width',divimegaproBodyWidth)}function getScrollTop(){if(typeof pageYOffset!='undefined'){return pageYOffset}else{var B=document.body;var D=document.documentElement;D=(D.clientHeight)?D:B;return D.scrollTop}}function toggleSrcInPlayableTags(str){str.find("iframe").each(function(){var src=$(this).data('src');$(this).attr('src',src)});return str}function getActiveDiviMegaPro(){var divimegapro=null,divimegapro_id=null,elemID=null,placement=null;divimegapro=$('body').find('.divimegapro.open');if(!divimegapro){divimegapro=$('body').find('.divimegapro.close')}if(divimegapro.length){var divimegaproArr=divimegapro.attr('id').split('-'),divimegapro_id=divimegaproArr[1]}return divimegapro_id}function removeMonarch(){if($('.divimegapro .et_social_inline').length){$('.divimegapro .et_social_inline').parents('.et_pb_row').remove()}removeMonarchTimer=setTimeout(removeMonarch,500)}function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}function isDiviMobile(){diviMobile=false;let body=$('body');if(body.hasClass('et_mobile_device')){diviMobile=true}if(body.hasClass('osx')&&body.hasClass('et_mobile_device_not_ipad')&&!body.hasClass('iphone')){diviMobile=false}return diviMobile}function isIphone(){isIphone=false;if($('body').hasClass('iphone')){isIphone=true}return isIphone}}var checkCursorOverDiviTabTimer=0,checkDiviTabElem;function enableDiviURLLinkModules(parent){var e=$;"undefined"!=typeof et_link_options_data&&et_link_options_data.length>0&&e.each(et_link_options_data,function(t,n){if(n.class&&n.url&&n.target){var r=e(parent+" ."+n.class);r.off("click"),r.on("click",function(t){if((t.target!==t.currentTarget&&!et_is_click_exception(e(t.target)))||t.target===t.currentTarget){t.stopPropagation();var r=n.url;if(((r=(r=r.replace(/&#91;/g,"[")).replace(/&#93;/g,"]")),"_blank"===n.target)){return void window.open(r)}if("#product_reviews_tab"===r){var i=e(".reviews_tab a");i.length>0&&(i.trigger("click"),et_pb_smooth_scroll(i,void 0,800),history.pushState(null,"",r))}else{r&&"#"===r[0]&&e(r).length?(et_pb_smooth_scroll(e(r),void 0,800),history.pushState(null,"",r)):(window.location=r)}}}),r.on("click","a, button",function(t){et_is_click_exception(e(this))||t.stopPropagation()})}})}function et_is_click_exception($element){for(var is_exception=!1,click_exceptions=[".et_pb_toggle_title",".mejs-container *",".et_pb_contact_field input",".et_pb_contact_field textarea",".et_pb_contact_field_checkbox *",".et_pb_contact_field_radio *",".et_pb_contact_captcha",".et_pb_tabs_controls a",".flex-control-nav *",".et_pb_menu__search-button",".et_pb_menu__close-search-button",".et_pb_menu__search-container *",".et_pb_fullwidth_header_scroll *"],r=0;r<click_exceptions.length;r+=1){if($element.is(click_exceptions[r])){is_exception=!0;break}}return is_exception}function enableDiviToggleHover(parent){if(typeof parent==='undefined'){var parent=''}if(parent===''){parent='.divimegapro '}$(parent+'.et_pb_toggle').on('mouseenter',function(e){$(this).children('.et_pb_toggle_title').trigger("click")})}function enableDiviTabHover(parent){if(typeof parent==='undefined'){var parent=''}if(parent===''){parent='.divimegapro'}$(parent+' .et_pb_tabs .et_pb_tabs_controls > [class^="et_pb_tab_"]').on('mouseenter',function(e){if(!$(this).hasClass('et_pb_tab_active')){checkDiviTabElem=$(this)}else{checkDiviTabElem=false}if(checkDiviTabElem!==false){checkDiviTab()}})}function checkDiviTab(){var clickTrigger=false;if(checkDiviTabElem!==false&&typeof checkDiviTabElem==='object'&&checkDiviTabElem.is(':hover')){if(checkDiviTabElem){if(!checkDiviTabElem.hasClass('et_pb_tab_active')){clearTimeout(checkCursorOverDiviTabTimer);checkDiviTabElem.find('a').trigger("click")}if(checkDiviTabElem.hasClass('et_pb_tab_active')){clickTrigger=true}}if(clickTrigger===false){checkCursorOverDiviTabTimer=setTimeout(checkDiviTab,150)}}else{clearTimeout(checkCursorOverDiviTabTimer)}}function callDiviLifeFuncs(parent){removeMobileMenuDuplicates();enableDiviURLLinkModules(parent);if(typeof diviTabsToggleHover!=='undefined'){if(diviTabsToggleHover===true){enableDiviTabHover(parent);enableDiviToggleHover(parent)}}}function removeMobileMenuDuplicates(){var mobile_menu_selector=$('.et_pb_menu__wrap .et_mobile_menu').filter(":hidden");$(mobile_menu_selector).each(function(){$('[id="'+this.id+'"]:gt(0)').remove()})}function fixMobileMenuAfterDiviInit(){let viewportWidth=$(window).width();if(viewportWidth>=themesBreakpoint['Extra']){$(".et-menu-nav ul.nav").each(function(t){et_duplicate_menu($(this),$(this).closest(".et_pb_module").find("div .mobile_nav"),"mobile_menu"+(t+1),"et_mobile_menu")})}}function clickOffMobileLinkswithHashtagOnly(){let $et_pb_menu=$(".mobile_nav").filter(":visible");$et_pb_menu.length>0&&$et_pb_menu.each((function(t){let s=$(this),link=s.find("a[data-divimegaproid]");link.each((function(){let href=$(this).attr('href');if(href!==undefined){let hash=href[0];if(hash=='#'&&href.length>1){let refTippyInstance=$(this)._tippy;if(typeof refTippyInstance==='undefined'){$(this).off("click")}}}}))}))}if(typeof diviTabsToggleHoverGlobal!=='undefined'){if(diviTabsToggleHoverGlobal===true){callDiviLifeFuncs()}}function updateDiviIframes(selector){var $dibiframes=$(selector+' iframe'),ratio=1;setTimeout(function(){$dibiframes.each(function(){ratio=$(this).attr("data-ratio");if(ratio===undefined){var iframeHeight=this.height;if(iframeHeight==''){iframeHeight=$(this).height()}var iframeWidth=this.width;if(iframeWidth==''){iframeWidth=$(this).width()}iframeHeight=parseInt(iframeHeight);iframeWidth=parseInt(iframeWidth);ratio=iframeHeight/iframeWidth;$(this).attr("data-ratio",ratio)}else{ratio=$(this).attr('data-ratio')}$(this).removeAttr("width").removeAttr("height");var width=$(this).parent().width();$(this).width(width).height(width*ratio)})},50)}};function dmpGetOptions(divimegapro_id){let dmmdataObject=divimegapros[divimegapro_id]['options'],options=[];if(dmmdataObject===null){return null}options['animation']=dmmdataObject['animation'];options['mobileonly']=false;if(dmmdataObject['mobileonly']==1){options['mobileonly']=true}options['triggertype']='mouseenter click';if(dmmdataObject['triggertype']=='click'){options['triggertype']='click'}options['placement']=dmmdataObject['placement'];options['distance']=parseInt(dmmdataObject['margintopbottom']);if(!dmpIsInt(options['distance'])){options['distance']=0}if(dmmdataObject['megaprowidth']==='custom'){options['megaprowidth']=dmmdataObject['megaprowidthcustom']}else{options['megaprowidth']=dmmdataObject['megaprowidth']+'%'}options['megaprofixedheight']=parseInt(dmmdataObject['megaprofixedheight']);if(!dmpIsInt(options['megaprofixedheight'])){options['megaprofixedheight']=0}options['position']=dmmdataObject['dmp_cssposition'];if(dmmdataObject['exittype']=='click'){options['exittype']='click'}else{options['exittype']='hover'}if(dmmdataObject['exitdelay']!=0&&dmmdataObject['exitdelay']!=''&&options['exittype']=='hover'&&dmmdataObject['exitdelay']>0){options['delay']=dmmdataObject['exitdelay']*1000}else{options['delay']=0.1}options['arrowEnabled']=false;if(dmmdataObject['enable_arrow']==1){options['arrowEnabled']=true}options['centerHorizontal']=false;if(dmmdataObject['dmp_enablecenterhorizontal']==1){options['centerHorizontal']=true}options['arrowType']=dmmdataObject['arrowfeature_type'];options['bgcolor']=dmmdataObject['bgcolor'];options['fontcolor']=dmmdataObject['fontcolor'];return options}function dmpGetContainerWidth(options){let megaprowidth=options['megaprowidth']+'',divimegaproBodyWidth;const viewportWidth=$(window).width();const customWidthInt=parseInt(megaprowidth);const customWidthUnit=megaprowidth.replace(/[0-9]/g,'');if(customWidthUnit==''){divimegaproBodyWidth=customWidthInt+'px'}else{divimegaproBodyWidth=customWidthInt+customWidthUnit}if(customWidthInt>viewportWidth&&customWidthUnit=='px'){divimegaproBodyWidth=viewportWidth+'px'};if(customWidthUnit==='%'){divimegaproBodyWidth=Math.round(((customWidthInt/100)*viewportWidth))+'px'}if(megaprowidth=='100%'){divimegaproBodyWidth=viewportWidth+'px'}return divimegaproBodyWidth}function dmpIsInt(value){var x;return isNaN(value)?!1:(x=parseFloat(value),(0|x)===x)}function dmpRemoveDiviFix(divimegapro_selector){var divimegapro=$(divimegapro_selector),et_pb_section_first=divimegapro.find('.et_pb_section_first');et_pb_section_first.removeAttr('style');et_pb_section_first.data('fix-page-container','off')}function deflectFocusControl(instance,wasFocusOnCloseBtn){if($('.et_mobile_menu').is(':hidden')===false){return false}if(typeof wasFocusOnCloseBtn==='undefined'){var wasFocusOnCloseBtn=false}let insTippyContent=instance.reference._tippy.popperChildren.content,tippyContent=$(insTippyContent);let firstLink=tippyContent.find('.et_pb_section a').eq(0);if(firstLink.length>0){firstLink.trigger("focus")}else{let firstInput=tippyContent.find('.et_pb_section input').eq(0);if(firstInput.length>0){firstInput.trigger("focus")}else{let firstSelect=tippyContent.find('.et_pb_section select').eq(0);if(firstSelect.length>0){firstSelect.trigger("focus")}else{let firstButton=tippyContent.find('.et_pb_section button').eq(0);if(firstButton.length>0){firstButton.trigger("focus")}else{let event=insTippyContent.getAttribute('data-eventtype');if((event==='focus'||event==='click')&&wasFocusOnCloseBtn===false){let popperContentCloseBtnContainer=tippyContent.find('.divimegapro-close-container'),popperContentCloseBtn=tippyContent.find('.divimegapro-close');popperContentCloseBtnContainer.addClass('divimegapro-close-container-visible');popperContentCloseBtn.attr('aria-disabled','false');popperContentCloseBtn.trigger("focus")}}}}}}function dmmTogglePlayableTags(selector_ref,wait,state){var $=jQuery;if(!selector_ref){selector_ref=''}if(!wait){wait=1}setTimeout(function(){$(selector_ref+' .divimegapro').find("iframe").not('[id^="gform"], .frm-g-recaptcha, [name^="__privateStripeFrame"], [id^="forminator"], [data-form-name]').each(function(){let iframe=$(this),iframeParent=iframe.parent(),iframeSRC=iframe.attr('src');if(iframeSRC!==undefined&&iframeSRC!==''){let srcG='google.com/',isGoogleSRC=iframeSRC.indexOf(srcG),srcPDF='.pdf',isPDF=iframeSRC.indexOf(srcPDF),srcFB='facebook.com/',isFB=iframeSRC.indexOf(srcFB),srcYT='youtube.com/',isYT=iframeSRC.indexOf(srcYT);if(iframeParent.attr("class")=='gm-style'){return}if(iframeParent.hasClass("fluid-width-video-wrapper")&&isYT===-1){return}if(isGoogleSRC===-1&&isPDF===-1&&isFB===-1){var iframeOuterHTML=iframe.prop("outerHTML"),src=iframeOuterHTML.match(/src=[\'"]?((?:(?!\/>|>|"|\'|\s).)+)"/);if(src!==null){src=src[0];var datasrc=src.replace("src","data-src");datasrc=datasrc.concat(' src="about:blank"');if(state==='hide'){iframeOuterHTML=iframeOuterHTML.replace(/data-src=".*?"/i,'');iframeOuterHTML=iframeOuterHTML.replace(/src=".*?"/i,datasrc)}else if(state==='show'){iframeOuterHTML=iframeOuterHTML.replace('src=""',src)}$(iframeOuterHTML).insertAfter(iframe);iframe.remove()}}}})},wait);$(selector_ref+' .divimegapro').find("video").each(function(){let pThis=$(this),parentHasClassLwpVideoAutoplay=pThis.parents('.lwp-video-autoplay'),parentHasClassDmpVideoAutoplay=pThis.parents('.dmp-video-autoplay'),parentHasClassRemoveControls=pThis.parents('.dmp-video-autoplay-removecontrols');if(parentHasClassRemoveControls.length>0){pThis.removeAttr('controls')}if(selector_ref!=''&&(parentHasClassDmpVideoAutoplay.length>0||parentHasClassRemoveControls.length>0||parentHasClassLwpVideoAutoplay.length>0)){setTimeout(function(){pThis.get(0).play()},1)}else{pThis.get(0).pause()}});$(selector_ref+' .divimegapro').find("audio").each(function(){this.pause();this.currentTime=0})}dmmTogglePlayableTags('',1000);$(window).on('resize orientationchange',function(){dmpRemoveDiviFix('.divimegapro.dmp-open');if(divimegapro_singleton['header']===true||divimegapro_singleton['content']===true||divimegapro_singleton['footer']===true){if(dmpSingletonInstance!==null&&dmpSingletonInstance.popperInstance!==null&&dmpSingletonInstance.state.isEnabled===true&&dmpSingletonInstance.state.isDestroyed===false){let dmpid=dmpSingletonInstance.popper.getAttribute('data-dmpid');if(dmpid!==null){let tippySingleton=$('.tippy-popper-singleton'),tippySingletonContent=$('.tippy-popper-singleton .tippy-tooltip .tippy-content'),divimegapro_container_selector='#divimegapro-container-'+dmpid,divimegapro_container=$(divimegapro_container_selector),divimegaproBodyOnSingleton=$(divimegapro_container_selector+'-clone-singleton'),options=dmpGetOptions(dmpid),divimegaproBodyWidth;divimegaproBodyWidth=dmpGetContainerWidth(options);dmpSingletonInstance.popper.style.width=divimegaproBodyWidth;divimegaproBodyOnSingleton.css({'width':divimegaproBodyWidth});tippySingleton.css({'width':divimegaproBodyWidth});tippySingletonContent.css({'width':divimegaproBodyWidth});setTimeout(function(){dmpSingletonInstance.popperInstance.update()},1)}}}});let wait=1;if($('body').hasClass('et_mobile_device')){wait=1000}pagecontainer.prepend(divimegaprowrapper);const overlayLoader=$('.overlay-loader .loader'),overlayLoaderExists=overlayLoader.length>0;if(overlayLoaderExists===true){var dmp_loaderTimer=setInterval(function(){if(overlayLoader.css('display')==='none'){$('.divimegapro-wrapper .divimegapro').mainDiviMegaPro();clearInterval(dmp_loaderTimer)}},100)}else{setTimeout(function(){$('.divimegapro-wrapper .divimegapro').mainDiviMegaPro()},wait)}const dmp_etmobilemenu=setInterval(function(){let target=document.querySelectorAll('.et_mobile_menu');if(target.length>0){$('.divimegapro-wrapper .divimegapro').mainDiviMegaPro();clearInterval(dmp_etmobilemenu)}},500);let gravityFormPages=document.querySelectorAll('.gform_page');if(gravityFormPages.length>0){const gformpage_observeConfig={attributes:false,childList:true,subtree:false},gformpage_callback=function(mutationsList,observer){mutationsList.forEach(function(mutation){if(mutation.type==='childList'){$('.divimegapro-wrapper .divimegapro').mainDiviMegaPro()}})},gformpage_observer=new MutationObserver(gformpage_callback),gform_wrapper=document.querySelector('.gform_wrapper');gformpage_observer.observe(gform_wrapper,gformpage_observeConfig)}})(jQuery,window,document)},delayMegaProInit);clearInterval(dmp_nTimer)}},50)})();