!function(e,t){"use strict";var a={init:function(){var s={"jet-mega-menu.default":a.widgetMegaMenu,"jet-custom-menu.default":a.widgetCustomMenu,"jet-mobile-menu.default":a.widgetMobileMenu};e.each(s,function(e,a){t.hooks.addAction("frontend/element_ready/"+e,a)})},widgetMegaMenu:function(e){let t=e.find(".jet-mega-menu--location-elementor"),s=e.find(".jet-mobile-menu");if(a.shouldSetIpadProCookie())return document.cookie="is_ipad_pro=true; path=/",void location.reload();if(t[0]){let e=t.data("settings");t.JetMegaMenu({menuId:e.menuId,menuUniqId:e.menuUniqId,rollUp:e.rollUp,layout:e.layout,subEvent:e.subEvent,subCloseBehavior:e.subCloseBehavior,mouseLeaveDelay:e.mouseLeaveDelay,subTrigger:e.subTrigger,breakpoint:e.breakpoint,megaWidthType:e.megaWidthType,megaWidthSelector:e.megaWidthSelector,megaAjaxLoad:e.megaAjaxLoad,signatures:e.signatures,classes:{instance:"jet-mega-menu",menuContainer:"jet-mega-menu-container",menuList:"jet-mega-menu-list",menuItem:"jet-mega-menu-item",menuItemLink:"jet-mega-menu-item__link",subMenuContainer:"jet-mega-menu-sub-menu",subMenuList:"jet-mega-menu-sub-menu__list",megaContainer:"jet-mega-menu-mega-container"}})}if(s[0]){let e=s.attr("id"),t=s.data("menu-id")||!1,a=s.data("menu-options")||{};window.jetMenu.createMobileRenderInstance(e,t,a)}},widgetCustomMenu:function(s){var o=s.find(".jet-custom-nav"),n=o.data("trigger"),i="click"===n?o.data("target")||"item":null,r=null,m="click"===n&&"sub_icon"===i?".jet-dropdown-arrow":".jet-custom-nav__item > a";if(o.length){a.mobileAndTabletcheck()?(s.on("touchstart",".jet-custom-nav__item > a, .jet-custom-nav__item > a .jet-dropdown-arrow",function(t){var a=e(t.currentTarget).closest(".jet-custom-nav__item");a.data("offset",a.offset().top),a.data("windowOffset",e(window).scrollTop())}),s.on("touchend",".jet-custom-nav__item > a, .jet-custom-nav__item > a .jet-dropdown-arrow",function(t){var a,s,o,n,i,r,m;if(t.preventDefault(),t.stopPropagation(),o=(s=(a=e(t.currentTarget)).closest(".jet-custom-nav__item")).siblings(".jet-custom-nav__item.menu-item-has-children"),n=e("> a",s).attr("href"),i=e(".jet-custom-nav__sub:first, .jet-custom-nav__mega-sub:first",s),r=s.data("offset"),m=s.data("windowOffset"),r!==s.offset().top||m!==e(window).scrollTop())return!1;if(a.hasClass("jet-dropdown-arrow")){if(!i[0])return!1;const t=s.hasClass("hover-state");s.hasClass("hover-state")?(s.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",s).removeClass("hover-state"),s.find(".jet-custom-nav__mega-sub").css({maxWidth:""})):(s.addClass("hover-state"),v(),o.removeClass("hover-state").each(function(){const t=e(this);t.is('[aria-haspopup="true"]')&&t.attr("aria-expanded","false"),t.find('> a > .jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded","false")}),o.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",o).removeClass("hover-state")),s.is('[aria-haspopup="true"]')&&s.attr("aria-expanded",t?"false":"true"),s.find('> a > .jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded",t?"false":"true")}if(a.hasClass("jet-custom-nav__item-link")){if("#"!==n)return window.location=n,!1;s.hasClass("hover-state")?(s.removeClass("hover-state"),s.find(".jet-custom-nav__mega-sub").css({maxWidth:""}),e(".jet-custom-nav__item.menu-item-has-children",s).removeClass("hover-state")):(s.addClass("hover-state"),o.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",o).removeClass("hover-state"),v())}})):"click"===n?(s.on("click",m,function(t){const a=e(t.currentTarget).closest(".jet-custom-nav__item");if(!a.hasClass("menu-item-has-children"))return;t.preventDefault(),t.stopPropagation();const s=a.hasClass("hover-state");a.hasClass("hover-state")?(a.removeClass("hover-state"),a.find(".jet-custom-nav__mega-sub").css({maxWidth:""})):(a.addClass("hover-state"),a.siblings().removeClass("hover-state"),v()),a.is('[aria-haspopup="true"]')&&a.attr("aria-expanded",s?"false":"true"),a.find('.jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded",s?"false":"true")}),s.on("mouseleave",".jet-custom-nav__item",c)):(s.on("mouseenter mouseover",".jet-custom-nav__item",function(t){(r=e(t.target).parents(".jet-custom-nav__item")).is('[aria-haspopup="true"]')&&r.attr("aria-expanded","true"),r.addClass("hover-state"),v()}),s.on("mouseleave",".jet-custom-nav__item",c));var d=!1;l(),e(window).on("resize.JetCustomMenu orientationchange.JetCustomMenu",l);var u=!1}function c(t){const a=e(t.currentTarget).closest(".jet-custom-nav__item"),s=t.relatedTarget;a.has(s).length>0||((r=a).removeClass("hover-state"),a.is('[aria-haspopup="true"]')&&a.attr("aria-expanded","false"),a.find('.jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded","false"),a.find(".jet-custom-nav__mega-sub").css({maxWidth:""}))}function l(){d&&(o.find(".jet-custom-nav__sub.inverse-side").removeClass("inverse-side"),d=!1);var a=e(".jet-custom-nav__sub",o),s=e("body").outerWidth(!0);"mobile"===t.getCurrentDeviceMode()||a[0]&&a.each(function(){var t=e(this),a=t.offset().left,o=a+t.outerWidth(!0);"right-side"==(t.closest(".jet-custom-nav").hasClass("jet-custom-nav--dropdown-left-side")?"left-side":"right-side")?o>=s?(t.addClass("inverse-side"),t.find(".jet-custom-nav__sub").addClass("inverse-side"),d=!0):a<0&&(t.removeClass("inverse-side"),t.find(".jet-custom-nav__sub").removeClass("inverse-side")):a<0?(t.addClass("inverse-side"),t.find(".jet-custom-nav__sub").addClass("inverse-side"),d=!0):o>=s&&(t.removeClass("inverse-side"),t.find(".jet-custom-nav__sub").removeClass("inverse-side"))})}function v(){var a=e(".jet-custom-nav__mega-sub",o),s=e("body").outerWidth(!0),n="mobile"===t.getCurrentDeviceMode();u&&(a.css({maxWidth:""}),u=!1),n||a[0]&&a.each(function(){const t=e(this);if(!t.is(":visible")||!t[0].getClientRects().length)return;const a=t.css("transform");let o=0;if(a&&"none"!==a){const e=a.replace(/matrix\(|\)/g,"").split(",");e.length>=6&&(o=parseFloat(e[4])||0)}const n=t.offset().left-o,i=t.outerWidth(!0);if(!i)return;const r=n+i;"right-side"==(t.closest(".jet-custom-nav").hasClass("jet-custom-nav--dropdown-left-side")?"left-side":"right-side")?r>=s?(t.css({maxWidth:s-n-10}),u=!0):t.css({maxWidth:""}):n<0?(t.css({maxWidth:r-10}),u=!0):t.css({maxWidth:""})})}},widgetMobileMenu:function(e){let t=e.find(".jet-mobile-menu"),a=t.attr("id"),s=t.data("menu-id")||!1,o=t.data("menu-options")||{};t[0]&&window.jetMenu.createMobileRenderInstance(a,s,o)},shouldSetIpadProCookie:function(){const e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t=navigator.userAgent.includes("Macintosh"),a="ontouchend"in window||navigator.maxTouchPoints>1,s=-1===document.cookie.indexOf("is_ipad_pro=true");return e&&t&&a&&s},mobileAndTabletcheck:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t}};e(window).on("elementor/frontend/init",a.init)}(jQuery,window.elementorFrontend);
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,(function(e){"use strict";function t(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof t(e).Element||e instanceof Element}function r(e){return e instanceof t(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof t(e).ShadowRoot||e instanceof ShadowRoot)}var i=Math.max,a=Math.min,s=Math.round;function f(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(f())}function p(e,o,i){void 0===o&&(o=!1),void 0===i&&(i=!1);var a=e.getBoundingClientRect(),f=1,p=1;o&&r(e)&&(f=e.offsetWidth>0&&s(a.width)/e.offsetWidth||1,p=e.offsetHeight>0&&s(a.height)/e.offsetHeight||1);var u=(n(e)?t(e):window).visualViewport,l=!c()&&i,d=(a.left+(l&&u?u.offsetLeft:0))/f,h=(a.top+(l&&u?u.offsetTop:0))/p,m=a.width/f,v=a.height/p;return{width:m,height:v,top:h,right:d+m,bottom:h+v,left:d,x:d,y:h}}function u(e){var n=t(e);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function l(e){return e?(e.nodeName||"").toLowerCase():null}function d(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(d(e)).left+u(e).scrollLeft}function m(e){return t(e).getComputedStyle(e)}function v(e){var t=m(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function y(e,n,o){void 0===o&&(o=!1);var i,a,f=r(n),c=r(n)&&function(e){var t=e.getBoundingClientRect(),n=s(t.width)/e.offsetWidth||1,r=s(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(n),m=d(n),y=p(e,c,o),g={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(f||!f&&!o)&&(("body"!==l(n)||v(m))&&(g=(i=n)!==t(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:u(i)),r(n)?((b=p(n,!0)).x+=n.clientLeft,b.y+=n.clientTop):m&&(b.x=h(m))),{x:y.left+g.scrollLeft-b.x,y:y.top+g.scrollTop-b.y,width:y.width,height:y.height}}function g(e){var t=p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function b(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||d(e)}function x(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:r(e)&&v(e)?e:x(b(e))}function w(e,n){var r;void 0===n&&(n=[]);var o=x(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=t(o),s=i?[a].concat(a.visualViewport||[],v(o)?o:[]):o,f=n.concat(s);return i?f:f.concat(w(b(s)))}function O(e){return["table","td","th"].indexOf(l(e))>=0}function j(e){return r(e)&&"fixed"!==m(e).position?e.offsetParent:null}function E(e){for(var n=t(e),i=j(e);i&&O(i)&&"static"===m(i).position;)i=j(i);return i&&("html"===l(i)||"body"===l(i)&&"static"===m(i).position)?n:i||function(e){var t=/firefox/i.test(f());if(/Trident/i.test(f())&&r(e)&&"fixed"===m(e).position)return null;var n=b(e);for(o(n)&&(n=n.host);r(n)&&["html","body"].indexOf(l(n))<0;){var i=m(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||n}var D="top",A="bottom",L="right",P="left",M="auto",k=[D,A,L,P],W="start",B="end",H="viewport",T="popper",R=k.reduce((function(e,t){return e.concat([t+"-"+W,t+"-"+B])}),[]),S=[].concat(k,[M]).reduce((function(e,t){return e.concat([t,t+"-"+W,t+"-"+B])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function C(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function N(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I(e,r,o){return r===H?N(function(e,n){var r=t(e),o=d(e),i=r.visualViewport,a=o.clientWidth,s=o.clientHeight,f=0,p=0;if(i){a=i.width,s=i.height;var u=c();(u||!u&&"fixed"===n)&&(f=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:f+h(e),y:p}}(e,o)):n(r)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(r,o):N(function(e){var t,n=d(e),r=u(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=i(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=i(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+h(e),c=-r.scrollTop;return"rtl"===m(o||n).direction&&(f+=i(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:f,y:c}}(d(e)))}function _(e,t,o,s){var f="clippingParents"===t?function(e){var t=w(b(e)),o=["absolute","fixed"].indexOf(m(e).position)>=0&&r(e)?E(e):e;return n(o)?t.filter((function(e){return n(e)&&C(e,o)&&"body"!==l(e)})):[]}(e):[].concat(t),c=[].concat(f,[o]),p=c[0],u=c.reduce((function(t,n){var r=I(e,n,s);return t.top=i(r.top,t.top),t.right=a(r.right,t.right),t.bottom=a(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),I(e,p,s));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function F(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function z(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?F(o):null,a=o?U(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case D:t={x:s,y:n.y-r.height};break;case A:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:f};break;case P:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?z(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case W:t[c]=t[c]-(n[p]/2-r[p]/2);break;case B:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function J(e,t){void 0===t&&(t={});var r=t,o=r.placement,i=void 0===o?e.placement:o,a=r.strategy,s=void 0===a?e.strategy:a,f=r.boundary,c=void 0===f?"clippingParents":f,u=r.rootBoundary,l=void 0===u?H:u,h=r.elementContext,m=void 0===h?T:h,v=r.altBoundary,y=void 0!==v&&v,g=r.padding,b=void 0===g?0:g,x=Y("number"!=typeof b?b:G(b,k)),w=m===T?"reference":T,O=e.rects.popper,j=e.elements[y?w:m],E=_(n(j)?j:j.contextElement||d(e.elements.popper),c,l,s),P=p(e.elements.reference),M=X({reference:P,element:O,strategy:"absolute",placement:i}),W=N(Object.assign({},O,M)),B=m===T?W:P,R={top:E.top-B.top+x.top,bottom:B.bottom-E.bottom+x.bottom,left:E.left-B.left+x.left,right:B.right-E.right+x.right},S=e.modifiersData.offset;if(m===T&&S){var V=S[i];Object.keys(R).forEach((function(e){var t=[L,A].indexOf(e)>=0?1:-1,n=[D,A].indexOf(e)>=0?"y":"x";R[e]+=V[n]*t}))}return R}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function Q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Z(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,o=void 0===r?[]:r,i=t.defaultOptions,a=void 0===i?K:i;return function(e,t,r){void 0===r&&(r=a);var i,s,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],p=!1,u={state:f,setOptions:function(r){var i="function"==typeof r?r(f.options):r;l(),f.options=Object.assign({},a,f.options,i),f.scrollParents={reference:n(e)?w(e):e.contextElement?w(e.contextElement):[],popper:w(t)};var s,p,d=function(e){var t=q(e);return V.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,f.options.modifiers),p=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(p).map((function(e){return p[e]}))));return f.orderedModifiers=d.filter((function(e){return e.enabled})),f.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:f,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!p){var e=f.elements,t=e.reference,n=e.popper;if(Q(t,n)){f.rects={reference:y(t,E(n),"fixed"===f.options.strategy),popper:g(n)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(e){return f.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<f.orderedModifiers.length;r++)if(!0!==f.reset){var o=f.orderedModifiers[r],i=o.fn,a=o.options,s=void 0===a?{}:a,c=o.name;"function"==typeof i&&(f=i({state:f,options:s,name:c,instance:u})||f)}else f.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){u.forceUpdate(),e(f)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(i())}))}))),s}),destroy:function(){l(),p=!0}};if(!Q(e,t))return u;function l(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(r).then((function(e){!p&&r.onFirstUpdate&&r.onFirstUpdate(e)})),u}}var $={passive:!0};var ee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var n=e.state,r=e.instance,o=e.options,i=o.scroll,a=void 0===i||i,s=o.resize,f=void 0===s||s,c=t(n.elements.popper),p=[].concat(n.scrollParents.reference,n.scrollParents.popper);return a&&p.forEach((function(e){e.addEventListener("scroll",r.update,$)})),f&&c.addEventListener("resize",r.update,$),function(){a&&p.forEach((function(e){e.removeEventListener("scroll",r.update,$)})),f&&c.removeEventListener("resize",r.update,$)}},data:{}};var te={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var n,r=e.popper,o=e.popperRect,i=e.placement,a=e.variation,f=e.offsets,c=e.position,p=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,v=f.x,y=void 0===v?0:v,g=f.y,b=void 0===g?0:g,x="function"==typeof l?l({x:y,y:b}):{x:y,y:b};y=x.x,b=x.y;var w=f.hasOwnProperty("x"),O=f.hasOwnProperty("y"),j=P,M=D,k=window;if(u){var W=E(r),H="clientHeight",T="clientWidth";if(W===t(r)&&"static"!==m(W=d(r)).position&&"absolute"===c&&(H="scrollHeight",T="scrollWidth"),W=W,i===D||(i===P||i===L)&&a===B)M=A,b-=(h&&W===k&&k.visualViewport?k.visualViewport.height:W[H])-o.height,b*=p?1:-1;if(i===P||(i===D||i===A)&&a===B)j=L,y-=(h&&W===k&&k.visualViewport?k.visualViewport.width:W[T])-o.width,y*=p?1:-1}var R,S=Object.assign({position:c},u&&ne),V=!0===l?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:s(n*o)/o||0,y:s(r*o)/o||0}}({x:y,y:b},t(r)):{x:y,y:b};return y=V.x,b=V.y,p?Object.assign({},S,((R={})[M]=O?"0":"",R[j]=w?"0":"",R.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",R)):Object.assign({},S,((n={})[M]=O?b+"px":"",n[j]=w?y+"px":"",n.transform="",n))}var oe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:F(t.placement),variation:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ie={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});r(o)&&l(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};var ae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=S.reduce((function(e,n){return e[n]=function(e,t,n){var r=F(e),o=[P,D].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[P,L].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},se={left:"right",right:"left",bottom:"top",top:"bottom"};function fe(e){return e.replace(/left|right|bottom|top/g,(function(e){return se[e]}))}var ce={start:"end",end:"start"};function pe(e){return e.replace(/start|end/g,(function(e){return ce[e]}))}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,f=n.allowedAutoPlacements,c=void 0===f?S:f,p=U(r),u=p?s?R:R.filter((function(e){return U(e)===p})):k,l=u.filter((function(e){return c.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,n){return t[n]=J(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[F(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,h=void 0===d||d,m=n.allowedAutoPlacements,v=t.options.placement,y=F(v),g=f||(y===v||!h?[fe(v)]:function(e){if(F(e)===M)return[];var t=fe(e);return[pe(e),t,pe(t)]}(v)),b=[v].concat(g).reduce((function(e,n){return e.concat(F(n)===M?ue(t,{placement:n,boundary:p,rootBoundary:u,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,j=!0,E=b[0],k=0;k<b.length;k++){var B=b[k],H=F(B),T=U(B)===W,R=[D,A].indexOf(H)>=0,S=R?"width":"height",V=J(t,{placement:B,boundary:p,rootBoundary:u,altBoundary:l,padding:c}),q=R?T?L:P:T?A:D;x[S]>w[S]&&(q=fe(q));var C=fe(q),N=[];if(i&&N.push(V[H]<=0),s&&N.push(V[q]<=0,V[C]<=0),N.every((function(e){return e}))){E=B,j=!1;break}O.set(B,N)}if(j)for(var I=function(e){var t=b.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},_=h?3:1;_>0;_--){if("break"===I(_))break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function de(e,t,n){return i(e,a(t,n))}var he={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=void 0===o||o,f=n.altAxis,c=void 0!==f&&f,p=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,m=void 0===h||h,v=n.tetherOffset,y=void 0===v?0:v,b=J(t,{boundary:p,rootBoundary:u,padding:d,altBoundary:l}),x=F(t.placement),w=U(t.placement),O=!w,j=z(x),M="x"===j?"y":"x",k=t.modifiersData.popperOffsets,B=t.rects.reference,H=t.rects.popper,T="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,R="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(k){if(s){var q,C="y"===j?D:P,N="y"===j?A:L,I="y"===j?"height":"width",_=k[j],X=_+b[C],Y=_-b[N],G=m?-H[I]/2:0,K=w===W?B[I]:H[I],Q=w===W?-H[I]:-B[I],Z=t.elements.arrow,$=m&&Z?g(Z):{width:0,height:0},ee=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[C],ne=ee[N],re=de(0,B[I],$[I]),oe=O?B[I]/2-G-re-te-R.mainAxis:K-re-te-R.mainAxis,ie=O?-B[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=t.elements.arrow&&E(t.elements.arrow),se=ae?"y"===j?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(q=null==S?void 0:S[j])?q:0,ce=_+ie-fe,pe=de(m?a(X,_+oe-fe-se):X,_,m?i(Y,ce):Y);k[j]=pe,V[j]=pe-_}if(c){var ue,le="x"===j?D:P,he="x"===j?A:L,me=k[M],ve="y"===M?"height":"width",ye=me+b[le],ge=me-b[he],be=-1!==[D,P].indexOf(x),xe=null!=(ue=null==S?void 0:S[M])?ue:0,we=be?ye:me-B[ve]-H[ve]-xe+R.altAxis,Oe=be?me+B[ve]+H[ve]-xe-R.altAxis:ge,je=m&&be?function(e,t,n){var r=de(e,t,n);return r>n?n:r}(we,me,Oe):de(m?we:ye,me,m?Oe:ge);k[M]=je,V[M]=je-me}t.modifiersData[r]=V}},requiresIfExists:["offset"]};var me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=F(n.placement),f=z(s),c=[P,L].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,k))}(o.padding,n),u=g(i),l="y"===f?D:P,d="y"===f?A:L,h=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],m=a[f]-n.rects.reference[f],v=E(i),y=v?"y"===f?v.clientHeight||0:v.clientWidth||0:0,b=h/2-m/2,x=p[l],w=y-u[c]-p[d],O=y/2-u[c]/2+b,j=de(x,O,w),M=f;n.modifiersData[r]=((t={})[M]=j,t.centerOffset=j-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&C(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ve(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[D,L,A,P].some((function(t){return e[t]>=0}))}var ge={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=J(t,{elementContext:"reference"}),s=J(t,{altBoundary:!0}),f=ve(a,r),c=ve(s,o,i),p=ye(f),u=ye(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}},be=Z({defaultModifiers:[ee,te,oe,ie]}),xe=[ee,te,oe,ie,ae,le,he,me,ge],we=Z({defaultModifiers:xe});e.applyStyles=ie,e.arrow=me,e.computeStyles=oe,e.createPopper=we,e.createPopperLite=be,e.defaultModifiers=xe,e.detectOverflow=J,e.eventListeners=ee,e.flip=le,e.hide=ge,e.offset=ae,e.popperGenerator=Z,e.popperOffsets=te,e.preventOverflow=he,Object.defineProperty(e,"__esModule",{value:!0})}));
(function (global, factory){
typeof exports==='object'&&typeof module!=='undefined' ? module.exports=factory(require('@popperjs/core')) :
typeof define==='function'&&define.amd ? define(['@popperjs/core'], factory) :
(global=global||self, global.tippy=factory(global.Popper));
}(this, (function (core){ 'use strict';
var css=".tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:\"\";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}";
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);
}}
var isBrowser=typeof window!=='undefined'&&typeof document!=='undefined';
var isIE11=isBrowser ?
!!window.msCrypto:false;
var ROUND_ARROW='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>';
var BOX_CLASS="tippy-box";
var CONTENT_CLASS="tippy-content";
var BACKDROP_CLASS="tippy-backdrop";
var ARROW_CLASS="tippy-arrow";
var SVG_ARROW_CLASS="tippy-svg-arrow";
var TOUCH_OPTIONS={
passive: true,
capture: true
};
var TIPPY_DEFAULT_APPEND_TO=function TIPPY_DEFAULT_APPEND_TO(){
return document.body;
};
function hasOwnProperty(obj, key){
return {}.hasOwnProperty.call(obj, key);
}
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;
}
function isType(value, type){
var str={}.toString.call(value);
return str.indexOf('[object')===0&&str.indexOf(type + "]") > -1;
}
function invokeWithArgsOrReturn(value, args){
return typeof value==='function' ? value.apply(void 0, args):value;
}
function debounce(fn, ms){
if(ms===0){
return fn;
}
var timeout;
return function (arg){
clearTimeout(timeout);
timeout=setTimeout(function (){
fn(arg);
}, ms);
};}
function removeProperties(obj, keys){
var clone=Object.assign({}, obj);
keys.forEach(function (key){
delete clone[key];
});
return clone;
}
function splitBySpaces(value){
return value.split(/\s+/).filter(Boolean);
}
function normalizeToArray(value){
return [].concat(value);
}
function pushIfUnique(arr, value){
if(arr.indexOf(value)===-1){
arr.push(value);
}}
function unique(arr){
return arr.filter(function (item, index){
return arr.indexOf(item)===index;
});
}
function getBasePlacement(placement){
return placement.split('-')[0];
}
function arrayFrom(value){
return [].slice.call(value);
}
function removeUndefinedProps(obj){
return Object.keys(obj).reduce(function (acc, key){
if(obj[key]!==undefined){
acc[key]=obj[key];
}
return acc;
}, {});
}
function div(){
return document.createElement('div');
}
function isElement(value){
return ['Element', 'Fragment'].some(function (type){
return isType(value, type);
});
}
function isNodeList(value){
return isType(value, 'NodeList');
}
function isMouseEvent(value){
return isType(value, 'MouseEvent');
}
function isReferenceElement(value){
return !!(value&&value._tippy&&value._tippy.reference===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));
}
function setTransitionDuration(els, value){
els.forEach(function (el){
if(el){
el.style.transitionDuration=value + "ms";
}});
}
function setVisibilityState(els, state){
els.forEach(function (el){
if(el){
el.setAttribute('data-state', state);
}});
}
function getOwnerDocument(elementOrElements){
var _element$ownerDocumen;
var _normalizeToArray=normalizeToArray(elementOrElements),
element=_normalizeToArray[0];
return element!=null&&(_element$ownerDocumen=element.ownerDocument)!=null&&_element$ownerDocumen.body ? element.ownerDocument:document;
}
function isCursorOutsideInteractiveBorder(popperTreeData, event){
var clientX=event.clientX,
clientY=event.clientY;
return popperTreeData.every(function (_ref){
var popperRect=_ref.popperRect,
popperState=_ref.popperState,
props=_ref.props;
var interactiveBorder=props.interactiveBorder;
var basePlacement=getBasePlacement(popperState.placement);
var offsetData=popperState.modifiersData.offset;
if(!offsetData){
return true;
}
var topDistance=basePlacement==='bottom' ? offsetData.top.y:0;
var bottomDistance=basePlacement==='top' ? offsetData.bottom.y:0;
var leftDistance=basePlacement==='right' ? offsetData.left.x:0;
var rightDistance=basePlacement==='left' ? offsetData.right.x:0;
var exceedsTop=popperRect.top - clientY + topDistance > interactiveBorder;
var exceedsBottom=clientY - popperRect.bottom - bottomDistance > interactiveBorder;
var exceedsLeft=popperRect.left - clientX + leftDistance > interactiveBorder;
var exceedsRight=clientX - popperRect.right - rightDistance > interactiveBorder;
return exceedsTop||exceedsBottom||exceedsLeft||exceedsRight;
});
}
function updateTransitionEndListener(box, action, listener){
var method=action + "EventListener";
['transitionend', 'webkitTransitionEnd'].forEach(function (event){
box[method](event, listener);
});
}
function actualContains(parent, child){
var target=child;
while (target){
var _target$getRootNode;
if(parent.contains(target)){
return true;
}
target=target.getRootNode==null ? void 0:(_target$getRootNode=target.getRootNode())==null ? void 0:_target$getRootNode.host;
}
return false;
}
var currentInput={
isTouch: false
};
var lastMouseMoveTime=0;
function onDocumentTouchStart(){
if(currentInput.isTouch){
return;
}
currentInput.isTouch=true;
if(window.performance){
document.addEventListener('mousemove', onDocumentMouseMove);
}}
function onDocumentMouseMove(){
var now=performance.now();
if(now - lastMouseMoveTime < 20){
currentInput.isTouch=false;
document.removeEventListener('mousemove', onDocumentMouseMove);
}
lastMouseMoveTime=now;
}
function onWindowBlur(){
var activeElement=document.activeElement;
if(isReferenceElement(activeElement)){
var instance=activeElement._tippy;
if(activeElement.blur&&!instance.state.isVisible){
activeElement.blur();
}}
}
function bindGlobalEventListeners(){
document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
window.addEventListener('blur', onWindowBlur);
}
function createMemoryLeakWarning(method){
var txt=method==='destroy' ? 'n already-':' ';
return [method + "() was called on a" + txt + "destroyed instance. This is a no-op but", 'indicates a potential memory leak.'].join(' ');
}
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),
'color: #00C584; font-size: 1.3em; font-weight: bold;',
'line-height: 1.5',
'color: #a6a095;'];
}
var visitedMessages;
{
resetVisitedMessages();
}
function resetVisitedMessages(){
visitedMessages=new Set();
}
function warnWhen(condition, message){
if(condition&&!visitedMessages.has(message)){
var _console;
visitedMessages.add(message);
(_console=console).warn.apply(_console, getFormattedMessage(message));
}}
function errorWhen(condition, message){
if(condition&&!visitedMessages.has(message)){
var _console2;
visitedMessages.add(message);
(_console2=console).error.apply(_console2, getFormattedMessage(message));
}}
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 not supported as an argument', 'for virtual positioning. Use props.getReferenceClientRect instead.'].join(' '));
}
var pluginProps={
animateFill: false,
followCursor: false,
inlinePositioning: false,
sticky: false
};
var renderProps={
allowHTML: false,
animation: 'fade',
arrow: true,
content: '',
inertia: false,
maxWidth: 350,
role: 'tooltip',
theme: '',
zIndex: 9999
};
var defaultProps=Object.assign({
appendTo: TIPPY_DEFAULT_APPEND_TO,
aria: {
content: 'auto',
expanded: 'auto'
},
delay: 0,
duration: [300, 250],
getReferenceClientRect: null,
hideOnClick: true,
ignoreAttributes: false,
interactive: false,
interactiveBorder: 2,
interactiveDebounce: 0,
moveTransition: '',
offset: [0, 10],
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(){},
onClickOutside: function onClickOutside(){},
placement: 'top',
plugins: [],
popperOptions: {},
render: null,
showOnCreate: false,
touch: true,
trigger: 'mouseenter focus',
triggerTarget: null
}, pluginProps, renderProps);
var defaultKeys=Object.keys(defaultProps);
var setDefaultProps=function setDefaultProps(partialProps){
{
validateProps(partialProps, []);
}
var keys=Object.keys(partialProps);
keys.forEach(function (key){
defaultProps[key]=partialProps[key];
});
};
function getExtendedPassedProps(passedProps){
var plugins=passedProps.plugins||[];
var pluginProps=plugins.reduce(function (acc, plugin){
var name=plugin.name,
defaultValue=plugin.defaultValue;
if(name){
var _name;
acc[name]=passedProps[name]!==undefined ? passedProps[name]:(_name=defaultProps[name])!=null ? _name:defaultValue;
}
return acc;
}, {});
return Object.assign({}, passedProps, pluginProps);
}
function getDataAttributeProps(reference, plugins){
var propKeys=plugins ? Object.keys(getExtendedPassedProps(Object.assign({}, 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;
}
function evaluateProps(reference, props){
var out=Object.assign({}, props, {
content: invokeWithArgsOrReturn(props.content, [reference])
}, props.ignoreAttributes ? {}:getDataAttributeProps(reference, props.plugins));
out.aria=Object.assign({}, defaultProps.aria, out.aria);
out.aria={
expanded: out.aria.expanded==='auto' ? props.interactive:out.aria.expanded,
content: out.aria.content==='auto' ? props.interactive ? null:'describedby':out.aria.content
};
return out;
}
function validateProps(partialProps, plugins){
if(partialProps===void 0){
partialProps={};}
if(plugins===void 0){
plugins=[];
}
var keys=Object.keys(partialProps);
keys.forEach(function (prop){
var nonPluginProps=removeProperties(defaultProps, Object.keys(pluginProps));
var didPassUnknownProp = !hasOwnProperty(nonPluginProps, prop);
if(didPassUnknownProp){
didPassUnknownProp=plugins.filter(function (plugin){
return plugin.name===prop;
}).length===0;
}
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', 'All props: https://atomiks.github.io/tippyjs/v6/all-props/\n', 'Plugins: https://atomiks.github.io/tippyjs/v6/plugins/'].join(' '));
});
}
var innerHTML=function innerHTML(){
return 'innerHTML';
};
function dangerouslySetInnerHTML(element, html){
element[innerHTML()]=html;
}
function createArrowElement(value){
var arrow=div();
if(value===true){
arrow.className=ARROW_CLASS;
}else{
arrow.className=SVG_ARROW_CLASS;
if(isElement(value)){
arrow.appendChild(value);
}else{
dangerouslySetInnerHTML(arrow, value);
}}
return arrow;
}
function setContent(content, props){
if(isElement(props.content)){
dangerouslySetInnerHTML(content, '');
content.appendChild(props.content);
}else if(typeof props.content!=='function'){
if(props.allowHTML){
dangerouslySetInnerHTML(content, props.content);
}else{
content.textContent=props.content;
}}
}
function getChildren(popper){
var box=popper.firstElementChild;
var boxChildren=arrayFrom(box.children);
return {
box: box,
content: boxChildren.find(function (node){
return node.classList.contains(CONTENT_CLASS);
}),
arrow: boxChildren.find(function (node){
return node.classList.contains(ARROW_CLASS)||node.classList.contains(SVG_ARROW_CLASS);
}),
backdrop: boxChildren.find(function (node){
return node.classList.contains(BACKDROP_CLASS);
})
};}
function render(instance){
var popper=div();
var box=div();
box.className=BOX_CLASS;
box.setAttribute('data-state', 'hidden');
box.setAttribute('tabindex', '-1');
var content=div();
content.className=CONTENT_CLASS;
content.setAttribute('data-state', 'hidden');
setContent(content, instance.props);
popper.appendChild(box);
box.appendChild(content);
onUpdate(instance.props, instance.props);
function onUpdate(prevProps, nextProps){
var _getChildren=getChildren(popper),
box=_getChildren.box,
content=_getChildren.content,
arrow=_getChildren.arrow;
if(nextProps.theme){
box.setAttribute('data-theme', nextProps.theme);
}else{
box.removeAttribute('data-theme');
}
if(typeof nextProps.animation==='string'){
box.setAttribute('data-animation', nextProps.animation);
}else{
box.removeAttribute('data-animation');
}
if(nextProps.inertia){
box.setAttribute('data-inertia', '');
}else{
box.removeAttribute('data-inertia');
}
box.style.maxWidth=typeof nextProps.maxWidth==='number' ? nextProps.maxWidth + "px":nextProps.maxWidth;
if(nextProps.role){
box.setAttribute('role', nextProps.role);
}else{
box.removeAttribute('role');
}
if(prevProps.content!==nextProps.content||prevProps.allowHTML!==nextProps.allowHTML){
setContent(content, instance.props);
}
if(nextProps.arrow){
if(!arrow){
box.appendChild(createArrowElement(nextProps.arrow));
}else if(prevProps.arrow!==nextProps.arrow){
box.removeChild(arrow);
box.appendChild(createArrowElement(nextProps.arrow));
}}else if(arrow){
box.removeChild(arrow);
}}
return {
popper: popper,
onUpdate: onUpdate
};}
render.$$tippy=true;
var idCounter=1;
var mouseMoveListeners=[];
var mountedInstances=[];
function createTippy(reference, passedProps){
var props=evaluateProps(reference, Object.assign({}, defaultProps, getExtendedPassedProps(removeUndefinedProps(passedProps))));
var showTimeout;
var hideTimeout;
var scheduleHideAnimationFrame;
var isVisibleFromClick=false;
var didHideDueToDocumentMouseDown=false;
var didTouchMove=false;
var ignoreOnFirstUpdate=false;
var lastTriggerEvent;
var currentTransitionEndListener;
var onFirstUpdate;
var listeners=[];
var debouncedOnMouseMove=debounce(onMouseMove, props.interactiveDebounce);
var currentTarget;
var id=idCounter++;
var popperInstance=null;
var plugins=unique(props.plugins);
var state={
isEnabled: true,
isVisible: false,
isDestroyed: false,
isMounted: false,
isShown: false
};
var instance={
id: id,
reference: reference,
popper: div(),
popperInstance: popperInstance,
props: props,
state: state,
plugins: plugins,
clearDelayTimeouts: clearDelayTimeouts,
setProps: setProps,
setContent: setContent,
show: show,
hide: hide,
hideWithInteractivity: hideWithInteractivity,
enable: enable,
disable: disable,
unmount: unmount,
destroy: destroy
};
if(!props.render){
{
errorWhen(true, 'render() function has not been supplied.');
}
return instance;
}
var _props$render=props.render(instance),
popper=_props$render.popper,
onUpdate=_props$render.onUpdate;
popper.setAttribute('data-tippy-root', '');
popper.id="tippy-" + instance.id;
instance.popper=popper;
reference._tippy=instance;
popper._tippy=instance;
var pluginsHooks=plugins.map(function (plugin){
return plugin.fn(instance);
});
var hasAriaExpanded=reference.hasAttribute('aria-expanded');
addListeners();
handleAriaExpandedAttribute();
handleStyles();
invokeHook('onCreate', [instance]);
if(props.showOnCreate){
scheduleShow();
}
popper.addEventListener('mouseenter', function (){
if(instance.props.interactive&&instance.state.isVisible){
instance.clearDelayTimeouts();
}});
popper.addEventListener('mouseleave', function (){
if(instance.props.interactive&&instance.props.trigger.indexOf('mouseenter') >=0){
getDocument().addEventListener('mousemove', debouncedOnMouseMove);
}});
return instance;
function getNormalizedTouchSettings(){
var touch=instance.props.touch;
return Array.isArray(touch) ? touch:[touch, 0];
}
function getIsCustomTouchBehavior(){
return getNormalizedTouchSettings()[0]==='hold';
}
function getIsDefaultRenderFn(){
var _instance$props$rende;
return !!((_instance$props$rende=instance.props.render)!=null&&_instance$props$rende.$$tippy);
}
function getCurrentTarget(){
return currentTarget||reference;
}
function getDocument(){
var parent=getCurrentTarget().parentNode;
return parent ? getOwnerDocument(parent):document;
}
function getDefaultTemplateChildren(){
return getChildren(popper);
}
function getDelay(isShow){
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 handleStyles(fromHide){
if(fromHide===void 0){
fromHide=false;
}
popper.style.pointerEvents=instance.props.interactive&&!fromHide ? '':'none';
popper.style.zIndex="" + instance.props.zIndex;
}
function invokeHook(hook, args, shouldInvokePropsHook){
if(shouldInvokePropsHook===void 0){
shouldInvokePropsHook=true;
}
pluginsHooks.forEach(function (pluginHooks){
if(pluginHooks[hook]){
pluginHooks[hook].apply(pluginHooks, args);
}});
if(shouldInvokePropsHook){
var _instance$props;
(_instance$props=instance.props)[hook].apply(_instance$props, args);
}}
function handleAriaContentAttribute(){
var aria=instance.props.aria;
if(!aria.content){
return;
}
var attr="aria-" + aria.content;
var id=popper.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(hasAriaExpanded||!instance.props.aria.expanded){
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(){
getDocument().removeEventListener('mousemove', debouncedOnMouseMove);
mouseMoveListeners=mouseMoveListeners.filter(function (listener){
return listener!==debouncedOnMouseMove;
});
}
function onDocumentPress(event){
if(currentInput.isTouch){
if(didTouchMove||event.type==='mousedown'){
return;
}}
var actualTarget=event.composedPath&&event.composedPath()[0]||event.target;
if(instance.props.interactive&&actualContains(popper, actualTarget)){
return;
}
if(normalizeToArray(instance.props.triggerTarget||reference).some(function (el){
return actualContains(el, actualTarget);
})){
if(currentInput.isTouch){
return;
}
if(instance.state.isVisible&&instance.props.trigger.indexOf('click') >=0){
return;
}}else{
invokeHook('onClickOutside', [instance, event]);
}
if(instance.props.hideOnClick===true){
instance.clearDelayTimeouts();
instance.hide();
didHideDueToDocumentMouseDown=true;
setTimeout(function (){
didHideDueToDocumentMouseDown=false;
});
if(!instance.state.isMounted){
removeDocumentPress();
}}
}
function onTouchMove(){
didTouchMove=true;
}
function onTouchStart(){
didTouchMove=false;
}
function addDocumentPress(){
var doc=getDocument();
doc.addEventListener('mousedown', onDocumentPress, true);
doc.addEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
doc.addEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
doc.addEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
}
function removeDocumentPress(){
var doc=getDocument();
doc.removeEventListener('mousedown', onDocumentPress, true);
doc.removeEventListener('touchend', onDocumentPress, TOUCH_OPTIONS);
doc.removeEventListener('touchstart', onTouchStart, TOUCH_OPTIONS);
doc.removeEventListener('touchmove', onTouchMove, TOUCH_OPTIONS);
}
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){
var box=getDefaultTemplateChildren().box;
function listener(event){
if(event.target===box){
updateTransitionEndListener(box, 'remove', listener);
callback();
}}
if(duration===0){
return callback();
}
updateTransitionEndListener(box, 'remove', currentTransitionEndListener);
updateTransitionEndListener(box, '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 addListeners(){
if(getIsCustomTouchBehavior()){
on('touchstart', onTrigger, {
passive: true
});
on('touchend', onMouseLeave, {
passive: true
});
}
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(isIE11 ? 'focusout':'blur', onBlurOrFocusOut);
break;
case 'focusin':
on('focusout', onBlurOrFocusOut);
break;
}});
}
function removeListeners(){
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 _lastTriggerEvent;
var shouldScheduleClickHide=false;
if(!instance.state.isEnabled||isEventListenerStopped(event)||didHideDueToDocumentMouseDown){
return;
}
var wasFocused=((_lastTriggerEvent=lastTriggerEvent)==null ? void 0:_lastTriggerEvent.type)==='focus';
lastTriggerEvent=event;
currentTarget=event.currentTarget;
handleAriaExpandedAttribute();
if(!instance.state.isVisible&&isMouseEvent(event)){
mouseMoveListeners.forEach(function (listener){
return listener(event);
});
}
if(event.type==='click'&&(instance.props.trigger.indexOf('mouseenter') < 0||isVisibleFromClick)&&instance.props.hideOnClick!==false&&instance.state.isVisible){
shouldScheduleClickHide=true;
}else{
scheduleShow(event);
}
if(event.type==='click'){
isVisibleFromClick = !shouldScheduleClickHide;
}
if(shouldScheduleClickHide&&!wasFocused){
scheduleHide(event);
}}
function onMouseMove(event){
var target=event.target;
var isCursorOverReferenceOrPopper=getCurrentTarget().contains(target)||popper.contains(target);
if(event.type==='mousemove'&&isCursorOverReferenceOrPopper){
return;
}
var popperTreeData=getNestedPopperTree().concat(popper).map(function (popper){
var _instance$popperInsta;
var instance=popper._tippy;
var state=(_instance$popperInsta=instance.popperInstance)==null ? void 0:_instance$popperInsta.state;
if(state){
return {
popperRect: popper.getBoundingClientRect(),
popperState: state,
props: props
};}
return null;
}).filter(Boolean);
if(isCursorOutsideInteractiveBorder(popperTreeData, event)){
cleanupInteractiveMouseListeners();
scheduleHide(event);
}}
function onMouseLeave(event){
var shouldBail=isEventListenerStopped(event)||instance.props.trigger.indexOf('click') >=0&&isVisibleFromClick;
if(shouldBail){
return;
}
if(instance.props.interactive){
instance.hideWithInteractivity(event);
return;
}
scheduleHide(event);
}
function onBlurOrFocusOut(event){
if(instance.props.trigger.indexOf('focusin') < 0&&event.target!==getCurrentTarget()){
return;
}
if(instance.props.interactive&&event.relatedTarget&&popper.contains(event.relatedTarget)){
return;
}
scheduleHide(event);
}
function isEventListenerStopped(event){
return currentInput.isTouch ? getIsCustomTouchBehavior()!==event.type.indexOf('touch') >=0:false;
}
function createPopperInstance(){
destroyPopperInstance();
var _instance$props2=instance.props,
popperOptions=_instance$props2.popperOptions,
placement=_instance$props2.placement,
offset=_instance$props2.offset,
getReferenceClientRect=_instance$props2.getReferenceClientRect,
moveTransition=_instance$props2.moveTransition;
var arrow=getIsDefaultRenderFn() ? getChildren(popper).arrow:null;
var computedReference=getReferenceClientRect ? {
getBoundingClientRect: getReferenceClientRect,
contextElement: getReferenceClientRect.contextElement||getCurrentTarget()
}:reference;
var tippyModifier={
name: '$$tippy',
enabled: true,
phase: 'beforeWrite',
requires: ['computeStyles'],
fn: function fn(_ref2){
var state=_ref2.state;
if(getIsDefaultRenderFn()){
var _getDefaultTemplateCh=getDefaultTemplateChildren(),
box=_getDefaultTemplateCh.box;
['placement', 'reference-hidden', 'escaped'].forEach(function (attr){
if(attr==='placement'){
box.setAttribute('data-placement', state.placement);
}else{
if(state.attributes.popper["data-popper-" + attr]){
box.setAttribute("data-" + attr, '');
}else{
box.removeAttribute("data-" + attr);
}}
});
state.attributes.popper={};}}
};
var modifiers=[{
name: 'offset',
options: {
offset: offset
}}, {
name: 'preventOverflow',
options: {
padding: {
top: 2,
bottom: 2,
left: 5,
right: 5
}}
}, {
name: 'flip',
options: {
padding: 5
}}, {
name: 'computeStyles',
options: {
adaptive: !moveTransition
}}, tippyModifier];
if(getIsDefaultRenderFn()&&arrow){
modifiers.push({
name: 'arrow',
options: {
element: arrow,
padding: 3
}});
}
modifiers.push.apply(modifiers, (popperOptions==null ? void 0:popperOptions.modifiers)||[]);
instance.popperInstance=core.createPopper(computedReference, popper, Object.assign({}, popperOptions, {
placement: placement,
onFirstUpdate: onFirstUpdate,
modifiers: modifiers
}));
}
function destroyPopperInstance(){
if(instance.popperInstance){
instance.popperInstance.destroy();
instance.popperInstance=null;
}}
function mount(){
var appendTo=instance.props.appendTo;
var parentNode;
var node=getCurrentTarget();
if(instance.props.interactive&&appendTo===TIPPY_DEFAULT_APPEND_TO||appendTo==='parent'){
parentNode=node.parentNode;
}else{
parentNode=invokeWithArgsOrReturn(appendTo, [node]);
}
if(!parentNode.contains(popper)){
parentNode.appendChild(popper);
}
instance.state.isMounted=true;
createPopperInstance();
{
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/v6/accessibility/#interactivity'].join(' '));
}}
function getNestedPopperTree(){
return arrayFrom(popper.querySelectorAll('[data-tippy-root]'));
}
function scheduleShow(event){
instance.clearDelayTimeouts();
if(event){
invokeHook('onTrigger', [instance, event]);
}
addDocumentPress();
var delay=getDelay(true);
var _getNormalizedTouchSe=getNormalizedTouchSettings(),
touchValue=_getNormalizedTouchSe[0],
touchDelay=_getNormalizedTouchSe[1];
if(currentInput.isTouch&&touchValue==='hold'&&touchDelay){
delay=touchDelay;
}
if(delay){
showTimeout=setTimeout(function (){
instance.show();
}, delay);
}else{
instance.show();
}}
function scheduleHide(event){
instance.clearDelayTimeouts();
invokeHook('onUntrigger', [instance, event]);
if(!instance.state.isVisible){
removeDocumentPress();
return;
}
if(instance.props.trigger.indexOf('mouseenter') >=0&&instance.props.trigger.indexOf('click') >=0&&['mouseleave', 'mousemove'].indexOf(event.type) >=0&&isVisibleFromClick){
return;
}
var delay=getDelay(false);
if(delay){
hideTimeout=setTimeout(function (){
if(instance.state.isVisible){
instance.hide();
}}, delay);
}else{
scheduleHideAnimationFrame=requestAnimationFrame(function (){
instance.hide();
});
}}
function enable(){
instance.state.isEnabled=true;
}
function disable(){
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;
}
invokeHook('onBeforeUpdate', [instance, partialProps]);
removeListeners();
var prevProps=instance.props;
var nextProps=evaluateProps(reference, Object.assign({}, prevProps, removeUndefinedProps(partialProps), {
ignoreAttributes: true
}));
instance.props=nextProps;
addListeners();
if(prevProps.interactiveDebounce!==nextProps.interactiveDebounce){
cleanupInteractiveMouseListeners();
debouncedOnMouseMove=debounce(onMouseMove, nextProps.interactiveDebounce);
}
if(prevProps.triggerTarget&&!nextProps.triggerTarget){
normalizeToArray(prevProps.triggerTarget).forEach(function (node){
node.removeAttribute('aria-expanded');
});
}else if(nextProps.triggerTarget){
reference.removeAttribute('aria-expanded');
}
handleAriaExpandedAttribute();
handleStyles();
if(onUpdate){
onUpdate(prevProps, nextProps);
}
if(instance.popperInstance){
createPopperInstance();
getNestedPopperTree().forEach(function (nestedPopper){
requestAnimationFrame(nestedPopper._tippy.popperInstance.forceUpdate);
});
}
invokeHook('onAfterUpdate', [instance, partialProps]);
}
function setContent(content){
instance.setProps({
content: content
});
}
function show(){
{
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('show'));
}
var isAlreadyVisible=instance.state.isVisible;
var isDestroyed=instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
var isTouchAndTouchDisabled=currentInput.isTouch&&!instance.props.touch;
var duration=getValueAtIndexOrReturn(instance.props.duration, 0, defaultProps.duration);
if(isAlreadyVisible||isDestroyed||isDisabled||isTouchAndTouchDisabled){
return;
}
if(getCurrentTarget().hasAttribute('disabled')){
return;
}
invokeHook('onShow', [instance], false);
if(instance.props.onShow(instance)===false){
return;
}
instance.state.isVisible=true;
if(getIsDefaultRenderFn()){
popper.style.visibility='visible';
}
handleStyles();
addDocumentPress();
if(!instance.state.isMounted){
popper.style.transition='none';
}
if(getIsDefaultRenderFn()){
var _getDefaultTemplateCh2=getDefaultTemplateChildren(),
box=_getDefaultTemplateCh2.box,
content=_getDefaultTemplateCh2.content;
setTransitionDuration([box, content], 0);
}
onFirstUpdate=function onFirstUpdate(){
var _instance$popperInsta2;
if(!instance.state.isVisible||ignoreOnFirstUpdate){
return;
}
ignoreOnFirstUpdate=true;
void popper.offsetHeight;
popper.style.transition=instance.props.moveTransition;
if(getIsDefaultRenderFn()&&instance.props.animation){
var _getDefaultTemplateCh3=getDefaultTemplateChildren(),
_box=_getDefaultTemplateCh3.box,
_content=_getDefaultTemplateCh3.content;
setTransitionDuration([_box, _content], duration);
setVisibilityState([_box, _content], 'visible');
}
handleAriaContentAttribute();
handleAriaExpandedAttribute();
pushIfUnique(mountedInstances, instance);
(_instance$popperInsta2=instance.popperInstance)==null ? void 0:_instance$popperInsta2.forceUpdate();
invokeHook('onMount', [instance]);
if(instance.props.animation&&getIsDefaultRenderFn()){
onTransitionedIn(duration, function (){
instance.state.isShown=true;
invokeHook('onShown', [instance]);
});
}};
mount();
}
function hide(){
{
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hide'));
}
var isAlreadyHidden = !instance.state.isVisible;
var isDestroyed=instance.state.isDestroyed;
var isDisabled = !instance.state.isEnabled;
var duration=getValueAtIndexOrReturn(instance.props.duration, 1, defaultProps.duration);
if(isAlreadyHidden||isDestroyed||isDisabled){
return;
}
invokeHook('onHide', [instance], false);
if(instance.props.onHide(instance)===false){
return;
}
instance.state.isVisible=false;
instance.state.isShown=false;
ignoreOnFirstUpdate=false;
isVisibleFromClick=false;
if(getIsDefaultRenderFn()){
popper.style.visibility='hidden';
}
cleanupInteractiveMouseListeners();
removeDocumentPress();
handleStyles(true);
if(getIsDefaultRenderFn()){
var _getDefaultTemplateCh4=getDefaultTemplateChildren(),
box=_getDefaultTemplateCh4.box,
content=_getDefaultTemplateCh4.content;
if(instance.props.animation){
setTransitionDuration([box, content], duration);
setVisibilityState([box, content], 'hidden');
}}
handleAriaContentAttribute();
handleAriaExpandedAttribute();
if(instance.props.animation){
if(getIsDefaultRenderFn()){
onTransitionedOut(duration, instance.unmount);
}}else{
instance.unmount();
}}
function hideWithInteractivity(event){
{
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('hideWithInteractivity'));
}
getDocument().addEventListener('mousemove', debouncedOnMouseMove);
pushIfUnique(mouseMoveListeners, debouncedOnMouseMove);
debouncedOnMouseMove(event);
}
function unmount(){
{
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('unmount'));
}
if(instance.state.isVisible){
instance.hide();
}
if(!instance.state.isMounted){
return;
}
destroyPopperInstance();
getNestedPopperTree().forEach(function (nestedPopper){
nestedPopper._tippy.unmount();
});
if(popper.parentNode){
popper.parentNode.removeChild(popper);
}
mountedInstances=mountedInstances.filter(function (i){
return i!==instance;
});
instance.state.isMounted=false;
invokeHook('onHidden', [instance]);
}
function destroy(){
{
warnWhen(instance.state.isDestroyed, createMemoryLeakWarning('destroy'));
}
if(instance.state.isDestroyed){
return;
}
instance.clearDelayTimeouts();
instance.unmount();
removeListeners();
delete reference._tippy;
instance.state.isDestroyed=true;
invokeHook('onDestroy', [instance]);
}}
function tippy(targets, optionalProps){
if(optionalProps===void 0){
optionalProps={};}
var plugins=defaultProps.plugins.concat(optionalProps.plugins||[]);
{
validateTargets(targets);
validateProps(optionalProps, plugins);
}
bindGlobalEventListeners();
var passedProps=Object.assign({}, 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.defaultProps=defaultProps;
tippy.setDefaultProps=setDefaultProps;
tippy.currentInput=currentInput;
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){
var originalDuration=instance.props.duration;
instance.setProps({
duration: duration
});
instance.hide();
if(!instance.state.isDestroyed){
instance.setProps({
duration: originalDuration
});
}}
});
};
var applyStylesModifier=Object.assign({}, core.applyStyles, {
effect: function effect(_ref){
var state=_ref.state;
var initialStyles={
popper: {
position: state.options.strategy,
left: '0',
top: '0',
margin: '0'
},
arrow: {
position: 'absolute'
},
reference: {}};
Object.assign(state.elements.popper.style, initialStyles.popper);
state.styles=initialStyles;
if(state.elements.arrow){
Object.assign(state.elements.arrow.style, initialStyles.arrow);
}}
});
var createSingleton=function createSingleton(tippyInstances, optionalProps){
var _optionalProps$popper;
if(optionalProps===void 0){
optionalProps={};}
{
errorWhen(!Array.isArray(tippyInstances), ['The first argument passed to createSingleton() must be an array of', 'tippy instances. The passed value was', String(tippyInstances)].join(' '));
}
var individualInstances=tippyInstances;
var references=[];
var triggerTargets=[];
var currentTarget;
var overrides=optionalProps.overrides;
var interceptSetPropsCleanups=[];
var shownOnCreate=false;
function setTriggerTargets(){
triggerTargets=individualInstances.map(function (instance){
return normalizeToArray(instance.props.triggerTarget||instance.reference);
}).reduce(function (acc, item){
return acc.concat(item);
}, []);
}
function setReferences(){
references=individualInstances.map(function (instance){
return instance.reference;
});
}
function enableInstances(isEnabled){
individualInstances.forEach(function (instance){
if(isEnabled){
instance.enable();
}else{
instance.disable();
}});
}
function interceptSetProps(singleton){
return individualInstances.map(function (instance){
var originalSetProps=instance.setProps;
instance.setProps=function (props){
originalSetProps(props);
if(instance.reference===currentTarget){
singleton.setProps(props);
}};
return function (){
instance.setProps=originalSetProps;
};});
}
function prepareInstance(singleton, target){
var index=triggerTargets.indexOf(target);
if(target===currentTarget){
return;
}
currentTarget=target;
var overrideProps=(overrides||[]).concat('content').reduce(function (acc, prop){
acc[prop]=individualInstances[index].props[prop];
return acc;
}, {});
singleton.setProps(Object.assign({}, overrideProps, {
getReferenceClientRect: typeof overrideProps.getReferenceClientRect==='function' ? overrideProps.getReferenceClientRect:function (){
var _references$index;
return (_references$index=references[index])==null ? void 0:_references$index.getBoundingClientRect();
}}));
}
enableInstances(false);
setReferences();
setTriggerTargets();
var plugin={
fn: function fn(){
return {
onDestroy: function onDestroy(){
enableInstances(true);
},
onHidden: function onHidden(){
currentTarget=null;
},
onClickOutside: function onClickOutside(instance){
if(instance.props.showOnCreate&&!shownOnCreate){
shownOnCreate=true;
currentTarget=null;
}},
onShow: function onShow(instance){
if(instance.props.showOnCreate&&!shownOnCreate){
shownOnCreate=true;
prepareInstance(instance, references[0]);
}},
onTrigger: function onTrigger(instance, event){
prepareInstance(instance, event.currentTarget);
}};}};
var singleton=tippy(div(), Object.assign({}, removeProperties(optionalProps, ['overrides']), {
plugins: [plugin].concat(optionalProps.plugins||[]),
triggerTarget: triggerTargets,
popperOptions: Object.assign({}, optionalProps.popperOptions, {
modifiers: [].concat(((_optionalProps$popper=optionalProps.popperOptions)==null ? void 0:_optionalProps$popper.modifiers)||[], [applyStylesModifier])
})
}));
var originalShow=singleton.show;
singleton.show=function (target){
originalShow();
if(!currentTarget&&target==null){
return prepareInstance(singleton, references[0]);
}
if(currentTarget&&target==null){
return;
}
if(typeof target==='number'){
return references[target]&&prepareInstance(singleton, references[target]);
}
if(individualInstances.indexOf(target) >=0){
var ref=target.reference;
return prepareInstance(singleton, ref);
}
if(references.indexOf(target) >=0){
return prepareInstance(singleton, target);
}};
singleton.showNext=function (){
var first=references[0];
if(!currentTarget){
return singleton.show(0);
}
var index=references.indexOf(currentTarget);
singleton.show(references[index + 1]||first);
};
singleton.showPrevious=function (){
var last=references[references.length - 1];
if(!currentTarget){
return singleton.show(last);
}
var index=references.indexOf(currentTarget);
var target=references[index - 1]||last;
singleton.show(target);
};
var originalSetProps=singleton.setProps;
singleton.setProps=function (props){
overrides=props.overrides||overrides;
originalSetProps(props);
};
singleton.setInstances=function (nextInstances){
enableInstances(true);
interceptSetPropsCleanups.forEach(function (fn){
return fn();
});
individualInstances=nextInstances;
enableInstances(false);
setReferences();
setTriggerTargets();
interceptSetPropsCleanups=interceptSetProps(singleton);
singleton.setProps({
triggerTarget: triggerTargets
});
};
interceptSetPropsCleanups=interceptSetProps(singleton);
return singleton;
};
var BUBBLING_EVENTS_MAP={
mouseover: 'mouseenter',
focusin: 'focus',
click: 'click'
};
function delegate(targets, props){
{
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(' '));
}
var listeners=[];
var childTippyInstances=[];
var disabled=false;
var target=props.target;
var nativeProps=removeProperties(props, ['target']);
var parentProps=Object.assign({}, nativeProps, {
trigger: 'manual',
touch: false
});
var childProps=Object.assign({
touch: defaultProps.touch
}, nativeProps, {
showOnCreate: true
});
var returnValue=tippy(targets, parentProps);
var normalizedReturnValue=normalizeToArray(returnValue);
function onTrigger(event){
if(!event.target||disabled){
return;
}
var targetNode=event.target.closest(target);
if(!targetNode){
return;
}
var trigger=targetNode.getAttribute('data-tippy-trigger')||props.trigger||defaultProps.trigger;
if(targetNode._tippy){
return;
}
if(event.type==='touchstart'&&typeof childProps.touch==='boolean'){
return;
}
if(event.type!=='touchstart'&&trigger.indexOf(BUBBLING_EVENTS_MAP[event.type]) < 0){
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, 'touchstart', onTrigger, TOUCH_OPTIONS);
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;
var originalEnable=instance.enable;
var originalDisable=instance.disable;
instance.destroy=function (shouldDestroyChildInstances){
if(shouldDestroyChildInstances===void 0){
shouldDestroyChildInstances=true;
}
if(shouldDestroyChildInstances){
childTippyInstances.forEach(function (instance){
instance.destroy();
});
}
childTippyInstances=[];
removeEventListeners();
originalDestroy();
};
instance.enable=function (){
originalEnable();
childTippyInstances.forEach(function (instance){
return instance.enable();
});
disabled=false;
};
instance.disable=function (){
originalDisable();
childTippyInstances.forEach(function (instance){
return instance.disable();
});
disabled=true;
};
addEventListeners(instance);
}
normalizedReturnValue.forEach(applyMutations);
return returnValue;
}
var animateFill={
name: 'animateFill',
defaultValue: false,
fn: function fn(instance){
var _instance$props$rende;
if(!((_instance$props$rende=instance.props.render)!=null&&_instance$props$rende.$$tippy)){
{
errorWhen(instance.props.animateFill, 'The `animateFill` plugin requires the default render function.');
}
return {};}
var _getChildren=getChildren(instance.popper),
box=_getChildren.box,
content=_getChildren.content;
var backdrop=instance.props.animateFill ? createBackdropElement():null;
return {
onCreate: function onCreate(){
if(backdrop){
box.insertBefore(backdrop, box.firstElementChild);
box.setAttribute('data-animatefill', '');
box.style.overflow='hidden';
instance.setProps({
arrow: false,
animation: 'shift-away'
});
}},
onMount: function onMount(){
if(backdrop){
var transitionDuration=box.style.transitionDuration;
var duration=Number(transitionDuration.replace('ms', ''));
content.style.transitionDelay=Math.round(duration / 10) + "ms";
backdrop.style.transitionDuration=transitionDuration;
setVisibilityState([backdrop], 'visible');
}},
onShow: function onShow(){
if(backdrop){
backdrop.style.transitionDuration='0ms';
}},
onHide: function onHide(){
if(backdrop){
setVisibilityState([backdrop], 'hidden');
}}
};}};
function createBackdropElement(){
var backdrop=div();
backdrop.className=BACKDROP_CLASS;
setVisibilityState([backdrop], 'hidden');
return backdrop;
}
var mouseCoords={
clientX: 0,
clientY: 0
};
var activeInstances=[];
function storeMouseCoords(_ref){
var clientX=_ref.clientX,
clientY=_ref.clientY;
mouseCoords={
clientX: clientX,
clientY: clientY
};}
function addMouseCoordsListener(doc){
doc.addEventListener('mousemove', storeMouseCoords);
}
function removeMouseCoordsListener(doc){
doc.removeEventListener('mousemove', storeMouseCoords);
}
var followCursor={
name: 'followCursor',
defaultValue: false,
fn: function fn(instance){
var reference=instance.reference;
var doc=getOwnerDocument(instance.props.triggerTarget||reference);
var isInternalUpdate=false;
var wasFocusEvent=false;
var isUnmounted=true;
var prevProps=instance.props;
function getIsInitialBehavior(){
return instance.props.followCursor==='initial'&&instance.state.isVisible;
}
function addListener(){
doc.addEventListener('mousemove', onMouseMove);
}
function removeListener(){
doc.removeEventListener('mousemove', onMouseMove);
}
function unsetGetReferenceClientRect(){
isInternalUpdate=true;
instance.setProps({
getReferenceClientRect: null
});
isInternalUpdate=false;
}
function onMouseMove(event){
var isCursorOverReference=event.target ? reference.contains(event.target):true;
var followCursor=instance.props.followCursor;
var clientX=event.clientX,
clientY=event.clientY;
var rect=reference.getBoundingClientRect();
var relativeX=clientX - rect.left;
var relativeY=clientY - rect.top;
if(isCursorOverReference||!instance.props.interactive){
instance.setProps({
getReferenceClientRect: function getReferenceClientRect(){
var rect=reference.getBoundingClientRect();
var x=clientX;
var y=clientY;
if(followCursor==='initial'){
x=rect.left + relativeX;
y=rect.top + relativeY;
}
var top=followCursor==='horizontal' ? rect.top:y;
var right=followCursor==='vertical' ? rect.right:x;
var bottom=followCursor==='horizontal' ? rect.bottom:y;
var left=followCursor==='vertical' ? rect.left:x;
return {
width: right - left,
height: bottom - top,
top: top,
right: right,
bottom: bottom,
left: left
};}});
}}
function create(){
if(instance.props.followCursor){
activeInstances.push({
instance: instance,
doc: doc
});
addMouseCoordsListener(doc);
}}
function destroy(){
activeInstances=activeInstances.filter(function (data){
return data.instance!==instance;
});
if(activeInstances.filter(function (data){
return data.doc===doc;
}).length===0){
removeMouseCoordsListener(doc);
}}
return {
onCreate: create,
onDestroy: destroy,
onBeforeUpdate: function onBeforeUpdate(){
prevProps=instance.props;
},
onAfterUpdate: function onAfterUpdate(_, _ref2){
var followCursor=_ref2.followCursor;
if(isInternalUpdate){
return;
}
if(followCursor!==undefined&&prevProps.followCursor!==followCursor){
destroy();
if(followCursor){
create();
if(instance.state.isMounted&&!wasFocusEvent&&!getIsInitialBehavior()){
addListener();
}}else{
removeListener();
unsetGetReferenceClientRect();
}}
},
onMount: function onMount(){
if(instance.props.followCursor&&!wasFocusEvent){
if(isUnmounted){
onMouseMove(mouseCoords);
isUnmounted=false;
}
if(!getIsInitialBehavior()){
addListener();
}}
},
onTrigger: function onTrigger(_, event){
if(isMouseEvent(event)){
mouseCoords={
clientX: event.clientX,
clientY: event.clientY
};}
wasFocusEvent=event.type==='focus';
},
onHidden: function onHidden(){
if(instance.props.followCursor){
unsetGetReferenceClientRect();
removeListener();
isUnmounted=true;
}}
};}};
function getProps(props, modifier){
var _props$popperOptions;
return {
popperOptions: Object.assign({}, props.popperOptions, {
modifiers: [].concat((((_props$popperOptions=props.popperOptions)==null ? void 0:_props$popperOptions.modifiers)||[]).filter(function (_ref){
var name=_ref.name;
return name!==modifier.name;
}), [modifier])
})
};}
var inlinePositioning={
name: 'inlinePositioning',
defaultValue: false,
fn: function fn(instance){
var reference=instance.reference;
function isEnabled(){
return !!instance.props.inlinePositioning;
}
var placement;
var cursorRectIndex=-1;
var isInternalUpdate=false;
var triedPlacements=[];
var modifier={
name: 'tippyInlinePositioning',
enabled: true,
phase: 'afterWrite',
fn: function fn(_ref2){
var state=_ref2.state;
if(isEnabled()){
if(triedPlacements.indexOf(state.placement)!==-1){
triedPlacements=[];
}
if(placement!==state.placement&&triedPlacements.indexOf(state.placement)===-1){
triedPlacements.push(state.placement);
instance.setProps({
getReferenceClientRect: function getReferenceClientRect(){
return _getReferenceClientRect(state.placement);
}});
}
placement=state.placement;
}}
};
function _getReferenceClientRect(placement){
return getInlineBoundingClientRect(getBasePlacement(placement), reference.getBoundingClientRect(), arrayFrom(reference.getClientRects()), cursorRectIndex);
}
function setInternalProps(partialProps){
isInternalUpdate=true;
instance.setProps(partialProps);
isInternalUpdate=false;
}
function addModifier(){
if(!isInternalUpdate){
setInternalProps(getProps(instance.props, modifier));
}}
return {
onCreate: addModifier,
onAfterUpdate: addModifier,
onTrigger: function onTrigger(_, event){
if(isMouseEvent(event)){
var rects=arrayFrom(instance.reference.getClientRects());
var cursorRect=rects.find(function (rect){
return rect.left - 2 <=event.clientX&&rect.right + 2 >=event.clientX&&rect.top - 2 <=event.clientY&&rect.bottom + 2 >=event.clientY;
});
var index=rects.indexOf(cursorRect);
cursorRectIndex=index > -1 ? index:cursorRectIndex;
}},
onHidden: function onHidden(){
cursorRectIndex=-1;
}};}};
function getInlineBoundingClientRect(currentBasePlacement, boundingRect, clientRects, cursorRectIndex){
if(clientRects.length < 2||currentBasePlacement===null){
return boundingRect;
}
if(clientRects.length===2&&cursorRectIndex >=0&&clientRects[0].left > clientRects[1].right){
return clientRects[cursorRectIndex]||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.state.elements.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)){
if(instance.popperInstance){
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],
render: render
});
tippy.createSingleton=createSingleton;
tippy.delegate=delegate;
tippy.hideAll=hideAll;
tippy.roundArrow=ROUND_ARROW;
return tippy;
})));
(function($, elementor){
'use strict';
var JetTricks={
init: function(){
elementor.hooks.addAction('frontend/element_ready/section', JetTricks.elementorSection);
elementor.hooks.addAction('frontend/element_ready/section', JetTricks.elementorColumn);
elementor.hooks.addAction('frontend/element_ready/container', JetTricks.elementorSection);
elementor.hooks.addAction('frontend/element_ready/container', JetTricks.elementorColumn);
elementor.hooks.addAction('frontend/element_ready/column', JetTricks.elementorColumn);
elementor.hooks.addAction('frontend/element_ready/widget', JetTricks.elementorWidget);
var widgets={
'jet-view-more.default':JetTricks.widgetViewMore,
'jet-unfold.default':JetTricks.widgetUnfold,
'jet-hotspots.default':JetTricks.widgetHotspots
};
$.each(widgets, function(widget, callback){
elementor.hooks.addAction('frontend/element_ready/' + widget, callback);
});
window.elementorFrontend.elements.$window.on('elementor/nested-tabs/activate',
(event, content)=> {
const $content=$(content);
var $button=$content.find('.jet-unfold__button');
$button.off('click.jetUnfold');
JetTricks.initWidgetsHandlers($content);
JetTricks.elementorSection($content);
}
);
var loopCarouselTypes=[
'loop-carousel.post',
'loop-carousel.product',
'loop-carousel.post_taxonomy',
'loop-carousel.product_taxonomy'
];
loopCarouselTypes.forEach(function(carouselType){
elementorFrontend.hooks.addAction('frontend/element_ready/' + carouselType, function($scope, $){
$(window).on('load', function(){
var loopCarousel=$scope.find('.swiper'),
swiperInstance=loopCarousel.data('swiper'),
$button=$scope.find('.jet-unfold__button');
if(swiperInstance&&$button){
$button.off('click.jetUnfold');
JetTricks.initLoopCarouselHandlers($scope);
swiperInstance.on('slideChange', function(){
$button.off('click.jetUnfold');
JetTricks.initLoopCarouselHandlers($scope);
});
}});
});
});
},
initLoopCarouselHandlers: function($selector){
$selector.find('.elementor-widget-jet-unfold').each(function(){
var $this=$(this),
elementType=$this.data('element_type');
if(!elementType){
return;
}
if('widget'===elementType){
elementType=$this.data('widget_type');
window.elementorFrontend.hooks.doAction('frontend/element_ready/widget', $this, $);
}
window.elementorFrontend.hooks.doAction('frontend/element_ready/global', $this, $);
window.elementorFrontend.hooks.doAction('frontend/element_ready/' + elementType, $this, $);
});
},
initWidgetsHandlers: function($selector){
$selector.find('[data-element_type]').each(function(){
var excludeWidgets=[
'jet-woo-product-gallery-slider.default',
'accordion.default',
'jet-form-builder-form.default',
'nav-menu.default'
];
var $this=$(this),
elementType=$this.data('element_type');
if(!elementType){
return;
}
if('widget'===elementType){
elementType=$this.data('widget_type');
if(excludeWidgets.includes(elementType) ){
return;
}
window.elementorFrontend.hooks.doAction('frontend/element_ready/widget', $this, $);
}
window.elementorFrontend.hooks.doAction('frontend/element_ready/global', $this, $);
window.elementorFrontend.hooks.doAction('frontend/element_ready/' + elementType, $this, $);
});
},
elementorSection: function($scope){
var $target=$scope,
sectionId=$scope.data('id'),
editMode=Boolean(elementor.isEditMode()),
jetListing=$target.parents('.elementor-widget-jet-listing-grid').data('id'),
settings={};
if(window.JetTricksSettings&&window.JetTricksSettings.elements_data.sections.hasOwnProperty(sectionId) ){
settings=window.JetTricksSettings.elements_data.sections[ sectionId ];
}
if(editMode){
settings=JetTricks.sectionEditorSettings($scope);
}
if(! settings){
return false;
}
if(jQuery.isEmptyObject(settings) ){
return false;
}
if('false'===settings.particles||''===settings.particles_json){
return false;
}
if(jetListing&&$target.parent().data('elementor-type')==='jet-listing-items'){
sectionId +=jetListing + $target.parents('.jet-listing-grid__item').data('post-id');
}
var particlesId='jet-tricks-particles-instance-' + sectionId,
particlesJson=JSON.parse(settings.particles_json);
$scope.prepend('<div id="' + particlesId + '" class="jet-tricks-particles-section__instance"></div>');
if(typeof tsParticles!=='undefined'&&tsParticles.load&&tsParticles.version&&tsParticles.version.startsWith('3.')){
tsParticles.load({
id: particlesId,
options: particlesJson
});
}else if(typeof tsParticles!=='undefined'&&tsParticles.load){
tsParticles.load(particlesId, particlesJson);
}},
elementorColumn: function($scope){
var $target=$scope,
$parentSection=$scope.closest('.elementor-section'),
isLegacyModeActive = !!$target.find('> .elementor-column-wrap').length,
$window=$(window),
columnId=$target.data('id'),
editMode=Boolean(elementor.isEditMode()),
settings={},
stickyInstance=null,
stickyInstanceOptions={
topSpacing: 50,
bottomSpacing: 50,
containerSelector: isLegacyModeActive ? '.elementor-row':'.elementor-container, .e-con-inner',
innerWrapperSelector: isLegacyModeActive ? '.elementor-column-wrap':'.elementor-widget-wrap',
},
$observerTarget=$target.find('.elementor-element');
if(! editMode){
settings=$target.data('jet-settings');
if($target.hasClass('jet-sticky-column') ){
if(-1!==settings['stickyOn'].indexOf(elementorFrontend.getCurrentDeviceMode()) ){
$target.each(function(){
var $this=$(this),
elementType=$this.data('element_type');
if(settings['behavior']==='fixed'){
initFixedSticky($this, settings);
}else if(elementType!=='container'&&elementType!=='section'){
initSidebarSticky($this, settings, stickyInstanceOptions);
}else if(settings['behavior']==='scroll_until_end'){
initScrollUntilEndSticky($this, settings);
}else{
initDefaultSticky($this, settings);
}});
}}
}
function initFixedSticky($element, settings){
var offsetTop=parseInt(settings['topSpacing'])||0;
var bottomSpacing=parseInt(settings['bottomSpacing'])||0;
var $window=$(window);
var elementId=$element.data('id');
var originalOffsetTop=$element.offset().top;
var originalHeight=$element.outerHeight();
var $allStickyElements=$('.jet-sticky-column').filter(function(){
var $this=$(this);
var elementSettings=$this.data('jet-settings');
return elementSettings&&elementSettings.stickyOn.indexOf(elementorFrontend.getCurrentDeviceMode())!==-1;
});
var currentIndex=$allStickyElements.index($element);
var $nextSticky=currentIndex + 1 < $allStickyElements.length ? $allStickyElements.eq(currentIndex + 1):null;
var $stopper=null;
if($nextSticky){
$stopper=$nextSticky.closest('.elementor-top-section, .e-parent');
if(!$stopper.length){
$stopper=$nextSticky;
}}
const $placeholder=$('<div></div>')
.addClass('jet-sticky-placeholder')
.css({
display: 'none',
height: originalHeight,
width: $element.outerWidth(),
visibility: 'hidden'
});
$element.before($placeholder);
function enableSticky(){
$placeholder.show();
$element.addClass('jet-sticky-container--stuck');
var stopperTop=$stopper?.offset()?.top;
var stopPoint=stopperTop ? (stopperTop - $element.outerHeight() - offsetTop - bottomSpacing):null;
var diff=0;
if(stopPoint&&stopPoint < $window.scrollTop()){
diff=(stopPoint - $window.scrollTop());
}
$element.css({
position: 'fixed',
top: diff + 'px',
transform: `translateY(${offsetTop}px)`,
left: $placeholder.offset().left + 'px',
width: $placeholder.outerWidth() + 'px'
});
}
function disableSticky(){
$placeholder.hide();
$element.removeClass('jet-sticky-container--stuck');
$element.css({
position: '',
top: '',
transform: '',
left: '',
width: ''
});
}
function onScroll(){
var scrollTop=$window.scrollTop();
if(scrollTop >=originalOffsetTop){
enableSticky();
}else{
disableSticky();
}}
function onResize(){
originalOffsetTop=$placeholder.offset().top;
originalHeight=$element.outerHeight();
$placeholder.css({
height: originalHeight,
width: $element.outerWidth()
});
onScroll();
}
let ticking=false;
$window.on('scroll.jetStickyHeader-' + elementId, function(){
if(!ticking){
requestAnimationFrame(function(){
onScroll();
ticking=false;
});
ticking=true;
}});
$window.on('resize.jetStickyHeader-' + elementId, JetTricksTools.debounce(100, onResize));
onScroll();
$window.on('resize.jetStickyHeader-' + elementId, JetTricksTools.debounce(100, function(){
if(-1===settings['stickyOn'].indexOf(elementorFrontend.getCurrentDeviceMode())){
cleanupSticky($element, $placeholder, elementId);
}}));
}
function cleanupSticky($element, $placeholder, elementId){
$placeholder.remove();
$element.css({
position: '',
top: '',
transform: '',
left: '',
width: '',
zIndex: '',
transition: '',
willChange: ''
});
$element.removeClass('jet-sticky-container--stuck');
$window.off('scroll.jetStickyHeader-' + elementId);
$window.off('resize.jetStickyHeader-' + elementId);
}
function initSidebarSticky($element, settings, options){
options.topSpacing=settings['topSpacing'];
options.bottomSpacing=settings['bottomSpacing'];
imagesLoaded($parentSection, function(){
$target.data('stickyColumnInit', true);
stickyInstance=new StickySidebar($target[0], options);
});
var targetMutation=$target[0],
config={ attributes: true, childList: true, subtree: true };
var observer=new MutationObserver(function(mutations){
for(var mutation of mutations){
if('attributes'===mutation.type&&mutation.attributeName!=='style'){
$target[0].style.height='auto';
}}
});
observer.observe(targetMutation, config);
$window.on('resize.JetTricksStickyColumn orientationchange.JetTricksStickyColumn',
JetTricksTools.debounce(50, resizeDebounce) );
var observer=new MutationObserver(function(mutations){
if(stickyInstance){
mutations.forEach(function(mutation){
if(mutation.attributeName==='class'){
setTimeout(function(){
stickyInstance.destroy();
stickyInstance=new StickySidebar($target[0], options);
}, 100);
}});
}});
$observerTarget.each(function(){
observer.observe($(this)[0], {
attributes: true
});
});
}
function initScrollUntilEndSticky($element, settings){
const stickyHeight=$element.outerHeight();
const stickyContentBottom=$element.offset().top + stickyHeight;
const stickyViewportOffset=$window.height() - stickyHeight - settings['bottomSpacing'];
$('body').addClass('jet-sticky-container');
$window.on('scroll.jetSticky', function (){
const scrollPosition=$window.scrollTop();
if(scrollPosition + $window.height() >=stickyContentBottom){
$element.css({
position: 'sticky',
top: stickyViewportOffset + 'px',
bottom: 'auto',
left: 'auto',
zIndex: settings['zIndex'],
});
}});
$observerTarget.on('destroy.jetSticky', function (){
$window.off('scroll.jetSticky');
$('body').removeClass('jet-sticky-container');
});
}
function initDefaultSticky($element, settings){
$('body').addClass('jet-sticky-container');
$element.addClass('jet-sticky-container-sticky');
$element.css({
'top': settings['topSpacing'],
'bottom': settings['bottomSpacing']
});
}
function resizeDebounce(){
var currentDeviceMode=elementorFrontend.getCurrentDeviceMode(),
availableDevices=settings['stickyOn']||[],
isInit=$target.data('stickyColumnInit');
if(-1!==availableDevices.indexOf(currentDeviceMode) ){
if(! isInit){
$target.data('stickyColumnInit', true);
stickyInstance=new StickySidebar($target[0], stickyInstanceOptions);
stickyInstance.updateSticky();
}}else{
$target.data('stickyColumnInit', false);
stickyInstance.destroy();
}}
},
elementorWidget: function($scope){
var parallaxInstance=null,
satelliteInstance=null,
tooltipInstance=null;
parallaxInstance=new jetWidgetParallax($scope);
parallaxInstance.init();
satelliteInstance=new jetWidgetSatellite($scope);
satelliteInstance.init();
tooltipInstance=new jetWidgetTooltip($scope);
tooltipInstance.init();
},
getElementorElementSettings: function($scope){
if(window.elementorFrontend&&window.elementorFrontend.isEditMode()&&$scope.hasClass('elementor-element-edit-mode') ){
return JetTricks.getEditorElementSettings($scope);
}
return $scope.data('settings')||{};},
getEditorElementSettings: function($scope){
var modelCID=$scope.data('model-cid'),
elementData;
if(! modelCID){
return {};}
if(! elementor.hasOwnProperty('config') ){
return {};}
if(! elementor.config.hasOwnProperty('elements') ){
return {};}
if(! elementor.config.elements.hasOwnProperty('data') ){
return {};}
elementData=elementor.config.elements.data[ modelCID ];
if(! elementData){
return {};}
return elementData.toJSON();
},
widgetViewMore: function($scope){
var $target=$scope.find('.jet-view-more'),
instance=null,
settings=$target.data('settings');
instance=new jetViewMore($target, settings);
instance.init();
},
widgetUnfold: function($scope){
var $target=$scope.find('.jet-unfold'),
$button=$('.jet-unfold__button', $target),
$mask=$('.jet-unfold__mask', $target),
$content=$('.jet-unfold__content', $target),
$contentInner=$('.jet-unfold__content-inner', $target),
$trigger=$('.jet-unfold__trigger', $target),
$separator=$('.jet-unfold__separator', $target),
settings=$.extend({}, $target.data('settings'), JetTricks.getElementorElementSettings($scope) ),
maskBreakpointsHeights=[],
prevBreakpoint='',
unfoldDuration=settings['unfoldDuration']||settings['unfold_duration'],
foldDuration=settings['foldDuration']||settings['fold_duration'],
unfoldEasing=settings['unfoldEasing']||settings['unfold_easing'],
foldEasing=settings['foldEasing']||settings['fold_easing'],
maskHeightAdv=20,
heightCalc='',
autoHide=settings['autoHide']||false,
autoHideTime=settings['autoHideTime']&&0!=settings['autoHideTime']['size'] ? settings['autoHideTime']['size']:5,
hideOutsideClick=settings['hideOutsideClick']||false,
heightControlType=settings['heightControlType']||'height',
wordCount=settings['wordCount']||20,
autoHideTrigger,
activeBreakpoints=elementor.config.responsive.activeBreakpoints,
initialLoaded=false;
function updateMaskGradientClass(){
if(settings.separatorType==='gradient'){
if($target.hasClass('jet-unfold-state')||$trigger.is(':hidden')){
$mask.removeClass('jet-unfold__mask-gradient');
}else{
$mask.addClass('jet-unfold__mask-gradient');
}}
}
function calculateHeightByWordCount(){
var text=$contentInner.text().trim();
if(!text){
return 0;
}
var words=text.split(/\s+/);
var wordsToShow=Math.min(getDeviceWordCount(), words.length);
var visibleText=words.slice(0, wordsToShow).join(' ');
var $tempElement=$contentInner.clone();
$tempElement
.css({
position: 'absolute',
visibility: 'hidden',
height: 'auto',
overflow: 'visible'
})
.text(visibleText);
$contentInner.after($tempElement);
var height=$tempElement.outerHeight();
$tempElement.remove();
return height;
}
maskBreakpointsHeights['desktop']=[];
maskBreakpointsHeights['widescreen']=[];
maskBreakpointsHeights['desktop']['maskHeight']=(settings['mask_height']&&settings['mask_height']['size']&&''!=settings['mask_height']['size']) ? settings['mask_height']['size']:50;
prevBreakpoint='desktop';
Object.keys(activeBreakpoints).reverse().forEach(function(breakpointName){
if('widescreen'===breakpointName){
maskBreakpointsHeights['widescreen']['maskHeight']=(settings['mask_height_widescreen']&&settings['mask_height_widescreen']['size']&&''!=settings['mask_height_widescreen']['size']) ? settings['mask_height_widescreen']['size']:maskBreakpointsHeights['desktop']['maskHeight'];
}else{
maskBreakpointsHeights[breakpointName]=[];
var breakpointSetting=settings['mask_height_' + breakpointName];
maskBreakpointsHeights[breakpointName]['maskHeight']=(breakpointSetting&&breakpointSetting['size']&&''!=breakpointSetting['size']) ? breakpointSetting['size']:maskBreakpointsHeights[prevBreakpoint]['maskHeight'];
prevBreakpoint=breakpointName;
}});
onLoaded();
if(typeof ResizeObserver!=='undefined'){
new ResizeObserver(function(entries){
if($target.hasClass('jet-unfold-state') ){
$mask.css({
'height': $contentInner.outerHeight()
});
}}).observe($contentInner[0]);
}
if('true'===hideOutsideClick){
$(window).on('mouseup', function(event){
let container=$target;
if(!container.is(event.target)&&0===container.has(event.target).length&&$target.hasClass('jet-unfold-state') ){
$button.trigger('click');
}})
}
$target.one('transitionend webkitTransitionEnd oTransitionEnd', function(){
if(!initialLoaded){
onLoaded();
initialLoaded=true;
}});
function onLoaded(){
initialLoaded=true;
var deviceHeight=getDeviceHeight();
heightCalc=+deviceHeight + maskHeightAdv;
if(heightCalc < $contentInner.height()){
if(! $target.hasClass('jet-unfold-state') ){
$separator.css({
'opacity': '1'
});
}
if(! $target.hasClass('jet-unfold-state') ){
$mask.css({
'height': deviceHeight
});
}else{
$mask.css({
'height': $contentInner.outerHeight()
});
}
$trigger.css('display', 'flex');
updateMaskGradientClass();
}else{
$trigger.hide();
$mask.css({
'height': '100%'
});
$content.css({
'max-height': 'none'
});
$separator.css({
'opacity': '0'
});
updateMaskGradientClass();
}}
$(window).on('resize.jetWidgetUnfold orientationchange.jetWidgetUnfold', JetTricksTools.debounce(50, function(){
initialLoaded=false;
onLoaded();
}) );
$button.keypress(function(e){
if(e.which==13){
$button.click();
return false;
}});
$button.on('click.jetUnfold', function(e){
var $this=$(this),
$buttonText=$('.jet-unfold__button-text', $this),
unfoldText=$this.data('unfold-text'),
foldText=$this.data('fold-text'),
$buttonIcon=$('.jet-unfold__button-icon', $this),
unfoldIcon=$this.data('unfold-icon'),
foldIcon=$this.data('fold-icon'),
contentHeight=$contentInner.outerHeight(),
deviceHeight=getDeviceHeight();
e.preventDefault();
if(! $target.hasClass('jet-unfold-state') ){
$target.addClass('jet-unfold-state');
$separator.css({
'opacity': '0'
});
$buttonIcon.html(foldIcon);
$buttonText.html(foldText);
setTimeout(function(){
contentHeight=$contentInner.outerHeight();
anime( {
targets: $mask[0],
height: contentHeight,
duration: unfoldDuration['size'],
easing: unfoldEasing,
complete: function(anim){
$(document).trigger('jet-engine/listing/recalculate-masonry');
}});
}, 0);
if('true'===autoHide){
autoHideTrigger=setTimeout(function(){
$button.trigger('click');
}, autoHideTime * 1000);
}}else{
clearTimeout(autoHideTrigger);
$target.removeClass('jet-unfold-state');
$separator.css({
'opacity': '1'
});
$buttonIcon.html(unfoldIcon);
$buttonText.html(unfoldText);
anime( {
targets: $mask[0],
height: deviceHeight,
duration: foldDuration['size'],
easing: foldEasing,
complete: function(anim){
if('true'===settings['foldScrolling']){
$('html, body').animate({
scrollTop: $target.offset().top - settings['foldScrollOffset']['size']
}, 'slow');
}
$(document).trigger('jet-engine/listing/recalculate-masonry');
}});
}
updateMaskGradientClass();
});
function getDeviceHeight(){
if(heightControlType==='word_count'){
return calculateHeightByWordCount();
}
let device=elementorFrontend.getCurrentDeviceMode();
let heightSettings;
switch(device){
case 'mobile':
heightSettings=settings.mask_height_mobile;
break;
case 'tablet':
heightSettings=settings.mask_height_tablet;
break;
default:
heightSettings=settings.mask_height;
}
if(! heightSettings||! heightSettings.size||! heightSettings.unit){
heightSettings=settings.mask_height;
}
switch(heightSettings.unit){
case 'vh':
return(window.innerHeight * heightSettings.size) / 100;
case '%':
let parentHeight=$contentInner.parent().height();
return(parentHeight * heightSettings.size) / 100;
default:
return heightSettings.size;
}}
function getDeviceWordCount(){
let device=elementorFrontend.getCurrentDeviceMode();
let value;
switch(device){
case 'mobile':
value=settings.word_count_mobile;
break;
case 'tablet':
value=settings.word_count_tablet;
break;
default:
value=settings.word_count;
}
if(value!==null&&value!==undefined){
return parseInt(value, 10);
}
return 20;
}},
widgetHotspots: function($scope){
var $target=$scope.find('.jet-hotspots'),
$hotspots=$('.jet-hotspots__item', $target),
settings=$target.data('settings'),
editMode=Boolean(elementor.isEditMode()),
itemActiveClass='jet-hotspots__item--active';
$target.imagesLoaded().progress(function(){
$target.addClass('image-loaded');
});
$hotspots.each(function(index){
var $this=$(this),
horizontal=$this.data('horizontal-position'),
vertical=$this.data('vertical-position'),
tooltipWidth=$this.data('tooltip-width')||null,
showOnInit=$this.data('show-on-init'),
itemSelector=$this[0],
options={};
$this.css({
'left': horizontal + '%',
'top': vertical + '%'
});
if(itemSelector._tippy){
itemSelector._tippy.destroy();
}
options={
content: $this.data('tippy-content'),
arrow: settings['tooltipArrow'] ? true:false,
placement: settings['tooltipPlacement'],
trigger: settings['tooltipTrigger'],
appendTo: editMode ? document.body:$target[0],
hideOnClick: 'manual'!==settings['tooltipTrigger'],
maxWidth: 'none',
offset: [0, settings['tooltipDistance']['size']],
allowHTML: true,
interactive: settings['tooltipInteractive'] ? true:false,
onShow(instance){
$(itemSelector).addClass(itemActiveClass);
if(tooltipWidth){
instance.popper.querySelector('.tippy-box').style.width=tooltipWidth;
}},
onHidden(instance){
$(itemSelector).removeClass(itemActiveClass);
}}
if('manual'!=settings['tooltipTrigger']){
options['duration']=[ settings['tooltipShowDuration']['size'], settings['tooltipHideDuration']['size'] ];
options['animation']=settings['tooltipAnimation'];
options['delay']=settings['tooltipDelay'];
}
tippy([ itemSelector ], options);
if('manual'===settings['tooltipTrigger']&&itemSelector._tippy){
itemSelector._tippy.show();
}
if(( showOnInit==='yes'||settings['tooltipShowOnInit'])&&itemSelector._tippy){
itemSelector._tippy.show();
}});
},
columnEditorSettings: function(columnId){
var editorElements=null,
columnData={};
if(! window.elementor.hasOwnProperty('elements') ){
return false;
}
editorElements=window.elementor.elements;
if(! editorElements.models){
return false;
}
$.each(editorElements.models, function(index, obj){
$.each(obj.attributes.elements.models, function(index, obj){
if(columnId==obj.id){
columnData=obj.attributes.settings.attributes;
}});
});
return {
'sticky': columnData['jet_tricks_column_sticky']||false,
'topSpacing': columnData['jet_tricks_top_spacing']||50,
'bottomSpacing': columnData['jet_tricks_bottom_spacing']||50,
'stickyOn': columnData['jet_tricks_column_sticky_on']||[ 'desktop', 'tablet', 'mobile']
}},
sectionEditorSettings: function($scope){
var editorElements=null,
sectionData={};
if(! window.elementor.hasOwnProperty('elements') ){
return false;
}
sectionData=JetTricks.getElementorElementSettings($scope);
return {
'particles': sectionData['section_jet_tricks_particles']||'false',
'particles_json': sectionData['section_jet_tricks_particles_json']||'',
}}
};
$(window).on('elementor/frontend/init', JetTricks.init);
var JetTricksTools={
debounce: function(threshold, callback){
var timeout;
return function debounced($event){
function delayed(){
callback.call(this, $event);
timeout=null;
}
if(timeout){
clearTimeout(timeout);
}
timeout=setTimeout(delayed, threshold);
};},
widgetEditorSettings: function(widgetId){
var editorElements=null,
widgetData={};
if(!window.elementor.hasOwnProperty('elements')||!window.elementor.elements.models){
return false;
}
editorElements=window.elementor.elements;
function findWidgetById(models, widgetId){
let foundData=null;
$.each(models, function(index, obj){
if(obj.id===widgetId){
foundData=obj.attributes.settings.attributes;
return false;
}
if(obj.attributes.elements&&obj.attributes.elements.models){
foundData=findWidgetById(obj.attributes.elements.models, widgetId);
if(foundData){
return false;
}}
});
return foundData;
}
widgetData=findWidgetById(editorElements.models, widgetId)||{};
return {
'speed': widgetData['jet_tricks_widget_parallax_speed']||{ 'size': 50, 'unit': '%'},
'parallax': widgetData['jet_tricks_widget_parallax']||'false',
'invert': widgetData['jet_tricks_widget_parallax_invert']||'false',
'stickyOn': widgetData['jet_tricks_widget_parallax_on']||[ 'desktop', 'tablet', 'mobile'],
'satellite': widgetData['jet_tricks_widget_satellite']||'false',
'satelliteType': widgetData['jet_tricks_widget_satellite_type']||'text',
'satellitePosition': widgetData['jet_tricks_widget_satellite_position']||'top-center',
'satelliteText': widgetData['jet_tricks_widget_satellite_text']||'Lorem Ipsum',
'satelliteIcon': widgetData['selected_jet_tricks_widget_satellite_icon']||'',
'satelliteImage': widgetData['jet_tricks_widget_satellite_image']||'',
'satelliteLink': widgetData['jet_tricks_widget_satellite_link']||'',
'tooltip': widgetData['jet_tricks_widget_tooltip']||'false',
'tooltipDescription': widgetData['jet_tricks_widget_tooltip_description']||'Lorem Ipsum',
'tooltipPlacement': widgetData['jet_tricks_widget_tooltip_placement']||'top',
'tooltipArrow': 'true'===widgetData['jet_tricks_widget_tooltip_arrow'] ? true:false,
'xOffset': widgetData['jet_tricks_widget_tooltip_x_offset']||0,
'yOffset': widgetData['jet_tricks_widget_tooltip_y_offset']||0,
'tooltipAnimation': widgetData['jet_tricks_widget_tooltip_animation']||'shift-toward',
'tooltipTrigger': widgetData['jet_tricks_widget_tooltip_trigger']||'mouseenter',
'customSelector': widgetData['jet_tricks_widget_tooltip_custom_selector']||'',
'zIndex': widgetData['jet_tricks_widget_tooltip_z_index']||'999',
'appendTo': widgetData['jet_tricks_widget_tooltip_append_to']||'widget',
'delay': widgetData['jet_tricks_widget_tooltip_delay']||'0',
'followCursor': widgetData['jet_tricks_widget_tooltip_follow_cursor']||'false'
}}
}
window.jetViewMore=function($selector, settings){
var self=this,
$window=$(window),
$button=$('.jet-view-more__button', $selector),
defaultSettings={
sections: {},
effect: 'move-up',
showall: false
},
settings=$.extend({}, defaultSettings, settings),
sections=settings['sections'],
sectionsData={},
editMode=Boolean(elementor.isEditMode()),
readLess=settings['read_less']||false,
readMoreLabel=settings['read_more_label'],
readLessLabel=settings['read_less_label'],
readMoreIcon=settings['read_more_icon'],
readLessIcon=settings['read_less_icon'],
hideAll=settings['hide_all']||false,
isOpened=false;
self.init=function(){
self.setSectionsData();
if(editMode){
return false;
}
function hideSection($section){
if(settings['hide_effect']&&settings['hide_effect']!=='none'){
$section.addClass('view-more-hiding');
$section.addClass('jet-tricks-' + settings['hide_effect'] + '-hide-effect');
(function($currentSection){
$currentSection.on('animationend', function animationEndHandler(){
$currentSection.off('animationend', animationEndHandler);
$currentSection.removeClass('view-more-hiding');
$currentSection.removeClass('jet-tricks-' + settings['hide_effect'] + '-hide-effect');
$currentSection.css('height', '');
$currentSection.removeClass('view-more-visible');
$currentSection.removeClass('jet-tricks-' + settings['effect'] + '-effect');
});
})($section);
}else{
$section.css('height', '');
$section.removeClass('view-more-visible');
$section.removeClass('jet-tricks-' + settings['effect'] + '-effect');
}}
function showAllSections(){
for(var section in sectionsData){
var $section=sectionsData[ section ]['selector'];
sectionsData[ section ]['visible']=true;
$section.css('height', $section[0].scrollHeight + 'px');
$section.addClass('view-more-visible');
$section.addClass('jet-tricks-' + settings['effect'] + '-effect');
}}
function hideAllSections(){
for(var section in sectionsData){
var $section=sectionsData[ section ]['selector'];
sectionsData[ section ]['visible']=false;
hideSection($section);
}}
function showNextSection(){
for(var section in sectionsData){
var $section=sectionsData[ section ]['selector'];
if(!sectionsData[ section ]['visible']){
sectionsData[ section ]['visible']=true;
$section.css('height', $section[0].scrollHeight + 'px');
$section.addClass('view-more-visible');
$section.addClass('jet-tricks-' + settings['effect'] + '-effect');
break;
}}
}
function hideNextSection(){
var sectionKeys=Object.keys(sectionsData).reverse();
for (var i=0; i < sectionKeys.length; i++){
var sectionKey=sectionKeys[i];
var $section=sectionsData[sectionKey]['selector'];
if(sectionsData[sectionKey]['visible']){
sectionsData[sectionKey]['visible']=false;
hideSection($section);
break;
}}
}
$button.on('click', function(){
if(readLess){
if(!isOpened){
if(!settings.showall){
showNextSection();
var allVisible=true;
for (var section in sectionsData){
if(!sectionsData[section]['visible']){
allVisible=false;
break;
}}
if(allVisible){
$button.find('.jet-view-more__label').text(readLessLabel);
if(readLessIcon&&readLessIcon.value){
$button.find('.jet-view-more__icon').html('<i class="' + readLessIcon.value + '"></i>');
}
$button.addClass('jet-view-more__button--read-less');
isOpened=true;
}}else{
showAllSections();
$button.find('.jet-view-more__label').text(readLessLabel);
if(readLessIcon&&readLessIcon.value){
$button.find('.jet-view-more__icon').html('<i class="' + readLessIcon.value + '"></i>');
}
$button.addClass('jet-view-more__button--read-less');
isOpened=true;
}}else{
if(hideAll){
hideAllSections();
$button.find('.jet-view-more__label').text(readMoreLabel);
if(readMoreIcon&&readMoreIcon.value){
$button.find('.jet-view-more__icon').html('<i class="' + readMoreIcon.value + '"></i>');
}
$button.removeClass('jet-view-more__button--read-less');
isOpened=false;
}else{
hideNextSection();
var allHidden=true;
for (var section in sectionsData){
if(sectionsData[section]['visible']){
allHidden=false;
break;
}}
if(allHidden){
$button.find('.jet-view-more__label').text(readMoreLabel);
if(readMoreIcon&&readMoreIcon.value){
$button.find('.jet-view-more__icon').html('<i class="' + readMoreIcon.value + '"></i>');
}
$button.removeClass('jet-view-more__button--read-less');
isOpened=false;
}}
}}else{
if(!settings.showall){
showNextSection();
}else{
showAllSections();
}
var allVisible=true;
for (var section in sectionsData){
if(!sectionsData[section]['visible']){
allVisible=false;
break;
}}
if(allVisible){
$button.css({ 'display': 'none' });
}}
});
$button.keydown(function(e){
var $which=e.which||e.keyCode;
if($which==13||$which==32){
e.preventDefault();
if(readLess){
$button.trigger('click');
}else{
if(!settings.showall){
showNextSection();
}else{
showAllSections();
}
var allVisible=true;
for (var section in sectionsData){
if(!sectionsData[section]['visible']){
allVisible=false;
break;
}}
if(allVisible){
$button.css({ 'display': 'none' });
}}
}});
};
self.setSectionsData=function(){
for(var section in sections){
var $selector=$('#' + sections[ section ]);
if(! editMode){
$selector.addClass('jet-view-more-section');
}else{
$selector.addClass('jet-view-more-section-edit-mode');
}
sectionsData[ section ]={
'section_id': sections[ section ],
'selector': $selector,
'visible': false,
}}
};};
window.jetWidgetParallax=function($scope){
var self=this,
$target=$scope,
$section=$scope.closest('.elementor-top-section'),
widgetId=$scope.data('id'),
settings={},
editMode=Boolean(elementor.isEditMode()),
$window=$(window),
isSafari     = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/),
platform=navigator.platform,
safariClass=isSafari ? 'is-safari':'',
macClass='MacIntel'==platform ? ' is-mac':'';
self.init=function(){
$scope.addClass(macClass);
if(! editMode){
settings=$scope.data('jet-tricks-settings');
}else{
settings=JetTricksTools.widgetEditorSettings(widgetId);
}
if(! settings){
return false;
}
if('undefined'===typeof settings){
return false;
}
if('false'===settings['parallax']||'undefined'===typeof settings['parallax']){
return false;
}
$window.on('scroll.jetWidgetParallax resize.jetWidgetParallax', self.scrollHandler).trigger('resize.jetWidgetParallax');
};
self.scrollHandler=function(event){
var speed=+settings['speed']['size'] * 0.01,
invert='true'==settings['invert'] ? -1:1,
winHeight=$window.height(),
winScrollTop=$window.scrollTop(),
offsetTop=$scope.offset().top,
thisHeight=$scope.outerHeight(),
sectionHeight=$section.outerHeight(),
positionDelta=winScrollTop - offsetTop +(winHeight / 2),
abs=positionDelta > 0 ? 1:-1,
posY=abs * Math.pow(Math.abs(positionDelta), 0.85),
availableDevices=settings['stickyOn']||[],
currentDeviceMode=elementorFrontend.getCurrentDeviceMode();
posY=invert * Math.ceil(speed * posY);
if(-1!==availableDevices.indexOf(currentDeviceMode) ){
$target.css({
'transform': 'translateY(' + posY + 'px)'
});
}else{
$target.css({
'transform': 'translateY(0)'
});
}};};
window.jetWidgetSatellite=function($scope){
var self=this,
widgetId=$scope.data('id'),
settings={},
editMode=Boolean(elementor.isEditMode());
self.init=function(){
if(! editMode){
settings=$scope.data('jet-tricks-settings');
}else{
settings=JetTricksTools.widgetEditorSettings(widgetId);
}
if(! settings||typeof settings!=='object'){
return false;
}
if('false'===settings['satellite']||'undefined'===typeof settings['satellite']){
return false;
}
$scope.addClass('jet-satellite-widget');
$('.jet-tricks-satellite', $scope).addClass('jet-tricks-satellite--' + settings['satellitePosition']);
if(editMode&&$scope.find('.jet-tricks-satellite').length===0){
var html='';
var pos=settings['satellitePosition']||'top-center';
var link=settings['satelliteLink']||{};
var linkStart='', linkEnd='';
if(link.url){
linkStart='<a class="jet-tricks-satellite__link">';
linkEnd='</a>';
}
if(settings['satelliteType']==='text'&&settings['satelliteText']){
html='<div class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"><div class="jet-tricks-satellite__inner"><div class="jet-tricks-satellite__text">' + linkStart + '<span>' + settings['satelliteText'] + '</span>' + linkEnd + '</div></div></div>';
}else if(settings['satelliteType']==='icon'&&settings['satelliteIcon']&&settings['satelliteIcon'].value){
html='<div class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"><div class="jet-tricks-satellite__inner"><div class="jet-tricks-satellite__icon">' + linkStart + '<div class="jet-tricks-satellite__icon-instance jet-tricks-icon"><i class="' + settings['satelliteIcon'].value + '"></i></div>' + linkEnd + '</div></div></div>';
}else if(settings['satelliteType']==='image'&&settings['satelliteImage']&&settings['satelliteImage'].url){
html='<div class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"><div class="jet-tricks-satellite__inner"><div class="jet-tricks-satellite__image">' + linkStart + '<img class="jet-tricks-satellite__image-instance" src="' + settings['satelliteImage'].url + '" alt="">' + linkEnd + '</div></div></div>';
}
if(html){
$scope.prepend(html);
}}
};};
window.jetWidgetTooltip=function($scope){
var self=this,
widgetId=$scope.data('id'),
widgetSelector=$scope[0],
tooltipSelector=widgetSelector,
settings={},
editMode=Boolean(elementor.isEditMode()),
delay,
tooltipEvent=editMode ? 'click':'mouseenter';
self.init=function(){
if(! editMode){
settings=$scope.data('jet-tricks-settings');
}else{
settings=JetTricksTools.widgetEditorSettings(widgetId);
}
if(widgetSelector._tippy){
widgetSelector._tippy.destroy();
}
if(! settings){
return false;
}
if('undefined'===typeof settings){
return false;
}
if('false'===settings['tooltip']||'undefined'===typeof settings['tooltip']||''===settings['tooltipDescription']){
return false;
}
$scope.addClass('jet-tooltip-widget');
if(settings['customSelector']){
tooltipSelector=$('.' + settings['customSelector'], $scope)[0];
}
if(editMode&&! $('#jet-tricks-tooltip-content-' + widgetId)[0]){
var template=$('<div>', {
id: 'jet-tricks-tooltip-content-' + widgetId,
class: 'jet-tooltip-widget__content'
});
template.html(settings['tooltipDescription']);
$scope.append(template);
}
var appendToBody=editMode||(settings['appendTo']==='body');
tippy(
[ tooltipSelector ],
{
content: $scope.find('.jet-tooltip-widget__content')[0].innerHTML,
allowHTML: true,
appendTo: appendToBody ? document.body:widgetSelector,
arrow: settings['tooltipArrow'] ? true:false,
placement: settings['tooltipPlacement'],
offset: [ settings['xOffset'], settings['yOffset'] ],
animation: settings['tooltipAnimation'],
trigger: settings['tooltipTrigger'],
interactive: settings['followCursor']==='false'||settings['followCursor']==='initial',
zIndex: settings['zIndex'],
maxWidth: 'none',
delay: settings['delay']['size'] ? settings['delay']['size']:0,
followCursor: settings['followCursor']==='false' ? false:(settings['followCursor']==='true' ? true:settings['followCursor']),
onCreate: function (instance){
if(appendToBody){
var tippyId=editMode ?(tooltipSelector.getAttribute('data-id')||widgetId):widgetId;
if(tippyId){
instance.popper.classList.add('tippy-' + tippyId);
}}
},
onShow: function (instance){
var addButtonListeners=window.crocoblock&&window.crocoblock.frontComponents&&window.crocoblock.frontComponents.addButtonListeners;
if(addButtonListeners&&instance.popper){
var buttons=instance.popper.querySelectorAll('[data-jfb-submit-endpoint]');
buttons.forEach(function (el){ addButtonListeners(el); });
}}
}
);
if(editMode&&widgetSelector._tippy){
widgetSelector._tippy.show();
}};};
}(jQuery, window.elementorFrontend) );
(()=>{"use strict";const t=function(t){return"string"!=typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},n=function(t){return"string"!=typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},e=function(e,o){return function(r,i,s){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const l=e[o];if(!n(r))return;if(!t(i))return;if("function"!=typeof s)return void console.error("The hook callback must be a function.");if("number"!=typeof c)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:c,namespace:i};if(l[r]){const t=l[r].handlers;let n;for(n=t.length;n>0&&!(c>=t[n-1].priority);n--);n===t.length?t[n]=a:t.splice(n,0,a),l.__current.forEach((t=>{t.name===r&&t.currentIndex>=n&&t.currentIndex++}))}else l[r]={handlers:[a],runs:0};"hookAdded"!==r&&e.doAction("hookAdded",r,i,s,c)}},o=function(e,o){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,s){const c=e[o];if(!n(i))return;if(!r&&!t(s))return;if(!c[i])return 0;let l=0;if(r)l=c[i].handlers.length,c[i]={runs:c[i].runs,handlers:[]};else{const t=c[i].handlers;for(let n=t.length-1;n>=0;n--)t[n].namespace===s&&(t.splice(n,1),l++,c.__current.forEach((t=>{t.name===i&&t.currentIndex>=n&&t.currentIndex--})))}return"hookRemoved"!==i&&e.doAction("hookRemoved",i,s),l}},r=function(t,n){return function(e,o){const r=t[n];return void 0!==o?e in r&&r[e].handlers.some((t=>t.namespace===o)):e in r}},i=function(t,n){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(o){const r=t[n];r[o]||(r[o]={handlers:[],runs:0}),r[o].runs++;const i=r[o].handlers;for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];if(!i||!i.length)return e?c[0]:void 0;const a={name:o,currentIndex:0};for(r.__current.push(a);a.currentIndex<i.length;){const t=i[a.currentIndex].callback.apply(null,c);e&&(c[0]=t),a.currentIndex++}return r.__current.pop(),e?c[0]:void 0}},s=function(t,n){return function(){var e,o;const r=t[n];return null!==(e=null===(o=r.__current[r.__current.length-1])||void 0===o?void 0:o.name)&&void 0!==e?e:null}},c=function(t,n){return function(e){const o=t[n];return void 0===e?void 0!==o.__current[0]:!!o.__current[0]&&e===o.__current[0].name}},l=function(t,e){return function(o){const r=t[e];if(n(o))return r[o]&&r[o].runs?r[o].runs:0}};class a{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=e(this,"actions"),this.addFilter=e(this,"filters"),this.removeAction=o(this,"actions"),this.removeFilter=o(this,"filters"),this.hasAction=r(this,"actions"),this.hasFilter=r(this,"filters"),this.removeAllActions=o(this,"actions",!0),this.removeAllFilters=o(this,"filters",!0),this.doAction=i(this,"actions"),this.applyFilters=i(this,"filters",!0),this.currentAction=s(this,"actions"),this.currentFilter=s(this,"filters"),this.doingAction=c(this,"actions"),this.doingFilter=c(this,"filters"),this.didAction=l(this,"actions"),this.didFilter=l(this,"filters")}}const u=function(){return new a},h=u(),{addAction:d,addFilter:f,removeAction:m,removeFilter:k,hasAction:v,hasFilter:p,removeAllActions:b,removeAllFilters:y,doAction:g,applyFilters:A,currentAction:_,currentFilter:F,doingAction:B,doingFilter:w,didAction:I,didFilter:N,actions:j,filters:x}=h;function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}function T(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,C(o.key),o)}}function P(t,n,e){return(n=C(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function C(t){var n=function(t,n){if("object"!==S(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var o=e.call(t,"string");if("object"!==S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===S(n)?n:String(n)}var O=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),P(this,"hooks",void 0),P(this,"globalNamespace","jet-plugins"),P(this,"blocksNamespace","frontend.element-ready"),P(this,"blocksConditions",{}),this.hooks=n||u()}var n,e;return n=t,(e=[{key:"hookNameFromBlock",value:function(t){var n=this.getBlockName(t);return n?"".concat(this.globalNamespace,".").concat(this.blocksNamespace,".").concat(n):""}},{key:"getBlockName",value:function(t){var n;return"string"==typeof t?t.replace("/","."):this.getBlockName((null==t||null===(n=t.dataset)||void 0===n?void 0:n.isBlock)||"")}},{key:"init",value:function(t,n,e){var o=this;if(e=e||!1,n&&n.length&&this.bulkBlocksInit(n),(t=t||jQuery("body"))&&t.length){var r='[data-is-block*="/"]';e&&(r='[data-is-block*="'+e+'/"]');var i=t.find(r);i&&i.length&&i.each((function(t,n){o.initBlock(n)}))}}},{key:"isBlockRequiresInit",value:function(t){var n=void 0===t.dataset.jetInited,e=this.getBlockName(t);return n&&this.blocksConditions[e]&&(n=this.blocksConditions[e](t)),n}},{key:"initBlock",value:function(t,n){n=n||!1;var e=this.hookNameFromBlock(t);if(e&&this.hasHandlers(e)){var o=n;o||(o=this.isBlockRequiresInit(t)),o&&(this.hooks.doAction(e,jQuery(t)),t.dataset.jetInited=!0)}}},{key:"hasHandlers",value:function(t){return!!this.hooks.actions[t]&&!(!this.hooks.actions[t].handlers||!this.hooks.actions[t].handlers.length)}},{key:"registerBlockHandlers",value:function(t){var n=this.getBlockName(t.block);this.hooks.addAction(this.hookNameFromBlock(n),"".concat(this.globalNamespace,"/").concat(t.block),t.callback),t.condition&&"function"==typeof t.condition&&(this.blocksConditions[n]=t.condition)}},{key:"bulkBlocksInit",value:function(t){for(var n=0;n<t.length;n++)this.registerBlockHandlers(t[n])}}])&&T(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),t}();window.JetPlugins=window.JetPlugins||new O})();
(function($){
"use strict";
let JetWooBuilder={
init: function(){
if(! window.elementorFrontend||! window.elementorFrontend.hooks){
return;
}
window.elementorFrontend.hooks.addAction('frontend/element_ready/jet-single-images.default',
function($scope){
$scope.find('.jet-single-images__loading').remove();
}
);
window.elementorFrontend.hooks.addAction('frontend/element_ready/jet-single-tabs.default',
function($scope){
$scope.find('.jet-single-tabs__loading').remove();
}
);
window.elementorFrontend.hooks.addFilter('jet-popup/widget-extensions/popup-data', JetWooBuilder.prepareJetPopup);
$(window).on('jet-popup/render-content/ajax/success', JetWooBuilder.jetPopupLoaded);
$(document)
.on('wc_update_cart added_to_cart', JetWooBuilder.handleJetPopupWithWCEvents)
.on('jet-filter-content-rendered', function(_, $scope){
JetWooBuilder.initFilteredContentWidgets($scope);
})
.on('click.JetWooBuilder', '.jet-woo-item-overlay-wrap', JetWooBuilder.handleListingItemClick);
$(document.body).on('wc_cart_emptied', function (){
if($('.jet-woo-builder-woocommerce-empty-cart').length){
JetWooBuilder.elementorFrontendInit($('.jet-woo-builder-woocommerce-empty-cart') );
}});
$(document).on('jet-ajax-search/show-results/listing', function(){
$('.jet-woo-builder-archive-add-to-cart .add_to_cart_button.ajax_add_to_cart').on('click', function(e){
e.preventDefault();
let _this=$(this);
if(_this.attr('data-product_id') ){
let addToCartData={};
$.each(_this[0].dataset, function(key, value){
addToCartData[ key ]=value;
});
_this.prop('disabled', true);
$.ajax({
type: 'POST',
url: wc_add_to_cart_params.wc_ajax_url.toString().replace('%%endpoint%%', 'add_to_cart'),
dataType: 'json',
data: addToCartData,
success: function(response){
$(document.body).trigger('wc_fragment_refresh');
$(document.body).trigger('added_to_cart');
_this.prop('disabled', false);
},
error: function(xhr, status, error){
_this.prop('disabled', false);
}});
}});
});
},
registerWidgetHandler: function(widgetName, callback){
if(! window.elementorFrontend||! window.elementorFrontend.hooks){
$(window).on('elementor/frontend/init', function(){
if(window.elementorFrontend&&window.elementorFrontend.hooks){
window.elementorFrontend.hooks.addAction('frontend/element_ready/' + widgetName,
callback
);
}});
return;
}
window.elementorFrontend.hooks.addAction('frontend/element_ready/' + widgetName,
callback
);
},
commonInit: function (){
if(window.jetWooBuilderData&&window.jetWooBuilderData.single_ajax_add_to_cart){
let $product=$('.woocommerce div.product');
if(! $product.hasClass('product-type-external') ){
$(document).on('click.JetWooBuilder', '.single_add_to_cart_button:not(.disabled)', JetWooBuilder.singleProductAjaxAddToCart);
}}
if(navigator.userAgent.indexOf('Safari')!==-1&&navigator.userAgent.indexOf('Chrome')===-1){
document.addEventListener('click', function(event){
if(event.target.matches('.add_to_cart_button .button-text') ){
event.target.parentNode.focus();
}
if(event.target.matches('.add_to_cart_button')||event.target.matches('.single_add_to_cart_button') ){
event.target.focus();
}});
}
$(document.body).bind('country_to_state_changing', function(event, country, wrapper){
setTimeout(function (){
JetWooBuilder.setAddressFieldsRequiredValidation(wrapper);
}, 500);
});
},
setAddressFieldsRequiredValidation: function(wrapper){
let $widget=wrapper.closest('.elementor-element'),
settings=JetWooBuilder.getElementorElementSettings($widget);
if(settings&&settings.modify_field){
let locale_fields=$.parseJSON(wc_address_i18n_params.locale_fields);
if(locale_fields){
$.each(locale_fields, function(key, value){
let fields_ids=value.split(',');
$.each(fields_ids, function(index, id){
let field=wrapper.find(id.trim());
if(field.length){
if(field.hasClass('jwb-field-required') ){
JetWooBuilder.fieldIsRequired(field, true);
}else if(field.hasClass('jwb-field-optional') ){
JetWooBuilder.fieldIsRequired(field, false);
}}
});
});
}}
},
fieldIsRequired: function(field, isRequired){
JetWooBuilder.modifyFieldLabelWhitespace(field);
if(isRequired){
field.find('label .optional').remove();
field.addClass('validate-required');
if(0===field.find('label .required').length){
field.find('label').append('&nbsp;<abbr class="required" title="' + wc_address_i18n_params.i18n_required_text + '">*</abbr>');
}}else{
field.find('label .required').remove();
field.removeClass('validate-required woocommerce-invalid woocommerce-invalid-required-field');
if(0===field.find('label .optional').length){
field.find('label').append('&nbsp;<span class="optional">(' + wc_address_i18n_params.i18n_optional_text + ')</span>');
}}
},
modifyFieldLabelWhitespace: function(field){
let label=field.find('label').html();
if(label){
field.find('label').html(label.replace(/&nbsp;/g, '').trim());
}},
handleInputQuantityValue: function($scope){
let $eWidget=$scope.closest('.elementor-widget'),
settings=JetWooBuilder.getElementorElementSettings($eWidget);
if(settings&&'yes'===settings.show_quantity){
let $cartForm=$scope.find('form.cart');
$cartForm.on('change', 'input.qty', function(){
if('0'===this.value&&! $(this.form).hasClass('grouped_form') ){
this.value='1';
}
let $button=$(this.form).find('button[data-quantity]');
$button.attr('data-quantity', this.value);
if(this.max){
if(+this.value > +this.max){
$button.removeClass('ajax_add_to_cart');
}else if(! $button.hasClass('ajax_add_to_cart') ){
$button.addClass('ajax_add_to_cart');
}}
});
}},
jetPopupLoaded:function(event, popupData){
if(! popupData.data.isJetWooBuilder){
return;
}
const $jetPopup=$('#' + popupData.data.popupId);
$jetPopup.addClass('woocommerce product single-product quick-view-product');
$jetPopup.find('.jet-popup__container-content').addClass('product');
setTimeout(function(){
$(window).trigger('resize');
$('.jet-popup .variations_form').each(function(){
$(this).wc_variation_form();
});
$('.jet-popup .woocommerce-product-gallery.images').each(function(){
$(this).wc_product_gallery();
});
}, 300);
},
prepareJetPopup: function(popupData, widgetData, $scope, event){
if(widgetData['is-jet-woo-builder']){
let $product;
popupData['isJetWooBuilder']=true;
popupData['templateId']=widgetData['jet-woo-builder-qv-template'];
if($scope.hasClass('elementor-widget-jet-woo-products')||$scope.hasClass('elementor-widget-jet-woo-products-list') ){
$product=$(event.target).parents('.jet-woo-builder-product');
}else{
$product=$scope.parents('.jet-woo-builder-product');
}
if($product.length){
popupData['productId']=$product.data('product-id');
}}
return popupData;
},
mobileHoverOnTouch: function($item, thumbnail){
if('undefined'!==typeof window.ontouchstart){
$item.each(function(){
let $this=$(this),
$thumbnailLink=$this.find(thumbnail + ' a'),
$adjacentItems=$this.siblings();
if($this.hasClass('jet-woo-products__item') ){
let $itemContent=$this.not(thumbnail);
$itemContent.each(function(){
let $currentItem=$(this);
JetWooBuilder.mobileTouchEvent($this, $currentItem, $adjacentItems);
});
}
JetWooBuilder.mobileTouchEvent($this, $thumbnailLink, $adjacentItems);
});
}},
mobileTouchEvent: function($target, $item, $adjacentItems){
$item.on('click', function(event){
if(! $target.hasClass('mobile-hover') ){
event.preventDefault();
$adjacentItems.each(function(){
if($(this).hasClass('mobile-hover') ){
$(this).removeClass('mobile-hover');
}});
$target.addClass('mobile-hover');
}});
},
initCarousel: function($target, options){
let $eWidget=$target.closest('.elementor-widget'),
slidesCount=$target.find('.swiper-slide').length,
settings=JetWooBuilder.getElementorElementSettings($eWidget),
eBreakpoints=window.elementorFrontend.config.responsive.activeBreakpoints,
defaultOptions={},
slidesToShow=+settings.columns||4,
slideOverflow=settings.slides_overflow_enabled&&settings.slides_overflow ? +settings.slides_overflow:0,
spaceBetween=undefined!==settings.space_between_slides ? +settings.space_between_slides:10,
defaultSlidesToShowMap={
mobile: 1,
tablet: 2
};
defaultOptions={
slidesPerView: slidesToShow + slideOverflow,
spaceBetween: spaceBetween,
crossFade: 'fade'===options.effect,
handleElementorBreakpoints: true
}
defaultOptions.breakpoints={};
let lastBreakpointSlidesToShowValue=slidesToShow;
Object.keys(eBreakpoints).reverse().forEach(breakpointName=> {
const defaultSlidesToShow=defaultSlidesToShowMap[ breakpointName ] ? defaultSlidesToShowMap[ breakpointName ]:lastBreakpointSlidesToShowValue;
const bpSlidesToShow=+settings[ 'columns_' + breakpointName ]||defaultSlidesToShow;
const bpSlideOverflow=settings.slides_overflow_enabled&&settings[ 'slides_overflow_' + breakpointName ] ? +settings[ 'slides_overflow_' + breakpointName ]:slideOverflow;
defaultOptions.breakpoints[ eBreakpoints[ breakpointName ].value ]={
slidesPerView: bpSlidesToShow + bpSlideOverflow,
slidesPerGroup: +settings[ 'slides_to_scroll_' + breakpointName ]||options.slidesPerGroup,
spaceBetween: undefined!==settings['space_between_slides_' + breakpointName] ? +settings['space_between_slides_' + breakpointName]:spaceBetween
};
lastBreakpointSlidesToShowValue=+settings[ 'columns_' + breakpointName ]||defaultSlidesToShow;
});
if(options.paginationEnable){
defaultOptions.pagination={
el: '.swiper-pagination',
clickable: true,
dynamicBullets: options.dynamicBullets
}}
if(options.navigationEnable){
defaultOptions.navigation={
nextEl: '.jet-swiper-button-next',
prevEl: '.jet-swiper-button-prev',
}}
let currentDeviceSlidePerView=+settings[ 'columns_' + elementorFrontend.getCurrentDeviceMode() ]||+settings['columns'];
if(slidesCount > currentDeviceSlidePerView){
const Swiper=elementorFrontend.utils.swiper;
new Swiper($target, $.extend({}, defaultOptions, options) ).then(swiper=> {
$(document).trigger('jet-woo-builder-swiper-initialized', swiper);
if('vertical'===options.direction&&options.paginationEnable&&options.dynamicBullets){
$target.find('.swiper-pagination').css('width', $target.find('.swiper-pagination-bullet-active').width());
}});
$target.find('.jet-arrow').show();
}else if(options.direction==='vertical'){
$target.addClass('swiper-container-vertical');
$target.find('.jet-arrow').hide();
}else{
$target.find('.jet-arrow').hide();
}},
handleJetPopupWithWCEvents: function(event, fragments, hash, button){
let popupWrapper=$(button).closest('.jet-popup');
if(popupWrapper.length&&popupWrapper.hasClass('quick-view-product') ){
$(window).trigger({
type: 'jet-popup-close-trigger',
popupData: {
popupId: popupWrapper.attr('id'),
constantly: false
}});
}
let purchasePopupData=$(button).closest('[data-purchase-popup-id]');
if(purchasePopupData.length){
let popupId=purchasePopupData.data('purchase-popup-id');
if(popupId){
$(window).trigger({
type: 'jet-popup-open-trigger',
popupData: window.JetPlugins.hooks.applyFilters('jet-woo-builder.purchase-popup.data', {
popupId: 'jet-popup-' + popupId
}, event, fragments, hash, button)
});
}}
},
singleProductAjaxAddToCart: function(event){
if(event){
event.preventDefault();
}
let $form=$(this).closest('form');
if(! $form[0].checkValidity()){
$form[0].reportValidity();
return false;
}
let $thisBtn=$(this),
product_id=$thisBtn.val()||'',
cartFormData=$form.serialize();
$.ajax({
type: 'POST',
url: window.jetWooBuilderData.ajax_url,
data: 'action=jet_woo_builder_add_cart_single_product&add-to-cart=' + product_id + '&' + cartFormData,
beforeSend: function (){
$thisBtn.removeClass('added').addClass('loading');
},
complete: function (){
$thisBtn.addClass('added').removeClass('loading');
},
success: function(response){
if(! response){
return;
}
if(response.error&&response.product_url){
window.location=response.product_url;
return;
}
if('undefined'===typeof wc_add_to_cart_params){
return;
}
$(document.body).trigger('wc_fragment_refresh');
$(document.body).trigger('added_to_cart', [ response.fragments, response.cart_hash, $thisBtn ]);
$('.woocommerce-notices-wrapper').html(response.fragments.notices_html);
},
});
return false;
},
handleListingItemClick: function(event){
let url=$(this).data('url'),
target=$(this).data('target')||false;
if(url){
event.preventDefault();
if((window.elementorFrontend&&window.elementorFrontend.isEditMode())
|| $(event.target).parents('.jet-compare-button__link').length
|| $(event.target).parents('.jet-wishlist-button__link').length
|| $(event.target).parents('.jet-quickview-button__link').length
){
return;
}
if('_blank'===target){
window.open(url);
return;
}
window.location=url;
}},
getElementorElementSettings: function($scope){
if(window.elementorFrontend&&window.elementorFrontend.isEditMode()&&$scope.hasClass('elementor-element-edit-mode') ){
return JetWooBuilder.getEditorElementSettings($scope);
}
return $scope.data('settings')||{};},
getEditorElementSettings: function($scope){
let modelCID=$scope.data('model-cid'),
elementData;
if(! modelCID){
return {};}
if(! window.elementorFrontend.hasOwnProperty('config') ){
return {};}
if(! window.elementorFrontend.config.hasOwnProperty('elements') ){
return {};}
if(! window.elementorFrontend.config.elements.hasOwnProperty('data') ){
return {};}
elementData=window.elementorFrontend.config.elements.data[ modelCID ];
if(! elementData){
return {};}
return elementData.toJSON();
},
initFilteredContentWidgets: function($content){
if(! window.elementorFrontend||! window.elementorFrontend.hooks){
return;
}
let widgetTypes=[
'jet-woo-products.default',
'jet-woo-products-list.default',
'jet-woo-builder-archive-add-to-cart.default',
'jet-woo-categories.default',
'jet-cart-table.default',
'jet-woo-builder-products-loop.default',
];
widgetTypes.forEach(function(widgetType){
$content
.find('[data-widget_type="' + widgetType + '"]')
.addBack('[data-widget_type="' + widgetType + '"]')
.each(function(){
window.elementorFrontend.hooks.doAction('frontend/element_ready/' + widgetType, $(this), $);
});
});
},
elementorFrontendInit: function($content){
if(! window.elementorFrontend||! window.elementorFrontend.hooks){
return;
}
$content.find('[data-element_type]').each(function(){
let $this=$(this),
elementType=$this.data('element_type');
if(! elementType){
return;
}
if('widget'===elementType){
elementType=$this.data('widget_type');
window.elementorFrontend.hooks.doAction('frontend/element_ready/widget', $this, $);
}
window.elementorFrontend.hooks.doAction('frontend/element_ready/global', $this, $);
window.elementorFrontend.hooks.doAction('frontend/element_ready/' + elementType, $this, $);
});
}};
$(window).on('elementor/frontend/init', JetWooBuilder.init);
JetWooBuilder.commonInit();
window.JetWooBuilder=JetWooBuilder;
}(jQuery) );
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}(function(V){"use strict";var n;function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=a(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function a(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,d)}function d(){V.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function c(e,t){for(var a in V.extend(e,t),t)null==t[a]&&(e[a]=t[a])}return V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var a,i=e.nodeName.toLowerCase(),s="div"===i||"span"===i;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(V(e),s)).settings=V.extend({},t||{}),"input"===i?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?a(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var a=V(e);t.append=V([]),t.trigger=V([]),a.hasClass(this.markerClassName)||(this._attachments(a,t),a.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),V.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var a,i=this._get(t,"appendText"),s=this._get(t,"isRTL");t.append&&t.append.remove(),i&&(t.append=V("<span>").addClass(this._appendClass).text(i),e[s?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(i=this._get(t,"showOn"))&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(i=this._get(t,"buttonText"),a=this._get(t,"buttonImage"),this._get(t,"buttonImageOnly")?t.trigger=V("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(t.trigger=V("<button type='button'>").addClass(this._triggerClass),a?t.trigger.html(V("<img>").attr({src:a,alt:i,title:i})):t.trigger.text(i)),e[s?"before":"after"](t.trigger),t.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===e[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==e[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){var t,a,i,s,r,n;this._get(e,"autoSize")&&!e.inline&&(r=new Date(2009,11,20),(n=this._get(e,"dateFormat")).match(/[DM]/)&&(r.setMonth((t=function(e){for(s=i=a=0;s<e.length;s++)e[s].length>a&&(a=e[s].length,i=s);return i})(this._get(e,n.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,n.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length))},_inlineDatepicker:function(e,t){var a=V(e);a.hasClass(this.markerClassName)||(a.addClass(this.markerClassName).append(t.dpDiv),V.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,a,i,s){var r,n=this._dialogInst;return n||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(n=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",n)),c(n.settings,i||{}),t=t&&t.constructor===Date?this._formatDate(n,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(r=document.documentElement.clientWidth,i=document.documentElement.clientHeight,t=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+t,i/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=a,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",n),this},_destroyDatepicker:function(e){var t,a=V(e),i=V.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),V.removeData(e,"datepicker"),"input"===t?(i.append.remove(),i.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||a.removeClass(this.markerClassName).empty(),n===i)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,a=V(t),i=V.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return V.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,a){var i,s,r=this._getInst(e);if(2===arguments.length&&"string"==typeof t)return"defaults"===t?V.extend({},V.datepicker._defaults):r?"all"===t?V.extend({},r.settings):this._get(r,t):null;i=t||{},"string"==typeof t&&((i={})[t]=a),r&&(this._curInst===r&&this._hideDatepicker(),t=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(r,"min"),s=this._getMinMaxDate(r,"max"),c(r.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(r.settings.minDate=this._formatDate(r,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(r.settings.maxDate=this._formatDate(r,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(V(e),r),this._autoSize(r),this._setDate(r,t),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,a){this._optionDatepicker(e,t,a)},_refreshDatepicker:function(e){e=this._getInst(e);e&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){e=this._getInst(e);e&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){e=this._getInst(e);return e&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(e){var t,a,i=V.datepicker._getInst(e.target),s=!0,r=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,V.datepicker._datepickerShowing)switch(e.keyCode){case 9:V.datepicker._hideDatepicker(),s=!1;break;case 13:return(a=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",i.dpDiv))[0]&&V.datepicker._selectDay(e.target,i.selectedMonth,i.selectedYear,a[0]),(a=V.datepicker._get(i,"onSelect"))?(t=V.datepicker._formatDate(i),a.apply(i.input?i.input[0]:null,[t,i])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&V.datepicker._clearDate(e.target),s=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&V.datepicker._gotoToday(e.target),s=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?1:-1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?-V.datepicker._get(i,"stepBigMonths"):-V.datepicker._get(i,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,-7,"D"),s=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,r?-1:1,"D"),s=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&V.datepicker._adjustDate(e.target,e.ctrlKey?+V.datepicker._get(i,"stepBigMonths"):+V.datepicker._get(i,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&V.datepicker._adjustDate(e.target,7,"D"),s=e.ctrlKey||e.metaKey;break;default:s=!1}else 36===e.keyCode&&e.ctrlKey?V.datepicker._showDatepicker(this):s=!1;s&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,a=V.datepicker._getInst(e.target);if(V.datepicker._get(a,"constrainInput"))return a=V.datepicker._possibleChars(V.datepicker._get(a,"dateFormat")),t=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||t<" "||!a||-1<a.indexOf(t)},_doKeyUp:function(e){e=V.datepicker._getInst(e.target);if(e.input.val()!==e.lastVal)try{V.datepicker.parseDate(V.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,V.datepicker._getFormatConfig(e))&&(V.datepicker._setDateFromField(e),V.datepicker._updateAlternate(e),V.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var t,a,i,s;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=V("input",e.parentNode)[0]),V.datepicker._isDisabledDatepicker(e)||V.datepicker._lastInput===e||(s=V.datepicker._getInst(e),V.datepicker._curInst&&V.datepicker._curInst!==s&&(V.datepicker._curInst.dpDiv.stop(!0,!0),s)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(a=(a=V.datepicker._get(s,"beforeShow"))?a.apply(e,[e,s]):{}))||(c(s.settings,a),s.lastVal=null,V.datepicker._lastInput=e,V.datepicker._setDateFromField(s),V.datepicker._inDialog&&(e.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(e),V.datepicker._pos[1]+=e.offsetHeight),t=!1,V(e).parents().each(function(){return!(t|="fixed"===V(this).css("position"))}),a={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(s),a=V.datepicker._checkOffset(s,a,t),s.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":t?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline)||(a=V.datepicker._get(s,"showAnim"),i=V.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(V(e))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[a]?s.dpDiv.show(a,V.datepicker._get(s,"showOptions"),i):s.dpDiv[a||"show"](a?i:null),V.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),V.datepicker._curInst=s)},_updateDatepicker:function(e){this.maxRows=4,(n=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,a=this._getNumberOfMonths(e),i=a[1],s=e.dpDiv.find("."+this._dayOverClass+" a"),r=V.datepicker._get(e,"onUpdateDatepicker");0<s.length&&d.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<i&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"),e.dpDiv[(1!==a[0]||1!==a[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),t=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,a){var i=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,n=e.input?e.input.outerHeight():0,d=document.documentElement.clientWidth+(a?0:V(document).scrollLeft()),c=document.documentElement.clientHeight+(a?0:V(document).scrollTop());return t.left-=this._get(e,"isRTL")?i-r:0,t.left-=a&&t.left===e.input.offset().left?V(document).scrollLeft():0,t.top-=a&&t.top===e.input.offset().top+n?V(document).scrollTop():0,t.left-=Math.min(t.left,d<t.left+i&&i<d?Math.abs(t.left+i-d):0),t.top-=Math.min(t.top,c<t.top+s&&s<c?Math.abs(s+n):0),t},_findPos:function(e){for(var t=this._getInst(e),a=this._get(t,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||V.expr.pseudos.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return[(t=V(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,a,i=this._curInst;!i||e&&i!==V.data(e,"datepicker")||this._datepickerShowing&&(e=this._get(i,"showAnim"),a=this._get(i,"duration"),t=function(){V.datepicker._tidyDialog(i)},V.effects&&(V.effects.effect[e]||V.effects[e])?i.dpDiv.hide(e,V.datepicker._get(i,"showOptions"),a,t):i.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?a:null,t),e||t(),this._datepickerShowing=!1,(a=this._get(i,"onClose"))&&a.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var t;V.datepicker._curInst&&(e=V(e.target),t=V.datepicker._getInst(e[0]),!(e[0].id===V.datepicker._mainDivId||0!==e.parents("#"+V.datepicker._mainDivId).length||e.hasClass(V.datepicker.markerClassName)||e.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||e.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==t)&&V.datepicker._hideDatepicker()},_adjustDate:function(e,t,a){var e=V(e),i=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(i,t,a),this._updateDatepicker(i))},_gotoToday:function(e){var t,e=V(e),a=this._getInst(e[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(e)},_selectMonthYear:function(e,t,a){var e=V(e),i=this._getInst(e[0]);i["selected"+("M"===a?"Month":"Year")]=i["draw"+("M"===a?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(i),this._adjustDate(e)},_selectDay:function(e,t,a,i){var s=V(e);V(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt(V("a",i).attr("data-date")),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=a,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){e=V(e);this._selectDate(e,"")},_selectDate:function(e,t){var a,e=V(e),e=this._getInst(e[0]);t=null!=t?t:this._formatDate(e),e.input&&e.input.val(t),this._updateAlternate(e),(a=this._get(e,"onSelect"))?a.apply(e.input?e.input[0]:null,[t,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,a,i=this._get(e,"altField");i&&(a=this._get(e,"altFormat")||this._get(e,"dateFormat"),t=this._getDate(e),a=this.formatDate(a,t,this._getFormatConfig(e)),V(document).find(i).val(a))},noWeekends:function(e){e=e.getDay();return[0<e&&e<6,""]},iso8601Week:function(e){var t,e=new Date(e.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,s,e){if(null==t||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var a,i,r=0,n=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,n="string"!=typeof n?n:(new Date).getFullYear()%100+parseInt(n,10),d=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,c=(e?e.dayNames:null)||this._defaults.dayNames,o=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,l=(e?e.monthNames:null)||this._defaults.monthNames,h=-1,u=-1,p=-1,g=-1,_=!1,f=function(e){e=y+1<t.length&&t.charAt(y+1)===e;return e&&y++,e},k=function(e){var t=f(e),t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}"),t=s.substring(r).match(e);if(t)return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},D=function(e,t,a){var i=-1,e=V.map(f(e)?a:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(V.each(e,function(e,t){var a=t[1];if(s.substr(r,a.length).toLowerCase()===a.toLowerCase())return i=t[0],r+=a.length,!1}),-1!==i)return i+1;throw"Unknown name at position "+r},m=function(){if(s.charAt(r)!==t.charAt(y))throw"Unexpected literal at position "+r;r++},y=0;y<t.length;y++)if(_)"'"!==t.charAt(y)||f("'")?m():_=!1;else switch(t.charAt(y)){case"d":p=k("d");break;case"D":D("D",d,c);break;case"o":g=k("o");break;case"m":u=k("m");break;case"M":u=D("M",o,l);break;case"y":h=k("y");break;case"@":h=(i=new Date(k("@"))).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"!":h=(i=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),u=i.getMonth()+1,p=i.getDate();break;case"'":f("'")?m():_=!0;break;default:m()}if(r<s.length&&(e=s.substr(r),!/^\s+/.test(e)))throw"Extra/unparsed characters found in date: "+e;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=n?0:-100)),-1<g)for(u=1,p=g;;){if(p<=(a=this._getDaysInMonth(h,u-1)))break;u++,p-=a}if((i=this._daylightSavingAdjust(new Date(h,u-1,p))).getFullYear()!==h||i.getMonth()+1!==u||i.getDate()!==p)throw"Invalid date";return i},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,a){if(!e)return"";function i(e,t,a){var i=""+t;if(l(e))for(;i.length<a;)i="0"+i;return i}function s(e,t,a,i){return(l(e)?i:a)[t]}var r,n=(a?a.dayNamesShort:null)||this._defaults.dayNamesShort,d=(a?a.dayNames:null)||this._defaults.dayNames,c=(a?a.monthNamesShort:null)||this._defaults.monthNamesShort,o=(a?a.monthNames:null)||this._defaults.monthNames,l=function(e){e=r+1<t.length&&t.charAt(r+1)===e;return e&&r++,e},h="",u=!1;if(e)for(r=0;r<t.length;r++)if(u)"'"!==t.charAt(r)||l("'")?h+=t.charAt(r):u=!1;else switch(t.charAt(r)){case"d":h+=i("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),n,d);break;case"o":h+=i("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=i("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),c,o);break;case"y":h+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=t.charAt(r)}return h},_possibleChars:function(t){for(var e="",a=!1,i=function(e){e=s+1<t.length&&t.charAt(s+1)===e;return e&&s++,e},s=0;s<t.length;s++)if(a)"'"!==t.charAt(s)||i("'")?e+=t.charAt(s):a=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":i("'")?e+="'":a=!0;break;default:e+=t.charAt(s)}return e},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var a=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,n=this._getFormatConfig(e);try{r=this.parseDate(a,i,n)||s}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(d,e,t){var a,i=null==e||""===e?t:"string"==typeof e?function(e){try{return V.datepicker.parseDate(V.datepicker._get(d,"dateFormat"),e,V.datepicker._getFormatConfig(d))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?V.datepicker._getDate(d):null)||new Date,a=t.getFullYear(),i=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,n=r.exec(e);n;){switch(n[2]||"d"){case"d":case"D":s+=parseInt(n[1],10);break;case"w":case"W":s+=7*parseInt(n[1],10);break;case"m":case"M":i+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i));break;case"y":case"Y":a+=parseInt(n[1],10),s=Math.min(s,V.datepicker._getDaysInMonth(a,i))}n=r.exec(e)}return new Date(a,i,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(a=new Date).setDate(a.getDate()+i),a):new Date(e.getTime());return(i=i&&"Invalid Date"===i.toString()?t:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,a){var i=!t,s=e.selectedMonth,r=e.selectedYear,t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||a||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),a="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){V.datepicker._adjustDate(a,-t,"M")},next:function(){V.datepicker._adjustDate(a,+t,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(a)},selectDay:function(){return V.datepicker._selectDay(a,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(a,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(a,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,a,i,s,r,O,L,R,H,n,d,W,c,o,l,h,u,p,g,_,f,k,E,D,m,U,y,P,z,v,M,b,w=new Date,B=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),C=this._get(e,"isRTL"),w=this._get(e,"showButtonPanel"),I=this._get(e,"hideIfNoPrevNext"),x=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),S=this._get(e,"showCurrentAtPos"),F=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],N=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),T=this._getMinMaxDate(e,"min"),A=this._getMinMaxDate(e,"max"),K=e.drawMonth-S,j=e.drawYear;if(K<0&&(K+=12,j--),A)for(t=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-Y[0]*Y[1]+1,A.getDate())),t=T&&t<T?T:t;this._daylightSavingAdjust(new Date(j,K,1))>t;)--K<0&&(K=11,j--);for(e.drawMonth=K,e.drawYear=j,S=this._get(e,"prevText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K-F,1)),this._getFormatConfig(e)):S,a=this._canAdjustMonth(e,-1,j,K)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"e":"w")).text(S))[0].outerHTML,S=this._get(e,"nextText"),S=x?this.formatDate(S,this._daylightSavingAdjust(new Date(j,K+F,1)),this._getFormatConfig(e)):S,i=this._canAdjustMonth(e,1,j,K)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:S}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:S}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(C?"w":"e")).text(S))[0].outerHTML,F=this._get(e,"currentText"),I=this._get(e,"gotoCurrent")&&e.currentDay?N:B,F=x?this.formatDate(F,I,this._getFormatConfig(e)):F,S="",e.inline||(S=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),x="",w&&(x=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(C?S:"").append(this._isInRange(e,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(F):"").append(C?"":S)[0].outerHTML),s=parseInt(this._get(e,"firstDay"),10),s=isNaN(s)?0:s,r=this._get(e,"showWeek"),O=this._get(e,"dayNames"),L=this._get(e,"dayNamesMin"),R=this._get(e,"monthNames"),H=this._get(e,"monthNamesShort"),n=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),W=this._get(e,"selectOtherMonths"),c=this._getDefaultDate(e),o="",h=0;h<Y[0];h++){for(u="",this.maxRows=4,p=0;p<Y[1];p++){if(g=this._daylightSavingAdjust(new Date(j,K,e.selectedDay)),_=" ui-corner-all",f="",J){if(f+="<div class='ui-datepicker-group",1<Y[1])switch(p){case 0:f+=" ui-datepicker-group-first",_=" ui-corner-"+(C?"right":"left");break;case Y[1]-1:f+=" ui-datepicker-group-last",_=" ui-corner-"+(C?"left":"right");break;default:f+=" ui-datepicker-group-middle",_=""}f+="'>"}for(f+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===h?C?i:a:"")+(/all|right/.test(_)&&0===h?C?a:i:"")+this._generateMonthYearHeader(e,K,j,T,A,0<h||0<p,R,H)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",l=0;l<7;l++)k+="<th scope='col'"+(5<=(l+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[E=(l+s)%7]+"'>"+L[E]+"</span></th>";for(f+=k+"</tr></thead><tbody>",m=this._getDaysInMonth(j,K),j===e.selectedYear&&K===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,m)),D=(this._getFirstDayOfMonth(j,K)-s+7)%7,m=Math.ceil((D+m)/7),U=J&&this.maxRows>m?this.maxRows:m,this.maxRows=U,y=this._daylightSavingAdjust(new Date(j,K,1-D)),P=0;P<U;P++){for(f+="<tr>",z=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(y)+"</td>":"",l=0;l<7;l++)v=n?n.apply(e.input?e.input[0]:null,[y]):[!0,""],b=(M=y.getMonth()!==K)&&!W||!v[0]||T&&y<T||A&&A<y,z+="<td class='"+(5<=(l+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(y.getTime()===g.getTime()&&K===e.selectedMonth&&e._keyEvent||c.getTime()===y.getTime()&&c.getTime()===g.getTime()?" "+this._dayOverClass:"")+(b?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!d?"":" "+v[1]+(y.getTime()===N.getTime()?" "+this._currentClass:"")+(y.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(M&&!d||!v[2]?"":" title='"+v[2].replace(/'/g,"&#39;")+"'")+(b?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(M&&!d?"&#xa0;":b?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===B.getTime()?" ui-state-highlight":"")+(y.getTime()===N.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===N.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);f+=z+"</tr>"}11<++K&&(K=0,j++),u+=f+="</tbody></table>"+(J?"</div>"+(0<Y[0]&&p===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}o+=u}return o+=x,e._keyEvent=!1,o},_generateMonthYearHeader:function(e,t,a,i,s,r,n,d){var c,o,l,h,u,p,g=this._get(e,"changeMonth"),_=this._get(e,"changeYear"),f=this._get(e,"showMonthAfterYear"),k=this._get(e,"selectMonthLabel"),D=this._get(e,"selectYearLabel"),m="<div class='ui-datepicker-title'>",y="";if(r||!g)y+="<span class='ui-datepicker-month'>"+n[t]+"</span>";else{for(c=i&&i.getFullYear()===a,o=s&&s.getFullYear()===a,y+="<select class='ui-datepicker-month' aria-label='"+k+"' data-handler='selectMonth' data-event='change'>",l=0;l<12;l++)(!c||l>=i.getMonth())&&(!o||l<=s.getMonth())&&(y+="<option value='"+l+"'"+(l===t?" selected='selected'":"")+">"+d[l]+"</option>");y+="</select>"}if(f||(m+=y+(!r&&g&&_?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!_)m+="<span class='ui-datepicker-year'>"+a+"</span>";else{for(n=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),u=(k=function(e){e=e.match(/c[+\-].*/)?a+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(e)?h:e})(n[0]),p=Math.max(u,k(n[1]||"")),u=i?Math.max(u,i.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+D+"' data-handler='selectYear' data-event='change'>";u<=p;u++)e.yearshtml+="<option value='"+u+"'"+(u===a?" selected='selected'":"")+">"+u+"</option>";e.yearshtml+="</select>",m+=e.yearshtml,e.yearshtml=null}return m+=this._get(e,"yearSuffix"),f&&(m+=(!r&&g&&_?"":"&#xa0;")+y),m+="</div>"},_adjustInstDate:function(e,t,a){var i=e.selectedYear+("Y"===a?t:0),s=e.selectedMonth+("M"===a?t:0),t=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===a?t:0),i=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,t)));e.selectedDay=i.getDate(),e.drawMonth=e.selectedMonth=i.getMonth(),e.drawYear=e.selectedYear=i.getFullYear(),"M"!==a&&"Y"!==a||this._notifyChange(e)},_restrictMinMax:function(e,t){var a=this._getMinMaxDate(e,"min"),e=this._getMinMaxDate(e,"max"),a=a&&t<a?a:t;return e&&e<a?e:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){e=this._get(e,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,a,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(a,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var a,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,n=null,e=this._get(e,"yearRange");return e&&(e=e.split(":"),a=(new Date).getFullYear(),r=parseInt(e[0],10),n=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(r+=a),e[1].match(/[+\-].*/))&&(n+=a),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!n||t.getFullYear()<=n)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,a,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,a,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),V.fn.datepicker=function(e){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?V.datepicker["_"+e+"Datepicker"].apply(V.datepicker,[this].concat(t)):V.datepicker._attachDatepicker(this,e)})},V.datepicker=new e,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.datepicker});
(()=>{var t={0:()=>{window.addEventListener("elementor/popup/show",(function(t){t.detail.id,t.detail.instance.$element.find("[jsf-filter]").removeAttr("jsf-filter")}))},669:t=>{"use strict";t.exports=jQuery}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,r),o.exports}(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}const e={channels:{},subscribe:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.channels[t]||(this.channels[t]=[]),this.channels[t][r?"push":"unshift"](e)},publish:function(e){var r=arguments,i=this.channels[e];i&&i.length&&i.forEach((function(e){return e.apply(void 0,function(e){if(Array.isArray(e))return t(e)}(i=Array.from(r).splice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,r):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var i}))}};function i(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t){return"object"===o(t)&&null!==t}function s(){var t=Array.prototype.slice.call(arguments);if(!t.length)return!1;if(1===t.length)return t[0];var e,r=[];return t.forEach((function(t){r=r.concat(t)})),function(t){if(Array.isArray(t))return n(t)}(e=new Set(r))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){if(!t)return!1;switch(t.constructor){case Object:return!!Object.entries(t).length;case Array:return!!t.length}return!!t}function u(t){return!l(t)}function c(t){try{new URL(t)}catch(t){return!1}return!0}function f(t){var e,r=!0,n=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=i(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(Array.from(arguments).splice(1));try{for(n.s();!(e=n.n()).done;){var o=e.value;if(!t||!t[o]){r=!1;break}t=t[o]}}catch(t){n.e(t)}finally{n.f()}return!!r&&t}function d(t,e){var r=Object.prototype.toString.call(t);if(r!==Object.prototype.toString.call(e))return!1;if(["[object Array]","[object Object]"].indexOf(r)<0)return!1;var i="[object Array]"===r?t.length:Object.keys(t).length;if(i!==("[object Array]"===r?e.length:Object.keys(e).length))return!1;var n=function(t,e){var r=Object.prototype.toString.call(t);if(["[object Array]","[object Object]"].indexOf(r)>=0){if(!d(t,e))return!1}else{if(r!==Object.prototype.toString.call(e))return!1;if("[object Function]"===r){if(t.toString()!==e.toString())return!1}else if(t!==e)return!1}};if("[object Array]"===r){for(var o=0;o<i;o++)if(!1===n(t[o],e[o]))return!1}else for(var a in t)if(t.hasOwnProperty(a)&&!1===n(t[a],e[a]))return!1;return!0}function p(t){return f(JetSmartFilters,"filterGroups",t+"/"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default"))}function h(){var t=function(t){return g(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,!0)}(window.location.pathname+window.location.search),e=t.indexOf("?");if(-1===e)return{};var r=decodeURIComponent(t.slice(e));return(/^[?#]/.test(r)?r.slice(1):r).split("&").reduce((function(t,e){var r,n,o=(r=e.split("="),n=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,n,o,a,s=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){u=!0,n=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw n}}return s}}(r,n)||i(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=o[0],s=o[1];return a&&(t[a]=s?s.replace(/\+/g," "):""),t}),{})}function y(t){return!(!t||!t.getTime())&&t.getFullYear()+"."+(t.getMonth()+1)+"."+t.getDate()}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setDate(t.getDate()+e),t}function m(t){return!!t&&!(!(e=t.includes("today")?function(t){var e=new Date,r=t.match(/([-+]\s*\d+(\.\d+)?\s*\w+)(?=\s*[-+]|$)/g);return r&&r.forEach((function(t){var r="-"===t.substring(0,1)?-parseInt(t.substring(1)):parseInt(t.substring(1));t.includes("day")&&v(e,r),t.includes("week")&&v(e,7*r),t.includes("month")&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=t.getDate();t.setMonth(t.getMonth()+e),t.getDate()!=r&&t.setDate(0)}(e,r),t.includes("year")&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t.setFullYear(t.getFullYear()+e)}(e,r)})),e}(t):t.includes("current")?function(t){var e=new Date,r=t.split("-",3).map((function(t,r){if(t.includes("current"))switch(r){case 0:t=e.getFullYear();break;case 1:t=e.getMonth()+1;break;case 2:t=e.getDate()}return t}));return new Date(r.join("-"))}(t):new Date(t))||isNaN(e))&&(e.setHours(0,0,0,0),e);var e}function b(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=null;return function(){var n=arguments,o=this,a=r&&!i,s=function(){return t.apply(o,n)};clearTimeout(i),i=setTimeout(s,e),a&&s()}}function g(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!0;if(e||(i=function(t){if("boolean"==typeof t)return t;switch(t.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1;default:return Boolean(t)}}(f(JetSmartFilterSettings,"plugin_settings","use_url_aliases")),e=f(JetSmartFilterSettings,"plugin_settings","url_aliases")),!i||!e)return t;var n=f(JetSmartFilterSettings,"sitepath"),o=!(!n||0!==t.indexOf(n));return o&&(t=t.slice(n.length)),e.forEach((function(e){e.needle&&e.replacement&&(t=r?t.replace(e.replacement,e.needle):t.replace(e.needle,e.replacement))})),o&&(t=n+t),t}function w(t){return g(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,!1)}function S(t){var e="";try{for(;t.parentElement;){var r=Array.from(t.parentElement.children).filter((function(e){return e.tagName===t.tagName}));e=(r.indexOf(t)?"".concat(t.tagName,":nth-of-type(").concat(r.indexOf(t)+1,")"):"".concat(t.tagName))+"".concat(e?">":"").concat(e),t=t.parentElement}return"html > ".concat(e.toLowerCase())}catch(t){return!1}}function j(t){if("string"!=typeof t)return t;if(!/[<>]/.test(t))return t;var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""}function k(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(t){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P(t)}function O(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function _(t){var e=function(t){if("object"!=P(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==P(e)?e:e+""}var x=function(){return t=function t(r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterGroup=r,e.subscribe("fiter/apply",(function(t){i.isCurrentAdditionalProvider(t)&&!t.isReload&&i.changeByParent(t)}),!0),e.subscribe("fiters/apply",(function(t){i.isCurrentAdditionalProvider(t)&&!t.isReload&&i.applyFiltersByParent(t)}),!0),e.subscribe("fiters/remove",(function(t){i.isCurrentAdditionalProvider(t)&&!t.isReload&&i.removeByParent(t)}),!0),e.subscribe("ajaxFilters/updated",(function(t,e){i.filterGroup.isCurrentProvider({provider:t,queryId:e})&&(i.filterGroup.additionalRequest=!1)}),!0)},r=[{key:"changeByParent",value:function(t){this.updateAdditionalFilterByParent(t)&&"reload"!==t.applyType&&(this.filterGroup.additionalRequest=!0,this.filterGroup.applyFilterHandler(t.applyType))}},{key:"applyFiltersByParent",value:function(t){var e=this,r=!1;this.parentProviderCurrentFilters(t.provider,t.queryId).forEach((function(t){e.updateAdditionalFilterByParent(t)&&"reload"!==t.applyType&&(r=!0)})),r&&(this.filterGroup.additionalRequest=!0,this.filterGroup.applyFiltersHandler(t.applyType))}},{key:"updateAdditionalFilterByParent",value:function(t){var e=this.findInCollection(t);return!!e&&(e.data=t.data,this.filterGroup.updateSameFilters(e),t.isHierarchy&&this.updateHierarchyLevelsByParent(t),!0)}},{key:"removeByParent",value:function(t){this.resetFilters(),this.filterGroup.additionalRequest=!0,this.filterGroup.removeFiltersHandler(t.applyType)}},{key:"updateProvider",value:function(){this.filters.length&&(this.filterGroup.currentQuery={},this.filterGroup.additionalRequest=!0,this.filterGroup.doAjax())}},{key:"parentProviderCurrentFilters",value:function(t,e){var r=this;return function(t){var e=p(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default");return e&&e.uniqueFilters||[]}(t,e).filter((function(t){return r.isCurrentAdditionalProvider(t)}))}},{key:"resetFilters",value:function(){this.filters.forEach((function(t){t.data=!1}))}},{key:"findInCollection",value:function(t){return this.filters.find((function(r){return e(t)===e(r)}));function e(t){return t.name+"|"+t.filterId+"|"+t.queryKey}}},{key:"isCurrentAdditionalProvider",value:function(t){return!(!t.additionalProviders||!Array.isArray(t.additionalProviders)||!t.additionalProviders.includes(this.filterGroup.providerKey))}},{key:"updateHierarchyLevelsByParent",value:function(t){var e=this;t.hierarchicalInstance.filters.forEach((function(t){e.filters.find((function(e){return e.filterId===t.filterId&&e.depth===t.depth})).data=t.data}))}},{key:"filters",get:function(){return this.filterGroup.filters.filter((function(t){return t.isAdditional}))}}],r&&O(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(),C=r(669);function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}function I(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,E(i.key),i)}}function F(t,e,r){return e&&I(t.prototype,e),r&&I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function E(t){var e=function(t){if("object"!=$(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==$(e)?e:e+""}var D=F((function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterGroup=e,C(document).on("jet-engine-request-calendar",(function(){var t=f(JetEngine,"currentRequest");if(t&&"jet-engine-calendar"===r.filterGroup.provider){if(t.settings&&t.settings.hasOwnProperty("_element_id")){var e=t.settings._element_id?t.settings._element_id:"default";if(r.filterGroup.queryId!==e)return}t.query=r.filterGroup.currentQuery,t.provider=r.filterGroup.provider+"/"+r.filterGroup.queryId;var i=t.month.split(" ");2===i.length&&window.JetSmartFilterSettings.settings&&window.JetSmartFilterSettings.settings[r.filterGroup.provider]&&window.JetSmartFilterSettings.settings[r.filterGroup.provider][r.filterGroup.queryId]&&(window.JetSmartFilterSettings.settings[r.filterGroup.provider][r.filterGroup.queryId].custom_start_from=!0,window.JetSmartFilterSettings.settings[r.filterGroup.provider][r.filterGroup.queryId].start_from_month=i[0],window.JetSmartFilterSettings.settings[r.filterGroup.provider][r.filterGroup.queryId].start_from_year=i[1])}})),C(document).on("jet-woo-builder-content-rendered",(function(){"woocommerce-archive"===r.filterGroup.provider&&r.filterGroup.getFiltersByName("pagination").forEach((function(t){t.resetMoreActive()}))}))}));function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function R(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,V(i.key),i)}}function A(t,e,r){return(e=V(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V(t){var e=function(t){if("object"!=T(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==T(e)?e:e+""}var q=function(){return t=function t(r){var i=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,"rowSelector",".jet-filter-row"),A(this,"counterSelector",".jet-filters-counter"),this.filter=r,this.currentIndexerData=this.indexerData,this.isCounter="yes"===this.filter.$container.data("showCounter"),this.indexerRule=this.filter.$container.data("indexerRule"),this.changeCounte=this.filter.$container.data("changeCounter"),this.isCounter||"show"!==this.indexerRule){this.set();var n=!0;e.subscribe("fiter/apply",(function(t){t.filterId!=i.filter.filterId&&(n=!1)})),e.subscribe("ajaxFilters/updated",(function(t,e){var r;i.filter.isCurrentProvider({provider:t,queryId:e})&&("never"===i.changeCounte||"other_changed"===i.changeCounte&&n&&l(null===(r=window.JetSmartFilters.filterGroups)||void 0===r||null===(r=r[t+"/"+e])||void 0===r?void 0:r.currentQuery)||(n=!0,i.update()))})),e.subscribe("fiters/remove",(function(t){i.filter.isCurrentProvider(t)&&(n=!1)})),e.subscribe("hierarchyFilters/levelsUpdated",(function(t){i.filter.filterId===t&&i.set()}))}},(r=[{key:"set",value:function(){var t=this,e=this.$items,r=e.length,i=0;e.each((function(r){var n=e.eq(r),o=t.currentIndexerData[n.val()]||0,a=t.isSelectedItem(n);if(n.val()){if(t.isCounter)switch(n.prop("tagName")){case"INPUT":(n=n.closest(t.rowSelector)).find(t.counterSelector+" .value").text(o);break;case"OPTION":""!==n.attr("loading-item")&&""!==n.attr("value")&&n.text(n.data("label")+" "+n.data("counter-prefix")+o+n.data("counter-suffix"))}else"INPUT"===n.prop("tagName")&&(n=n.closest(t.rowSelector));["hide","disable"].includes(t.indexerRule)&&(o||a||t.hasNonEmptyNestedItems(n)?(n.removeClass("jet-filter-row-"+t.indexerRule),"OPTION"===n.prop("tagName")&&"hide"===t.indexerRule&&n.parent("span.jet-filter-row-hide").length&&n.unwrap(),"OPTION"===n.prop("tagName")&&"disable"===t.indexerRule&&n.removeAttr("disabled")):(n.addClass("jet-filter-row-"+t.indexerRule),"OPTION"===n.prop("tagName")&&"hide"===t.indexerRule&&!n.parent("span.jet-filter-row-hide").length&&n.val()&&n.wrap('<span class="jet-filter-row-hide" />'),"OPTION"===n.prop("tagName")&&"disable"===t.indexerRule&&n.attr("disabled",!0)),"hide"!==t.indexerRule||0!==o||a||i++)}else i++})),"hide"===this.indexerRule&&(!this.filter.isHierarchy||this.filter.isHierarchy&&0===this.filter.depth?i>=r?(this.filter.$container.hide(),this.filter.$applyButton.hide()):(this.filter.$container.show(),this.filter.$applyButton.show()):i>=r?this.filter.$filter.hide():this.filter.$filter.show()),this.updateFilter()}},{key:"isSelectedItem",value:function(t){return"OPTION"===t.prop("tagName")?t.is(":selected"):t.is(":checked")}},{key:"update",value:function(){var t=this.indexerData;d(t,this.currentIndexerData)||(this.currentIndexerData=t,this.set())}},{key:"updateFilter",value:function(){this.filter.additionalFilterSettings&&this.filter.additionalFilterSettings.toggleItemsVisibility()}},{key:"$items",get:function(){return this.filter.$filter.find("input, option")}},{key:"indexerData",get:function(){var t=f(JetSmartFilterSettings,"jetFiltersIndexedData"),e={};for(var r in t)if(r===this.filter.provider+"/"+this.filter.queryId)for(var i in t[r])if(i===this.filter.queryType)for(var n in t[r][i])if(n===this.filter.queryVar)for(var o in t[r][i][n])e[o]=t[r][i][n][o];return e}},{key:"hasNonEmptyNestedItems",value:function(t){var e=!1;if(!t.hasClass("jet-list-tree__parent"))return e;var r=t.next(".jet-list-tree__children");if(!r.length)return e;var i=this.currentIndexerData;return r.find("input.jet-checkboxes-list__input").each((function(t,r){if(i[r.value])return e=!0,!1})),e}}])&&R(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(),B=r(669);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function M(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,L(i.key),i)}}function L(t){var e=function(t){if("object"!=N(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==N(e)?e:e+""}var G=function(){return t=function t(e){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e.$filter){switch(this.filter=e,this.filter.name){case"checkboxes":case"radio":case"check-range":case"alphabet":case"visual":this.checkboxes(),this.filter.additionalFilterSettings&&this.filter.additionalFilterSettings.$dropdown.length&&this.checkboxesDropdown();break;case"rating":this.rating();break;case"range":this.range();break;case"date-period":this.datePeriod();break;case"pagination":this.pagination();break;case"active-filters":case"active-tags":this.activeItems()}this.indexerAddition()}},r=[{key:"itemsTriggerClickOnEnterPress",value:function(t){t.keypress((function(t){t.preventDefault(),13===t.keyCode&&B(t.target).trigger("click")}))}},{key:"checkboxes",value:function(){var t=this;this.filter.$filter.find("label[tabindex]").keypress((function(e){if(e.preventDefault(),[13,32].includes(e.keyCode)){var r=B(e.target).find("input");r.prop("checked",!r.prop("checked")),t.filter.processData(),t.filter.emitFiterApply()}})),this.filter.$filter.find(".jet-filter-items-moreless[tabindex]").keypress((function(e){e.preventDefault(),[13,32].includes(e.keyCode)&&t.filter.additionalFilterSettings.moreLessToggle()}))}},{key:"checkboxesDropdown",value:function(){var t=this;this.filter.additionalFilterSettings.$dropdown.find(".jet-filter-items-dropdown__label").keypress((function(e){e.preventDefault(),[13,32].includes(e.keyCode)&&t.filter.additionalFilterSettings.dropdownToggle()})),this.filter.$filter.find("[tabindex]").last().keydown((function(e){9===e.keyCode&&t.filter.additionalFilterSettings.dropdownClose()}))}},{key:"rating",value:function(){this.filter.$filter.find("[tabindex]").keypress((function(t){t.preventDefault(),B(t.target).prev("input").trigger("click")}))}},{key:"range",value:function(){var t=this;this.filter.$filter.find("[tabindex]").keydown((function(e){if([13,32,37,38,39,40].includes(e.keyCode)){e.preventDefault();var r=B(e.target);[37,38,39,40].includes(e.keyCode)&&([37,40].includes(e.keyCode)&&r.val(parseFloat(r.val())-parseFloat(r.attr("step"))),[38,39].includes(e.keyCode)&&r.val(parseFloat(r.val())+parseFloat(r.attr("step"))),r.trigger("input"),t.filter.processData()),13===e.keyCode&&t.filter.emitFiterApply()}}))}},{key:"datePeriod",value:function(){var t=this;this.filter.$datepickerBtn.is("[tabindex]")&&(this.filter.$datepickerBtn.focus((function(){t.filter.datepicker.show()})),this.filter.$datepickerBtn.blur((function(){t.filter.datepicker.inFocus||t.filter.datepicker.hide()})),this.filter.$datepickerBtn.on("keydown.adp",this.filter.datepicker._onKeyDown.bind(this.filter.datepicker)),this.filter.$datepickerBtn.on("keyup.adp",this.filter.datepicker._onKeyUp.bind(this.filter.datepicker)),this.filter.$datepickerBtn.keypress((function(e){[32].includes(e.keyCode)&&(t.filter.datepicker.visible?t.filter.datepicker.hide():t.filter.datepicker.show())})),this.filter.$prevPeriodBtn.keypress((function(e){[13,32,37,39].includes(e.keyCode)&&(e.preventDefault(),13===e.keyCode&&t.filter.prevPeriod())})),this.filter.$nextPeriodBtn.keypress((function(e){[13,32,37,39].includes(e.keyCode)&&(e.preventDefault(),13===e.keyCode&&t.filter.nextPeriod())})))}},{key:"pagination",value:function(){var t=this;this.itemsTriggerClickOnEnterPress(this.filter.$filter.find("[tabindex]")),e.subscribe("pagination/itemsBuilt",(function(e){t.itemsTriggerClickOnEnterPress(e.$filter.find("[tabindex]"))}))}},{key:"activeItems",value:function(){var t=this;this.itemsTriggerClickOnEnterPress(this.filter.$activeItemsContainer.find("[tabindex]")),e.subscribe("activeItems/itemsBuilt",(function(e){t.itemsTriggerClickOnEnterPress(e.$activeItemsContainer.find("[tabindex]"))}))}},{key:"indexerAddition",value:function(){var t=this;if(this.filter.indexer&&"disable"===this.filter.indexer.indexerRule){var r=function(){t.filter.$filter.find('.jet-filter-row [tabindex="-1"]').attr("tabindex","0"),t.filter.$filter.find('.jet-filter-row-disable [tabindex="0"]').attr("tabindex","-1")};r(),e.subscribe("ajaxFilters/updated",(function(e,i){t.filter.isCurrentProvider({provider:e,queryId:i})&&r()}))}}}],r&&M(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function U(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,H(i.key),i)}}function H(t){var e=function(t){if("object"!=J(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==J(e)?e:e+""}var K=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterGroup=e,this.containerLoadingClass="jet-filters-loading",this.preloaderClass="jsf_provider-preloader",this.preloaderTemplate=f(JetSmartFilterSettings,"plugin_settings","provider_preloader","template"),this.fixedPosition=f(JetSmartFilterSettings,"plugin_settings","provider_preloader","fixed_position"),this.fixedEdgeGap=parseInt(f(JetSmartFilterSettings,"plugin_settings","provider_preloader","fixed_edge_gap"))||0,this.$container=null,this.$preloader=null},(e=[{key:"show",value:function(){this.filterGroup.$provider.addClass(this.containerLoadingClass),this.preloaderTemplate&&("bricks-query-loop"===this.filterGroup.provider?(this.$container=this.filterGroup.$provider.first().append(this.preloaderTemplate),this.$preloader=this.filterGroup.$provider.first().find(">.".concat(this.preloaderClass))):(this.$container=this.filterGroup.$provider.append(this.preloaderTemplate),this.$preloader=this.filterGroup.$provider.find(">.".concat(this.preloaderClass))),this.fixedPosition&&"bricks-query-loop"!==this.filterGroup.provider&&(this.handleEvent(),window.addEventListener("scroll",this),window.addEventListener("resize",this)))}},{key:"hide",value:function(){this.filterGroup.$provider.removeClass(this.containerLoadingClass),this.$preloader&&this.$preloader.remove&&this.$preloader.remove(),this.$preloader=null,this.$container=null,window.removeEventListener("scroll",this),window.removeEventListener("resize",this)}},{key:"handleEvent",value:function(){var t=this.$container.get(0).getBoundingClientRect(),e=t.top,r=t.left,i=t.height,n=t.width,o=this.$preloader.outerHeight(),a=window.innerHeight/2-o/2,s=a-e-this.fixedEdgeGap,l=i+e-o-a-this.fixedEdgeGap;s>0&&l>0?this.$preloader.css({position:"fixed",top:"".concat(a,"px"),left:"".concat(r+n/2,"px")}):this.$preloader.css({position:"absolute",top:"".concat(e>=0?this.fixedEdgeGap:i-o-this.fixedEdgeGap,"px"),left:"50%"})}}])&&U(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function z(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Y(i.key),i)}}function Y(t){var e=function(t){if("object"!=W(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=W(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==W(e)?e:e+""}var X=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterGroup=e,this.setted={}},e=[{key:"set",value:function(){var t=this,e=!1,r=[];this.filters.forEach((function(i){if(!t.setted[i.uniqueKey]){var n=i.data,o=i.$filter.attr("data-predefined-value");if(t.setted[i.uniqueKey]=o,n!==o){var a=o;if(["checkboxes","check-range","alphabet","visual"].includes(i.name)&&a.indexOf(",")>-1&&(a=a.split(",").map((function(t){return t.trim()}))),n){if(!(["checkboxes","check-range"].includes(i.name)||"alphabet"===i.name&&"checkbox"===i.$checkboxes.first().attr("type")||"visual"===i.name&&"checkbox"===i.$checkboxes.first().attr("type")))return;a=s(n,a)}"select"===i.name&&i.isHierarchy?i.hierarchicalInstance.setData(a.split("-").map((function(t){return t.trim()}))):(i.setData(a),i.wasChanged(!1)),Array.isArray(i.additionalProviders)&&r.push(i),e=!0}}})),e&&(this.filterGroup.apply(),setTimeout((function(){var t=[];r.forEach((function(e){e.additionalProviders.forEach((function(r){var i=p.apply(void 0,function(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Q(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.split("/",2)));i&&i.additionalFilters.updateAdditionalFilterByParent(e)&&t.every((function(t){return t.providerKey!==i.providerKey}))&&t.push(i)}))})),t.forEach((function(t){t.apply()}))})))}},{key:"filters",get:function(){return this.filterGroup.filters.filter((function(t){return t.$filter&&t.$filter.is("[data-predefined-value]")}))}}],e&&z(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Z(t){return Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(t)}function tt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,et(i.key),i)}}function et(t){var e=function(t){if("object"!=Z(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Z(e)?e:e+""}var rt=new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filters={},this.actions={}},e=[{key:"addFilter",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.filters[t]||(this.filters[t]=[]),this.filters[t].push({callback:e,priority:r}),this.filters[t].sort((function(t,e){return t.priority-e.priority}))}},{key:"applyFilters",value:function(t,e){for(var r=arguments.length,i=new Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return this.filters[t]?this.filters[t].reduce((function(t,e){return e.callback.apply(e,[t].concat(i))}),e):e}},{key:"removeFilter",value:function(t,e){this.filters[t]&&(this.filters[t]=this.filters[t].filter((function(t){return t.callback!==e})))}},{key:"addAction",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.actions[t]||(this.actions[t]=[]),this.actions[t].push({callback:e,priority:r}),this.actions[t].sort((function(t,e){return t.priority-e.priority}))}},{key:"doAction",value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];this.actions[t]&&this.actions[t].forEach((function(t){t.callback.apply(t,r)}))}},{key:"removeAction",value:function(t,e){this.actions[t]&&(this.actions[t]=this.actions[t].filter((function(t){return t.callback!==e})))}}],e&&tt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()),it=rt.addFilter.bind(rt),nt=rt.applyFilters.bind(rt);rt.removeFilter.bind(rt),rt.addAction.bind(rt),rt.doAction.bind(rt),rt.removeAction.bind(rt);var ot=r(669);function at(t){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},at(t)}const st={xhrs:{},ajax:function(t){var e=this;return t=t||{},window.JetPlugins&&(t=window.JetPlugins.hooks.applyFilters("jet-smart-filters.request.data",t)),new Promise((function(r,i){var n={},o=t.url||f(JetSmartFilterSettings,"ajaxurl"),a=t.action||"jet_smart_filters",s=t.query||!1,l=function(t,e){if(!t.hasOwnProperty(e))return!1;var r=t[e];return delete t[e],r}(s,"jet_paged"),u=t.provider||!1,c=t.queryId||"default",d=t.props||f(JetSmartFilterSettings,"props",u,c)||{},p=t.extra_props||f(JetSmartFilterSettings,"extra_props")||{},h=t.defaults||f(JetSmartFilterSettings,"queries",u,c)||{},y=t.settings||f(JetSmartFilterSettings,"settings",u,c)||{},v=t.referrer_data||f(JetSmartFilterSettings,"referrer_data")||!1,m=t.referrer_url||f(JetSmartFilterSettings,"referrer_url")||!1,b=t.indexingFilters||!1;if([o,a,s,u,c].some((function(t){return!Boolean(t)})))i('Not enough parameters. Check if the "Provider" and "Query ID" are set correctly');else{e.xhrs[u+"/"+c]&&e.xhrs[u+"/"+c].abort(),n.action=a,n.provider=u+"/"+c,n.query=s,n.defaults=h,n.settings=y,n.props=d,l>1&&(n.paged=l),v&&(n.referrer=v),b&&(n.indexing_filters=b);var g=o;m&&(g=m),p&&Object.assign(n,p),nt("request/ajax-data",n),e.xhrs[u+"/"+c]=ot.ajax({url:g,type:"POST",dataType:"json",data:n}).done((function(t){r(t)})).fail((function(t,e){"abort"===e&&i(!1);var r;r=0===t.status?"Not connect.\n Verify Network.":404==t.status?"Requested page not found. [404]":500==t.status?"Internal Server Error [500].":"parsererror"===e?"Requested JSON parse failed.":"timeout"===e?"Time out error.":"Uncaught Error.\n"+t.responseText,i(r)}))}}))},reload:function(t){document.location=t||window.location.pathname},redirectWithGET:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var i=w((e=("/"!==e.charAt(0)?"/":"")+e+("/"!==e.charAt(e.length-1)?"/":""))+t);c(i)||(i=f(JetSmartFilterSettings,"siteurl")+i),window.open(i,r?"_blank":"_top")}},redirectWithPOST:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){c(e)||(e=f(JetSmartFilterSettings,"siteurl")+"/"+e);var i=ot("<form></form>").attr("method","post").attr("action",e);r&&i.attr("target","_blank"),t["jet-smart-filters-redirect"]=1,ot.each(t,(function(t,e){Array.isArray(e)?e.forEach((function(e){i.append(n(t+"[]",e))})):("object"===at(e)&&null!==e&&(e=JSON.stringify(e)),i.append(n(t,e)))})),ot(i).appendTo("body").submit()}function n(t,e){var r=ot("<input></input>");return r.attr("type","hidden"),r.attr("name",t),r.attr("value",e),r}}};var lt=f(JetSmartFilterSettings,"plugin_settings","url_custom_symbols");function ut(t){var e="";if(a(lt)&&lt[t]&&(e=lt[t]),!e)switch(t){case"provider_id":case"key_value":e=":";break;case"items_separator":e=";";break;case"value_separator":e=",";break;case"var_suffix":e="!"}return e}var ct=ut("provider_id"),ft=ut("items_separator"),dt=ut("key_value"),pt=ut("value_separator"),ht=ut("var_suffix");const yt={provider_id:ct,items_separator:ft,key_value:dt,value_separator:pt,var_suffix:ht,parseData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt;if(!Array.isArray(t))return encodeURIComponent(t);for(var r="",i=0;i<t.length;i++)r+=encodeURIComponent(t[i]),i<t.length-1&&(r+=e);return r}};var vt=r(669),mt=r(669);function bt(t){return bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function St(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(r),!0).forEach((function(e){kt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Pt(i.key),i)}}function kt(t,e,r){return(e=Pt(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pt(t){var e=function(t){if("object"!=bt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==bt(e)?e:e+""}var Ot=function(){return t=function t(r,i){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),kt(this,"urlPrefix","jsf"),kt(this,"activeItemsExceptions",["sorting","pagination"]),this.provider=r,this.queryId=i,this.filters=[],this.providerSelector=this.getProviderSelector(),this.$provider=this.getProvider(),this.currentQuery=Object.assign({},this.urlParams),this.isAjaxLoading=!1,this.urlType=f(JetSmartFilterSettings,"misc","url_type")||"plain",this.siteUrl=f(JetSmartFilterSettings,"siteurl"),this.baseUrl=f(JetSmartFilterSettings,"baseurl"),this.baseUrlParams=function(){var t=h(),e=f(JetSmartFilterSettings,"misc","valid_url_params"),r="";for(var i in t){var n=t[i];e.includes(i)||(r+=i+(n?"="+n:"")+"&")}return r&&(r="?"+r.replace(/&+$/,"")),r}(),this.additionalFilters=new x(this),this.customProvider=new D(this),this.providerPreloader=new K(this),this.predefinedData=new X(this),o.forEach((function(t){n.addFilter(t)})),this.debounceProcessFilters=b(this.processFilters,100),e.publish("filterGroup/init",this),e.subscribe("fiter/change",(function(t){n.isCurrentProvider(t)&&n.updateSameFilters(t)}),!0),e.subscribe("fiter/syncSameFilters",(function(t){n.isCurrentProvider(t)&&n.syncSameFilters(t)}),!0),e.subscribe("fiter/apply",(function(t){n.isCurrentProvider(t)&&n.applyFilterHandler(t.applyType)}),!0),e.subscribe("fiters/apply",(function(t){n.isCurrentProvider(t)&&n.applyFiltersHandler(t.applyType,!(!t.redirect||!t.redirectPath)&&t.redirectPath,t.redirectInNewWindow)}),!0),e.subscribe("fiters/remove",(function(t){n.isCurrentProvider(t)&&n.removeFiltersHandler(t.applyType)})),e.subscribe("pagination/change",(function(t){n.isCurrentProvider(t)&&n.paginationСhangeHandler(t.applyType,t.topOffset)}),!0),e.subscribe("pagination/load-more",(function(t){n.isCurrentProvider(t)&&n.paginationLoadMoreHandler(t.topOffset)}),!0)},r=[{key:"addFilter",value:function(t){this.filters=this.filters.filter((function(e){var r=t.path===e.path;return r&&t.setData&&t.setData(e.data),!r})),t.uniqueKey=this.getFilterUniqueKey(t);var e=this.filters.find((function(e){return t.uniqueKey===e.uniqueKey}));e&&(t.syncWithSameFilter?t.syncWithSameFilter(e):t.setData&&e.data!==t.data&&t.setData(e.data)),this.filters.push(t),this.initIndexer(t),this.initTabIndex(t),this.debounceProcessFilters()}},{key:"processFilters",value:function(){this.filters.length&&(this.currentQuery=this.query,this.setFiltersData(),this.additionalFilters.updateProvider(),this.predefinedData.set(),this.emitFiltersProcessed())}},{key:"reinitFilters",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&!Array.isArray(t)&&(t=[t]),this.filters.forEach((function(e){t&&!t.includes(e.name)||e.reinit&&e.reinit()})),this.processFilters()}},{key:"applyFilterHandler",value:function(t){this.resetFiltersByName("pagination"),this.apply(t)}},{key:"applyFiltersHandler",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.resetFiltersByName("pagination"),this.updateFiltersData(),e?this.doRedirect(t,e,r):this.apply(t)}},{key:"removeFiltersHandler",value:function(t){this.resetFiltersByName("pagination"),this.resetFilters(),this.apply(t)}},{key:"paginationСhangeHandler",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.apply(t),"reload"===t||!e&&0!==e||vt("html, body").stop().animate({scrollTop:this.$provider.offset().top-e},500)}},{key:"paginationLoadMoreHandler",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.doAjax({append:!0,autoscroll:t})}},{key:"apply",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ajax";this.emitActiveItems(),"reload"===t?this.doReload():this.doAjax()}},{key:"doRedirect",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("reload"===t)st.redirectWithGET(this.getUrl(!0),e,r);else{var i=St(kt({},this.urlPrefix,this.providerKey),this.query);st.redirectWithPOST(i,e,r)}}},{key:"doReload",value:function(){var t=this.getUrl(!0),e=this.baseUrl;t&&(e=w(this.baseUrl+t)),window.JetPlugins&&(e=window.JetPlugins.hooks.applyFilters("jet-smart-filters.filter.reload-location",e,this)),document.location=e}},{key:"doAjax",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.query;this.$provider=this.getProvider(),this.isProviderExist&&!d(r,this.currentQuery)&&(this.currentQuery=r,this.additionalRequest||this.updateUrl(),this.ajaxRequest((function(r){t.ajaxRequestCompleted(St({},r),e)})))}},{key:"ajaxRequest",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.query;this.startAjaxLoading(),st.ajax({query:r,provider:this.provider,queryId:this.queryId,indexingFilters:this.indexingFilters}).then((function(r){t(r),e.endAjaxLoading()})).catch((function(t){t&&(console.error(t),e.endAjaxLoading())}))}},{key:"startAjaxLoading",value:function(){this.isAjaxLoading=!0,this.providerPreloader.show(),e.publish("ajaxFilters/start-loading",this.provider,this.queryId)}},{key:"endAjaxLoading",value:function(){this.isAjaxLoading=!1,this.providerPreloader.hide(),e.publish("ajaxFilters/end-loading",this.provider,this.queryId)}},{key:"ajaxRequestCompleted",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.pagination&&f(JetSmartFilterSettings,"props",this.provider,this.queryId)&&(window.JetSmartFilterSettings.props[this.provider][this.queryId]=St({},t.pagination)),t.jetFiltersIndexedData&&f(JetSmartFilterSettings,"jetFiltersIndexedData",this.providerKey)&&(window.JetSmartFilterSettings.jetFiltersIndexedData[this.providerKey]=t.jetFiltersIndexedData[this.providerKey]),t.content&&this.renderResult(t.content,r),t.is_data&&this.$provider.trigger("jet-filter-data-updated",[t,this]),t.fragments)for(var i in t.fragments){var n=mt(i);n.length&&n.html(t.fragments[i])}if(t.replace_fragments)for(var o in t.replace_fragments){var a=mt(o);a.length&&a.replaceWith(t.replace_fragments[o])}this.provider&&this.$provider.closest(".elementor-widget-jet-engine-maps-listing, .jet-map-listing, .brxe-jet-engine-maps-listing").trigger("jet-filter-custom-content-render",t),e.publish("ajaxFilters/updated",this.provider,this.queryId,t,r)}},{key:"renderResult",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.$provider.length){if(vt(document).find(this.$provider).length||(this.$provider=this.getProvider()),r.append){var i=this.$provider,n=!1;if(this.providerSelectorData.list&&(i=i.find(this.providerSelectorData.list).not(this.providerSelectorData.list+" "+this.providerSelectorData.list)),this.providerSelectorData.item)n=vt(t).find(this.providerSelectorData.item).not(this.providerSelectorData.item+" "+this.providerSelectorData.item);else{var o=this.providerSelectorData.list||this.providerSelectorData.selector;n=vt('<div class="container">'+t+"</div>").find(o).not(o+" "+o).children()}if(r.autoscroll||0===r.autoscroll){var a="number"==typeof r.autoscroll?r.autoscroll:0;vt("html, body").stop().animate({scrollTop:i.offset().top+i.outerHeight(!0)-a},500)}i.append(n)}else"insert"===this.providerSelectorData.action?("epro-portfolio"===this.provider&&(t=vt(t).find(this.providerSelectorData.selector).children()),this.$provider.html(t)):(this.$provider.replaceWith(t),this.$provider=this.getProvider());if(window.elementorFrontend){switch(this.provider){case"jet-engine":this.$provider.closest(".elementor-widget-jet-listing-grid").length&&window.elementorFrontend.hooks.doAction("frontend/element_ready/jet-listing-grid.default",this.$provider,vt);break;case"epro-portfolio":window.elementorFrontend.hooks.doAction("frontend/element_ready/portfolio.default",this.$provider.closest(".elementor-widget-portfolio"),vt);break;case"epro-loop-builder":var s=this.$provider.closest(".elementor-widget-loop-grid");s.length&&window.elementorFrontend.hooks.doAction("frontend/element_ready/"+s.data("widget_type"),s,vt)}this.$provider.find("[data-element_type]").each((function(t,e){var r=vt(e),i=r.data("element_type");"widget"===i&&(i=r.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",r,vt)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",r,vt),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+i,r,vt)}));var l=new Event("elementor/lazyload/observe");document.dispatchEvent(l)}if(window.bricksIsFrontend&&["jet-engine","jet-engine-calendar"].includes(this.provider)){var u=this.$provider[0].closest(".brxe-jet-listing");document.dispatchEvent(new CustomEvent("bricks/ajax/query_result/displayed",{detail:{queryId:(null==u?void 0:u.getAttribute("data-script-id"))||null}}))}window.JetPlugins&&(window.JetPlugins.init(this.$provider),this.$provider.closest('[data-is-block*="/"]').length&&window.JetPlugins.initBlock(this.$provider.closest('[data-is-block*="/"]')[0],!0)),e.publish("provider/content-rendered",this.provider,this.$provider),vt(document).trigger("jet-filter-content-rendered",[this.$provider,this,this.provider,this.queryId])}}},{key:"setFiltersData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentQuery;this.filters.forEach((function(e){if(!e.isHierarchy&&!e.disabled){var r=e.queryKey,i=t[r];i&&e.setData&&e.setData(i)}})),this.emitActiveItems()}},{key:"updateFiltersData",value:function(){this.filters.forEach((function(t){t.processData&&t.processData()}))}},{key:"resetFilters",value:function(){this.filters.forEach((function(t){t.reset&&t.reset()}))}},{key:"updateSameFilters",value:function(t){this.getSameFilters(t).forEach((function(e){t.data!==e.data&&(e.setData?e.setData(t.data):e.data=t.data)}))}},{key:"syncSameFilters",value:function(t){this.getSameFilters(t,!0).forEach((function(e){e.syncWithSameFilter&&e.syncWithSameFilter(t)}))}},{key:"getFiltersByName",value:function(t){return this.filters.filter((function(e){return e.name===t}))}},{key:"resetFiltersByName",value:function(t){this.getFiltersByName(t).forEach((function(t){t.reset&&t.reset()}))}},{key:"updateUrl",value:function(){var t=this.filters.some((function(t){if(t.data)return!0}));if(t){var e=this.getUrl();e&&history.replaceState(null,null,w(this.baseUrl+e))}else history.replaceState(null,null,this.baseUrl+this.baseUrlParams)}},{key:"getUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={};if(this.uniqueFilters.forEach((function(r){if(t||r.isMixed||r.isReload){var i=r.urlData;if(i){var n=r.queryType,o=r.queryVar;switch(n){case"tax_query":n="tax";break;case"meta_query":n="meta";break;case"date_query":n="date",o=!1,i=i.replaceAll("/","-");break;case"sort":var a=JSON.parse(i);for(var l in o=!1,i="",a)i+=l+yt.key_value+a[l]+yt.items_separator;i=i.replace(new RegExp(k(yt.items_separator)+"\\s*$"),"");break;case"_s":o=!1}switch(r.name){case"range":o+=yt.var_suffix+"range";break;case"check-range":o+=yt.var_suffix+"check-range";break;case"date-range":case"date-period":"meta"===n&&(o+=yt.var_suffix+"date");break;case"pagination":n="pagenum";break;case"search":"meta_query"===r.queryType&&(n="_sm",o=!1,i=r.queryVar+yt.var_suffix+i);break;default:r.queryVarSuffix&&(o+=yt.var_suffix+r.queryVarSuffix)}var u=[n];o&&u.push(o),r.mergeSameQueryKeys&&f.apply(void 0,[e].concat(u))&&(i=s(i,"operator_AND")),function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t)for(var n=e,o=0;o<r.length;o++){var a=r[o];o===r.length-1?n[a]&&i.merge?n[a]=s(n[a],t):n[a]=t:(n[a]||(n[a]={}),n=n[a])}}(i,e,u,{merge:r.mergeSameQueryKeys})}}})),u(e))return this.baseUrlParams||"";var r="",i=this.provider;if(this.queryId&&"default"!==this.queryId&&(i+=yt.provider_id+this.queryId),"permalink"===this.urlType){for(var n in r=this.urlPrefix+"/"+i+"/","_s"in e&&(e.search=e._s,delete e._s),"_sm"in e&&(e["search-by-meta"]=e._sm,delete e._sm),e){var o=e[n];if(r+=n+"/",a(o)){if(Array.isArray(o))r+=yt.parseData(o)+"/";else for(var l in o)r+=l+yt.key_value+yt.parseData(o[l])+yt.items_separator;r=r.replace(new RegExp(k(yt.items_separator)+"\\s*$"),"/")}else r+=o+"/"}this.baseUrlParams&&(r+=this.baseUrlParams)}else for(var c in r=this.baseUrlParams?this.baseUrlParams+"&"+this.urlPrefix+"="+i:"?"+this.urlPrefix+"="+i,e){var d=e[c];if(r+="&"+c+"=",a(d)){if(Array.isArray(d))r+=yt.parseData(d);else for(var p in d)r+=p+yt.key_value+yt.parseData(d[p])+yt.items_separator;r=r.replace(new RegExp(k(yt.items_separator)+"\\s*$"),"")}else r+=d}return r}},{key:"initIndexer",value:function(t){!t.indexer&&t.$container&&t.$container.hasClass("jet-filter-indexed")&&(t.indexer=new q(t))}},{key:"initTabIndex",value:function(t){var e=f(JetSmartFilterSettings,"plugin_settings","use_tabindex");t.tabindex||"true"!==e||(t.tabindex=new G(t))}},{key:"emitFiltersProcessed",value:function(){e.publish("filters/processed",this)}},{key:"emitActiveItems",value:function(){e.publish("activeItems/change",this.activeItems,this.provider,this.queryId)}},{key:"emitHierarchyFiltersUpdate",value:function(){e.publish("hierarchyFilters/update",this.hierarchyFilters)}},{key:"isCurrentProvider",value:function(t){return t.provider===this.provider&&t.queryId===this.queryId}},{key:"getProviderSelector",value:function(){var t=this.providerSelectorData.inDepth?" ":"";return"default"===this.queryId?this.providerSelectorData.selector:this.providerSelectorData.idPrefix+this.queryId+t+this.providerSelectorData.selector}},{key:"getProvider",value:function(){var t=this;return vt(this.providerSelector).filter((function(e,r){return!vt(r).parents(t.providerSelector).length}))}},{key:"query",get:function(){var t={};return this.uniqueFilters.forEach((function(e){var r=e.data,i=e.queryKey;r&&i&&(t[i]&&e.mergeSameQueryKeys?t[i]=s(t[i],r,"operator_AND"):t[i]=r)})),t}},{key:"providerKey",get:function(){return this.provider+"/"+this.queryId}},{key:"providerSelectorData",get:function(){return f(JetSmartFilterSettings,"selectors",this.provider)}},{key:"urlParams",get:function(){var t=h();return t[this.urlPrefix]===this.provider+":"+this.queryId&&(delete t[this.urlPrefix],t)}},{key:"activeItems",get:function(){var t=this,e=[];return this.uniqueFilters.forEach((function(r){r.data&&r.reset&&!t.activeItemsExceptions.includes(r.name)&&e.push(r)})),e}},{key:"hierarchyFilters",get:function(){var t={};return this.uniqueFilters.forEach((function(e){e.isHierarchy&&!e.isAdditional&&(t[e.filterId]||(t[e.filterId]=[]),t[e.filterId].push(e))})),!!l(t)&&t}},{key:"indexingFilters",get:function(){var t=[];return this.uniqueFilters.forEach((function(e){e.indexer&&t.push(e.filterId)})),!!t.length&&JSON.stringify(t)}},{key:"isProviderExist",get:function(){return!!this.$provider.length}},{key:"getFilterUniqueKey",value:function(t){var e=t.name;return t.filterId&&(e+="-"+t.filterId),t.isHierarchy&&(e+="/hierarchical-depth-"+t.depth),["provider","queryId","queryKey"].forEach((function(r){t[r]&&(e+="/"+t[r])})),e}},{key:"uniqueFilters",get:function(){return function(t){return function(t){if(Array.isArray(t))return gt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return gt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(new Map(this.filters.map((function(t){return[t.uniqueKey,t]}))).values())}},{key:"getSameFilters",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.filters.filter((function(r){return t.uniqueKey===r.uniqueKey&&(!e||t.path!==r.path)}))}}],r&&jt(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(),_t=r(669);function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Ct(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,It(i.key),i)}}function $t(t,e,r){return(e=It(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function It(t){var e=function(t){if("object"!=xt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xt(e)?e:e+""}var Ft=function(){return t=function t(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$t(this,"dataValue",!1),$t(this,"applySelector",".apply-filters"),$t(this,"applyButtonSelector",".apply-filters__button"),$t(this,"filtersGroupSelector",".jet-filters-group"),this.$container=r,this.$filter=e,this.path=S(this.$filter.get(0)),this.provider=this.$filter.data("content-provider"),this.additionalProviders=this.$filter.data("additional-providers"),this.filterId=this.$filter.data("filterId"),this.queryId=this.$filter.data("queryId")||"default",this.queryType=this.$filter.data("queryType"),this.queryVar=this.$filter.data("queryVar"),this.queryVarSuffix=this.$filter.data("queryVarSuffix"),this.applyType=this.$filter.data("applyType")||"ajax",this.applyOnChanging="submit"!==this.$filter.data("applyOn"),this.layoutOptions=this.$filter.data("layoutOptions"),this.redirect=this.$filter.data("redirect"),this.redirectPath=this.$filter.data("redirectPath"),this.redirectInNewWindow=this.$filter.data("redirectInNewWindow"),this.activeLabel=this.$filter.data("activeLabel"),this.isMixed="mixed"===this.applyType,this.isReload="reload"===this.applyType,this.$applyButton=_t(),this.isRTL=_t("body").hasClass("rtl"),this.$container&&(this.$container.next(this.applySelector).length?this.$applyButton=this.$container.next(this.applySelector).find(this.applyButtonSelector):this.$container.closest(this.filtersGroupSelector).length&&(this.$applyButton=this.$container.closest(this.filtersGroupSelector).next(this.applySelector).find(this.applyButtonSelector))),"string"!=typeof this.queryId&&(this.queryId=this.queryId.toString())},r=[{key:"initEvent",value:function(){this.addFilterChangeEvent(),this.applyOnChanging||this.addApplyEvent()}},{key:"removeEvent",value:function(){this.removeChangeEvent(),this.$applyButton.off()}},{key:"addApplyEvent",value:function(){var t=this;this.$applyButton.on("click",(function(){t.processData(),t.emitFiterApply()}))}},{key:"reset",value:function(){this.dataValue=!1}},{key:"show",value:function(){this.$container.removeClass("hide")}},{key:"hide",value:function(){this.$container.addClass("hide")}},{key:"showPreloader",value:function(){this.$filter.addClass("jet-filters-loading")}},{key:"hidePreloader",value:function(){this.$filter.removeClass("jet-filters-loading")}},{key:"isCurrentProvider",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1};return t.provider===this.provider&&t.queryId===this.queryId}},{key:"isAdditionalProvider",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1},e=t.provider,r=void 0!==e&&e,i=t.queryId,n=void 0===i?"default":i;return!!r&&!!this.additionalProviders.includes(r+"/"+n)}},{key:"wasChanged",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.applyOnChanging;this.emitFiterChange(),t&&this.emitFiterApply()}},{key:"emitFiterChange",value:function(){e.publish("fiter/change",this)}},{key:"emitFiterApply",value:function(){e.publish("fiter/apply",this)}},{key:"emitFitersApply",value:function(){e.publish("fiters/apply",this)}},{key:"emitFitersRemove",value:function(){e.publish("fiters/remove",this)}},{key:"data",get:function(){return!(!this.dataValue||this.disabled)&&this.dataValue}},{key:"queryKey",get:function(){var t,e=this.queryVarSuffix;return t="_"+this.queryType+"_"+this.queryVar,e&&(t+="|"+e),t}},{key:"copy",get:function(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)}},{key:"containerElement",get:function(){return!!this.$container&&!!this.$container.length&&this.$container.get(0)}},{key:"filterGroup",get:function(){return f(window.JetSmartFilters,"filterGroups",this.provider+"/"+this.queryId)}},{key:"isAjaxLoading",get:function(){return!!this.filterGroup&&this.filterGroup.isAjaxLoading}},{key:"addFilterChangeEvent",value:function(){return!1}},{key:"removeChangeEvent",value:function(){return!1}},{key:"processData",value:function(){return!1}},{key:"setData",value:function(){return!1}},{key:"activeValue",get:function(){return!1}},{key:"urlData",get:function(){return this.data}}],r&&Ct(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(),Et=r(669),Dt=r(669);function Tt(t){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(t)}function Rt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,At(i.key),i)}}function At(t){var e=function(t){if("object"!=Tt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tt(e)?e:e+""}function Vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vt=function(){return!!t})()}function qt(t){return qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qt(t)}function Bt(t,e){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bt(t,e)}var Nt=function(t){function e(t,r,i){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,r){return e=qt(e),function(t,e){if(e&&("object"==Tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Vt()?Reflect.construct(e,r||[],qt(t).constructor):e.apply(t,r))}(this,e,[r,t])).$checkboxes=i||r.find(":checkbox"),n.$checkboxesList=t.find(".jet-checkboxes-list"),n.relationalOperator=n.$filter.data("relational-operator"),n.$allOption=n.getItemByValue("all"),n.canDeselect=n.$filter.data("can-deselect"),n.hasGroups=Boolean(n.$checkboxesList.find(".jet-list-tree").length),n.inputNotEmptyClass="jet-input-not-empty",n.$allOption.length&&n.$allOption.data("all-option","1").val(""),n.processData(),n.initEvent(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bt(t,e)}(e,t),r=e,i=[{key:"addFilterChangeEvent",value:function(){var t=this;this.$checkboxes.on("change",(function(e){"AND"===t.relationalOperator&&t.hasGroups&&t.uncheckGroup(e.target),t.processData(),t.wasChanged()})),this.canDeselect&&this.$checkboxes.on("click",(function(e){var r=Et(e.target);r.val()===t.dataValue&&r.prop("checked",!1).trigger("change")}))}},{key:"removeChangeEvent",value:function(){this.$checkboxes.off(),this.$dropdownLabel.off()}},{key:"processData",value:function(){var t=this.$checked,e=!1;1===t.length?e=t.val():t.length>1&&(e=[],t.each((function(r){e.push(t.get(r).value)})),this.relationalOperator&&e.push("operator_"+this.relationalOperator)),this.dataValue=e,this.dataValue||this.checkAllOption(),this.additionalFilterSettings&&this.additionalFilterSettings.dataUpdated()}},{key:"setData",value:function(t){this.reset(),t&&(this.getItemsByValue(t).forEach((function(t){t.prop("checked",!0)})),this.processData())}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?(this.getItemByValue(t).prop("checked",!1),this.processData()):(this.getItemsByValue(this.dataValue).forEach((function(t){t.prop("checked",!1)})),this.processData())}},{key:"activeValue",get:function(){var t=this,e=this.data,r="",i="";return Array.isArray(e)||(e=[e]),e.forEach((function(e){var n=t.getValueLabel(e);n&&(r+=i+n,i=", ")})),r||!1}},{key:"isUrlValAvailable",get:function(){return Boolean(this.$checkboxes.filter("[data-url-value]").length>0)}},{key:"urlData",get:function(){var t=this,e=this.data;if(!e||!this.isUrlValAvailable)return e;var r=e;return Array.isArray(e)?(r=[],e.forEach((function(e){r.push(t.getItemByValue(e).data("url-value")||e)}))):r=this.getItemByValue(e).data("url-value")||e,r}},{key:"$checked",get:function(){return this.$checkboxes.filter(":checked")}},{key:"getItemsByValue",value:function(t){var e=this,r=[];return Array.isArray(t)||(t=[t]),t.forEach((function(t){r.push(e.getItemByValue(t))})),r}},{key:"getItemByValue",value:function(t){return this.$checkboxes.filter((function(){return Dt(this).val()===t}))}},{key:"getValueLabel",value:function(t){return this.$checkboxes.filter((function(){return Dt(this).val()===t})).data("label")}},{key:"checkAllOption",value:function(){this.$allOption&&this.$allOption.prop("checked",!0)}},{key:"uncheckGroup",value:function(t){var e=Dt(t),r=Boolean(e.closest(".jet-list-tree__children").length),i=!r&&Boolean(e.closest(".jet-list-tree__parent").length);(i||r)&&(r&&(e.parents(".jet-list-tree__children").prev(".jet-list-tree__parent").find(".jet-checkboxes-list__input").prop("checked",!1),e.parent().parent(".jet-list-tree__parent").next(".jet-list-tree__children").find(".jet-checkboxes-list__input").prop("checked",!1)),i&&e.closest(".jet-list-tree__parent").next(".jet-list-tree__children").find(".jet-checkboxes-list__input").prop("checked",!1))}}],i&&Rt(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft),Mt=r(669);function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Gt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Jt(i.key),i)}}function Jt(t){var e=function(t){if("object"!=Lt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Lt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Lt(e)?e:e+""}var Ut=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filter=e,this.$items=this.filter.$filter.find(".jet-filter-row"),this.inputNotEmptyClass="jet-input-not-empty",this.searchClass="jet-filter-items-search",this.$searchContainer=this.filter.$container.find(".".concat(this.searchClass)),this.$searchContainer.length&&this.searchInit(),this.morelessClass="jet-filter-items-moreless",this.$moreless=this.filter.$container.find(".".concat(this.morelessClass)),this.$moreless.length&&this.morelessInit(),this.dropdownClass="jet-filter-items-dropdown",this.$dropdown=this.filter.$container.find(".".concat(this.dropdownClass)),this.$dropdown.length&&this.dropdownInit(),this.toggleItemsVisibility()},(e=[{key:"searchInit",value:function(){var t=this;this.searchValue="",this.$searchInput=this.$searchContainer.find(".".concat(this.searchClass,"__input")),this.$searchClear=this.$searchContainer.find(".".concat(this.searchClass,"__clear")),this.$searchInput.length&&this.$searchInput.on("keyup",(function(e){t.searchApply(e.target.value)})),this.$searchClear.length&&this.$searchClear.on("click",(function(){t.searchClear()}))}},{key:"searchApply",value:function(t){this.searchValue=t.toLowerCase(),this.searchValue?this.$searchInput.addClass(this.inputNotEmptyClass):this.$searchInput.removeClass(this.inputNotEmptyClass),this.toggleItemsVisibility()}},{key:"searchClear",value:function(){this.$searchInput.val(""),this.searchApply("")}},{key:"morelessInit",value:function(){var t=this;this.$morelessToggle=this.$moreless.find(".".concat(this.morelessClass,"__toggle")),this.numberOfDisplayed=this.$moreless.data("less-items-count"),this.moreBtnText=this.$moreless.data("more-text"),this.lessBtnText=this.$moreless.data("less-text"),this.moreBtnClass="jet-more-btn",this.lessBtnClass="jet-less-btn",this.moreState=!1,this.$morelessToggle.addClass(this.moreBtnClass),this.$morelessToggle.on("click",(function(){t.moreLessToggle()}))}},{key:"moreLessToggle",value:function(){this.moreState?this.switchToLess():this.switchToMore()}},{key:"switchToMore",value:function(){this.moreState=!0,this.$morelessToggle.removeClass(this.moreBtnClass).addClass(this.lessBtnClass).text(this.lessBtnText),this.toggleItemsVisibility()}},{key:"switchToLess",value:function(){this.moreState=!1,this.$morelessToggle.removeClass(this.lessBtnClass).addClass(this.moreBtnClass).text(this.moreBtnText),this.toggleItemsVisibility()}},{key:"dropdownInit",value:function(){var t=this;this.$dropdownLabel=this.$dropdown.find(".".concat(this.dropdownClass,"__label")),this.$dropdownBody=this.$dropdown.find(".".concat(this.dropdownClass,"__body")),this.$dropdownItems=this.$dropdownBody.find("input:checkbox, input:radio"),this.dropdownOpenClass="jet-dropdown-open",this.dropdownBodyPositionTopClass="jet-dropdown-position-top",this.dropdownPlaceholderText=this.$dropdownLabel.html(),this.dropdownApplyButton=this.$dropdown.find(".".concat(this.dropdownClass,"__apply-button")),this.dropdownNselectedNumber=this.$dropdown.data("dropdown-n-selected"),this.dropdownNselectedText=this.$dropdown.data("dropdown-n-selected-text")||"and {number} others",this.dropdownNselectedEnabled=Boolean(this.dropdownNselectedNumber||0==this.dropdownNselectedNumber),this.dropdownState=!1,Mt(document).on("click",(function(e){t.documentClick(e)})),this.$dropdownLabel.length&&(this.$dropdownLabel.on("click",(function(){t.dropdownToggle()})),this.$dropdownItems.on("click",(function(){t.dropDownItemsUpdate()}))),this.dropdownApplyButton.length&&this.dropdownApplyButton.on("click",(function(){}))}},{key:"dropdownToggle",value:function(){this.dropdownState?this.dropdownClose():this.dropdownOpen()}},{key:"dropdownClose",value:function(){this.dropdownState=!1,this.$dropdown.removeClass(this.dropdownOpenClass),this.$dropdown.removeClass(this.dropdownBodyPositionTopClass)}},{key:"dropdownOpen",value:function(){var t=Mt(document).height();this.dropdownState=!0,this.$dropdown.addClass(this.dropdownOpenClass),this.$searchInput&&this.$searchInput.focus();var e=this.$dropdownLabel.outerHeight(!0)+this.$dropdownBody.outerHeight(!0),r=this.$dropdown.offset().top;t>e&&t<r+e&&this.$dropdown.addClass(this.dropdownBodyPositionTopClass)}},{key:"documentClick",value:function(t){Mt.contains(this.$dropdown.get(0),t.target)||this.dropdownClose()}},{key:"dropDownItemsUpdate",value:function(){var t=this;this.$dropdownLabel.find("*").off();var e=this.filter.$checked,r=this.filter.$selected;if(e&&e.length){this.$dropdownLabel.html("");var i=Mt('<div class="jet-filter-items-dropdown__active"></div>');this.$dropdownLabel.append(i);var n=this.dropdownNselectedEnabled?this.filter.$checked.slice(0,this.dropdownNselectedNumber):this.filter.$checked;if(n.each((function(e){var r=n.eq(e),o=Mt('<div class="jet-filter-items-dropdown__active__item"></div>');o.text(r.data("label"));var a=Mt('<span class="jet-filter-items-dropdown__active__item__remove">×</span>');o.append(a),i.append(Mt(o).one("click",(function(e){e.stopPropagation(),t.filter.reset(r.val()),r.trigger("change")})))})),this.dropdownNselectedEnabled&&this.dropdownNselectedNumber<e.length){var o=this.dropdownNselectedText.replace("{number}",e.length-this.dropdownNselectedNumber);i.append(Mt('<div class="jet-filter-items-dropdown__n-selected">'.concat(o,"</div>")))}}else r&&r.val()?this.$dropdownLabel.html(r.data("label")):this.$dropdownLabel.html(this.dropdownPlaceholderText)}},{key:"dataUpdated",value:function(){this.$dropdown.length&&this.$dropdownLabel.length&&this.dropDownItemsUpdate()}},{key:"toggleItemsVisibility",value:function(){var t=this,e=this.$items.filter((function(e){var r=t.$items.eq(e),i=r.find("input");return!r.hasClass("jet-filter-row-hide")&&(t.searchValue&&-1===i.data("label").toString().toLowerCase().indexOf(t.searchValue)?(r.hide(),!1):(r.show(),!0))}));if(this.numberOfDisplayed)if(e.length>this.numberOfDisplayed){if(!this.moreState)for(var r=this.numberOfDisplayed;r<e.length;r++)e.eq(r).hide();this.$moreless.show()}else this.$moreless.hide()}}])&&Gt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),Ht=r(669);function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Wt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,zt(i.key),i)}}function Qt(t,e,r){return e&&Wt(t.prototype,e),r&&Wt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zt(t){var e=function(t){if("object"!=Kt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kt(e)?e:e+""}var Yt=Qt((function t(e){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.collapsibleLists=[],this.settings=Object.assign({collapsed:!0,collapseSpeed:300,animate:!0,collapsibleElementClass:"jet-list-collapsible",toggleElementClass:"jet-list-tree__parent",contentElementClass:"jet-list-tree__children",toggleCollapsedClass:"jet-list-toggle-collapsed",contentCollapsedClass:"jet-list-content-collapsed",excludedClickelEmentsSelector:"label"},i),e.$container.find("."+this.settings.collapsibleElementClass+" ."+this.settings.toggleElementClass).each((function(t,e){var i=Ht(e),n=i.next();if(n.hasClass(r.settings.contentElementClass)){r.collapsibleLists.push({$toggle:i,$content:n});var o=!!n.find("input:checked").length;r.settings.collapsed&&!o?(i.addClass(r.settings.toggleCollapsedClass),n.addClass(r.settings.contentCollapsedClass).slideUp(0)):(i.removeClass(r.settings.toggleCollapsedClass),n.removeClass(r.settings.contentCollapsedClass).slideDown(0)),i.click((function(t){i.toggleClass(r.settings.toggleCollapsedClass),n.toggleClass(r.settings.contentCollapsedClass).slideToggle(r.settings.collapseSpeed)})),i.find(r.settings.excludedClickelEmentsSelector).click((function(t){t.stopPropagation()}))}}))}));function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zt=function(){return!!t})()}function te(t){return te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},te(t)}function ee(t,e){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ee(t,e)}function re(t){var e=function(t){if("object"!=Xt(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xt(e)?e:e+""}var ie=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-checkboxes-list");return r=function(t,e,r){return e=te(e),function(t,e){if(e&&("object"==Xt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Zt()?Reflect.construct(e,r||[],te(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="checkboxes",(n=re(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!0,r.additionalFilterSettings=new Ut(r),r.collapsibleList=new Yt(r),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ee(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Nt);function ne(t){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ne(t)}function oe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(oe=function(){return!!t})()}function ae(t){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ae(t)}function se(t,e){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},se(t,e)}function le(t){var e=function(t){if("object"!=ne(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ne(e)?e:e+""}var ue=function(t){function e(t){var r,i,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=function(t,e,r){return e=ae(e),function(t,e){if(e&&("object"==ne(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,oe()?Reflect.construct(e,r||[],ae(t).constructor):e.apply(t,r))}(this,e,[t]),i=r,o="check-range",(n=le(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!1,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&se(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(ie),ce=r(669),fe=r(669);function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function pe(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,he(i.key),i)}}function he(t){var e=function(t){if("object"!=de(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==de(e)?e:e+""}function ye(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ye=function(){return!!t})()}function ve(t){return ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ve(t)}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}var be=function(t){function e(t,r,i){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,r){return e=ve(e),function(t,e){if(e&&("object"==de(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ye()?Reflect.construct(e,r||[],ve(t).constructor):e.apply(t,r))}(this,e,[r,t])).$select=i||r.find("select"),n.$allOption=n.getItemByValue("all"),n.isSelect="SELECT"===n.$select.prop("tagName"),n.canDeselect=n.$filter.data("can-deselect"),n.$allOption.length&&n.$allOption.data("all-option","1").val(""),n.processData(),n.initEvent(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(e,t),r=e,(i=[{key:"addFilterChangeEvent",value:function(){var t=this;this.$select.on("change",(function(){t.processData(),t.wasChanged()})),!this.isSelect&&this.canDeselect&&this.$select.on("click",(function(e){var r=ce(e.target);r.val()===t.dataValue&&r.prop("checked",!1).trigger("change")}))}},{key:"removeChangeEvent",value:function(){this.$select.off()}},{key:"processData",value:function(){this.dataValue=void 0!==this.$selected.val()&&this.$selected.val(),this.dataValue||this.checkAllOption(),this.additionalFilterSettings&&this.additionalFilterSettings.dataUpdated()}},{key:"setData",value:function(t){if(this.reset(),t){var e=this.getItemByValue(t);e&&e.prop(this.isSelect?"selected":"checked",!0),this.processData()}}},{key:"reset",value:function(){this.$selected.prop(this.isSelect?"selected":"checked",!1),this.processData()}},{key:"activeValue",get:function(){var t=this.getItemByValue(this.data);if(t)return t.data("label")}},{key:"isUrlValAvailable",get:function(){return Boolean((this.isSelect?this.$select.find("[data-url-value]"):this.$select.filter("[data-url-value]")).length>0)}},{key:"urlData",get:function(){var t=this.data;return t&&this.isUrlValAvailable&&this.getItemByValue(t).data("url-value")||t}},{key:"$selected",get:function(){return this.isSelect?this.$select.find(":checked"):this.$select.filter(":checked")}},{key:"getItemByValue",value:function(t){var e=!1;return this.isSelect?this.$select.find("option").each((function(r,i){var n=fe(i);n.val()===t&&(e=n)})):e=this.$select.filter((function(){return fe(this).val()===t})),e}},{key:"checkAllOption",value:function(){this.$allOption&&this.$allOption.prop("checked",!0)}}])&&pe(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft);function ge(t){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ge(t)}function we(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(we=function(){return!!t})()}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}function je(t,e){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},je(t,e)}function ke(t){var e=function(t){if("object"!=ge(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ge(e)?e:e+""}var Pe=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-select");return r=function(t,e,r){return e=Se(e),function(t,e){if(e&&("object"==ge(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,we()?Reflect.construct(e,r||[],Se(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="select",(n=ke(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&je(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(be),Oe=r(669);function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function Ce(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Ie(i.key),i)}}function $e(t,e,r){return(e=Ie(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ie(t){var e=function(t){if("object"!=_e(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_e(e)?e:e+""}var Fe=function(){return t=function t(r){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),$e(this,"name","select-hierarchical"),$e(this,"filters",[]);var n=r.find(".jet-select");n.length&&(n.each((function(t){var e=n.eq(t),o=new be(r,e);o.hierarchicalInstance=i,o.name="select",o.$container=r,o.isHierarchy=!0,o.depth=t,i.filters.push(o),o.processData=function(){i.hierarchicalFilterProcessData(o)}})),this.isHierarchy=!0,this.indexer=r.hasClass("jet-filter-indexed"),this.lastFilter=this.filters[this.filters.length-1],this.filterId=this.lastFilter.filterId,e.subscribe("fiter/change",(function(t){t.filterId!==i.filterId||t.isReload&&t.applyOnChanging||i.getNextHierarchyLevels(t)})),e.subscribe("fiters/remove",(function(t){i.lastFilter.isCurrentProvider(t)&&i.clearHierarchyLevels()})),e.subscribe("hierarchyFilters/update",(function(t){t[i.filterId]&&i.updateHierarchyLevels()})),e.subscribe("hierarchyFilters/updateLevels",(function(t,e){if(i.filterId===t.filterId)for(var r=1;r<i.count;r++){var n=i.filters[r],o=Oe(e["level_"+r]).find("select").html();o&&(n.$select.html(o),i.updateFilterIndexer(n))}})),setTimeout((function(){i.filters.forEach((function(t){t.dataValue||t.$select.val("")}))})))},r=[{key:"setData",value:function(t){for(var e=0;e<t.length;e++){var r=t[e],i=this.filters[e];i&&(i.dataValue=r)}this.updateHierarchyLevels()}},{key:"hierarchicalFilterProcessData",value:function(t){t.dataValue=t.$selected.val(),t.additionalFilterSettings&&t.additionalFilterSettings.dataUpdated()}},{key:"getNextHierarchyLevels",value:function(t){var e=t.depth+1,r=[];if(e){for(var i=e;i<this.filters.length;i++)this.filters[i].reset(),this.filters[i].showPreloader();for(var n=0;n<e;n++){var o=this.filters[n];r.push({value:o.data,tax:o.queryVar})}this.ajaxRequest({values:r,depth:e,args:t.layoutOptions||!1})}}},{key:"updateHierarchyLevels",value:function(){var t=this,r=[],i=null;this.filters.forEach((function(t){t.dataValue&&(null===i&&(i=t.layoutOptions||!1),r.push({value:t.data,tax:t.queryVar}),t.showPreloader())})),this.ajaxRequest({values:r,args:i},(function(){t.filters.forEach((function(t){t.setData(t.data)}));var r=t.filters[0];r&&e.publish("activeItems/rebuild",r.provider,r.queryId)}))}},{key:"clearHierarchyLevels",value:function(){(function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return xe(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xe(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()})(this.filters).slice(1).forEach((function(t){t.$select.find("option").each((function(t,e){0!==t&&Oe(e).remove()}))}))}},{key:"ajaxRequest",value:function(t,r){var i=this,n=t.values,o=t.depth,a=void 0!==o&&o,s=t.indexer,l=void 0===s?this.indexer:s,u=t.args,c=void 0!==u&&u,f={action:"jet_smart_filters_get_hierarchy_level",filter_id:this.filterId,values:n};a&&(f.depth=a),l&&(f.indexer=l),c&&(f.args=c),Oe.ajax({url:JetSmartFilterSettings.ajaxurl,type:"POST",dataType:"json",data:f}).done((function(t){e.publish("hierarchyFilters/updateLevels",i,t.data),"function"==typeof r&&r(),e.publish("hierarchyFilters/levelsUpdated",i.filterId)})).always((function(){i.filters.forEach((function(t){t.hidePreloader()}))}))}},{key:"updateFilterIndexer",value:function(t){if(t.indexer){var e=t.isReload,r="never"===t.indexer.changeCounte;(e||r)&&t.indexer.set()}}},{key:"count",get:function(){return this.filters.length}}],r&&Ce(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function Ee(t){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ee(t)}function De(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Te(i.key),i)}}function Te(t){var e=function(t){if("object"!=Ee(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ee(e)?e:e+""}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ae(t)}function Ve(t,e){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ve(t,e)}function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Be(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Be=function(){return!!t})()}function Ne(t){return Ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ne(t)}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Me(t,e)}function Le(t){var e=function(t){if("object"!=qe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qe(e)?e:e+""}var Ge=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-range");return r=function(t,e,r){return e=Ne(e),function(t,e){if(e&&("object"==qe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Be()?Reflect.construct(e,r||[],Ne(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="range",(n=Le(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Me(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(t){function e(t,r,i,n,o,a,s,l,c,f,d){var p;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(p=function(t,e,r){return e=Ae(e),function(t,e){if(e&&("object"==Ee(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Re()?Reflect.construct(e,r||[],Ae(t).constructor):e.apply(t,r))}(this,e,[r,t])).$sliderInputMin=i||p.$filter.find(".jet-range__slider__input--min"),p.$sliderInputMax=n||p.$filter.find(".jet-range__slider__input--max"),p.$sliderValuesMin=o||p.$filter.find(".jet-range__values-min"),p.$sliderValuesMax=a||p.$filter.find(".jet-range__values-max"),p.$sliderTrackRange=s||p.$filter.find(".jet-range__slider__track__range"),p.$rangeInputMin=l||p.$filter.find(".jet-range__inputs__min"),p.$rangeInputMax=c||p.$filter.find(".jet-range__inputs__max"),p.$rangeInputs=p.$rangeInputMin.add(p.$rangeInputMax),p.$sliderInputs=p.$sliderInputMin.add(p.$sliderInputMax),p.$inputs=p.$sliderInputMin.add(p.$sliderInputMax).add(p.$rangeInputMin).add(p.$rangeInputMax),p.minConstraint=parseFloat(p.$sliderInputMin.attr("min")),p.maxConstraint=parseFloat(p.$sliderInputMax.attr("max")),p.availableMinConstraint=p.minConstraint,p.availableMaxConstraint=p.maxConstraint,p.step=parseFloat(p.$sliderInputMax.attr("step")),p.minVal=parseFloat(p.$sliderInputMin.val()),p.maxVal=parseFloat(p.$sliderInputMax.val()),p.prefix=f||p.$filter.find(".jet-range__values-prefix").first().text()||!1,p.suffix=d||p.$filter.find(".jet-range__values-suffix").first().text()||!1,p.format=p.$filter.data("format")||{thousands_sep:"",decimal_sep:"",decimal_num:0},p.format.thousands_sep=p.format.thousands_sep.replace(/&nbsp;/g," "),p.rangeInputsSeparators=p.$filter.data("inputs-separators"),p.dynamicRangeType=p.$filter.data("dynamic-range"),p.dynamicRangePending=!!p.$filter.data("dynamic-range-pending"),p.dynamicRangeType&&it("request/ajax-data",(function(t){return t?(u(t.dynamic_range)&&(t.dynamic_range={}),u(t.dynamic_range[p.dynamicRangeType])&&(t.dynamic_range[p.dynamicRangeType]=[]),t.dynamic_range[p.dynamicRangeType].includes(p.queryVar)||t.dynamic_range[p.dynamicRangeType].push(p.queryVar),t):t})),p.initSlider(),p.processData(),p.initEvent(),p.valuesUpdated(),p.dynamicRangePending&&!p.dataValue&&p.clearPendingDynamicRangeDisplay(),p}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ve(t,e)}(e,t),r=e,i=[{key:"updateSingleValueState",value:function(){this.$filter.toggleClass("jet-range--single-value",this.availableMinConstraint===this.availableMaxConstraint)}},{key:"initSlider",value:function(){var t=this;this.$filter.on("mousemove touchstart",this.findClosestRange.bind(this)),this.$sliderInputMin.on("input",(function(e){t.minVal=parseFloat(t.$sliderInputMin.val()),t.valuesUpdated("min")})),this.$sliderInputMax.on("input",(function(){t.maxVal=parseFloat(t.$sliderInputMax.val()),t.valuesUpdated("max")})),this.$rangeInputs.length&&this.$rangeInputs.on("input keydown blur",(function(e){var r=e.target,i=r.value,n="";if(r.hasAttribute("min-range")&&(n="min"),r.hasAttribute("max-range")&&(n="max"),n){if(t.rangeInputsSeparators){var o=r.oldValue||"",a=r.selectionEnd;if(i!==o){t.rangeInputUpdateValue(n,i);var s=r.value,l=r.numericValue;switch(n){case"min":t.minVal=t.inputNumberRangeValidation(l);break;case"max":t.maxVal=t.inputNumberRangeValidation(l)}if(s.length===r.selectionEnd){var u=-1;s!==o&&(u=s.slice(0,a).split(t.format.thousands_sep).length-1-(o.slice(0,a).split(t.format.thousands_sep).length-1)),s===o&&[t.format.thousands_sep,t.format.decimal_sep].includes(s.charAt(a))&&(u=0),r.setSelectionRange(a+u,a+u)}}}else switch(n){case"min":t.minVal=t.inputNumberRangeValidation(i||t.minConstraint);break;case"max":t.maxVal=t.inputNumberRangeValidation(i||t.maxConstraint)}"blur"!==e.type&&13!==e.keyCode||t.valuesUpdated(n)}}))}},{key:"addFilterChangeEvent",value:function(){var t=this;this.$sliderInputs.on("mouseup touchend",(function(){t.processData(),t.wasChanged()})),this.$rangeInputs.on("change",(function(){t.processData(),t.wasChanged()})),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.$rangeInputs.on("keydown",(function(e){"Enter"===e.key&&t.$rangeInputs.trigger("change")}))}},{key:"removeChangeEvent",value:function(){this.$filter.off(),this.$inputs.off()}},{key:"processData",value:function(){var t,e;this.$rangeInputMin.length&&this.rangeInputUpdateValue("min",this.minVal),this.$rangeInputMax.length&&this.rangeInputUpdateValue("max",this.maxVal);var r=null!==(t=this.availableMinConstraint)&&void 0!==t?t:this.minConstraint,i=null!==(e=this.availableMaxConstraint)&&void 0!==e?e:this.maxConstraint;this.minVal!=r||this.maxVal!=i?this.dataValue=this.minVal+"_"+this.maxVal:this.dataValue=!1}},{key:"setData",value:function(t){if(this.reset(),t){var e=t.split("_");e[0]&&(this.minVal=parseFloat(e[0]),this.$sliderInputMin.val(this.minVal)),e[1]&&(this.maxVal=parseFloat(e[1]),this.$sliderInputMax.val(this.maxVal)),this.valuesUpdated(),this.processData()}}},{key:"reset",value:function(){var t,e;this.dataValue=!1,this.minConstraint=null!==(t=this.availableMinConstraint)&&void 0!==t?t:this.minConstraint,this.maxConstraint=null!==(e=this.availableMaxConstraint)&&void 0!==e?e:this.maxConstraint,this.minVal=this.minConstraint,this.maxVal=this.maxConstraint,this.$sliderInputMin.prop("min",this.minConstraint),this.$sliderInputMin.prop("max",this.maxConstraint),this.$sliderInputMax.prop("min",this.minConstraint),this.$sliderInputMax.prop("max",this.maxConstraint),this.$sliderInputMin.val(this.minVal),this.$sliderInputMax.val(this.maxVal),this.valuesUpdated(),this.processData()}},{key:"findClosestRange",value:function(t){var e=!1;if("mousemove"===t.type&&(e=t.clientX),"touchstart"===t.type&&t.touches[0]&&(e=t.touches[0].clientX),e){var r=e-t.target.getBoundingClientRect().left,i=parseFloat(this.$sliderInputMax.width()),n=parseFloat(this.$sliderInputMin.val()),o=(parseFloat(this.$sliderInputMax.val())+n)/2;(this.isRTL?(this.minConstraint-this.maxConstraint)*(r/i)+this.maxConstraint:(this.maxConstraint-this.minConstraint)*(r/i)+this.minConstraint)>o?this.swapInput("max"):this.swapInput("min")}}},{key:"swapInput",value:function(t){switch(t){case"min":this.$sliderInputMin.css("z-index",21),this.$sliderInputMax.css("z-index",20);break;case"max":this.$sliderInputMin.css("z-index",20),this.$sliderInputMax.css("z-index",21)}}},{key:"valuesUpdated",value:function(){switch(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){case"min":Number(this.minVal)>Number(this.maxVal)-this.step&&(this.minVal=Number(this.maxVal)-this.step),this.$sliderInputMin.val(this.minVal),this.rangeInputUpdateValue("min",this.minVal);break;case"max":Number(this.maxVal)<Number(this.minVal)+this.step&&(this.maxVal=Number(this.minVal)+this.step),this.$sliderInputMax.val(this.maxVal),this.rangeInputUpdateValue("max",this.maxVal)}this.$sliderValuesMin.length&&this.$sliderValuesMin.html(this.getFormattedData(this.minVal)),this.$sliderValuesMax.length&&this.$sliderValuesMax.html(this.getFormattedData(this.maxVal)),this.updateSingleValueState();var t=0,e=100;this.maxConstraint!==this.minConstraint&&(t=(this.minVal-this.minConstraint)/(this.maxConstraint-this.minConstraint)*100,e=(this.maxVal-this.minConstraint)/(this.maxConstraint-this.minConstraint)*100),this.$sliderTrackRange.css({"--low":t+"%","--high":e+"%"})}},{key:"clearPendingDynamicRangeDisplay",value:function(){this.$sliderValuesMin.length&&this.$sliderValuesMin.html(""),this.$sliderValuesMax.length&&this.$sliderValuesMax.html(""),this.$rangeInputMin.length&&this.$rangeInputMin.val(""),this.$rangeInputMax.length&&this.$rangeInputMax.val("")}},{key:"updateRangeBounds",value:function(t){var e=t.min,r=t.max;if(e=parseFloat(e),r=parseFloat(r),!isNaN(e)&&!isNaN(r)){var i=parseFloat(this.minVal),n=parseFloat(this.maxVal),o="string"==typeof this.dataValue&&this.dataValue.length,a=o&&!isNaN(i)?i:e,s=o&&!isNaN(n)?n:r;this.availableMinConstraint=e,this.availableMaxConstraint=r,this.minConstraint=o?Math.min(e,a):e,this.maxConstraint=o?Math.max(r,s):r,this.$sliderInputMin.prop("min",this.minConstraint),this.$sliderInputMin.prop("max",this.maxConstraint),this.$sliderInputMax.prop("min",this.minConstraint),this.$sliderInputMax.prop("max",this.maxConstraint),this.minVal=a,this.maxVal=s,!o&&this.maxConstraint-this.minConstraint<this.step&&(this.minVal=this.minConstraint,this.maxVal=this.maxConstraint),this.$sliderInputMin.val(this.minVal),this.$sliderInputMax.val(this.maxVal),this.valuesUpdated(),this.processData(),this.dynamicRangePending=!1}}},{key:"inputNumberRangeValidation",value:function(t){return t<this.minConstraint?this.minConstraint:t>this.maxConstraint?this.maxConstraint:t}},{key:"getFormattedData",value:function(t){var e="\\d(?=(\\d{3})+"+(this.format.decimal_num>0?"\\D":"$")+")",r=t.toFixed(Math.max(0,~~this.format.decimal_num));return(this.format.decimal_sep?r.replace(".",this.format.decimal_sep):r).replace(new RegExp(e,"g"),"$&"+(this.format.thousands_sep||""))}},{key:"restoreFormattedData",value:function(t){return"number"==typeof t?t:(this.format.thousands_sep&&(t=t.replace(new RegExp("\\"+this.format.thousands_sep,"g"),"")),this.format.thousands_sep&&(t=t.replace(this.format.decimal_sep,".")),parseFloat(this.removeNonNumeric(t)))}},{key:"removeNonNumeric",value:function(t){return t.replace(/[^\d.-]/g,"")}},{key:"rangeInputUpdateValue",value:function(t,e){if(this.$rangeInputs.length){var r;switch(t){case"min":r=this.$rangeInputMin[0];break;case"max":r=this.$rangeInputMax[0];break;default:return}if(this.rangeInputsSeparators){var i=this.restoreFormattedData(e),n=this.getFormattedData(i);if(isNaN(i))switch(r.value="",t){case"min":r.numericValue=this.minConstraint;break;case"max":r.numericValue=this.maxConstraint}else r.value=n,r.numericValue=i;r.oldValue=r.value}else if(""!==e)r.value=e;else switch(t){case"min":r.value=this.minConstraint;break;case"max":r.value=this.maxConstraint}}}},{key:"activeValue",get:function(){if("string"==typeof this.dataValue){var t=this.dataValue.split("_"),e="";return t[0]&&(this.prefix&&(e+=this.prefix),e+=this.getFormattedData(parseFloat(t[0])),this.suffix&&(e+=this.suffix),t[1]&&(e+=" — ")),t[1]&&(this.prefix&&(e+=this.prefix),e+=this.getFormattedData(parseFloat(t[1])),this.suffix&&(e+=this.suffix)),e}return this.dataValue}}],i&&De(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft)),Je=r(669);function Ue(t){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(t)}function He(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Ke(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?He(Object(r),!0).forEach((function(e){We(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):He(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function We(t,e,r){return(e=function(t){var e=function(t){if("object"!=Ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ue(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qe={datePicker:{init:function(t){var e=t.$input,r=t.id,i=void 0!==r&&r,n=t.datepickerOptions,o=void 0!==n&&n,a=f(JetSmartFilterSettings,"misc","week_start")||1,s=Ke(Ke({dateFormat:"mm/dd/yy",firstDay:parseInt(a,10)},Qe.datePicker.texts),{},{beforeShow:function(t,e){i&&e.dpDiv.addClass("jet-smart-filters-datepicker-"+i)}});return e.datepicker(o?Object.assign(s,o):s)},formatDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm/dd/yy",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qe.datePicker.texts,n={monthNames:i.monthNames,monthNamesShort:i.monthNamesShort,dayNames:i.dayNames,dayNamesShort:i.dayNamesShort};return Je.datepicker.formatDate(e,t,Object.assign(n,r))},parseDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm/dd/yy",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qe.datePicker.texts,n={monthNames:i.monthNames,monthNamesShort:i.monthNamesShort,dayNames:i.dayNames,dayNamesShort:i.dayNamesShort},o={date:Je.datepicker.parseDate(e,t,Object.assign(n,r)),value:""};return o.value=y(o.date)||"",o},get texts(){var t=f(JetSmartFilterSettings,"datePickerData");return{closeText:t.closeText,prevText:t.prevText,nextText:t.nextText,currentText:t.currentText,monthNames:t.monthNames,monthNamesShort:t.monthNamesShort,dayNames:t.dayNames,dayNamesShort:t.dayNamesShort,dayNamesMin:t.dayNamesMin,weekHeader:t.weekHeader}}},dateRange:{inputSelector:".jet-date-range__input",submitSelector:".jet-date-range__submit",fromSelector:".jet-date-range__from",toSelector:".jet-date-range__to",init:function(t){var e=t.id,r=void 0!==e&&e,i=t.$container,n=void 0!==i&&i,o=t.$dateRangeInput,a=void 0===o?a||n.find(Qe.dateRange.inputSelector):o,s=t.$dateRangeFrom,l=void 0===s?l||n.find(Qe.dateRange.fromSelector):s,u=t.$dateRangeTo,c=void 0===u?c||n.find(Qe.dateRange.toSelector):u,f=t.setFocusOnChange,d=void 0!==f&&f,p=t.onChange,h=void 0===p?h||void 0:p,y=a.data("date-format")||"mm/dd/yy",v=m(a.data("mindate"))||null,b=m(a.data("maxdate"))||null,g={dateFormat:y,minDate:v,maxDate:b},w=Qe.datePicker.init({$input:l,id:r,datepickerOptions:g}).on("change",(function(){var t=Qe.datePicker.parseDate(l.val(),y),e=Qe.datePicker.parseDate(c.val(),y);t.value||e.value?a.val(t.value+"-"+e.value):a.val(""),h&&h("from",t.date),d&&l.focus(),S.datepicker("option","minDate",t.date||v)})),S=Qe.datePicker.init({$input:c,id:r,datepickerOptions:g}).on("change",(function(){var t=Qe.datePicker.parseDate(l.val(),y),e=Qe.datePicker.parseDate(c.val(),y);t.value||e.value?a.val(t.value+"-"+e.value):a.val(""),h&&h("from",t.date),d&&c.focus(),w.datepicker("option","maxDate",e.date||b)}))}}};const ze=Qe;function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function Xe(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ir(i.key),i)}}function Ze(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ze=function(){return!!t})()}function tr(t){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tr(t)}function er(t,e){return er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},er(t,e)}function rr(t,e,r){return(e=ir(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ir(t){var e=function(t){if("object"!=Ye(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ye(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ye(e)?e:e+""}function nr(t){return nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(t)}function or(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(or=function(){return!!t})()}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ar(t)}function sr(t,e){return sr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sr(t,e)}function lr(t){var e=function(t){if("object"!=nr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==nr(e)?e:e+""}var ur=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-date-range");return r=function(t,e,r){return e=ar(e),function(t,e){if(e&&("object"==nr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,or()?Reflect.construct(e,r||[],ar(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="date-range",(n=lr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sr(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(t){function e(t,r,i,n,o,a){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),rr(s=function(t,e,r){return e=tr(e),function(t,e){if(e&&("object"==Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ze()?Reflect.construct(e,r||[],tr(t).constructor):e.apply(t,r))}(this,e,[r,t]),"dateRangeInputSelector",ze.dateRange.inputSelector),rr(s,"dateRangeSubmitSelector",ze.dateRange.submitSelector),rr(s,"dateRangeFromSelector",ze.dateRange.fromSelector),rr(s,"dateRangeToSelector",ze.dateRange.toSelector),s.$dateRangeInput=i||r.find(s.dateRangeInputSelector),s.$dateRangeSubmit=n||r.find(s.dateRangeSubmitSelector),s.$dateRangeFrom=o||r.find(s.dateRangeFromSelector),s.$dateRangeTo=a||r.find(s.dateRangeToSelector),s.$dateRangeInputs=s.$dateRangeFrom.add(s.$dateRangeTo),s.dateFormat=s.$dateRangeInput.data("date-format")||"mm/dd/yy",s.initDateRangeUI(),s.processData(),s.addFilterChangeEvent(),s.$dateRangeInputs.keypress((function(t){13==t.keyCode&&s.emitFiterApply()})),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}(e,t),r=e,(i=[{key:"initDateRangeUI",value:function(){var t=this;ze.dateRange.init({id:this.$filter.closest(".elementor-widget-jet-smart-filters-date-range").data("id")||this.$filter.closest(".jet-sm-gb-wrapper").data("block-id")||this.$filter.data("sm-id")||this.$filter.closest(".brxe-jet-smart-filters-date-range").attr("id"),$dateRangeInput:this.$dateRangeInput,$dateRangeFrom:this.$dateRangeFrom,$dateRangeTo:this.$dateRangeTo,setFocusOnChange:!0,onChange:function(){t.processData(),t.emitFiterChange()}})}},{key:"addFilterChangeEvent",value:function(){var t=this;this.$dateRangeSubmit.on("click",(function(){t.emitFiterApply()}))}},{key:"removeChangeEvent",value:function(){this.$dateRangeSubmit.off()}},{key:"processData",value:function(){this.dataValue=this.$dateRangeInput.val()}},{key:"setData",value:function(t){if(this.reset(),t){this.$dateRangeInput.val(t);var e=t.split("-");e[0]&&this.$dateRangeFrom.val(ze.datePicker.formatDate(new Date(e[0].replaceAll(".","/")),this.dateFormat)),e[1]&&this.$dateRangeTo.val(ze.datePicker.formatDate(new Date(e[1].replaceAll(".","/")),this.dateFormat)),this.processData()}}},{key:"reset",value:function(){this.dataValue=!1,this.$dateRangeInput.val(""),this.$dateRangeFrom.val(""),this.$dateRangeFrom.datepicker("option","maxDate",null),this.$dateRangeTo.val(""),this.$dateRangeTo.datepicker("option","minDate",null)}},{key:"activeValue",get:function(){return(this.$dateRangeFrom.val()+"-"+this.$dateRangeTo.val()).replace(/^-/,"∞ — ").replace(/-$/," — ∞").replace("-"," — ")}}])&&Xe(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft)),cr=r(669);function fr(t){return fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(t)}function dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function pr(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,br(i.key),i)}}function hr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(hr=function(){return!!t})()}function yr(t){return yr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yr(t)}function vr(t,e){return vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vr(t,e)}function mr(t,e,r){return(e=br(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){var e=function(t){if("object"!=fr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fr(e)?e:e+""}var gr=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=t.find(".jet-date-period");return mr(r=function(t,e,r){return e=yr(e),function(t,e){if(e&&("object"==fr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,hr()?Reflect.construct(e,r||[],yr(t).constructor):e.apply(t,r))}(this,e,[i,t]),"name","date-period"),mr(r,"datepickerButtonSelector",".jet-date-period__datepicker-button"),mr(r,"datepickerInputSelector",".jet-date-period__datepicker-input"),mr(r,"prevPeriodButtonSelector",".jet-date-period__prev"),mr(r,"nextPeriodButtonSelector",".jet-date-period__next"),mr(r,"datepickerOpenedClass","jet-date-period-datepicker-opened"),mr(r,"periodIsSetClass","jet-date-period-is-set"),mr(r,"periodStartClass","jet-date-period-start"),mr(r,"periodSeparatorClass","jet-date-period-separator"),mr(r,"periodEndClass","jet-date-period-end"),r.datePeriod=[],r.id=r.$filter.closest(".elementor-widget-jet-smart-filters-date-period").data("id")||r.$filter.closest(".jet-sm-gb-wrapper").data("block-id")||r.$filter.data("sm-id")||r.$filter.closest(".brxe-jet-smart-filters-date-period").attr("id"),r.$datepickerBtn=i.find(r.datepickerButtonSelector),r.$prevPeriodBtn=i.find(r.prevPeriodButtonSelector),r.$nextPeriodBtn=i.find(r.nextPeriodButtonSelector),r.$datepickerInput=i.find(r.datepickerInputSelector),r.dateFormat=r.$datepickerInput.data("format"),r.minDate=m(r.$datepickerInput.data("mindate")),r.maxDate=m(r.$datepickerInput.data("maxdate")),r.startEndDateEnabled=!!a(r.dateFormat),r.dateSeparator=r.startEndDateEnabled&&r.dateFormat.separator?" "+r.dateFormat.separator+" ":" - ",r.periodType=r.$filter.data("period-type")||"day",r.btnPlaceholder=r.$datepickerBtn.html(),r.$datepickerInput.prop("type","text"),r.debounceInitDatepickerWeekHover=b(r.initDatepickerWeekHover,100),r.initDatepicker(),r.initEvent(),r.processData(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vr(t,e)}(e,t),r=e,i=[{key:"initDatepicker",value:function(){var t=this,e={language:"jsf",dateFormat:"yy/m/d",autoClose:!0,position:"bottom left",offset:0,view:"days",minView:"days",firstDay:Number(f(JetSmartFilterSettings,"misc","week_start"))};if(this.minDate&&(e.minDate=this.minDate),this.maxDate&&(e.maxDate=this.maxDate),!cr.fn.airDatepicker.language.jsf){var r=f(JetSmartFilterSettings,"datePickerData");cr.fn.airDatepicker.language.jsf={days:r.dayNames,daysShort:r.dayNamesShort,daysMin:r.dayNamesMin,months:r.monthNames,monthsShort:r.monthNamesShort,today:r.currentText,clear:r.closeText}}e.onSelect=function(e,r,i){if(r){var n,o=r;switch(t.periodType){case"week":var a=i.opts.firstDay>r.getDay()?i.opts.firstDay-7:i.opts.firstDay;o=new Date(r.getFullYear(),r.getMonth(),r.getDate()-r.getDay()+a),n=new Date(r.getFullYear(),r.getMonth(),r.getDate()-r.getDay()+6+a);break;case"month":n=new Date(r.getFullYear(),r.getMonth()+1,0);break;case"year":n=new Date(r.getFullYear(),11,31);break;case"range":if(!Array.isArray(r)||r.length<2)return;o=r[0],n=r[1],(!t.minDate||t.minDate<o)&&(!t.maxDate||t.maxDate>n)&&(t.periodCustomRange=Math.round(Math.abs((n-o)/864e5)));break;default:return void t.$datepickerInput.val(y(r)).trigger("change")}t.minDate&&t.minDate>o&&(o=t.minDate),t.maxDate&&t.maxDate<n&&(n=t.maxDate),t.$datepickerInput.val(y(o)+"-"+y(n)).trigger("change")}},e.onShow=function(e){t.id&&e.$datepicker.addClass("jet-date-period-"+t.id),t.$filter.addClass(t.datepickerOpenedClass),e.$datepicker.addClass("jet-date-period-"+t.periodType)},e.onHide=function(e){t.id&&e.$datepicker.removeClass("jet-date-period-"+t.id),t.$filter.removeClass(t.datepickerOpenedClass),e.$datepicker.removeClass("jet-date-period-"+t.periodType)},e.onRenderCell=function(e,r){if("week"===t.periodType&&"day"===r&&(t.debounceInitDatepickerWeekHover(),t.isDateInRange(e))){var i="-week-selected-";return t.isDateFirstInRange(e)&&(i+=" -week-start-selected-"),t.isDateLastInRange(e)&&(i+=" -week-end-selected-"),{classes:i}}},"month"===this.periodType&&(e.view="months",e.minView="months"),"year"===this.periodType&&(e.view="years",e.minView="years"),"range"===this.periodType&&(e.range=!0),this.$datepicker=this.$datepickerInput.airDatepicker(e),this.datepicker=this.$datepicker.data("datepicker"),this.$datepickerBtn.off("click"),this.$prevPeriodBtn.off("click"),this.$nextPeriodBtn.off("click"),this.$nextPeriodBtn.off("click"),this.$datepickerInput.off("change"),this.$datepickerBtn.on("click",(function(){t.datepicker.show()})),this.$prevPeriodBtn.on("click",(function(){t.prevPeriod()})),this.$nextPeriodBtn.on("click",(function(){t.nextPeriod()})),this.$datepickerInput.on("change",(function(e){e.target.value!==t.dataValue&&(t.processData(),t.wasChanged())}))}},{key:"removeChangeEvent",value:function(){this.$datepickerBtn.off(),this.$prevPeriodBtn.off(),this.$nextPeriodBtn.off(),this.$datepickerInput.off()}},{key:"processData",value:function(){this.setPeriod(),this.dataValue=this.$datepickerInput.val()||!1}},{key:"setData",value:function(t){if(t){if(this.$datepickerInput.val(t),this.processData(),this.datePeriod.length){var e="range"===this.periodType&&2===this.datePeriod.length?[this.datePeriod[0].date,this.datePeriod[1].date]:this.datePeriod[0].date;this.datepicker.selectDate(e)}}else this.reset()}},{key:"reset",value:function(){this.$datepickerInput.val(""),this.processData();var t=this.datepicker.minDate,e=this.datepicker.maxDate,r=new Date;t&&r<t&&(r=t),e&&r>e&&(r=e),this.datepicker.clear(),this.datepicker.date=r}},{key:"activeValue",get:function(){var t=f(this.datePeriod,"0","date"),e=!!t&&this.getFormattedDate(t,"start"),r=!!this.startEndDateEnabled&&f(this.datePeriod,"1","date"),i=!!r&&this.getFormattedDate(r,"end");return e&&i?e+this.dateSeparator+i:e}},{key:"setPeriod",value:function(){var t=this,e=this.$datepickerInput.val(),r=[];e&&e.split("-",2).forEach((function(t){r.push(t)})),this.datePeriod=[],r.forEach((function(e){var r=new Date(e.replaceAll(".","/"));r instanceof Date&&t.datePeriod.push({date:r,value:e})})),this.renderPeriod()}},{key:"prevPeriod",value:function(){var t=this.datePeriod[0]||!1;if(t&&!(this.minDate&&this.minDate>=t.date)){var e=v(t.date,-1),r=e;"week"===this.periodType?r=v(e,-6):"month"===this.periodType?r=new Date(e.getFullYear(),e.getMonth(),1):"year"===this.periodType?r=new Date(e.getFullYear(),0,1):"range"===this.periodType&&(r=v(new Date(e.getTime()),-this.periodCustomRange)),this.minDate&&r<this.minDate&&(r=this.minDate),this.datepicker.selectDate("range"===this.periodType?[r,e]:r)}}},{key:"nextPeriod",value:function(){var t=this.datePeriod[1]||this.datePeriod[0]||!1;if(t&&!(this.maxDate&&this.maxDate<=t.date)){var e=v(t.date),r=e;"week"===this.periodType?r=v(new Date(e.getTime()),6):"month"===this.periodType?r=new Date(e.getFullYear(),e.getMonth()+1,0):"year"===this.periodType?r=new Date(e.getFullYear(),11,31):"range"===this.periodType&&(r=v(new Date(e.getTime()),this.periodCustomRange)),this.maxDate&&r>this.maxDate&&(r=this.maxDate),this.datepicker.selectDate("range"===this.periodType?[e,r]:e)}}},{key:"renderPeriod",value:function(){if(!this.datePeriod.length)return this.$filter.removeClass(this.periodIsSetClass),void this.$datepickerBtn.html(this.btnPlaceholder);var t=f(this.datePeriod,"0","date"),e=t?'<div class="'.concat(this.periodStartClass,'">').concat(this.getFormattedDate(t,"start"),"</div>"):"",r=!!this.startEndDateEnabled&&f(this.datePeriod,"1","date"),i=r?'<div class="'.concat(this.periodEndClass,'">').concat(this.getFormattedDate(r,"end"),"</div>"):"",n=t&&r?'<div class="'.concat(this.periodSeparatorClass,'">').concat(this.dateSeparator,"</div>"):"";this.$filter.addClass(this.periodIsSetClass),this.$datepickerBtn.html(e+n+i)}},{key:"getFormattedDate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="mm/dd/yy";return this.dateFormat&&(this.startEndDateEnabled?("start"!==e&&e||!this.dateFormat.start||(r=this.dateFormat.start),"end"===e&&this.dateFormat.end&&(r=this.dateFormat.end)):r=this.dateFormat),this.datepicker.formatDate(r,t)}},{key:"isDateInRange",value:function(t){if(!(t instanceof Date)||this.datePeriod.length<2)return!1;var e=t.getTime(),r=this.datePeriod[0].date.getTime(),i=this.datePeriod[1].date.getTime();return e>=r&&e<=i}},{key:"isDateFirstInRange",value:function(t){return!!(t instanceof Date&&this.datePeriod[0])&&t.getTime()===this.datePeriod[0].date.getTime()}},{key:"isDateLastInRange",value:function(t){return!!(t instanceof Date&&this.datePeriod[1])&&t.getTime()===this.datePeriod[1].date.getTime()}},{key:"initDatepickerWeekHover",value:function(){var t=this.datepicker.$content.find(".datepicker--cells-days .datepicker--cell-day"),e=[];t.off().on({mouseenter:function(r){var i=function(t){return function(t){if(Array.isArray(t))return dr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return dr(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.target.parentNode.children).indexOf(r.target);if(!(i<0))for(var n=0;n<7;n++){var o=t.eq(n+7*Math.floor(i/7));o.addClass("-week-hover-"),0===n&&o.addClass("-week-start-hover-"),6===n&&o.addClass("-week-end-hover-"),e.push(o)}},mouseleave:function(t){e.forEach((function(t){t.removeClass("-week-hover- -week-start-hover- -week-end-hover-")})),e=[]}})}}],i&&pr(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft);function wr(t){return wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(t)}function Sr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Sr=function(){return!!t})()}function jr(t){return jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jr(t)}function kr(t,e){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kr(t,e)}function Pr(t){var e=function(t){if("object"!=wr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=wr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==wr(e)?e:e+""}var Or=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-radio-list");return r=function(t,e,r){return e=jr(e),function(t,e){if(e&&("object"==wr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Sr()?Reflect.construct(e,r||[],jr(t).constructor):e.apply(t,r))}(this,e,[t,a,a.find(":radio")]),i=r,o="radio",(n=Pr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!0,r.additionalFilterSettings=new Ut(r),r.collapsibleList=new Yt(r),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(be),_r=r(669);function xr(t){return xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(t)}function Cr(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Er(i.key),i)}}function $r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($r=function(){return!!t})()}function Ir(t){return Ir=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ir(t)}function Fr(t,e){return Fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fr(t,e)}function Er(t){var e=function(t){if("object"!=xr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xr(e)?e:e+""}function Dr(t){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(t)}function Tr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Tr=function(){return!!t})()}function Rr(t){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rr(t)}function Ar(t,e){return Ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ar(t,e)}function Vr(t){var e=function(t){if("object"!=Dr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Dr(e)?e:e+""}var qr=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-rating");return r=function(t,e,r){return e=Rr(e),function(t,e){if(e&&("object"==Dr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Tr()?Reflect.construct(e,r||[],Rr(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="rating",(n=Vr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ar(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(t){function e(t,r,i){var n,o,a,s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e,r){return e=Ir(e),function(t,e){if(e&&("object"==xr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$r()?Reflect.construct(e,r||[],Ir(t).constructor):e.apply(t,r))}(this,e,[r,t]),o=n,s=".jet-rating-star__input",(a=Er(a="starsRatingSelector"))in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,n.$starsRating=i||r.find(n.starsRatingSelector),n.processData(),n.initEvent(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fr(t,e)}(e,t),r=e,(i=[{key:"initEvent",value:function(){var t=this;this.$starsRating.off("click"),this.$starsRating.on("click",(function(e){var r=_r(e.target);r.hasClass("is-checked")?t.$starsRating.prop("checked",!1).removeClass("is-checked"):(t.$starsRating.removeClass("is-checked"),r.addClass("is-checked")),t.processData(),t.wasChanged()})),this.applyOnChanging||this.addApplyEvent()}},{key:"removeChangeEvent",value:function(){this.$starsRating.off()}},{key:"processData",value:function(){this.dataValue=this.$checked.val()||!1}},{key:"setData",value:function(t){this.reset(),t&&(this.$checked.removeClass("is-checked"),this.$starsRating.filter('[value="'+t+'"]').addClass("is-checked"),this.processData())}},{key:"reset",value:function(){this.dataValue=!1,this.$starsRating.prop("checked",!1).removeClass("is-checked")}},{key:"activeValue",get:function(){return(this.dataValue||"0")+"/"+this.$starsRating.length}},{key:"$checked",get:function(){return this.$starsRating.filter(".is-checked")}}])&&Cr(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft));function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function Nr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nr=function(){return!!t})()}function Mr(t){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mr(t)}function Lr(t,e){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lr(t,e)}function Gr(t){var e=function(t){if("object"!=Br(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Br(e)?e:e+""}var Jr=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-color-image-list");return r=function(t,e,r){return e=Mr(e),function(t,e){if(e&&("object"==Br(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nr()?Reflect.construct(e,r||[],Mr(t).constructor):e.apply(t,r))}(this,e,[t,a,a.find(".jet-color-image-list__input")]),i=r,o="visual",(n=Gr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!0,r.additionalFilterSettings=new Ut(r),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lr(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Nt);function Ur(t){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(t)}function Hr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Hr=function(){return!!t})()}function Kr(t){return Kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kr(t)}function Wr(t,e){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wr(t,e)}function Qr(t){var e=function(t){if("object"!=Ur(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ur(e)?e:e+""}var zr=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-alphabet-list");return r=function(t,e,r){return e=Kr(e),function(t,e){if(e&&("object"==Ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Hr()?Reflect.construct(e,r||[],Kr(t).constructor):e.apply(t,r))}(this,e,[t,a,a.find(".jet-alphabet-list__input")]),i=r,o="alphabet",(n=Qr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wr(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Nt);function Yr(t){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(t)}function Xr(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ni(i.key),i)}}function Zr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zr=function(){return!!t})()}function ti(){return ti="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=ei(t)););return t}(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}},ti.apply(null,arguments)}function ei(t){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ei(t)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ri(t,e)}function ii(t,e,r){return(e=ni(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ni(t){var e=function(t){if("object"!=Yr(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Yr(e)?e:e+""}function oi(t){return oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(t)}function ai(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ai=function(){return!!t})()}function si(t){return si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},si(t)}function li(t,e){return li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},li(t,e)}function ui(t){var e=function(t){if("object"!=oi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==oi(e)?e:e+""}var ci=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-search-filter");return r=function(t,e,r){return e=si(e),function(t,e){if(e&&("object"==oi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ai()?Reflect.construct(e,r||[],si(t).constructor):e.apply(t,r))}(this,e,[t,a]),i=r,o="search",(n=ui(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&li(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(t){function r(t,i,n,o,a){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),ii(s=function(t,e,r){return e=ei(e),function(t,e){if(e&&("object"==Yr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Zr()?Reflect.construct(e,r||[],ei(t).constructor):e.apply(t,r))}(this,r,[i,t]),"searchInputSelector",".jet-search-filter__input"),ii(s,"searchSubmitSelector",".jet-search-filter__submit"),ii(s,"searchClearSelector",".jet-search-filter__input-clear"),ii(s,"searchLoadingClass","jet-filters-single-loading"),ii(s,"inputNotEmptyClass","jet-input-not-empty"),ii(s,"delayID",null),s.$searchInput=n||i.find(s.searchInputSelector),s.$searchSubmit=o||i.find(s.searchSubmitSelector),s.$searchClear=a||i.find(s.searchClearSelector),s.processData(),s.addFilterChangeEvent(),e.subscribe("ajaxFilters/end-loading",(function(){s.$filter.removeClass(s.searchLoadingClass)})),s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ri(t,e)}(r,t),i=r,n=[{key:"addFilterChangeEvent",value:function(){var t=this;this.$searchSubmit.on("click",(function(){t.wasChanged()})),this.$searchClear.on("click",(function(){t.$searchInput.val(""),t.$searchInput.removeClass(t.inputNotEmptyClass),t.wasChanged()})),this.$searchInput.on("keyup",(function(r){var i=r.target.value;i!==t.dataValue&&(e.publish("fiter/syncSameFilters",t),"ajax-ontyping"===t.applyType?t.minLettersCount<=i.length?(t.emitFiterChangeWithDelay(),t.$searchInput.addClass(t.inputNotEmptyClass)):(t.$searchInput.hasClass(t.inputNotEmptyClass)&&t.emitFiterChangeWithDelay(),t.$searchInput.removeClass(t.inputNotEmptyClass)):13===r.keyCode&&t.wasChanged())}))}},{key:"removeChangeEvent",value:function(){this.$searchSubmit.off(),this.$searchClear.off(),this.$searchInput.off()}},{key:"processData",value:function(){this.dataValue=this.$searchInput.val(),this.minLettersCount&&this.minLettersCount>this.dataValue.length&&(this.dataValue="")}},{key:"setData",value:function(t){this.reset(),t&&(this.$searchInput.val(t),"ajax-ontyping"===this.applyType&&this.minLettersCount<=t.length&&this.$searchInput.addClass(this.inputNotEmptyClass),this.processData())}},{key:"reset",value:function(){this.dataValue=!1,this.$searchInput.val(""),this.$searchInput.removeClass(this.inputNotEmptyClass)}},{key:"wasChanged",value:function(){var t,e,i;this.processData(),(t=r,e=this,"function"==typeof(i=ti(ei(1&3?t.prototype:t),"wasChanged",e))?function(t){return i.apply(e,t)}:i)([this.filterGroup.isProviderExist])}},{key:"emitFiterChangeWithDelay",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;clearTimeout(this.delayID),this.delayID=setTimeout((function(){t.$filter.addClass(t.searchLoadingClass),t.processData(),t.wasChanged()}),e)}},{key:"syncWithSameFilter",value:function(t){var e=t.$searchInput.val();this.$searchInput.val()!==e&&this.$searchInput.val(e)}},{key:"minLettersCount",get:function(){return this.$filter.data("min-letters-count")}},{key:"activeValue",get:function(){return this.dataValue}}],n&&Xr(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Ft));function fi(t){return fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(t)}function di(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(di=function(){return!!t})()}function pi(t){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(t)}function hi(t,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hi(t,e)}function yi(t){var e=function(t){if("object"!=fi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==fi(e)?e:e+""}var vi=function(t){function e(t){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,n,o,a=t.find(".jet-sorting");return r=function(t,e,r){return e=pi(e),function(t,e){if(e&&("object"==fi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,di()?Reflect.construct(e,r||[],pi(t).constructor):e.apply(t,r))}(this,e,[t,a,a.find(".jet-sorting-select")]),i=r,o="sorting",(n=yi(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r.mergeSameQueryKeys=!0,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hi(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(be);function mi(t){return mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(t)}function bi(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,ji(i.key),i)}}function gi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(gi=function(){return!!t})()}function wi(t){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wi(t)}function Si(t,e){return Si=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Si(t,e)}function ji(t){var e=function(t){if("object"!=mi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==mi(e)?e:e+""}var ki=function(t){function r(t){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n,o,a,s=t.find(".apply-filters");return i=function(t,e,r){return e=wi(e),function(t,e){if(e&&("object"==mi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,gi()?Reflect.construct(e,r||[],wi(t).constructor):e.apply(t,r))}(this,r,[s,t]),n=i,a="button-apply",(o=ji(o="name"))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,i.$button=i.$filter.find(".apply-filters__button"),i.activeState=i.$button.data("active-state"),i.ifInactive=i.$button.data("if-inactive"),i.$button.on("click",(function(){i.emitFitersApply()})),e.subscribe("filters/processed",(function(t){i.filterGroup&&i.filterGroup.isCurrentProvider(t)&&i.updateState()})),e.subscribe("fiter/change",(function(t){i.filterGroup&&i.filterGroup.isCurrentProvider(t)&&i.updateState()})),e.subscribe("fiters/remove",(function(t){i.filterGroup&&i.filterGroup.isCurrentProvider(t)&&setTimeout((function(){i.updateState()}))})),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Si(t,e)}(r,t),i=r,n=[{key:"updateState",value:function(){this.activeState&&"always"!==this.activeState&&(this.isActive?"hide"===this.ifInactive?this.$button.removeClass("jsf_hidden"):(this.$button.removeClass("jsf_disabled"),this.$button.prop("disabled",!1)):"hide"===this.ifInactive?this.$button.addClass("jsf_hidden"):(this.$button.addClass("jsf_disabled"),this.$button.prop("disabled",!0)))}},{key:"isActive",get:function(){var t=this.filterGroup.filters.filter((function(t){return!["button-apply","button-remove","pagination"].includes(t.name)&&void 0!==t.dataValue})),e=function(t){return"location-distance"===t.name?t.hasLocation():t.dataValue};switch(this.activeState){case"any":return t.some(e);case"all":return t.every(e);default:return!0}}}],n&&bi(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Ft);function Pi(t){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(t)}function Oi(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,$i(i.key),i)}}function _i(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_i=function(){return!!t})()}function xi(t){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xi(t)}function Ci(t,e){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ci(t,e)}function $i(t){var e=function(t){if("object"!=Pi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Pi(e)?e:e+""}var Ii=function(t){function r(t){var i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var n,o,a,s=t.find(".jet-remove-all-filters__button");return i=function(t,e,r){return e=xi(e),function(t,e){if(e&&("object"==Pi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_i()?Reflect.construct(e,r||[],xi(t).constructor):e.apply(t,r))}(this,r,[s,t.find(".jet-remove-all-filters")]),n=i,a="button-remove",(o=$i(o="name"))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,i.$elementorWidget=i.$container.closest(".hide-widget"),i.$filter.on("click",(function(){i.emitFitersRemove(),i.updateVisibility()})),e.subscribe("filters/processed",(function(t){i.isCurrentProvider(t)&&i.updateVisibility()})),e.subscribe("fiter/change",(function(t){(i.isCurrentProvider(t)||i.isAdditionalProvider(t))&&i.updateVisibility()})),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ci(t,e)}(r,t),i=r,n=[{key:"updateVisibility",value:function(){var t=this.filterGroup;if(t){var e=nt("filters/button-remove/not-removable-filters",["pagination"],this,t),r=t.uniqueFilters.some((function(t){return t.data&&t.reset&&!e.includes(t.name)}));r?(this.show(),this.$elementorWidget.removeClass("hide-widget")):(this.hide(),this.$elementorWidget.addClass("hide-widget"))}}}],n&&Oi(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Ft),Fi=r(669),Ei=r(669);const Di={init:function(){var t=this;this.subscribers=[],this.preloaderTemplate=f(JetSmartFilterSettings,"plugin_settings","provider_preloader"),e.subscribe("ajaxFilters/start-loading",(function(e,r){t.action(t.currentElements(e,r),"show")})),e.subscribe("ajaxFilters/end-loading",(function(e,r){t.action(t.currentElements(e,r),"hide")}))},subscribe:function(t,e){var r=e.provider,i=void 0!==r&&r,n=e.queryId,o=void 0===n?"default":n,a=e.preloaderClass,s=void 0===a?"jet-filters-loading":a;i&&this.subscribers.push({target:t,provider:i,queryId:o,preloaderClass:s})},action:function(t,e){var r=this;t.forEach((function(t){var i=t.target,n=t.preloaderClass,o=i instanceof Fi?i:Ei(i);switch(e){case"show":o.addClass(n),t.$preloader=o.append(r.preloaderTemplate);break;case"hide":o.removeClass(n)}}))},currentElements:function(t,e){return this.subscribers.filter((function(r){return r.provider===t&&r.queryId===e}))}},Ti=function(t,e){return t.replace(/\/%\s*\$value\s*%\//g,e)};var Ri=r(669);function Ai(t){return Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(t)}function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function qi(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Gi(i.key),i)}}function Bi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Bi=function(){return!!t})()}function Ni(t){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ni(t)}function Mi(t,e){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mi(t,e)}function Li(t,e,r){return(e=Gi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gi(t){var e=function(t){if("object"!=Ai(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ai(e)?e:e+""}var Ji=function(t){function r(t){var i,n,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),Li((n=this,a=[t],o=Ni(o=r),i=function(t,e){if(e&&("object"==Ai(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(n,Bi()?Reflect.construct(o,a||[],Ni(n).constructor):o.apply(n,a))),"name","pagination"),Li(i,"paginationListClass","jet-filters-pagination"),Li(i,"paginationItemClass","jet-filters-pagination__item"),Li(i,"paginationLoadMoreClass","jet-filters-pagination__load-more"),Li(i,"paginationCurrentClass","jet-filters-pagination__current"),Li(i,"paginationDisabledClass","jet-filters-pagination__disabled"),Li(i,"navClass","prev-next"),Li(i,"prevClass","prev"),Li(i,"nextClass","next"),i.pageIndex=i.pageProp,i.dataValue=i.pageIndex,i.pagesCount=i.maxNumPagesProp,i.controls=i.$filter.data("controls"),i.isItems=i.controls.items_enabled||!1,i.midSize=i.controls.pages_mid_size||0,i.endSize=i.controls.pages_end_size||0,i.isNav=i.controls.nav_enabled||!1,i.hideInactiveNav=i.controls.hide_inactive_nav||!1,i.prevText=i.controls.prev,i.nextText=i.controls.next,i.isLoadMore=i.controls.load_more_enabled||!1,i.loadMoreText=i.controls.load_more_text,i.moreActiveIndexes=[],i.templates=f(JetSmartFilterSettings,"templates","pagination")||{},i.currentUrlParams="",void 0!==i.controls.provider_top_offset&&(i.topOffset=i.controls.provider_top_offset||0),Di.subscribe(t,{provider:i.provider,queryId:i.queryId}),e.subscribe("ajaxFilters/end-loading",(function(t,e){i.isCurrentProvider({provider:t,queryId:e})&&i.update()})),e.subscribe("pagination/change",(function(t){i.isCurrentProvider(t)&&t.data!==i.data&&(i.dataValue=t.data)})),document.addEventListener("jet-smart-filters/inited",(function(){i.buildPagination()})),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mi(t,e)}(r,t),i=r,(n=[{key:"reinit",value:function(){this.update()}},{key:"buildPagination",value:function(){if(this.pagesCount<2)this.$filter.html("");else{this.$filter.find("*").off("click");var t=document.createElement("nav");t.className=this.paginationListClass,t.setAttribute("aria-label","Pagination"),this.updateUrlParams();var r=!1;if(this.isItems)for(var i=1;i<=this.pagesCount;i++)0!==this.midSize&&(this.endSize<i&&i<this.pageIndex-this.midSize||this.endSize<=this.pagesCount-i&&i>this.pageIndex+this.midSize)?r||(t.appendChild(this.buildDotsItem()),r=!0):(i===this.pageIndex||this.moreActiveIndexes.includes(i)?t.appendChild(this.buildPaginationItem("current",i)):t.appendChild(this.buildPaginationItem("numeral",i,this.onPaginationItemClick.bind(this))),r=!1);if(this.isNav){var n=1===this.pageIndex||this.moreActiveIndexes.includes(1),o=this.pageIndex===this.pagesCount;if(!this.hideInactiveNav||!n){var a=this.buildPaginationItem("prev",this.prevText,this.onPaginationItemClick.bind(this));n&&a.setAttribute("disabled",""),t.prepend(a)}if(!this.hideInactiveNav||!o){var s=this.buildPaginationItem("next",this.nextText,this.onPaginationItemClick.bind(this));o&&s.setAttribute("disabled",""),t.append(s)}}this.isLoadMore&&this.pageIndex<this.pagesCount&&t.appendChild(this.buildLoadMore()),this.$filter.html(t),e.publish("pagination/itemsBuilt",this)}}},{key:"buildPaginationItem",value:function(t,e,r){var i;i=this.templates.item?Ti(this.templates.item,e):e;var n=document.createElement("current"===t?"div":"a");if(n.className=this.paginationItemClass,n.innerHTML=i,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&"current"!==t&&(n.tabIndex=0),"prev"===t||"next"===t){n.dataset.value=t,n.classList.add(this.navClass),n.classList.add(this[t+"Class"]);var o=this.pageIndex;"prev"===t&&(n.setAttribute("rel","prev"),o=Math.max(1,this.pageIndex-1)),"next"===t&&(n.setAttribute("rel","next"),o=Math.min(this.pagesCount,this.pageIndex+1)),n.href=this.getPageUrl(o)}else"current"===t?(n.dataset.value=e,n.setAttribute("aria-current","page"),n.classList.add(this.paginationCurrentClass)):(n.dataset.value=e,n.href=this.getPageUrl(e));return Ri(n).on("click",r),n}},{key:"buildDotsItem",value:function(){var t,e=document.createElement("div");return t=this.templates.dots?this.templates.dots:"...",e.className=this.paginationItemClass,e.innerHTML=t,e}},{key:"buildLoadMore",value:function(){var t,e=document.createElement("div");return t=this.templates.load_more?Ti(this.templates.load_more,this.loadMoreText):this.loadMoreText,e.className=this.paginationLoadMoreClass,e.setAttribute("role","button"),e.innerHTML=t,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&(e.tabIndex=0),Ri(e).on("click",this.onPaginationLoadMoreClick.bind(this)),e}},{key:"updateUrlParams",value:function(){var t=this.filterGroup.getUrl(!0);t&&"plain"===this.filterGroup.urlType&&t.includes("pagenum=")&&(t=t.replace(/([?&])pagenum=\d+&?/,"$1").replace(/[?&]$/,"")),t&&"permalink"===this.filterGroup.urlType&&t.includes("/pagenum/")&&(t=t.replace(/\/pagenum\/\d+\/?/,"/").replace(/\/\/+/g,"/")),this.currentUrlParams=t}},{key:"getPageUrl",value:function(t){var e=this.filterGroup.siteUrl+this.filterGroup.baseUrl,r=this.provider;switch(this.queryId&&"default"!==this.queryId&&(r+=":"+this.queryId),this.filterGroup.urlType){case"plain":this.currentUrlParams?e+=this.currentUrlParams+"&pagenum="+t:e+="?jsf="+r+"&pagenum="+t;break;case"permalink":this.currentUrlParams?e+=this.currentUrlParams+"pagenum/"+t+"/":e+="jsf/"+r+"/pagenum/"+t+"/"}return e}},{key:"onPaginationItemClick",value:function(t){if(!this.isAjaxLoading){t.preventDefault();var r=Ri(t.currentTarget).data("value");switch(r){case"prev":var i=this.moreActiveIndexes[0]||this.pageIndex;r=i>1?i-1:1;break;case"next":r=this.pageIndex<this.pagesCount?this.pageIndex+1:this.pagesCount}this.pageIndex===r||this.moreActiveIndexes.includes(r)||(this.moreActiveIndexes=[],this.dataValue=r,this.updateActivePagesProviderProps(),e.publish("pagination/change",this))}}},{key:"onPaginationLoadMoreClick",value:function(t){if(!this.isAjaxLoading){var r=this.dataValue;++r<=this.pagesCount&&(this.moreActiveIndexes.push(this.dataValue),this.dataValue=r,this.updateActivePagesProviderProps(),e.publish("pagination/load-more",this))}}},{key:"updateActivePagesProviderProps",value:function(){if(f(JetSmartFilterSettings,"props",this.provider,this.queryId)){var t=window.JetSmartFilterSettings.props[this.provider][this.queryId];this.moreActiveIndexes.length?t.pages=[].concat(function(t){if(Array.isArray(t))return Vi(t)}(e=this.moreActiveIndexes)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Vi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vi(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.dataValue]):delete t.pages}var e}},{key:"update",value:function(){var t=this.maxNumPagesProp,e=this.pageProp;t===this.pagesCount&&e===this.pageIndex||(this.pagesCount=t,this.pageIndex=e,this.dataValue=this.pageIndex,this.buildPagination())}},{key:"reset",value:function(){this.moreActiveIndexes=[],this.dataValue=1,this.updateActivePagesProviderProps()}},{key:"resetMoreActive",value:function(){this.moreActiveIndexes.length&&(this.moreActiveIndexes=[],this.updateActivePagesProviderProps(),this.buildPagination())}},{key:"data",get:function(){return!!(this.dataValue&&this.dataValue>1)&&this.dataValue}},{key:"pageProp",get:function(){return Number(f(JetSmartFilterSettings,"props",this.provider,this.queryId,"page"))||1}},{key:"maxNumPagesProp",get:function(){return Number(f(JetSmartFilterSettings,"props",this.provider,this.queryId,"max_num_pages"))||0}},{key:"queryKey",get:function(){return"jet_paged"}}])&&qi(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Ft),Ui=r(669);function Hi(t){return Hi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hi(t)}function Ki(t){return function(t){if(Array.isArray(t))return Wi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Wi(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wi(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function Qi(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,zi(i.key),i)}}function zi(t){var e=function(t){if("object"!=Hi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Hi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hi(e)?e:e+""}var Yi=function(){return t=function t(r){var i,n,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,o={},(n=zi(n="activeItemsСollection"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o;var l=s.separateMultiple,u=void 0!==l&&l,c=s.templateName,d=void 0!==c&&c,p=s.listClass,h=void 0===p?"active-list":p,y=s.labelClass,v=void 0===y?"active-title":y,m=s.itemClass,b=void 0===m?"active-item":m,g=s.clearClass,w=void 0===g?"active-clear":g;this.$activeItemsContainer=r,this.path=S(this.$activeItemsContainer.get(0)),this.$elementorWidget=this.$activeItemsContainer.closest(".hide-widget"),this.separateMultiple=u,this.listClass=h,this.labelClass=v,this.itemClass=b,this.clearClass=w,this.provider=this.$activeItemsContainer.data("contentProvider"),this.queryId=this.$activeItemsContainer.data("queryId").toString()||"default",this.providerKey=this.provider+"/"+this.queryId,this.additionalProviders=this.$activeItemsContainer.data("additional-providers"),this.allProviders=[this.providerKey],this.applyType=this.$activeItemsContainer.data("applyType")||"ajax",this.filtersLabel=this.$activeItemsContainer.data("label"),this.clearItemLabel=this.$activeItemsContainer.data("clearItemLabel"),this.templates=f(JetSmartFilterSettings,"templates",d),this.setAllProviders(),e.subscribe("activeItems/change",(function(t,e,r){a.isCurrentProvider({provider:e,queryId:r})&&(a.addToCollection(t,e+"/"+r),a.buildItems())})),e.subscribe("activeItems/rebuild",(function(t,e){a.isCurrentProvider({provider:t,queryId:e})&&a.buildItems()}))},r=[{key:"addToCollection",value:function(t,e){var r=t.filter((function(t){return!t.isAdditional}));this.isThereHierarchicalFilters(r)&&(r=this.groupHierarchicalFilters(r)),this.activeItemsСollection[e]=r}},{key:"buildItems",value:function(){var t=this;this.$elementorWidget.removeClass("hide-widget"),this.$activeItemsContainer.find("*").off();var r=this.activeItems;if(u(r))return this.$activeItemsContainer.html(""),void this.$elementorWidget.addClass("hide-widget");var i=document.createElement("div");if(i.className=this.listClass,this.filtersLabel){var n=document.createElement("div");n.className=this.labelClass,n.innerHTML=this.filtersLabel,i.appendChild(n)}this.clearItemLabel&&i.appendChild(this.buildItem({value:this.clearItemLabel,itemClass:this.clearClass,callback:function(){e.publish("fiters/remove",t)}})),r.forEach((function(e){var r;(r=Array.isArray(e)?t.groupedItem(e):t.isSeparate(e)?t.separatedItems(e):t.regularItem(e))&&i.appendChild(r)})),this.$activeItemsContainer.html(i),e.publish("activeItems/itemsBuilt",this)}},{key:"buildItem",value:function(t){var e=t.value,r=t.label,i=void 0!==r&&r,n=t.itemClass,o=void 0===n?this.itemClass:n,a=t.templates,s=void 0===a?this.templates:a,l=t.callback,u=void 0===l?function(){}:l,c="";s?(i&&s.label&&(c+=Ti(s.label,i)),e&&s.value&&(c+=Ti(s.value,e)),s.remove&&(c+=s.remove)):c=e;var d=document.createElement("div");return d.className=o,d.innerHTML=c,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&(d.tabIndex=0),Ui(d).one("click",u),d}},{key:"regularItem",value:function(t){var e=this,r=j(t.activeValue),i=t.activeLabel;return!!r&&this.buildItem({value:r,label:i,callback:function(){e.removeFilter(t)}})}},{key:"separatedItems",value:function(t){var e=this,r=document.createDocumentFragment();return t.data.forEach((function(i){var n=j(t.getValueLabel(i)),o=t.activeLabel;n&&r.appendChild(e.buildItem({value:n,label:o,callback:function(){e.removeFilter(t,i)}}))})),r}},{key:"groupedItem",value:function(t){var e,r=this,i="";return t.forEach((function(t){var r=t.activeValue,n=t.activeLabel;r&&(i&&(i+=" > "),i+=r),!e&&n&&(e=n)})),this.buildItem({value:i,label:e,callback:function(){r.removeFilter(t[0])}})}},{key:"removeFilter",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.reset(r);var i=t.copy;i.applyType=this.applyType,e.publish("fiter/change",i),e.publish("fiter/apply",i)}},{key:"setAllProviders",value:function(){var t=this,e=(this.additionalProviders&&Array.isArray(this.additionalProviders)?this.additionalProviders:[]).map((function(e){var r=e.split("/",2);return r[0]+"/"+(r[1]||t.queryId)}));this.allProviders=Ki(new Set([this.providerKey].concat(Ki(e))))}},{key:"isSeparate",value:function(t){return!(!this.separateMultiple||!Array.isArray(t.data))}},{key:"isThereHierarchicalFilters",value:function(t){return t.some((function(t){return t.isHierarchy}))}},{key:"isCurrentProvider",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1},e=t.provider,r=void 0!==e&&e,i=t.queryId,n=void 0===i?"default":i;return!!r&&!!this.allProviders.includes(r+"/"+n)}},{key:"activeItems",get:function(){var t=[];for(var e in this.activeItemsСollection)t=[].concat(Ki(t),Ki(this.activeItemsСollection[e]));return t}},{key:"containerElement",get:function(){return!!this.$activeItemsContainer&&!!this.$activeItemsContainer.length&&this.$activeItemsContainer.get(0)}},{key:"groupHierarchicalFilters",value:function(t){for(var e=[];t.length;){for(var r=void 0,i=t.shift(),n=i.filterId,o=0;o<t.length;o++){var a;t[o].filterId===n&&(r||(r=[i]),(a=r).push.apply(a,Ki(t.splice(o,1))),o--)}r?e.push(r):e.push(i)}return e}}],r&&Qi(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();function Xi(t){return Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(t)}function Zi(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Zi=function(){return!!t})()}function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tn(t)}function en(t,e){return en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},en(t,e)}function rn(t){var e=function(t){if("object"!=Xi(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Xi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Xi(e)?e:e+""}function nn(t){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(t)}function on(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(on=function(){return!!t})()}function an(t){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},an(t)}function sn(t,e){return sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},sn(t,e)}function ln(t){var e=function(t){if("object"!=nn(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==nn(e)?e:e+""}function un(t){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(t)}function cn(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,hn(i.key),i)}}function fn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(fn=function(){return!!t})()}function dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dn(t)}function pn(t,e){return pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pn(t,e)}function hn(t){var e=function(t){if("object"!=un(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==un(e)?e:e+""}const yn={BasicFilter:Ft,CheckBoxes:ie,CheckRange:ue,Select:Pe,SelectHierarchical:Fe,Range:Ge,DateRange:ur,DatePeriod:gr,Radio:Or,Rating:qr,Visual:Jr,Alphabet:zr,Search:ci,Sorting:vi,ButtonApply:ki,ButtonRemove:Ii,Pagination:Ji,ActiveFilters:function(t){function e(t){var r,i,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){(e=rn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}((i=this,o=[t,{templateName:"active_filter",listClass:"jet-active-filters__list",labelClass:"jet-active-filters__title",itemClass:"jet-active-filter"}],n=tn(n=e),r=function(t,e){if(e&&("object"==Xi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(i,Zi()?Reflect.construct(n,o||[],tn(i).constructor):n.apply(i,o))),"name","active-filters"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&en(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Yi),ActiveTags:function(t){function e(t){var r,i,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){(e=ln(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}((i=this,o=[t,{separateMultiple:!0,templateName:"active_tag",listClass:"jet-active-tags__list",labelClass:"jet-active-tags__title",itemClass:"jet-active-tag",clearClass:"jet-active-tag jet-active-tag--clear"}],n=an(n=e),r=function(t,e){if(e&&("object"==nn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(i,on()?Reflect.construct(n,o||[],an(i).constructor):n.apply(i,o))),"name","active-tags"),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sn(t,e)}(e,t),r=e,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Yi),Hidden:function(t){function e(t){var r,i,n,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){(e=hn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}((i=this,n=e,o=[t.find(".jet-hidden-data"),t],n=dn(n),r=function(t,e){if(e&&("object"==un(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(i,fn()?Reflect.construct(n,o||[],dn(i).constructor):n.apply(i,o))),"name","hidden"),r.urlParams=h(),r.processFilter(),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pn(t,e)}(e,t),r=e,(i=[{key:"processFilter",value:function(){var t=this,e="plain_query"!==this.queryType?this.queryType.replace(/_query$/,""):this.queryType;this.urlParams.hasOwnProperty(e)&&this.urlParams[e].split(";").forEach((function(e){var r=e.split(":");r[0]===t.queryVar&&void 0!==r[1]&&t.setData(r[1])}))}},{key:"setData",value:function(t){t?this.dataValue=t:this.reset()}},{key:"reset",value:function(){this.dataValue=!1}},{key:"urlData",get:function(){return this.$filter.data("url-value")||this.dataValue}}])&&cn(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Ft)};var vn=r(669);const mn={archivePostsClass:".elementor-widget-archive-posts",defaultPostsClass:".elementor-widget-posts",postsSettings:{},skin:"archive_classic",addSubscribers:function(){e.subscribe("provider/content-rendered",this.eproPostRendered.bind(this))},eproPostRendered:function(t,e){if("epro-archive"===t||"epro-posts"===t){var r=this.defaultPostsClass,i=null,n="posts";"epro-archive"===t&&(r=this.archivePostsClass,n="archive-posts"),i=e.parent(r),this.fitImages(i),this.postsSettings=i.data("settings"),"widget"===i.data("element_type")?this.skin=i.data("widget_type"):this.skin=i.data("element_type"),this.skin=this.skin.split(n+"."),this.skin=this.skin[1],"yes"===this.postsSettings[this.skin+"_masonry"]&&setTimeout(this.initMasonry(i),0)}},initMasonry:function(t){var e,r=t.find(".elementor-posts-container"),i=r.find(".elementor-post"),n=this.postsSettings,o=1;switch(i.css({marginTop:"",transitionDuration:""}),window.elementorFrontend.getCurrentDeviceMode()){case"mobile":o=n[this.skin+"_columns_mobile"];break;case"tablet":o=n[this.skin+"_columns_tablet"];break;default:o=n[this.skin+"_columns"]}if(e=o>=2,r.toggleClass("elementor-posts-masonry",e),e){var a=n[this.skin+"_row_gap"].size;a||(a=n[this.skin+"_item_gap"].size),new elementorModules.utils.Masonry({container:r,items:i.filter(":visible"),columnsCount:o,verticalSpaceBetween:a}).run()}else r.height("")},fitImage:function(t){var e=t.find(".elementor-post__thumbnail"),r=e.find("img")[0];if(r){var i=e.outerHeight()/e.outerWidth(),n=r.naturalHeight/r.naturalWidth;e.toggleClass("elementor-fit-height",n<i)}},fitImages:function(t){var e=this,r=getComputedStyle(t[0],":after").content;t.find(".elementor-posts-container").toggleClass("elementor-has-item-ratio",!!r.match(/\d/)),t.find(".elementor-post").each((function(t,r){var i=vn(r),n=i.find(".elementor-post__thumbnail img");e.fitImage(i),n.on("load",(function(){e.fitImage(i)}))}))}};var bn=r(669),gn={filtersList:{CheckBoxes:"jet-smart-filters-checkboxes",CheckRange:"jet-smart-filters-check-range",Select:"jet-smart-filters-select",SelectHierarchical:"jet-smart-filters-hierarchy",Range:"jet-smart-filters-range",DateRange:"jet-smart-filters-date-range",DatePeriod:"jet-smart-filters-date-period",Radio:"jet-smart-filters-radio",Rating:"jet-smart-filters-rating",Visual:"jet-smart-filters-color-image",Alphabet:"jet-smart-filters-alphabet",Search:"jet-smart-filters-search",Sorting:"jet-smart-filters-sorting",ButtonApply:"jet-smart-filters-apply-button",ButtonRemove:"jet-smart-filters-remove-filters",Pagination:"jet-smart-filters-pagination",ActiveFilters:"jet-smart-filters-active",ActiveTags:"jet-smart-filters-active-tags",Hidden:"jet-smart-filters-hidden"},filterClass:function(t){for(var e in gn.filtersList)if("jet-smart-filters-"+t===gn.filtersList[e])return e},filters:yn,filterNames:[],filterGroups:{},initFilter:function(t){if(!t.is("[jsf-filter]")){t.attr("jsf-filter","");var e=null;for(var r in gn.filtersList)t.hasClass(gn.filtersList[r])&&(e=r);if(e){var i=new gn.filters[e](t);i.isHierarchy?i.filters.forEach((function(t){Sn(t)})):Sn(i);var n=t.data("additional-providers")||t.find("[data-additional-providers]").data("additional-providers");n&&!wn.includes(e)&&n.forEach((function(t){var e=t.split("/",2),r=e[0],n=e[1]||i.queryId;i.isHierarchy?i.filters.forEach((function(t){Sn(jn(r,n,t))})):Sn(jn(r,n,i))}))}}},reinitFilters:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;for(var e in t&&!Array.isArray(t)&&(t=[t]),gn.filterGroups)gn.filterGroups[e].reinitFilters(t)},findFilters:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bn("html");return bn("."+Object.values(gn.filtersList).join(", ."),t)},filtersUI:ze,setIndexedData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(gn.filterGroups[t]&&gn.filterGroups[t].indexingFilters){var r=f(JetSmartFilterSettings,"ajaxurl"),i={action:"jet_smart_filters_get_indexed_data",provider:t,query_args:e,indexing_filters:gn.filterGroups[t].indexingFilters};bn.ajax({url:r,type:"POST",dataType:"json",data:i}).done((function(e){e.data&&(window.JetSmartFilterSettings.jetFiltersIndexedData||(window.JetSmartFilterSettings.jetFiltersIndexedData={}),window.JetSmartFilterSettings.jetFiltersIndexedData[t]||(window.JetSmartFilterSettings.jetFiltersIndexedData[t]={}),window.JetSmartFilterSettings.jetFiltersIndexedData[t]=e.data,gn.filterGroups[t]&&gn.filterGroups[t].filters.forEach((function(t){t.indexer&&t.indexer.update()})))}))}},events:e},wn=["ActiveFilters","ActiveTags","ButtonRemove"];function Sn(t){var e,r,i;t.provider&&t.queryId&&(e=t.provider,r=t.queryId,i=e+"/"+r,gn.filterGroups[i]||(gn.filterGroups[i]=new Ot(e,r)),gn.filterGroups[i]).addFilter(t)}function jn(t,e,r){var i={isAdditional:!0,name:r.name,path:r.path,provider:t,queryId:e,filterId:r.filterId,queryKey:r.queryKey,data:r.data,reset:function(){this.data=!1}};return r.isHierarchy&&(i.isHierarchy=!0,i.depth=r.depth),i}for(var kn in window.JetSmartFilters=gn,bn(document).ready((function(){var t=new Event("jet-smart-filters/before-init");document.dispatchEvent(t),window.elementorFrontend&&mn.addSubscribers(),Di.init();var e=gn.findFilters();e.each((function(t){var r=e.eq(t);gn.initFilter(r)}));var r=new Event("jet-smart-filters/inited");document.dispatchEvent(r)})),gn.filtersList){var Pn=gn.filtersList[kn];gn.filterNames.push(Pn.replace("jet-smart-filters-",""))}const On=gn;var _n=r(669);const xn={initFilter:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n("body");switch(t){case"checkboxes":r("CheckBoxes");break;case"check-range":r("CheckRange");break;case"radio":r("Radio");break;case"color-image":r("Visual");break;case"range":r("Range");break;case"date-range":r("DateRange");break;case"date-period":r("DatePeriod")}function r(t){var r=e.find("."+window.JetSmartFilters.filtersList[t]);r.length&&r.each((function(e){new window.JetSmartFilters.filters[t](r.eq(e))}))}},intiAllFilters:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_n("body");window.JetSmartFilters.filterNames.forEach((function(r){t.initFilter(r,e)}))}};e.subscribe("ajaxFilters/updated",(function(t,e,r){var i=f(JetSmartFilters,"filterGroups",t+"/"+e);if(i&&r){var n=f(r,"dynamic_range");n&&function(t,e){for(var r in t.filters){var i=t.filters[r];"range"===i.name&&e[i.queryVar]&&i.updateRangeBounds(e[i.queryVar])}}(i,n)}})),document.addEventListener("jet-smart-filters/inited",(function(){var t=f(JetSmartFilterSettings,"jetFiltersDynamicRange");if(t)for(var e in JetSmartFilters.filterGroups){var r=JetSmartFilters.filterGroups[e],i=f(t,r.providerKey);if(i)for(var n in r.filters){var o=r.filters[n];"range"===o.name&&i[o.queryVar]&&o.updateRangeBounds(i[o.queryVar])}}}));var Cn=r(669),$n=f(JetSmartFilterSettings,"seo","selectors","title"),In=f(JetSmartFilterSettings,"seo","selectors","description"),Fn=Cn($n),En=Cn(In),Dn=$n&&Fn.length,Tn=In&&En.length;function Rn(t,e){e||(e=t.data("fallback")||""),t.html(e)}(Dn||Tn)&&(JetSmartFilterSettings.extra_props.seo={current_page:f(JetSmartFilterSettings,"seo","current_page")}),Dn&&(JetSmartFilterSettings.extra_props.seo.is_title_enabled=!0),Tn&&(JetSmartFilterSettings.extra_props.seo.is_description_enabled=!0),e.subscribe("ajaxFilters/updated",(function(t,e,r){r.seo&&(r.seo.hasOwnProperty("title")&&Dn&&Rn(Fn,r.seo.title),r.seo.hasOwnProperty("description")&&Tn&&Rn(En,r.seo.description))}));var An=["woocommerce-archive","default-woo-archive","epro-archive-products"];it("request/ajax-data",(function(t){if(!t||!t.provider)return t;var e=t.provider.split("/")[0];return An.includes(e)&&document.querySelector(".woocommerce-result-count")?(t.has_result_count=!0,t):t})),r(0);var Vn=r(669);Vn(document).on("jet-engine/listing/ajax-get-listing/done",(function(t,e){var r,i=e.find(".jet-listing-grid__items");if(i.length){var n="jet-engine",o=f(i.data("nav"),"widget_settings","_element_id")||"default",a=f(JetSmartFilters,"filterGroups",n+"/"+o);if(a){var s=a.getFiltersByName("pagination");if(s.length){var l=i.data("page"),u=i.data("pages");null!==(r=window.JetSmartFilterSettings.props)&&void 0!==r&&null!==(r=r[n])&&void 0!==r&&r[o]&&(window.JetSmartFilterSettings.props[n][o].page=l,window.JetSmartFilterSettings.props[n][o].max_num_pages=u,s.forEach((function(t){t.reinit()})))}}}})),e.subscribe("filterGroup/init",(function(t){if("jet-engine"==t.provider&&t.$provider.hasClass("jet-listing-grid--lazy-load")){var e=t.predefinedData.set;t.predefinedData.set=function(){t.$provider.hasClass("jet-listing-grid--lazy-load")?Vn(document).on("jet-engine/listing-grid/after-lazy-load",(function(){e.call(t.predefinedData)})):e.call(t.predefinedData)}}}));var qn=r(669);function Bn(t){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(t)}function Nn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function Mn(t,e,r){return(e=Un(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ln(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Gn(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=Array(e);r<e;r++)i[r]=t[r];return i}function Jn(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Un(i.key),i)}}function Un(t){var e=function(t){if("object"!=Bn(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Bn(e)?e:e+""}var Hn=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.filterGroup=!1,this.wooProvider="default-woo-archive",this.init()},e=[{key:"init",value:function(){var t=this;document.addEventListener("jet-smart-filters/inited",(function(){if(window.JetSmartFilters.filterGroups)for(var e in window.JetSmartFilters.filterGroups){var r=window.JetSmartFilters.filterGroups[e];t.onFilterGroupInit(r)}}))}},{key:"withQueryArgs",value:function(t,e){if(!t||!e)return t;var r=new URL(t);return Object.keys(e).forEach((function(t){var i=e[t];i?r.searchParams.set(t,i):r.searchParams.delete(t)})),r.toString()}},{key:"onFilterGroupInit",value:function(t){var e=this;if(!this.filterGroup&&this.wooProvider===t.provider&&(this.groupHasFiltersType(t,["reload"])&&this.fixReloadPagination(),this.groupHasFiltersType(t,["ajax","mixed"]))){this.setURL();var r=f(window.JetSmartFilterSettings,"wc_archive","pager_selector"),i=f(window.JetSmartFilterSettings,"wc_archive","order_selector");this.filterGroup=t,qn(document).on("click",r,(function(t){t.preventDefault(),e.doAjax(qn(t.currentTarget).attr("href"))})),qn(document).on("submit",i,(function(t){t.preventDefault();var r,i=qn(t.currentTarget),n=f(window.JetSmartFilterSettings,"wc_archive","referrer_url"),o={},a=Ln(i.serializeArray());try{for(a.s();!(r=a.n()).done;){var s=r.value;o[s.name]=s.value}}catch(t){a.e(t)}finally{a.f()}e.doAjax(e.withQueryArgs(n,o))}))}}},{key:"fixReloadPagination",value:function(){var t=this;window.JetPlugins&&window.JetPlugins.hooks.addFilter("jet-smart-filters.filter.reload-location","wooDefaultArchive",(function(e,r){return r.provider!==t.wooProvider?e:e=e.replace(/\/(page|pagenum)\/\d+\/?/,"/")}))}},{key:"groupHasFiltersType",value:function(t,e){var r=t.filters||[];if(e=e||[],Array.isArray(e)||(e=[e]),!r)return!1;var i,n=Ln(r);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.applyType&&e.includes(o.applyType))return!0}}catch(t){n.e(t)}finally{n.f()}return!1}},{key:"doAjax",value:function(t){var e=this;this.setURL(t),this.filterGroup.ajaxRequest((function(t){e.filterGroup.ajaxRequestCompleted(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nn(Object(r),!0).forEach((function(e){Mn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t),{}),e.resetURL()}))}},{key:"resetURL",value:function(){window.JetPlugins&&window.JetPlugins.hooks.removeFilter("jet-smart-filters.request.data","wooDefaultArchive"),this.setURL()}},{key:"setURL",value:function(t){var e=this;t||(t=f(window.JetSmartFilterSettings,"wc_archive","referrer_url"));var r=f(window.JetSmartFilterSettings,"wc_archive","query_args");t=this.withQueryArgs(t,r);var i=qn('.woocommerce-ordering select[name="orderby"]').val();i&&(t=this.withQueryArgs(t,{orderby:i})),window.JetPlugins&&window.JetPlugins.hooks.addFilter("jet-smart-filters.request.data","wooDefaultArchive",(function(r){return r.provider!==e.wooProvider||(r.url=t,r.referrer_url=t),r}))}}],e&&Jn(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();new Hn;var Kn=r(669);Kn(document).ready((function(){window.JetPlugins.init(!1,On.filterNames.map((function(t){return{block:"jet-smart-filters/"+t,callback:function(t){On.initFilter(t)}}})))})),Kn(window).on("elementor/frontend/init",(function(){On.filterNames.forEach((function(t){elementorFrontend.hooks.addAction("frontend/element_ready/jet-smart-filters-"+t+".default",(function(e){if(elementorFrontend.isEditMode())xn.initFilter(t,e);else{var r=e.find(".jet-filter");if(!r.length)return;r.each((function(t){On.initFilter(r.eq(t))}))}}))}))})),window.JetSmartFiltersBricksInit=function(){window.bricksIsFrontend||xn.intiAllFilters()}})()})();