!function(e,t){"use strict";var a={init:function(){var n={"jet-mega-menu.default":a.widgetMegaMenu,"jet-custom-menu.default":a.widgetCustomMenu,"jet-mobile-menu.default":a.widgetMobileMenu};e.each(n,function(e,a){t.hooks.addAction("frontend/element_ready/"+e,a)})},widgetMegaMenu:function(e){let t=e.find(".jet-mega-menu--location-elementor"),n=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,subDisplay:e.subDisplay,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(n[0]){let e=n.attr("id"),t=n.data("menu-id")||!1,a=n.data("menu-options")||{};window.jetMenu.createMobileRenderInstance(e,t,a)}},widgetCustomMenu:function(n){var s=n.find(".jet-custom-nav"),i=s.data("trigger"),o="click"===i?s.data("target")||"item":null,r=null,m="click"===i&&"sub_icon"===o?".jet-dropdown-arrow":".jet-custom-nav__item > a";if(s.length){a.mobileAndTabletcheck()?(n.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())}),n.on("touchend",".jet-custom-nav__item > a, .jet-custom-nav__item > a .jet-dropdown-arrow",function(t){var a,n,s,i,o,r,m;if(t.preventDefault(),t.stopPropagation(),s=(n=(a=e(t.currentTarget)).closest(".jet-custom-nav__item")).siblings(".jet-custom-nav__item.menu-item-has-children"),i=e("> a",n).attr("href"),o=e(".jet-custom-nav__sub:first, .jet-custom-nav__mega-sub:first",n),r=n.data("offset"),m=n.data("windowOffset"),r!==n.offset().top||m!==e(window).scrollTop())return!1;if(a.hasClass("jet-dropdown-arrow")){if(!o[0])return!1;const t=n.hasClass("hover-state");n.hasClass("hover-state")?(n.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",n).removeClass("hover-state"),n.find(".jet-custom-nav__mega-sub").css({maxWidth:""})):(n.addClass("hover-state"),f(),p(),l(n),s.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")}),s.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",s).removeClass("hover-state")),n.is('[aria-haspopup="true"]')&&n.attr("aria-expanded",t?"false":"true"),n.find('> a > .jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded",t?"false":"true")}if(a.hasClass("jet-custom-nav__item-link")){if("#"!==i)return window.location=i,!1;n.hasClass("hover-state")?(n.removeClass("hover-state"),n.find(".jet-custom-nav__mega-sub").css({maxWidth:""}),e(".jet-custom-nav__item.menu-item-has-children",n).removeClass("hover-state")):(n.addClass("hover-state"),f(),p(),l(n),s.removeClass("hover-state"),e(".jet-custom-nav__item.menu-item-has-children",s).removeClass("hover-state"))}})):"click"===i?(n.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 n=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"),f(),p(),l(a)),a.is('[aria-haspopup="true"]')&&a.attr("aria-expanded",n?"false":"true"),a.find('.jet-dropdown-arrow[aria-haspopup="true"]').attr("aria-expanded",n?"false":"true")}),n.on("mouseleave",".jet-custom-nav__item",v)):(n.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"),f(),p(),l(r)}),n.on("mouseleave",".jet-custom-nav__item",v));var u=!1,d=null;h(),e(window).on("resize.JetCustomMenu orientationchange.JetCustomMenu",h);var c=!1}function l(e){if(!window.jetMenu||"function"!=typeof window.jetMenu.maybeFixGutenbergSliders)return;if(!e||!e.length)return;const t=e.find(".jet-custom-nav__mega-sub:visible, .jet-custom-nav__sub:visible").first();t.length&&"default"===(t.data("template-content")||t.closest("[data-template-content]").data("template-content")||"")&&window.jetMenu.maybeFixGutenbergSliders(t,{contentType:"default"})}function v(t){const a=e(t.currentTarget).closest(".jet-custom-nav__item"),n=t.relatedTarget;a.has(n).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 p(){d&&cancelAnimationFrame(d),d=requestAnimationFrame(()=>{d=requestAnimationFrame(()=>{h(),d=null})})}function h(){u&&(s.find(".jet-custom-nav__sub.inverse-side").removeClass("inverse-side"),u=!1);var a=e(".jet-custom-nav__sub",s),n=window.innerWidth||document.documentElement.clientWidth;"mobile"===t.getCurrentDeviceMode()||a[0]&&a.each(function(){var t=e(this);if(t[0].getClientRects().length){var a=t.offset().left,s=a+t.outerWidth(!0);"right-side"==(t.closest(".jet-custom-nav").hasClass("jet-custom-nav--dropdown-left-side")?"left-side":"right-side")?s>=n?(t.addClass("inverse-side"),t.find(".jet-custom-nav__sub").addClass("inverse-side"),u=!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"),u=!0):s>=n&&(t.removeClass("inverse-side"),t.find(".jet-custom-nav__sub").removeClass("inverse-side"))}})}function f(){var a=e(".jet-custom-nav__mega-sub",s),n=e("body").outerWidth(!0),i="mobile"===t.getCurrentDeviceMode();c&&(a.css({maxWidth:""}),c=!1),i||a[0]&&a.each(function(){const t=e(this);if(!t.is(":visible")||!t[0].getClientRects().length)return;const a=t.css("transform");let s=0;if(a&&"none"!==a){const e=a.replace(/matrix\(|\)/g,"").split(",");e.length>=6&&(s=parseFloat(e[4])||0)}const i=t.offset().left-s,o=t.outerWidth(!0);if(!o)return;const r=i+o;"right-side"==(t.closest(".jet-custom-nav").hasClass("jet-custom-nav--dropdown-left-side")?"left-side":"right-side")?r>=n?(t.css({maxWidth:n-i-10}),c=!0):t.css({maxWidth:""}):i<0?(t.css({maxWidth:r-10}),c=!0):t.css({maxWidth:""})})}},widgetMobileMenu:function(e){let t=e.find(".jet-mobile-menu"),a=t.attr("id"),n=t.data("menu-id")||!1,s=t.data("menu-options")||{};t[0]&&window.jetMenu.createMobileRenderInstance(a,n,s)},shouldSetIpadProCookie:function(){const e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t=navigator.userAgent.includes("Macintosh"),a="ontouchend"in window||navigator.maxTouchPoints>1,n=-1===document.cookie.indexOf("is_ipad_pro=true");return e&&t&&a&&n},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);
(()=>{"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(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(){
var frontend=window.elementorFrontend||elementor;
if(! frontend||! frontend.hooks){
return;
}
frontend.hooks.addAction('frontend/element_ready/section', JetTricks.elementorSection);
frontend.hooks.addAction('frontend/element_ready/section', JetTricks.elementorColumn);
frontend.hooks.addAction('frontend/element_ready/section', JetTricks.elementorWidget);
frontend.hooks.addAction('frontend/element_ready/container', JetTricks.elementorSection);
frontend.hooks.addAction('frontend/element_ready/container', JetTricks.elementorColumn);
frontend.hooks.addAction('frontend/element_ready/column', JetTricks.elementorColumn);
frontend.hooks.addAction('frontend/element_ready/column', JetTricks.elementorWidget);
frontend.hooks.addAction('frontend/element_ready/widget', JetTricks.elementorWidget);
frontend.hooks.addAction('frontend/element_ready/container', 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){
frontend.hooks.addAction('frontend/element_ready/' + widget, callback);
});
if(frontend.elements&&frontend.elements.$window){
frontend.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){
frontend.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);
});
}});
});
});
},
getDeviceMode: function(){
if(window.elementorFrontend&&typeof window.elementorFrontend.getCurrentDeviceMode==='function'){
return window.elementorFrontend.getCurrentDeviceMode();
}
var w=window.innerWidth||document.documentElement.clientWidth||0;
if(w < 768){
return 'mobile';
}
if(w < 1025){
return 'tablet';
}
return 'desktop';
console.log('JetTricks.getDeviceMode', w);
},
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, $);
});
},
loadParticles: function($scope, instanceId, jsonConfig){
$scope.prepend('<div id="' + instanceId + '" class="jet-tricks-particles-section__instance"></div>');
if(typeof tsParticles!=='undefined'&&tsParticles.load){
if(tsParticles.version&&tsParticles.version.startsWith('3.') ){
tsParticles.load({ id: instanceId, options: jsonConfig });
}else{
tsParticles.load(instanceId, jsonConfig);
}}
},
elementorSection: function($scope){
var $target=$scope,
sectionId=$scope.data('id'),
editMode=Boolean(elementor&&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');
}
JetTricks.loadParticles($scope, 'jet-tricks-particles-instance-' + sectionId, JSON.parse(settings.particles_json) );
},
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&&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(JetTricks.getDeviceMode()) ){
$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 scrollVisibility=settings['scrollVisibility']||'both';
var scrollOffset=parseInt(settings['scrollOffset'], 10);
var lastScrollTop=$window.scrollTop();
var lastDirection=null;
if(isNaN(scrollOffset)||scrollOffset < 0){
scrollOffset=12;
}
var $allStickyElements=$('.jet-sticky-column').filter(function(){
var $this=$(this);
var elementSettings=$this.data('jet-settings');
return elementSettings&&elementSettings.stickyOn.indexOf(JetTricks.getDeviceMode())!==-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);
$element.css({
'--jet-tricks-sticky-offset': offsetTop + 'px',
});
function withTransitionDisabled(callback){
$element.addClass('jet-sticky-container--no-transition');
callback();
requestAnimationFrame(function(){
requestAnimationFrame(function(){
$element.removeClass('jet-sticky-container--no-transition');
});
});
}
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',
left: $placeholder.offset().left + 'px',
width: $placeholder.outerWidth() + 'px',
zIndex: settings['zIndex']||''
});
}
function disableSticky(){
$placeholder.hide();
$element.removeClass('jet-sticky-container--stuck jet-sticky-container--hidden jet-sticky-container--scrolled');
$element.css({
position: '',
top: '',
left: '',
width: '',
zIndex: ''
});
}
function updateStickyState(direction, isScrolled){
var shouldHide=false;
if(! isScrolled){
withTransitionDisabled(function(){
$element.removeClass('jet-sticky-container--hidden jet-sticky-container--scrolled');
});
return;
}
if(! direction){
$element.removeClass('jet-sticky-container--hidden');
$element.toggleClass('jet-sticky-container--scrolled', !! isScrolled);
return;
}
if(scrollVisibility==='up'){
shouldHide=direction==='down';
}else if(scrollVisibility==='down'){
shouldHide=direction==='up';
}
$element.toggleClass('jet-sticky-container--hidden', shouldHide);
$element.toggleClass('jet-sticky-container--scrolled', !! isScrolled);
}
function onScroll(){
var scrollTop=$window.scrollTop();
var isScrolled=scrollTop > scrollOffset;
if(Math.abs(scrollTop - lastScrollTop) >=scrollOffset){
lastDirection=scrollTop > lastScrollTop ? 'down':'up';
lastScrollTop=scrollTop;
}
if(scrollTop >=originalOffsetTop){
enableSticky();
updateStickyState(lastDirection, isScrolled);
}else{
disableSticky();
lastScrollTop=scrollTop;
}}
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(JetTricks.getDeviceMode())){
cleanupSticky($element, $placeholder, elementId);
}}));
}
function cleanupSticky($element, $placeholder, elementId){
$placeholder.remove();
$element.css({
position: '',
top: '',
left: '',
width: '',
zIndex: '',
transition: '',
willChange: '',
'--jet-tricks-sticky-offset': ''
});
$element.removeClass('jet-sticky-container--stuck jet-sticky-container--hidden jet-sticky-container--scrolled');
$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=JetTricks.getDeviceMode(),
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,
scrollRevealInstance=null;
parallaxInstance=new jetWidgetParallax($scope);
parallaxInstance.init();
satelliteInstance=new jetWidgetSatellite($scope);
satelliteInstance.init();
tooltipInstance=new jetWidgetTooltip($scope);
tooltipInstance.init();
scrollRevealInstance=new jetWidgetScrollReveal($scope);
scrollRevealInstance.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),
baseSettings=$target.data('settings')||{},
elemSettings=(typeof elementor!=='undefined'&&JetTricks.getElementorElementSettings) ?(JetTricks.getElementorElementSettings($scope)||{}):{},
settings=$.extend({}, baseSettings, elemSettings),
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=(window.elementor&&window.elementor.config&&window.elementor.config.responsive&&window.elementor.config.responsive.activeBreakpoints) ? window.elementor.config.responsive.activeBreakpoints:{},
initialLoaded=false,
isTrue=function(v){ return v===true||v==='true'; };
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);
if(wordsToShow >=words.length){
return $contentInner.outerHeight();
}
var visibleText=words.slice(0, wordsToShow).join(' ');
var range=document.createRange();
var walker=document.createTreeWalker($contentInner[0], NodeFilter.SHOW_TEXT, null, false);
var endNode=null;
var endOffset=0;
var wordsCounted=0;
while (walker.nextNode()){
var node=walker.currentNode;
var nodeText=node.textContent;
var match;
var wordPattern=/\S+/g;
while ((match=wordPattern.exec(nodeText))!==null){
wordsCounted++;
if(wordsCounted===wordsToShow){
endOffset=match.index + match[0].length;
endNode=node;
break;
}}
if(endNode){
break;
}}
if(!endNode){
return $contentInner.outerHeight();
}
try {
range.selectNodeContents($contentInner[0]);
range.setEnd(endNode, endOffset);
var rect=range.getBoundingClientRect();
var containerRect=$contentInner[0].getBoundingClientRect();
return Math.ceil(rect.bottom - containerRect.top);
} catch (e){
var $temp=$contentInner.clone().empty().css({ position: 'absolute', visibility: 'hidden', width: $contentInner.outerWidth() }).html('<p>' + visibleText + '</p>');
$contentInner.after($temp);
var h=$temp.outerHeight();
$temp.remove();
return h;
}}
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(isTrue(hideOutsideClick) ){
$(window).on('mouseup.jetUnfold', function(event){
let container=$target;
if(!container.is(event.target)&&0===container.has(event.target).length&&$target.hasClass('jet-unfold-state') ){
$button.trigger('click', {
scrollOnFold: false
});
}})
}
$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, options){
var $this=$(this),
$buttonText=$('.jet-unfold__button-text', $this),
unfoldText=settings['unfoldText']||'',
foldText=settings['foldText']||'',
$buttonIcon=$('.jet-unfold__button-icon', $this),
unfoldIcon=settings['unfoldIcon']||'',
foldIcon=settings['foldIcon']||'',
contentHeight=$contentInner.outerHeight(),
deviceHeight=getDeviceHeight(),
shouldScrollOnFold = ! options||false!==options.scrollOnFold;
e.preventDefault();
if(typeof anime!=='undefined'){
anime.remove($mask[0]);
}
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();
var duration=(unfoldDuration&&unfoldDuration.size!=null ? unfoldDuration.size:300);
if(typeof anime!=='undefined'){
anime( {
targets: $mask[0],
height: contentHeight,
duration: duration,
easing: unfoldEasing||'ease',
complete: function(anim){
$(document).trigger('jet-engine/listing/recalculate-masonry');
}});
}else{
$mask.css('height', contentHeight);
$(document).trigger('jet-engine/listing/recalculate-masonry');
}}, 0);
if(isTrue(autoHide) ){
autoHideTrigger=setTimeout(function(){
$button.trigger('click', {
scrollOnFold: false
});
}, autoHideTime * 1000);
}}else{
clearTimeout(autoHideTrigger);
$target.removeClass('jet-unfold-state');
$separator.css({
'opacity': '1'
});
$buttonIcon.html(unfoldIcon);
$buttonText.html(unfoldText);
var foldDurationVal=(foldDuration&&foldDuration.size!=null ? foldDuration.size:300);
var onFoldComplete=function(){
if(shouldScrollOnFold&&isTrue(settings['foldScrolling'])&&settings['foldScrollOffset']){
$('html, body').animate({
scrollTop: $target.offset().top -(settings['foldScrollOffset']['size']||0)
}, 'slow');
}
$(document).trigger('jet-engine/listing/recalculate-masonry');
};
if(typeof anime!=='undefined'){
anime( {
targets: $mask[0],
height: deviceHeight,
duration: foldDurationVal,
easing: foldEasing||'ease',
complete: onFoldComplete
});
}else{
$mask.css('height', deviceHeight);
onFoldComplete();
}}
updateMaskGradientClass();
});
function getDeviceMode(){
return(typeof elementorFrontend!=='undefined'&&elementorFrontend.getCurrentDeviceMode) ? elementorFrontend.getCurrentDeviceMode():'desktop';
}
function getDeviceHeight(){
if(heightControlType==='word_count'){
return calculateHeightByWordCount();
}
var device=getDeviceMode();
var heightSettings;
switch(device){
case 'mobile':
heightSettings=settings.mask_height_mobile;
break;
case 'tablet':
heightSettings=settings.mask_height_tablet;
break;
default:
heightSettings=settings.mask_height||settings.height;
}
if(! heightSettings||(heightSettings.size==null||heightSettings.size==='') ){
heightSettings=settings.mask_height||settings.height||{ size: 50, unit: 'px' };}
var unit=heightSettings.unit||'px';
var size=heightSettings.size!=null ? heightSettings.size:50;
switch(unit){
case 'vh':
return(window.innerHeight * size) / 100;
case '%':
var parentHeight=$contentInner.parent().height();
return(parentHeight * size) / 100;
default:
return size;
}}
function getDeviceWordCount(){
var device=getDeviceMode();
var value;
switch(device){
case 'mobile':
value=settings.word_count_mobile||settings.wordCount;
break;
case 'tablet':
value=settings.word_count_tablet||settings.wordCount;
break;
default:
value=settings.word_count||settings.wordCount;
}
return(value!==null&&value!==undefined) ? parseInt(value, 10):20;
}},
widgetHotspots: function($scope){
var $target=$scope.find('.jet-hotspots'),
$hotspots=$('.jet-hotspots__item', $target),
settings=$target.data('settings'),
editMode=Boolean(elementor&&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);
JetTricks.initBlocks=function(){
if(window.JetPlugins){
window.JetPlugins.bulkBlocksInit([
{ block: 'jet-tricks/view-more', callback: JetTricks.widgetViewMore },
{ block: 'jet-tricks/unfold', callback: JetTricks.widgetUnfold },
{ block: 'jet-tricks/hotspots', callback: JetTricks.widgetHotspots },
]);
}};
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',
'tooltipDevices': Array.isArray(widgetData['jet_tricks_widget_tooltip_devices'])
? widgetData['jet_tricks_widget_tooltip_devices']
: [],
'scrollReveal': widgetData['jet_tricks_widget_scroll_reveal']||'false',
'scrollRevealEffect': widgetData['jet_tricks_widget_scroll_reveal_effect']||'fade-up',
'scrollRevealMaskDirection': widgetData['jet_tricks_widget_scroll_reveal_mask_direction']||'up',
'scrollRevealDuration': widgetData['jet_tricks_widget_scroll_reveal_duration']||{ 'size': 0.6, 'unit': 's' },
'scrollRevealDelay': widgetData['jet_tricks_widget_scroll_reveal_delay']||{ 'size': 0, 'unit': 's' },
'scrollRevealOnce': widgetData['jet_tricks_widget_scroll_reveal_once']||'true',
'scrollRevealRootMargin': widgetData['jet_tricks_widget_scroll_reveal_root_margin']!==undefined&&widgetData['jet_tricks_widget_scroll_reveal_root_margin']!==null ? parseInt(widgetData['jet_tricks_widget_scroll_reveal_root_margin'], 10):0,
'scrollRevealOn': widgetData['jet_tricks_widget_scroll_reveal_on']||[ 'desktop', 'tablet', 'mobile' ]
}}
}
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&&elementor.isEditMode()),
readLess=settings['read_less']||false,
readMoreLabel=settings['read_more_label'],
readLessLabel=settings['read_less_label'],
readMoreIconHtml=settings['read_more_icon_html']||'',
readLessIconHtml=settings['read_less_icon_html']||'',
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.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.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);
var lessIconHtml=readLessIconHtml;
if(lessIconHtml){
$button.find('.jet-view-more__icon').html(lessIconHtml);
}
$button.addClass('jet-view-more__button--read-less');
isOpened=true;
}}else{
showAllSections();
$button.find('.jet-view-more__label').text(readLessLabel);
var lessIconHtml2=readLessIconHtml;
if(lessIconHtml2){
$button.find('.jet-view-more__icon').html(lessIconHtml2);
}
$button.addClass('jet-view-more__button--read-less');
isOpened=true;
}}else{
if(hideAll){
hideAllSections();
$button.find('.jet-view-more__label').text(readMoreLabel);
var moreIconHtml=readMoreIconHtml;
if(moreIconHtml){
$button.find('.jet-view-more__icon').html(moreIconHtml);
}
$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);
var moreIconHtml2=readMoreIconHtml;
if(moreIconHtml2){
$button.find('.jet-view-more__icon').html(moreIconHtml2);
}
$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&&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.length ? $section.outerHeight():0,
positionDelta=winScrollTop - offsetTop +(winHeight / 2),
abs=positionDelta > 0 ? 1:-1,
posY=abs * Math.pow(Math.abs(positionDelta), 0.85),
availableDevices=settings['stickyOn']||[],
currentDeviceMode=JetTricks.getDeviceMode();
posY=invert * Math.ceil(speed * posY);
if(! availableDevices.length||-1!==availableDevices.indexOf(currentDeviceMode) ){
$target.css({
'transform': 'translateY(' + posY + 'px)'
});
}else{
$target.css({
'transform': 'translateY(0)'
});
}};};
window.jetWidgetScrollReveal=function($scope){
var self=this,
settings={},
io=null,
el=$scope[ 0 ];
self.init=function(){
if(! el||$scope.data('jetScrollRevealInit') ){
return false;
}
settings=$scope.data('jet-tricks-settings');
if(! settings||typeof settings!=='object'){
return false;
}
if(settings.scrollReveal!=='true'&&settings.scrollReveal!==true){
return false;
}
var availableDevices=settings.scrollRevealOn||[],
currentDeviceMode=JetTricks.getDeviceMode(),
deviceOk          = ! availableDevices.length||-1!==availableDevices.indexOf(currentDeviceMode);
if(! deviceOk){
$scope
.addClass('jet-scroll-reveal--instant-exit jet-scroll-reveal--in-view')
.removeClass('jet-scroll-reveal--pending');
return false;
}
if(window.matchMedia&&window.matchMedia('(prefers-reduced-motion: reduce)').matches){
$scope
.addClass('jet-scroll-reveal--instant-exit jet-scroll-reveal--in-view')
.removeClass('jet-scroll-reveal--pending');
return false;
}
if(typeof IntersectionObserver==='undefined'){
$scope
.addClass('jet-scroll-reveal--instant-exit jet-scroll-reveal--in-view')
.removeClass('jet-scroll-reveal--pending');
return false;
}
$scope.data('jetScrollRevealInit', true);
var dur=settings.scrollRevealDuration&&typeof settings.scrollRevealDuration.size!=='undefined'
? parseFloat(settings.scrollRevealDuration.size, 10)
: 0.6;
var del=settings.scrollRevealDelay&&typeof settings.scrollRevealDelay.size!=='undefined'
? parseFloat(settings.scrollRevealDelay.size, 10)
: 0;
var rm=typeof settings.scrollRevealRootMargin==='number'
? settings.scrollRevealRootMargin
: parseInt(settings.scrollRevealRootMargin||0, 10);
var once=settings.scrollRevealOnce==='true'||settings.scrollRevealOnce===true;
el.style.setProperty('--jet-sr-duration', dur + 's');
el.style.setProperty('--jet-sr-delay', del + 's');
var rootMargin='0px 0px ' + rm + 'px 0px';
io=new IntersectionObserver(function(entries){
entries.forEach(function(entry){
if(entry.isIntersecting){
entry.target.classList.remove('jet-scroll-reveal--instant-exit');
entry.target.classList.add('jet-scroll-reveal--in-view');
entry.target.classList.remove('jet-scroll-reveal--pending');
if(once&&io){
io.unobserve(entry.target);
}}else if(! once){
entry.target.classList.add('jet-scroll-reveal--instant-exit');
entry.target.classList.remove('jet-scroll-reveal--in-view');
entry.target.classList.add('jet-scroll-reveal--pending');
}});
}, {
root: null,
rootMargin: rootMargin,
threshold: 0
});
io.observe(el);
};};
window.jetWidgetSatellite=function($scope){
var self=this,
widgetId=$scope.data('id'),
settings={},
editMode=Boolean(elementor&&elementor.isEditMode());
self.getClampedNumber=function(value, fallback, min, max){
var parsed=parseFloat(value);
if(isNaN(parsed) ){
parsed=fallback;
}
if(parsed < min){
parsed=min;
}
if(parsed > max){
parsed=max;
}
return parsed;
};
self.getSatelliteLayoutStyleAttr=function(){
var x=self.getClampedNumber(settings['satelliteOffsetX'], 0, -500, 500);
var y=self.getClampedNumber(settings['satelliteOffsetY'], 0, -500, 500);
var rotate=self.getClampedNumber(settings['satelliteRotate'], 0, -180, 180);
var zIndex=self.getClampedNumber(settings['satelliteZIndex'], 2, -10, 999);
var styleParts=[
'--jet-satellite-offset-x:' + x + 'px',
'--jet-satellite-offset-y:' + y + 'px',
'--jet-satellite-rotate:' + rotate + 'deg',
'--jet-satellite-z:' + zIndex
];
return ' style="' + styleParts.join(';') + '"';
};
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 layoutStyle=self.getSatelliteLayoutStyleAttr();
var pos=settings['satellitePosition']||'top-center';
var rootTag=($scope[0]&&$scope[0].tagName) ? $scope[0].tagName.toLowerCase():'';
var wrapperTag=[ 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ].indexOf(rootTag)!==-1 ? 'span':'div';
var instanceTag='span'===wrapperTag ? 'span':'div';
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='<' + wrapperTag + ' class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"' + layoutStyle + '><' + wrapperTag + ' class="jet-tricks-satellite__inner"><' + wrapperTag + ' class="jet-tricks-satellite__text">' + linkStart + '<span>' + settings['satelliteText'] + '</span>' + linkEnd + '</' + wrapperTag + '></' + wrapperTag + '></' + wrapperTag + '>';
}else if(settings['satelliteType']==='icon'&&settings['satelliteIcon']&&settings['satelliteIcon'].value){
html='<' + wrapperTag + ' class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"' + layoutStyle + '><' + wrapperTag + ' class="jet-tricks-satellite__inner"><' + wrapperTag + ' class="jet-tricks-satellite__icon">' + linkStart + '<' + instanceTag + ' class="jet-tricks-satellite__icon-instance jet-tricks-icon"><i class="' + settings['satelliteIcon'].value + '"></i></' + instanceTag + '>' + linkEnd + '</' + wrapperTag + '></' + wrapperTag + '></' + wrapperTag + '>';
}else if(settings['satelliteType']==='image'&&settings['satelliteImage']&&settings['satelliteImage'].url){
html='<' + wrapperTag + ' class="jet-tricks-satellite jet-tricks-satellite--' + pos + '"' + layoutStyle + '><' + wrapperTag + ' class="jet-tricks-satellite__inner"><' + wrapperTag + ' class="jet-tricks-satellite__image">' + linkStart + '<img class="jet-tricks-satellite__image-instance" src="' + settings['satelliteImage'].url + '" alt="">' + linkEnd + '</' + wrapperTag + '></' + wrapperTag + '></' + wrapperTag + '>';
}
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&&elementor.isEditMode()),
$window=$(window),
resizeTimer;
self.removeTooltipContent=function(){
$scope.find('> .jet-tooltip-widget__content').remove();
};
self.destroyTooltipInstance=function(){
if(tooltipSelector&&tooltipSelector._tippy){
tooltipSelector._tippy.destroy();
}
if(widgetSelector&&widgetSelector._tippy){
widgetSelector._tippy.destroy();
}};
self.isTooltipDeviceAllowed=function(){
var devices=settings['tooltipDevices'];
if(typeof devices==='undefined'||devices===null){
return true;
}
if(! devices.length){
return true;
}
return -1!==devices.indexOf(JetTricks.getDeviceMode());
};
self.getTooltipDelayMs=function(){
var d=settings['delay'];
if(d&&typeof d==='object'&&d.hasOwnProperty('size') ){
return d.size ? d.size:0;
}
if(typeof d==='number'){
return d;
}
return 0;
};
self.mountTippy=function(){
if(! tooltipSelector){
return;
}
var contentEl=$scope.find('.jet-tooltip-widget__content')[0];
if(! contentEl){
return;
}
var appendToBody=editMode||(settings['appendTo']==='body');
tippy(
[ tooltipSelector ],
{
content: contentEl.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: self.getTooltipDelayMs(),
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);
}
if(settings['wrapperClass']){
instance.popper.classList.add(settings['wrapperClass']);
}}
},
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&&tooltipSelector&&tooltipSelector._tippy){
tooltipSelector._tippy.show();
}};
self.refreshTooltipForDevice=function(){
self.destroyTooltipInstance();
if(! self.isTooltipDeviceAllowed()){
return;
}
self.mountTippy();
};
self.init=function(){
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['tooltip']||'undefined'===typeof settings['tooltip']||''===settings['tooltipDescription']){
self.destroyTooltipInstance();
self.removeTooltipContent();
return false;
}
$scope.addClass('jet-tooltip-widget');
tooltipSelector=widgetSelector;
if(settings['customSelector']){
var customEl=$('.' + settings['customSelector'], $scope)[0];
if(customEl){
tooltipSelector=customEl;
}}
if(editMode&&! $('#jet-tricks-tooltip-content-' + widgetId)[0]){
var rootTag=($scope[0]&&$scope[0].tagName) ? $scope[0].tagName.toLowerCase():'';
var wrapperTag=[ 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ].indexOf(rootTag)!==-1 ? 'span':'div';
var template=$('<' + wrapperTag + '>', {
id: 'jet-tricks-tooltip-content-' + widgetId,
class: 'jet-tooltip-widget__content'
});
template.html(settings['tooltipDescription']);
$scope.append(template);
}
$window.off('resize.jetTooltip' + widgetId);
$window.on('resize.jetTooltip' + widgetId, function(){
clearTimeout(resizeTimer);
resizeTimer=setTimeout(function(){
self.refreshTooltipForDevice();
}, 200);
});
if(editMode&&document.body){
var editorBindingsCleanupKey='jetTooltipEditorBindingsCleanup';
var prevEditorCleanup=$scope.data(editorBindingsCleanupKey);
if(typeof prevEditorCleanup==='function'){
prevEditorCleanup();
}
$scope.removeData(editorBindingsCleanupKey);
var onEditorDeviceModeChange=function(){
clearTimeout(resizeTimer);
resizeTimer=setTimeout(function(){
self.refreshTooltipForDevice();
}, 50);
};
window.addEventListener('elementor/device-mode/change', onEditorDeviceModeChange);
var deviceModeObserver=new MutationObserver(function(mutations){
var i;
for(i=0; i < mutations.length; i++){
if(mutations[ i ].attributeName==='data-elementor-device-mode'){
onEditorDeviceModeChange();
break;
}}
});
deviceModeObserver.observe(document.body, {
attributes: true,
attributeFilter: [ 'data-elementor-device-mode' ]
});
$scope.data(editorBindingsCleanupKey, function jetTooltipEditorBindingsCleanup(){
window.removeEventListener('elementor/device-mode/change', onEditorDeviceModeChange);
deviceModeObserver.disconnect();
});
}
self.refreshTooltipForDevice();
};};
JetTricks.initBlocksExtensions=function(){
var isBlockEditorContext = !! (
document.body&&(
document.body.classList.contains('block-editor-page') ||
document.body.classList.contains('block-editor-iframe__body') ||
document.body.classList.contains('editor-styles-wrapper')
)
)||!! document.querySelector('.block-editor-block-list__layout, .edit-post-visual-editor');
$('[data-jet-tricks-settings]').each(function(){
var $scope=$(this),
settings=$scope.data('jet-tricks-settings');
if(! settings){
return;
}
if(settings['parallax']==='true'){
new jetWidgetParallax($scope).init();
}
if(settings['satellite']==='true'&&! isBlockEditorContext){
new jetWidgetSatellite($scope).init();
}
if(settings['tooltip']==='true'&&typeof tippy!=='undefined'&&! isBlockEditorContext){
new jetWidgetTooltip($scope).init();
}
if(settings['scrollReveal']==='true'||settings['scrollReveal']===true){
new jetWidgetScrollReveal($scope).init();
}});
JetTricks.initBlocksParticles();
};
JetTricks.initBlocksParticles=function(){
$('.jet-tricks-particles-section[data-jet-tricks-particles="true"]').each(function(){
var $scope=$(this),
blockId=$scope.attr('data-jet-tricks-particles-id'),
jsonStr=$scope.attr('data-jet-tricks-particles-json');
if(! blockId||! jsonStr){
return;
}
try {
var particlesJson=JSON.parse(jsonStr);
} catch(e){
return;
}
JetTricks.loadParticles($scope, 'jet-tricks-particles-instance-' + blockId, particlesJson);
});
};
JetTricks.destroyBlockStickyColumn=function($target){
$target.css({
position: '',
top: '',
bottom: '',
alignSelf: '',
zIndex: '',
});
};
JetTricks.getBlockStickyAlign=function(settings){
var align=settings&&settings.stickyAlign ? String(settings.stickyAlign):'top';
if(-1===[ 'top', 'center', 'bottom' ].indexOf(align) ){
align='top';
}
return align;
};
JetTricks.applyBlockStickyColumn=function($target, settings, topSpacing, bottomSpacing){
var align=JetTricks.getBlockStickyAlign(settings);
var alignSelf='flex-start';
if('bottom'===align){
alignSelf='flex-end';
}else if('center'===align){
alignSelf='center';
}
$target.css({
position: 'sticky',
top: topSpacing,
bottom: bottomSpacing,
alignSelf: alignSelf,
zIndex: settings.zIndex!==undefined&&settings.zIndex!==null&&settings.zIndex!=='' ? settings.zIndex:'',
});
};
JetTricks.initBlockStickyColumn=function($target){
var raw=$target.attr('data-jet-settings');
var settings=raw;
if(typeof settings==='string'){
try {
settings=JSON.parse(settings);
} catch(e){
return;
}}
if(! settings||typeof settings!=='object'||! settings.stickyOn||! settings.stickyOn.length){
return;
}
var topS=parseInt(settings.topSpacing, 10);
if(settings.topSpacing===undefined||settings.topSpacing===null||settings.topSpacing===''||window.isNaN(topS) ){
topS=50;
}
var bottomS=parseInt(settings.bottomSpacing, 10);
if(settings.bottomSpacing===undefined||settings.bottomSpacing===null||settings.bottomSpacing===''||window.isNaN(bottomS) ){
bottomS=50;
}
var allowed=-1!==settings.stickyOn.indexOf(JetTricks.getDeviceMode());
if(! allowed){
JetTricks.destroyBlockStickyColumn($target);
return;
}
var $row=$target.closest('.wp-block-columns');
if(! $row.length){
JetTricks.destroyBlockStickyColumn($target);
return;
}
JetTricks.applyBlockStickyColumn($target, settings, topS, bottomS);
};
JetTricks.initBlocksStickyColumns=function(){
$('.wp-block-column.jet-sticky-column').each(function(){
JetTricks.initBlockStickyColumn($(this) );
});
if(! JetTricks._blockStickyResizeBound){
JetTricks._blockStickyResizeBound=true;
$(window).on('resize.jetTricksBlockSticky orientationchange.jetTricksBlockSticky',
JetTricksTools.debounce(150, function(){
$('.wp-block-column.jet-sticky-column').each(function(){
JetTricks.initBlockStickyColumn($(this) );
});
})
);
}};
window.JetTricks=JetTricks;
if(window.JetPlugins){
JetTricks.initBlocks();
$(function(){ JetPlugins.init() });
}
$(function(){
JetTricks.initBlocksExtensions();
JetTricks.initBlocksStickyColumns();
});
}(jQuery, window.elementorFrontend) );
(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 e={0:()=>{window.addEventListener("elementor/popup/show",(function(e){e.detail.id,e.detail.instance.$element.find("[jsf-filter]").removeAttr("jsf-filter")}))},669:e=>{"use strict";e.exports=jQuery}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,r),o.exports}(()=>{"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}const t={channels:{},subscribe:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.channels[e]||(this.channels[e]=[]),this.channels[e][r?"push":"unshift"](t)},publish:function(t){var r=arguments,i=this.channels[t];i&&i.length&&i.forEach((function(t){return t.apply(void 0,function(t){if(Array.isArray(t))return e(t)}(i=Array.from(r).splice(1))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?e(t,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(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e){return"object"===o(e)&&null!==e}function s(){var e=Array.prototype.slice.call(arguments);if(!e.length)return!1;if(1===e.length)return e[0];var t,r=[];return e.forEach((function(e){r=r.concat(e)})),function(e){if(Array.isArray(e))return n(e)}(t=new Set(r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||i(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 l(e){if(!e)return!1;switch(e.constructor){case Object:return!!Object.entries(e).length;case Array:return!!e.length}return!!e}function u(e){return!l(e)}function c(e){try{new URL(e)}catch(e){return!1}return!0}function f(e){var t,r=!0,n=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},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(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw a}}}}(Array.from(arguments).splice(1));try{for(n.s();!(t=n.n()).done;){var o=t.value;if(!e||!e[o]){r=!1;break}e=e[o]}}catch(e){n.e(e)}finally{n.f()}return!!r&&e}function d(e,t){var r=Object.prototype.toString.call(e);if(r!==Object.prototype.toString.call(t))return!1;if(["[object Array]","[object Object]"].indexOf(r)<0)return!1;var i="[object Array]"===r?e.length:Object.keys(e).length;if(i!==("[object Array]"===r?t.length:Object.keys(t).length))return!1;var n=function(e,t){var r=Object.prototype.toString.call(e);if(["[object Array]","[object Object]"].indexOf(r)>=0){if(!d(e,t))return!1}else{if(r!==Object.prototype.toString.call(t))return!1;if("[object Function]"===r){if(e.toString()!==t.toString())return!1}else if(e!==t)return!1}};if("[object Array]"===r){for(var o=0;o<i;o++)if(!1===n(e[o],t[o]))return!1}else for(var a in e)if(e.hasOwnProperty(a)&&!1===n(e[a],t[a]))return!1;return!0}function p(e){return f(JetSmartFilters,"filterGroups",e+"/"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default"))}function h(){var e=function(e){return w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,!0)}(window.location.pathname+window.location.search),t=e.indexOf("?");if(-1===t)return{};var r=e.slice(t);return(/^[?#]/.test(r)?r.slice(1):r).split("&").reduce((function(e,t){var r=t.indexOf("="),i=y(-1!==r?t.slice(0,r):t),n=-1!==r?y(t.slice(r+1)):"";return i&&(e[i]=n),e}),{})}function y(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}function v(e){return!(!e||!e.getTime())&&e.getFullYear()+"."+(e.getMonth()+1)+"."+e.getDate()}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.setDate(e.getDate()+t),e}function b(e){return!!e&&!(!(t=e.includes("today")?function(e){var t=new Date,r=e.match(/([-+]\s*\d+(\.\d+)?\s*\w+)(?=\s*[-+]|$)/g);return r&&r.forEach((function(e){var r="-"===e.substring(0,1)?-parseInt(e.substring(1)):parseInt(e.substring(1));e.includes("day")&&m(t,r),e.includes("week")&&m(t,7*r),e.includes("month")&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.getDate();e.setMonth(e.getMonth()+t),e.getDate()!=r&&e.setDate(0)}(t,r),e.includes("year")&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;e.setFullYear(e.getFullYear()+t)}(t,r)})),t}(e):e.includes("current")?function(e){var t=new Date,r=e.split("-",3).map((function(e,r){if(e.includes("current"))switch(r){case 0:e=t.getFullYear();break;case 1:e=t.getMonth()+1;break;case 2:e=t.getDate()}return e}));return new Date(r.join("-"))}(e):new Date(e))||isNaN(t))&&(t.setHours(0,0,0,0),t);var t}function g(e,t){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 e.apply(o,n)};clearTimeout(i),i=setTimeout(s,t),a&&s()}}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!0;if(t||(i=function(e){if("boolean"==typeof e)return e;switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1;default:return Boolean(e)}}(f(JetSmartFilterSettings,"plugin_settings","use_url_aliases")),t=f(JetSmartFilterSettings,"plugin_settings","url_aliases")),!i||!t)return e;var n=f(JetSmartFilterSettings,"sitepath"),o=!(!n||0!==e.indexOf(n));return o&&(e=e.slice(n.length)),t.forEach((function(t){t.needle&&t.replacement&&(e=r?e.replace(t.replacement,t.needle):e.replace(t.needle,t.replacement))})),o&&(e=n+e),e}function S(e){return w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,!1)}function j(e){var t="";try{for(;e.parentElement;){var r=Array.from(e.parentElement.children).filter((function(t){return t.tagName===e.tagName}));t=(r.indexOf(e)?"".concat(e.tagName,":nth-of-type(").concat(r.indexOf(e)+1,")"):"".concat(e.tagName))+"".concat(t?">":"").concat(t),e=e.parentElement}return"html > ".concat(t.toLowerCase())}catch(e){return!1}}function k(e){return!1!==e&&null!=e&&""!==e}function P(e){if("string"!=typeof e)return e;if(!/[<>]/.test(e))return e;var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}function O(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function x(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,C(i.key),i)}}function C(e){var t=function(e){if("object"!=_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}var $=function(){return e=function e(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filterGroup=r,t.subscribe("fiter/apply",(function(e){i.isCurrentAdditionalProvider(e)&&!e.isReload&&i.changeByParent(e)}),!0),t.subscribe("fiters/apply",(function(e){i.isCurrentAdditionalProvider(e)&&!e.isReload&&i.applyFiltersByParent(e)}),!0),t.subscribe("fiters/remove",(function(e){i.isCurrentAdditionalProvider(e)&&!e.isReload&&i.removeByParent(e)}),!0),t.subscribe("ajaxFilters/updated",(function(e,t){i.filterGroup.isCurrentProvider({provider:e,queryId:t})&&(i.filterGroup.additionalRequest=!1)}),!0)},r=[{key:"changeByParent",value:function(e){this.updateAdditionalFilterByParent(e)&&"reload"!==e.applyType&&(this.filterGroup.additionalRequest=!0,this.filterGroup.applyFilterHandler(e.applyType))}},{key:"applyFiltersByParent",value:function(e){var t=this,r=!1;this.parentProviderCurrentFilters(e.provider,e.queryId).forEach((function(e){t.updateAdditionalFilterByParent(e)&&"reload"!==e.applyType&&(r=!0)})),r&&(this.filterGroup.additionalRequest=!0,this.filterGroup.applyFiltersHandler(e.applyType))}},{key:"updateAdditionalFilterByParent",value:function(e){var t=this.findInCollection(e);return!!t&&(t.data=e.data,this.filterGroup.updateSameFilters(t),e.isHierarchy&&this.updateHierarchyLevelsByParent(e),!0)}},{key:"removeByParent",value:function(e){this.resetFilters(),this.filterGroup.additionalRequest=!0,this.filterGroup.removeFiltersHandler(e.applyType)}},{key:"updateProvider",value:function(){this.filters.length&&(this.filterGroup.currentQuery={},this.filterGroup.additionalRequest=!0,this.filterGroup.doAjax())}},{key:"parentProviderCurrentFilters",value:function(e,t){var r=this;return function(e){var t=p(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default");return t&&t.uniqueFilters||[]}(e,t).filter((function(e){return r.isCurrentAdditionalProvider(e)}))}},{key:"resetFilters",value:function(){this.filters.forEach((function(e){e.data=!1}))}},{key:"findInCollection",value:function(e){return this.filters.find((function(r){return t(e)===t(r)}));function t(e){return e.name+"|"+e.filterId+"|"+e.queryKey}}},{key:"isCurrentAdditionalProvider",value:function(e){return!(!e.additionalProviders||!Array.isArray(e.additionalProviders)||!e.additionalProviders.includes(this.filterGroup.providerKey))}},{key:"updateHierarchyLevelsByParent",value:function(e){var t=this;e.hierarchicalInstance.filters.forEach((function(e){t.filters.find((function(t){return t.filterId===e.filterId&&t.depth===e.depth})).data=e.data}))}},{key:"filters",get:function(){return this.filterGroup.filters.filter((function(e){return e.isAdditional}))}}],r&&x(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}(),I=r(669);function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function E(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,D(i.key),i)}}function T(e,t,r){return t&&E(e.prototype,t),r&&E(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function D(e){var t=function(e){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}var A=T((function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filterGroup=t,I(document).on("jet-engine-request-calendar",(function(){var e=f(JetEngine,"currentRequest");if(e&&"jet-engine-calendar"===r.filterGroup.provider){if(e.settings&&e.settings.hasOwnProperty("_element_id")){var t=e.settings._element_id?e.settings._element_id:"default";if(r.filterGroup.queryId!==t)return}e.query=r.filterGroup.currentQuery,e.provider=r.filterGroup.provider+"/"+r.filterGroup.queryId;var i=e.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])}})),I(document).on("jet-woo-builder-content-rendered",(function(){"woocommerce-archive"===r.filterGroup.provider&&r.filterGroup.getFiltersByName("pagination").forEach((function(e){e.resetMoreActive()}))}))}));function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function V(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,B(i.key),i)}}function q(e,t,r){return(t=B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(t)?t:t+""}var L=function(){return e=function e(r){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),q(this,"rowSelector",".jet-filter-row"),q(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;t.subscribe("fiter/apply",(function(e){e.filterId!=i.filter.filterId&&(n=!1)})),t.subscribe("ajaxFilters/updated",(function(e,t){var r;i.filter.isCurrentProvider({provider:e,queryId:t})&&("never"===i.changeCounte||"other_changed"===i.changeCounte&&n&&l(null===(r=window.JetSmartFilters.filterGroups)||void 0===r||null===(r=r[e+"/"+t])||void 0===r?void 0:r.currentQuery)||(n=!0,i.update()))})),t.subscribe("fiters/remove",(function(e){i.filter.isCurrentProvider(e)&&(n=!1)})),t.subscribe("hierarchyFilters/levelsUpdated",(function(e){i.filter.filterId===e&&i.set()}))}},(r=[{key:"set",value:function(){var e=this,t=this.$items,r=t.length,i=0;t.each((function(r){var n=t.eq(r),o=e.currentIndexerData[n.val()]||0,a=e.isSelectedItem(n);if(n.val()){if(e.isCounter)switch(n.prop("tagName")){case"INPUT":(n=n.closest(e.rowSelector)).find(e.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(e.rowSelector));["hide","disable"].includes(e.indexerRule)&&(o||a||e.hasNonEmptyNestedItems(n)?(n.removeClass("jet-filter-row-"+e.indexerRule),"OPTION"===n.prop("tagName")&&"hide"===e.indexerRule&&n.parent("span.jet-filter-row-hide").length&&n.unwrap(),"OPTION"===n.prop("tagName")&&"disable"===e.indexerRule&&n.removeAttr("disabled")):(n.addClass("jet-filter-row-"+e.indexerRule),"OPTION"===n.prop("tagName")&&"hide"===e.indexerRule&&!n.parent("span.jet-filter-row-hide").length&&n.val()&&n.wrap('<span class="jet-filter-row-hide" />'),"OPTION"===n.prop("tagName")&&"disable"===e.indexerRule&&n.attr("disabled",!0)),"hide"!==e.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(e){return"OPTION"===e.prop("tagName")?e.is(":selected"):e.is(":checked")}},{key:"update",value:function(){var e=this.indexerData;d(e,this.currentIndexerData)||(this.currentIndexerData=e,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 e=f(JetSmartFilterSettings,"jetFiltersIndexedData"),t={};for(var r in e)if(r===this.filter.provider+"/"+this.filter.queryId)for(var i in e[r])if(i===this.filter.queryType)for(var n in e[r][i])if(n===this.filter.queryVar)for(var o in e[r][i][n])t[o]=e[r][i][n][o];return t}},{key:"hasNonEmptyNestedItems",value:function(e){var t=!1;if(!e.hasClass("jet-list-tree__parent"))return t;var r=e.next(".jet-list-tree__children");if(!r.length)return t;var i=this.currentIndexerData;return r.find("input.jet-checkboxes-list__input").each((function(e,r){if(i[r.value])return t=!0,!1})),t}}])&&V(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}(),N=r(669);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function G(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,J(i.key),i)}}function J(e){var t=function(e){if("object"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(t)?t:t+""}var U=function(){return e=function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.$filter){switch(this.filter=t,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(e){e.keypress((function(e){e.preventDefault(),13===e.keyCode&&N(e.target).trigger("click")}))}},{key:"checkboxes",value:function(){var e=this;this.filter.$filter.find("label[tabindex]").keypress((function(t){if(t.preventDefault(),[13,32].includes(t.keyCode)){var r=N(t.target).find("input");r.prop("checked",!r.prop("checked")),e.filter.processData(),e.filter.emitFiterApply()}})),this.filter.$filter.find(".jet-filter-items-moreless[tabindex]").keypress((function(t){t.preventDefault(),[13,32].includes(t.keyCode)&&e.filter.additionalFilterSettings.moreLessToggle()}))}},{key:"checkboxesDropdown",value:function(){var e=this;this.filter.additionalFilterSettings.$dropdown.find(".jet-filter-items-dropdown__label").keypress((function(t){t.preventDefault(),[13,32].includes(t.keyCode)&&e.filter.additionalFilterSettings.dropdownToggle()})),this.filter.$filter.find("[tabindex]").last().keydown((function(t){9===t.keyCode&&e.filter.additionalFilterSettings.dropdownClose()}))}},{key:"rating",value:function(){this.filter.$filter.find("[tabindex]").keypress((function(e){e.preventDefault(),N(e.target).prev("input").trigger("click")}))}},{key:"range",value:function(){var e=this;this.filter.$filter.find("[tabindex]").keydown((function(t){if([13,32,37,38,39,40].includes(t.keyCode)){t.preventDefault();var r=N(t.target);[37,38,39,40].includes(t.keyCode)&&([37,40].includes(t.keyCode)&&r.val(parseFloat(r.val())-parseFloat(r.attr("step"))),[38,39].includes(t.keyCode)&&r.val(parseFloat(r.val())+parseFloat(r.attr("step"))),r.trigger("input"),e.filter.processData()),13===t.keyCode&&e.filter.emitFiterApply()}}))}},{key:"datePeriod",value:function(){var e=this;this.filter.$datepickerBtn.is("[tabindex]")&&(this.filter.$datepickerBtn.focus((function(){e.filter.datepicker.show()})),this.filter.$datepickerBtn.blur((function(){e.filter.datepicker.inFocus||e.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(t){[32].includes(t.keyCode)&&(e.filter.datepicker.visible?e.filter.datepicker.hide():e.filter.datepicker.show())})),this.filter.$prevPeriodBtn.keypress((function(t){[13,32,37,39].includes(t.keyCode)&&(t.preventDefault(),13===t.keyCode&&e.filter.prevPeriod())})),this.filter.$nextPeriodBtn.keypress((function(t){[13,32,37,39].includes(t.keyCode)&&(t.preventDefault(),13===t.keyCode&&e.filter.nextPeriod())})))}},{key:"pagination",value:function(){var e=this;this.itemsTriggerClickOnEnterPress(this.filter.$filter.find("[tabindex]")),t.subscribe("pagination/itemsBuilt",(function(t){e.itemsTriggerClickOnEnterPress(t.$filter.find("[tabindex]"))}))}},{key:"activeItems",value:function(){var e=this;this.itemsTriggerClickOnEnterPress(this.filter.$activeItemsContainer.find("[tabindex]")),t.subscribe("activeItems/itemsBuilt",(function(t){e.itemsTriggerClickOnEnterPress(t.$activeItemsContainer.find("[tabindex]"))}))}},{key:"indexerAddition",value:function(){var e=this;if(this.filter.indexer&&"disable"===this.filter.indexer.indexerRule){var r=function(){e.filter.$filter.find('.jet-filter-row [tabindex="-1"]').attr("tabindex","0"),e.filter.$filter.find('.jet-filter-row-disable [tabindex="0"]').attr("tabindex","-1")};r(),t.subscribe("ajaxFilters/updated",(function(t,i){e.filter.isCurrentProvider({provider:t,queryId:i})&&r()}))}}}],r&&G(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}();function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function K(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,W(i.key),i)}}function W(e){var t=function(e){if("object"!=H(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==H(t)?t:t+""}var z=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filterGroup=t,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},(t=[{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 e=this.$container.get(0).getBoundingClientRect(),t=e.top,r=e.left,i=e.height,n=e.width,o=this.$preloader.outerHeight(),a=window.innerHeight/2-o/2,s=a-t-this.fixedEdgeGap,l=i+t-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(t>=0?this.fixedEdgeGap:i-o-this.fixedEdgeGap,"px"),left:"50%"})}}])&&K(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function X(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Z(i.key),i)}}function Z(e){var t=function(e){if("object"!=Q(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Q(t)?t:t+""}var ee=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filterGroup=t,this.setted={}},t=[{key:"set",value:function(){var e=this,t=!1,r=[];this.filters.forEach((function(i){if(!e.setted[i.uniqueKey]){var n=i.data,o=i.$filter.attr("data-predefined-value");if(e.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(e){return e.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(e){return e.trim()}))):(i.setData(a),i.wasChanged(!1)),Array.isArray(i.additionalProviders)&&r.push(i),t=!0}}})),t&&(this.filterGroup.apply(),setTimeout((function(){var e=[];r.forEach((function(t){t.additionalProviders.forEach((function(r){var i=p.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Y(e,t):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.")}()}(r.split("/",2)));i&&i.additionalFilters.updateAdditionalFilterByParent(t)&&e.every((function(e){return e.providerKey!==i.providerKey}))&&e.push(i)}))})),e.forEach((function(e){e.apply()}))})))}},{key:"filters",get:function(){return this.filterGroup.filters.filter((function(e){return e.$filter&&e.$filter.is("[data-predefined-value]")}))}}],t&&X(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function te(e){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(e)}function re(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ie(i.key),i)}}function ie(e){var t=function(e){if("object"!=te(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==te(t)?t:t+""}var ne=new(function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filters={},this.actions={}},t=[{key:"addFilter",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.filters[e]||(this.filters[e]=[]),this.filters[e].push({callback:t,priority:r}),this.filters[e].sort((function(e,t){return e.priority-t.priority}))}},{key:"applyFilters",value:function(e,t){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[e]?this.filters[e].reduce((function(e,t){return t.callback.apply(t,[e].concat(i))}),t):t}},{key:"removeFilter",value:function(e,t){this.filters[e]&&(this.filters[e]=this.filters[e].filter((function(e){return e.callback!==t})))}},{key:"addAction",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;this.actions[e]||(this.actions[e]=[]),this.actions[e].push({callback:t,priority:r}),this.actions[e].sort((function(e,t){return e.priority-t.priority}))}},{key:"doAction",value:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];this.actions[e]&&this.actions[e].forEach((function(e){e.callback.apply(e,r)}))}},{key:"removeAction",value:function(e,t){this.actions[e]&&(this.actions[e]=this.actions[e].filter((function(e){return e.callback!==t})))}}],t&&re(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()),oe=ne.addFilter.bind(ne),ae=ne.applyFilters.bind(ne);ne.removeFilter.bind(ne),ne.addAction.bind(ne),ne.doAction.bind(ne),ne.removeAction.bind(ne);var se=r(669);function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}const ue={xhrs:{},ajax:function(e){var t=this;return e=e||{},window.JetPlugins&&(e=window.JetPlugins.hooks.applyFilters("jet-smart-filters.request.data",e)),new Promise((function(r,i){var n={},o=e.url||f(JetSmartFilterSettings,"ajaxurl"),a=e.action||"jet_smart_filters",s=e.query||!1,l=function(e,t){if(!e.hasOwnProperty(t))return!1;var r=e[t];return delete e[t],r}(s,"jet_paged"),u=e.provider||!1,c=e.queryId||"default",d=e.props||f(JetSmartFilterSettings,"props",u,c)||{},p=e.extra_props||f(JetSmartFilterSettings,"extra_props")||{},h=e.defaults||f(JetSmartFilterSettings,"queries",u,c)||{},y=e.settings||f(JetSmartFilterSettings,"settings",u,c)||{},v=e.referrer_data||f(JetSmartFilterSettings,"referrer_data")||!1,m=e.referrer_url||f(JetSmartFilterSettings,"referrer_url")||!1,b=e.indexingFilters||!1;if([o,a,s,u,c].some((function(e){return!Boolean(e)})))i('Not enough parameters. Check if the "Provider" and "Query ID" are set correctly');else{t.xhrs[u+"/"+c]&&t.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),ae("request/ajax-data",n),t.xhrs[u+"/"+c]=se.ajax({url:g,type:"POST",dataType:"json",data:n}).done((function(e){r(e)})).fail((function(e,t){"abort"===t&&i(!1);var r;r=0===e.status?"Not connect.\n Verify Network.":404==e.status?"Requested page not found. [404]":500==e.status?"Internal Server Error [500].":"parsererror"===t?"Requested JSON parse failed.":"timeout"===t?"Time out error.":"Uncaught Error.\n"+e.responseText,i(r)}))}}))},reload:function(e){document.location=e||window.location.pathname},redirectWithGET:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){var i=S((t=("/"!==t.charAt(0)?"/":"")+t+("/"!==t.charAt(t.length-1)?"/":""))+e);c(i)||(i=f(JetSmartFilterSettings,"siteurl")+i),window.open(i,r?"_blank":"_top")}},redirectWithPOST:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){c(t)||(t=f(JetSmartFilterSettings,"siteurl")+"/"+t);var i=se("<form></form>").attr("method","post").attr("action",t);r&&i.attr("target","_blank"),e["jet-smart-filters-redirect"]=1,se.each(e,(function(e,t){Array.isArray(t)?t.forEach((function(t){i.append(n(e+"[]",t))})):("object"===le(t)&&null!==t&&(t=JSON.stringify(t)),i.append(n(e,t)))})),se(i).appendTo("body").submit()}function n(e,t){var r=se("<input></input>");return r.attr("type","hidden"),r.attr("name",e),r.attr("value",t),r}}};var ce=f(JetSmartFilterSettings,"plugin_settings","url_custom_symbols");function fe(e){var t="";if(a(ce)&&ce[e]&&(t=ce[e]),!t)switch(e){case"provider_id":case"key_value":t=":";break;case"items_separator":t=";";break;case"value_separator":t=",";break;case"var_suffix":t="!"}return t}var de=fe("provider_id"),pe=fe("items_separator"),he=fe("key_value"),ye=fe("value_separator"),ve=fe("var_suffix");const me={provider_id:de,items_separator:pe,key_value:he,value_separator:ye,var_suffix:ve,parseData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye;if(!Array.isArray(e))return encodeURIComponent(e);for(var r="",i=0;i<e.length;i++)r+=encodeURIComponent(e[i]),i<e.length-1&&(r+=t);return r}};var be=r(669),ge=r(669);function we(e){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?je(Object(r),!0).forEach((function(t){Oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_e(i.key),i)}}function Oe(e,t,r){return(t=_e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e){var t=function(e){if("object"!=we(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==we(t)?t:t+""}var xe=function(){return e=function e(r,i){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oe(this,"urlPrefix","jsf"),Oe(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 e=h(),t=f(JetSmartFilterSettings,"misc","valid_url_params"),r="";for(var i in e){var n=e[i];t.includes(i)||(r+=encodeURIComponent(i)+(n?"="+encodeURIComponent(n):"")+"&")}return r&&(r="?"+r.replace(/&+$/,"")),r}(),this.additionalFilters=new $(this),this.customProvider=new A(this),this.providerPreloader=new z(this),this.predefinedData=new ee(this),o.forEach((function(e){n.addFilter(e)})),this.debounceProcessFilters=g(this.processFilters,100),t.publish("filterGroup/init",this),t.subscribe("fiter/change",(function(e){n.isCurrentProvider(e)&&n.updateSameFilters(e)}),!0),t.subscribe("fiter/syncSameFilters",(function(e){n.isCurrentProvider(e)&&n.syncSameFilters(e)}),!0),t.subscribe("fiter/apply",(function(e){n.isCurrentProvider(e)&&n.applyFilterHandler(e.applyType)}),!0),t.subscribe("fiters/apply",(function(e){n.isCurrentProvider(e)&&n.applyFiltersHandler(e.applyType,!(!e.redirect||!e.redirectPath)&&e.redirectPath,e.redirectInNewWindow)}),!0),t.subscribe("fiters/remove",(function(e){n.isCurrentProvider(e)&&n.removeFiltersHandler(e.applyType)})),t.subscribe("pagination/change",(function(e){n.isCurrentProvider(e)&&n.paginationСhangeHandler(e.applyType,e.topOffset)}),!0),t.subscribe("pagination/load-more",(function(e){n.isCurrentProvider(e)&&n.paginationLoadMoreHandler(e.topOffset)}),!0)},r=[{key:"addFilter",value:function(e){this.filters=this.filters.filter((function(t){var r=e.path===t.path;return r&&(e.syncWithSameFilter?e.syncWithSameFilter(t):e.setData&&e.setData(t.data)),!r})),e.uniqueKey=this.getFilterUniqueKey(e);var t=this.filters.find((function(t){return e.uniqueKey===t.uniqueKey}));t&&(e.syncWithSameFilter?e.syncWithSameFilter(t):e.setData&&t.data!==e.data&&e.setData(t.data)),this.filters.push(e),this.initIndexer(e),this.initTabIndex(e),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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&!Array.isArray(e)&&(e=[e]),this.filters.forEach((function(t){e&&!e.includes(t.name)||t.reinit&&t.reinit()})),this.processFilters()}},{key:"applyFilterHandler",value:function(e){this.resetFiltersByName("pagination"),this.apply(e)}},{key:"applyFiltersHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.resetFiltersByName("pagination"),this.updateFiltersData(),t?this.doRedirect(e,t,r):this.apply(e)}},{key:"removeFiltersHandler",value:function(e){this.resetFiltersByName("pagination"),this.resetFilters(),this.apply(e)}},{key:"paginationСhangeHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.apply(e),"reload"===e||!t&&0!==t||be("html, body").stop().animate({scrollTop:this.$provider.offset().top-t},500)}},{key:"paginationLoadMoreHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.doAjax({append:!0,autoscroll:e})}},{key:"apply",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ajax";this.emitActiveItems(),"reload"===e?this.doReload():this.doAjax()}},{key:"doRedirect",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("reload"===e)ue.redirectWithGET(this.getUrl(!0),t,r);else{var i=ke(Oe({},this.urlPrefix,this.providerKey),this.query);ue.redirectWithPOST(i,t,r)}}},{key:"doReload",value:function(){var e=this.getUrl(!0),t=this.baseUrl;e&&(t=S(this.baseUrl+e)),window.JetPlugins&&(t=window.JetPlugins.hooks.applyFilters("jet-smart-filters.filter.reload-location",t,this)),document.location=t}},{key:"doAjax",value:function(){var e=this,t=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){e.ajaxRequestCompleted(ke({},r),t)})))}},{key:"ajaxRequest",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.query;this.startAjaxLoading(),ue.ajax({query:r,provider:this.provider,queryId:this.queryId,indexingFilters:this.indexingFilters}).then((function(r){e(r),t.endAjaxLoading()})).catch((function(e){e&&(console.error(e),t.endAjaxLoading())}))}},{key:"startAjaxLoading",value:function(){this.isAjaxLoading=!0,this.providerPreloader.show(),t.publish("ajaxFilters/start-loading",this.provider,this.queryId)}},{key:"endAjaxLoading",value:function(){this.isAjaxLoading=!1,this.providerPreloader.hide(),t.publish("ajaxFilters/end-loading",this.provider,this.queryId)}},{key:"ajaxRequestCompleted",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.pagination&&f(JetSmartFilterSettings,"props",this.provider,this.queryId)&&(window.JetSmartFilterSettings.props[this.provider][this.queryId]=ke({},e.pagination)),e.jetFiltersIndexedData&&f(JetSmartFilterSettings,"jetFiltersIndexedData",this.providerKey)&&(window.JetSmartFilterSettings.jetFiltersIndexedData[this.providerKey]=e.jetFiltersIndexedData[this.providerKey]),e.content&&this.renderResult(e.content,r),e.is_data&&this.$provider.trigger("jet-filter-data-updated",[e,this]),e.fragments)for(var i in e.fragments){var n=ge(i);n.length&&n.html(e.fragments[i])}if(e.replace_fragments)for(var o in e.replace_fragments){var a=ge(o);a.length&&a.replaceWith(e.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",e),t.publish("ajaxFilters/updated",this.provider,this.queryId,e,r)}},{key:"renderResult",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.$provider.length){if(be(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=be(e).find(this.providerSelectorData.item).not(this.providerSelectorData.item+" "+this.providerSelectorData.item);else{var o=this.providerSelectorData.list||this.providerSelectorData.selector;n=be('<div class="container">'+e+"</div>").find(o).not(o+" "+o).children()}if(r.autoscroll||0===r.autoscroll){var a="number"==typeof r.autoscroll?r.autoscroll:0;be("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&&(e=be(e).find(this.providerSelectorData.selector).children()),this.$provider.html(e)):(this.$provider.replaceWith(e),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,be);break;case"epro-portfolio":window.elementorFrontend.hooks.doAction("frontend/element_ready/portfolio.default",this.$provider.closest(".elementor-widget-portfolio"),be);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,be)}this.$provider.find("[data-element_type]").each((function(e,t){var r=be(t),i=r.data("element_type");"widget"===i&&(i=r.data("widget_type"),window.elementorFrontend.hooks.doAction("frontend/element_ready/widget",r,be)),window.elementorFrontend.hooks.doAction("frontend/element_ready/global",r,be),window.elementorFrontend.hooks.doAction("frontend/element_ready/"+i,r,be)}));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)),t.publish("provider/content-rendered",this.provider,this.$provider),be(document).trigger("jet-filter-content-rendered",[this.$provider,this,this.provider,this.queryId])}}},{key:"setFiltersData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentQuery;this.filters.forEach((function(t){if(!t.isHierarchy&&!t.disabled){var r=t.queryKey,i=e[r];i&&t.setData&&t.setData(i)}})),this.emitActiveItems()}},{key:"updateFiltersData",value:function(){this.filters.forEach((function(e){e.processData&&e.processData()}))}},{key:"resetFilters",value:function(){this.filters.forEach((function(e){e.reset&&e.reset()}))}},{key:"updateSameFilters",value:function(e){this.getSameFilters(e).forEach((function(t){e.data!==t.data&&(t.setData?t.setData(e.data):t.data=e.data)}))}},{key:"syncSameFilters",value:function(e){this.getSameFilters(e,!0).forEach((function(t){t.syncWithSameFilter&&t.syncWithSameFilter(e)}))}},{key:"getFiltersByName",value:function(e){return this.filters.filter((function(t){return t.name===e}))}},{key:"resetFiltersByName",value:function(e){this.getFiltersByName(e).forEach((function(e){e.reset&&e.reset()}))}},{key:"updateUrl",value:function(){var e=this.filters.some((function(e){if(e.data)return!0}));if(e){var t=this.getUrl();t&&history.replaceState(null,null,S(this.baseUrl+t))}else history.replaceState(null,null,this.baseUrl+this.baseUrlParams)}},{key:"getUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};if(this.uniqueFilters.forEach((function(r){if(e||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+me.key_value+a[l]+me.items_separator;i=i.replace(new RegExp(O(me.items_separator)+"\\s*$"),"");break;case"_s":o=!1}switch(r.name){case"range":o+=me.var_suffix+"range";break;case"check-range":o+=me.var_suffix+"check-range";break;case"date-range":case"date-period":"meta"===n&&(o+=me.var_suffix+"date");break;case"pagination":n="pagenum";break;case"search":"meta_query"===r.queryType&&(n="_sm",o=!1,i=r.queryVar+me.var_suffix+i);break;default:r.queryVarSuffix&&(o+=me.var_suffix+r.queryVarSuffix)}var u=[n];o&&u.push(o),r.mergeSameQueryKeys&&f.apply(void 0,[t].concat(u))&&(i=s(i,"operator_AND")),function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e)for(var n=t,o=0;o<r.length;o++){var a=r[o];o===r.length-1?n[a]&&i.merge?n[a]=s(n[a],e):n[a]=e:(n[a]||(n[a]={}),n=n[a])}}(i,t,u,{merge:r.mergeSameQueryKeys})}}})),u(t))return this.baseUrlParams||"";var r="",i=this.provider;if(this.queryId&&"default"!==this.queryId&&(i+=me.provider_id+this.queryId),"permalink"===this.urlType){for(var n in r=this.urlPrefix+"/"+i+"/","_s"in t&&(t.search=t._s,delete t._s),"_sm"in t&&(t["search-by-meta"]=t._sm,delete t._sm),t){var o=t[n];if(r+=n+"/",a(o)){if(Array.isArray(o))r+=me.parseData(o)+"/";else for(var l in o)r+=l+me.key_value+me.parseData(o[l])+me.items_separator;r=r.replace(new RegExp(O(me.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,t){var d=t[c];if(r+="&"+c+"=",a(d)){if(Array.isArray(d))r+=me.parseData(d);else for(var p in d)r+=p+me.key_value+me.parseData(d[p])+me.items_separator;r=r.replace(new RegExp(O(me.items_separator)+"\\s*$"),"")}else r+=me.parseData(d)}return r}},{key:"initIndexer",value:function(e){!e.indexer&&e.$container&&e.$container.hasClass("jet-filter-indexed")&&(e.indexer=new L(e))}},{key:"initTabIndex",value:function(e){var t=f(JetSmartFilterSettings,"plugin_settings","use_tabindex");e.tabindex||"true"!==t||(e.tabindex=new U(e))}},{key:"emitFiltersProcessed",value:function(){t.publish("filters/processed",this)}},{key:"emitActiveItems",value:function(){t.publish("activeItems/change",this.activeItems,this.provider,this.queryId)}},{key:"emitHierarchyFiltersUpdate",value:function(){t.publish("hierarchyFilters/update",this.hierarchyFilters)}},{key:"isCurrentProvider",value:function(e){return e.provider===this.provider&&e.queryId===this.queryId}},{key:"getProviderSelector",value:function(){var e=this.providerSelectorData.inDepth?" ":"";return"default"===this.queryId?this.providerSelectorData.selector:this.providerSelectorData.idPrefix+this.queryId+e+this.providerSelectorData.selector}},{key:"getProvider",value:function(){var e=this;return be(this.providerSelector).filter((function(t,r){return!be(r).parents(e.providerSelector).length}))}},{key:"query",get:function(){var e={};return this.uniqueFilters.forEach((function(t){var r=t.data,i=t.queryKey;r&&i&&(e[i]&&t.mergeSameQueryKeys?e[i]=s(e[i],r,"operator_AND"):e[i]=r)})),e}},{key:"providerKey",get:function(){return this.provider+"/"+this.queryId}},{key:"providerSelectorData",get:function(){return f(JetSmartFilterSettings,"selectors",this.provider)}},{key:"urlParams",get:function(){var e=h();return e[this.urlPrefix]===this.provider+":"+this.queryId&&(delete e[this.urlPrefix],e)}},{key:"activeItems",get:function(){var e=this,t=[];return this.uniqueFilters.forEach((function(r){r.data&&r.reset&&!e.activeItemsExceptions.includes(r.name)&&t.push(r)})),t}},{key:"hierarchyFilters",get:function(){var e={};return this.uniqueFilters.forEach((function(t){t.isHierarchy&&!t.isAdditional&&(e[t.filterId]||(e[t.filterId]=[]),e[t.filterId].push(t))})),!!l(e)&&e}},{key:"indexingFilters",get:function(){var e=[];return this.uniqueFilters.forEach((function(t){t.indexer&&e.push(t.filterId)})),!!e.length&&JSON.stringify(e)}},{key:"isProviderExist",get:function(){return!!this.$provider.length}},{key:"getFilterUniqueKey",value:function(e){var t=e.name;return e.filterId&&(t+="-"+e.filterId),e.isHierarchy&&(t+="/hierarchical-depth-"+e.depth),["provider","queryId","queryKey"].forEach((function(r){e[r]&&(t+="/"+e[r])})),t}},{key:"uniqueFilters",get:function(){return function(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Se(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Se(e,t):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.")}()}(new Map(this.filters.map((function(e){return[e.uniqueKey,e]}))).values())}},{key:"getSameFilters",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.filters.filter((function(r){return e.uniqueKey===r.uniqueKey&&(!t||e.path!==r.path)}))}}],r&&Pe(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}(),Ce=r(669);function $e(e){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function Ie(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ee(i.key),i)}}function Fe(e,t,r){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(e){var t=function(e){if("object"!=$e(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=$e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$e(t)?t:t+""}var Te=function(){return e=function e(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Fe(this,"dataValue",!1),Fe(this,"applySelector",".apply-filters"),Fe(this,"applyButtonSelector",".apply-filters__button"),Fe(this,"filtersGroupSelector",".jet-filters-group"),this.$container=r,this.$filter=t,this.path=j(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=Ce(),this.isRTL=Ce("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 e=this;this.$applyButton.on("click",(function(){e.processData(),e.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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1};return e.provider===this.provider&&e.queryId===this.queryId}},{key:"isAdditionalProvider",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1},t=e.provider,r=void 0!==t&&t,i=e.queryId,n=void 0===i?"default":i;return!!r&&!!this.additionalProviders.includes(r+"/"+n)}},{key:"wasChanged",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.applyOnChanging;this.emitFiterChange(),e&&this.emitFiterApply()}},{key:"emitFiterChange",value:function(){t.publish("fiter/change",this)}},{key:"emitFiterApply",value:function(){t.publish("fiter/apply",this)}},{key:"emitFitersApply",value:function(){t.publish("fiters/apply",this)}},{key:"emitFitersRemove",value:function(){t.publish("fiters/remove",this)}},{key:"data",get:function(){return!(!k(this.dataValue)||this.disabled)&&this.dataValue}},{key:"queryKey",get:function(){var e,t=this.queryVarSuffix;return e="_"+this.queryType+"_"+this.queryVar,t&&(e+="|"+t),e}},{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&&Ie(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}(),De=r(669),Ae=r(669);function Re(e){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(e)}function Ve(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,qe(i.key),i)}}function qe(e){var t=function(e){if("object"!=Re(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Re(t)?t:t+""}function Be(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Be=function(){return!!e})()}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Me=function(e){function t(e,r,i){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=Le(t),function(e,t){if(t&&("object"==Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Be()?Reflect.construct(t,r||[],Le(e).constructor):t.apply(e,r))}(this,t,[r,e])).$checkboxes=i||r.find(":checkbox"),n.$checkboxesList=e.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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(t,e),r=t,i=[{key:"addFilterChangeEvent",value:function(){var e=this;this.$checkboxes.on("change",(function(t){"AND"===e.relationalOperator&&e.hasGroups&&e.uncheckGroup(t.target),e.processData(),e.wasChanged()})),this.canDeselect&&this.$checkboxes.on("click",(function(t){var r=De(t.target);r.val()===e.dataValue&&r.prop("checked",!1).trigger("change")}))}},{key:"removeChangeEvent",value:function(){this.$checkboxes.off(),this.$dropdownLabel.off()}},{key:"processData",value:function(){var e=this.$checked,t=!1;1===e.length?t=e.val():e.length>1&&(t=[],e.each((function(r){t.push(e.get(r).value)})),this.relationalOperator&&t.push("operator_"+this.relationalOperator)),this.dataValue=t,k(this.dataValue)||this.checkAllOption(),this.additionalFilterSettings&&this.additionalFilterSettings.dataUpdated()}},{key:"setData",value:function(e){this.reset(),k(e)&&(this.getItemsByValue(e).forEach((function(e){e.prop("checked",!0)})),this.processData())}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];k(e)?(this.getItemByValue(e).prop("checked",!1),this.processData()):(this.getItemsByValue(this.dataValue).forEach((function(e){e.prop("checked",!1)})),this.processData())}},{key:"activeValue",get:function(){var e=this,t=this.data,r="",i="";return Array.isArray(t)||(t=[t]),t.forEach((function(t){var n=e.getValueLabel(t);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 e=this,t=this.data;if(!k(t)||!this.isUrlValAvailable)return t;var r=t;return Array.isArray(t)?(r=[],t.forEach((function(t){r.push(e.getItemByValue(t).data("url-value")||t)}))):r=this.getItemByValue(t).data("url-value")||t,r}},{key:"$checked",get:function(){return this.$checkboxes.filter(":checked")}},{key:"getItemsByValue",value:function(e){var t=this,r=[];return Array.isArray(e)||(e=[e]),e.forEach((function(e){r.push(t.getItemByValue(e))})),r}},{key:"getItemByValue",value:function(e){return this.$checkboxes.filter((function(){return Ae(this).val()===e}))}},{key:"getValueLabel",value:function(e){var t=this.$checkboxes.filter((function(){return Ae(this).val()===e})),r=t.attr("data-label");return void 0!==r?r:t.data("label")}},{key:"checkAllOption",value:function(){this.$allOption&&this.$allOption.prop("checked",!0)}},{key:"uncheckGroup",value:function(e){var t=Ae(e),r=Boolean(t.closest(".jet-list-tree__children").length),i=!r&&Boolean(t.closest(".jet-list-tree__parent").length);(i||r)&&(r&&(t.parents(".jet-list-tree__children").prev(".jet-list-tree__parent").find(".jet-checkboxes-list__input").prop("checked",!1),t.parent().parent(".jet-list-tree__parent").next(".jet-list-tree__children").find(".jet-checkboxes-list__input").prop("checked",!1)),i&&t.closest(".jet-list-tree__parent").next(".jet-list-tree__children").find(".jet-checkboxes-list__input").prop("checked",!1))}}],i&&Ve(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te),Ge=r(669);function Je(e){return Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Je(e)}function Ue(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,He(i.key),i)}}function He(e){var t=function(e){if("object"!=Je(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Je(t)?t:t+""}var Ke=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filter=t,this.$items=this.filter.$filter.find(".jet-filter-row"),this.inputNotEmptyClass="jet-input-not-empty",this.searchClass="jet-filter-items-search",this.searchTreeStateKey="jetSmartFiltersWasCollapsedBeforeSearch",this.searchTreeParentClass="jet-filter-row-search-parent",this.searchTreeEmptyParentClass="jet-filter-row-search-empty-parent",this.$searchTreeParents=Ge(),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()},(t=[{key:"searchInit",value:function(){var e=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(t){e.searchApply(t.target.value)})),this.$searchClear.length&&this.$searchClear.on("click",(function(){e.searchClear()}))}},{key:"searchApply",value:function(e){this.searchValue=e.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 e=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(){e.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 e=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,Ge(document).on("click",(function(t){e.documentClick(t)})),this.$dropdownLabel.length&&(this.$dropdownLabel.on("click",(function(){e.dropdownToggle()})),this.$dropdownItems.on("click",(function(){e.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 e=Ge(document).height();this.dropdownState=!0,this.$dropdown.addClass(this.dropdownOpenClass),this.$searchInput&&this.$searchInput.focus();var t=this.$dropdownLabel.outerHeight(!0)+this.$dropdownBody.outerHeight(!0),r=this.$dropdown.offset().top;e>t&&e<r+t&&this.$dropdown.addClass(this.dropdownBodyPositionTopClass)}},{key:"documentClick",value:function(e){Ge.contains(this.$dropdown.get(0),e.target)||this.dropdownClose()}},{key:"dropDownItemsUpdate",value:function(){var e=this;this.$dropdownLabel.find("*").off();var t=this.filter.$checked,r=this.filter.$selected;if(t&&t.length){this.$dropdownLabel.html("");var i=Ge('<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(t){var r=n.eq(t),o=Ge('<div class="jet-filter-items-dropdown__active__item"></div>');o.text(r.data("label"));var a=Ge('<span class="jet-filter-items-dropdown__active__item__remove">×</span>');o.append(a),i.append(Ge(o).one("click",(function(t){t.stopPropagation(),e.filter.reset(r.val()),r.trigger("change")})))})),this.dropdownNselectedEnabled&&this.dropdownNselectedNumber<t.length){var o=this.dropdownNselectedText.replace("{number}",t.length-this.dropdownNselectedNumber);i.append(Ge('<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 e=this,t=this.$items.filter((function(t){var r=e.$items.eq(t),i=r.find("input");return!r.hasClass("jet-filter-row-hide")&&(e.searchValue&&-1===i.data("label").toString().toLowerCase().indexOf(e.searchValue)?(r.hide(),!1):(r.show(),!0))}));if(this.numberOfDisplayed)if(t.length>this.numberOfDisplayed){if(!this.moreState)for(var r=this.numberOfDisplayed;r<t.length;r++)t.eq(r).hide();this.$moreless.show()}else this.$moreless.hide();this.updateSearchTreeVisibility(t.filter((function(e,t){return"none"!==Ge(t).css("display")})))}},{key:"updateSearchTreeVisibility",value:function(e){var t=this,r=this.filter.collapsibleList,i=this.isCollapsibleListAvailable(r),n=r&&r.settings?r.settings.contentElementClass:"jet-list-tree__children",o=r&&r.settings?r.settings.toggleElementClass:"jet-list-tree__parent";if(this.$searchTreeParents.removeClass(this.searchTreeParentClass),this.$searchTreeParents=Ge(),i&&r.collapsibleLists.forEach((function(e){var i=e[t.searchTreeStateKey];e.$toggle.removeClass(t.searchTreeEmptyParentClass),void 0!==i&&(i?r.closeLevel(e,0):r.openLevel(e,0),delete e[t.searchTreeStateKey])})),this.searchValue&&e.length){var a=[],s=[];if(e.each((function(e,t){Ge(t).parents("."+n).each((function(e,t){a.includes(t)||a.push(t);var r=Ge(t).prev("."+o);!r.length||r.hasClass("jet-filter-row-hide")||s.includes(r.get(0))||s.push(r.get(0))}))})),this.$searchTreeParents=Ge(s),this.$searchTreeParents.show(),this.$searchTreeParents.each((function(e,r){var i=Ge(r);-1===(i.find("input").data("label")||"").toString().toLowerCase().indexOf(t.searchValue)&&i.addClass(t.searchTreeParentClass)})),i){var l=r.getLevelsByContent(Ge(a));l.forEach((function(e){void 0===e[t.searchTreeStateKey]&&(e[t.searchTreeStateKey]=r.isLevelCollapsed(e))})),r.openLevels(l,0,{showToggle:!0}),this.updateSearchTreeEmptyParents(r)}}}},{key:"isCollapsibleListAvailable",value:function(e){return!!(e&&e.collapsibleLists&&e.collapsibleLists.length)}},{key:"updateSearchTreeEmptyParents",value:function(e){var t=this;e.collapsibleLists.forEach((function(e){e.$content.find(".jet-filter-row").filter((function(e,t){var r=Ge(t);return!r.hasClass("jet-filter-row-hide")&&"none"!==r.css("display")})).length||"none"===e.$toggle.css("display")||e.$toggle.addClass(t.searchTreeEmptyParentClass)}))}}])&&Ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),We=r(669);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function Qe(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ye(i.key),i)}}function Ye(e){var t=function(e){if("object"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}var Xe=function(){return e=function e(t){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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),t.$container.find("."+this.settings.collapsibleElementClass+" ."+this.settings.toggleElementClass).each((function(e,t){var i=We(t),n=i.next();if(n.hasClass(r.settings.contentElementClass)){var o={$toggle:i,$content:n};r.collapsibleLists.push(o);var a=!!n.find("input:checked").length;r.settings.collapsed&&!a?r.closeLevel(o,0):r.openLevel(o,0),i.click((function(e){r.toggleLevel(o)})),i.find(r.settings.excludedClickelEmentsSelector).click((function(e){e.stopPropagation()}))}}))},t=[{key:"setLevelState",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e&&e.$toggle&&e.$content&&(i.showToggle&&!e.$toggle.hasClass("jet-filter-row-hide")&&e.$toggle.show(),e.$toggle.toggleClass(this.settings.toggleCollapsedClass,!t),e.$content.toggleClass(this.settings.contentCollapsedClass,!t).stop(!0,!0)[t?"slideDown":"slideUp"](r))}},{key:"openLevel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setLevelState(e,!0,t,r)}},{key:"closeLevel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setLevelState(e,!1,t,r)}},{key:"toggleLevel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.collapseSpeed;this.setLevelState(e,this.isLevelCollapsed(e),t)}},{key:"openLevels",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.normalizeLevels(e).forEach((function(e){t.openLevel(e,r,i)}))}},{key:"closeLevels",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.normalizeLevels(e).forEach((function(e){t.closeLevel(e,r,i)}))}},{key:"isLevelCollapsed",value:function(e){return!(!e||!e.$content)&&e.$content.hasClass(this.settings.contentCollapsedClass)}},{key:"getLevelByContent",value:function(e){return this.collapsibleLists.find((function(t){return t.$content.is(e)}))}},{key:"getLevelsByContent",value:function(e){var t=this,r=[];return e.each((function(e,i){var n=t.getLevelByContent(We(i));n&&!r.includes(n)&&r.push(n)})),r}},{key:"normalizeLevels",value:function(e){return e?e.jquery?this.getLevelsByContent(e):(Array.isArray(e)||(e=[e]),e.filter((function(e){return!!e}))):[]}}],t&&Qe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(et=function(){return!!e})()}function tt(e){return tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tt(e)}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}function it(e){var t=function(e){if("object"!=Ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ze(t)?t:t+""}var nt=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-checkboxes-list");return r=function(e,t,r){return t=tt(t),function(e,t){if(t&&("object"==Ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,et()?Reflect.construct(t,r||[],tt(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="checkboxes",(n=it(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 Ke(r),r.collapsibleList=new Xe(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Me);function ot(e){return ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ot(e)}function at(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(at=function(){return!!e})()}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}function lt(e,t){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lt(e,t)}function ut(e){var t=function(e){if("object"!=ot(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(t)?t:t+""}var ct=function(e){function t(e){var r,i,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=st(t),function(e,t){if(t&&("object"==ot(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,at()?Reflect.construct(t,r||[],st(e).constructor):t.apply(e,r))}(this,t,[e]),i=r,o="check-range",(n=ut(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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lt(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(nt),ft=r(669),dt=r(669);function pt(e){return pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pt(e)}function ht(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,yt(i.key),i)}}function yt(e){var t=function(e){if("object"!=pt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pt(t)?t:t+""}function vt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vt=function(){return!!e})()}function mt(e){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mt(e)}function bt(e,t){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bt(e,t)}var gt=function(e){function t(e,r,i){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,r){return t=mt(t),function(e,t){if(t&&("object"==pt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vt()?Reflect.construct(t,r||[],mt(e).constructor):t.apply(e,r))}(this,t,[r,e])).$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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bt(e,t)}(t,e),r=t,(i=[{key:"addFilterChangeEvent",value:function(){var e=this;this.$select.on("change",(function(){e.processData(),e.wasChanged()})),!this.isSelect&&this.canDeselect&&this.$select.on("click",(function(t){var r=ft(t.target);r.val()===e.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(),k(this.dataValue)||this.checkAllOption(),this.additionalFilterSettings&&this.additionalFilterSettings.dataUpdated()}},{key:"setData",value:function(e){if(this.reset(),k(e)){var t=this.getItemByValue(e);t&&t.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 e=this.getItemByValue(this.data);if(e)return this.getItemLabel(e)}},{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 e=this.data;return k(e)&&this.isUrlValAvailable&&this.getItemByValue(e).data("url-value")||e}},{key:"$selected",get:function(){return this.isSelect?this.$select.find(":checked"):this.$select.filter(":checked")}},{key:"getItemByValue",value:function(e){var t=!1;return this.isSelect?this.$select.find("option").each((function(r,i){var n=dt(i);n.val()===e&&(t=n)})):t=this.$select.filter((function(){return dt(this).val()===e})),t}},{key:"getItemLabel",value:function(e){var t=e.attr("data-label");return void 0!==t?t:e.data("label")}},{key:"checkAllOption",value:function(){this.$allOption&&this.$allOption.prop("checked",!0)}}])&&ht(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te);function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function St(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(St=function(){return!!e})()}function jt(e){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(e)}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Pt(e){var t=function(e){if("object"!=wt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wt(t)?t:t+""}var Ot=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-select");return r=function(e,t,r){return t=jt(t),function(e,t){if(t&&("object"==wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,St()?Reflect.construct(t,r||[],jt(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="select",(n=Pt(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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(gt),_t=r(669);function xt(e){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xt(e)}function Ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function $t(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ft(i.key),i)}}function It(e,t,r){return(t=Ft(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e){var t=function(e){if("object"!=xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xt(t)?t:t+""}var Et=function(){return e=function e(r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),It(this,"name","select-hierarchical"),It(this,"filters",[]);var n=r.find(".jet-select");n.length&&(n.each((function(e){var t=n.eq(e),o=new gt(r,t);o.hierarchicalInstance=i,o.name="select",o.$container=r,o.isHierarchy=!0,o.depth=e,i.filters.push(o),o.processData=function(){i.hierarchicalFilterProcessData(o)},o.syncWithSameFilter=function(e){i.syncFilterData(o,e.data),i.scheduleHierarchyLevelsUpdate()}})),this.isHierarchy=!0,this.indexer=r.hasClass("jet-filter-indexed"),this.lastFilter=this.filters[this.filters.length-1],this.filterId=this.lastFilter.filterId,this.updateHierarchyLevelsTimer=null,t.subscribe("fiter/change",(function(e){e.filterId!==i.filterId||!i.lastFilter.isCurrentProvider(e)||e.isReload&&e.applyOnChanging||(e.hierarchicalInstance===i?i.getNextHierarchyLevels(e):setTimeout((function(){i.updateHierarchyLevels()})))})),t.subscribe("fiters/remove",(function(e){i.lastFilter.isCurrentProvider(e)&&i.clearHierarchyLevels()})),t.subscribe("hierarchyFilters/update",(function(e){var t;null!==(t=e[i.filterId])&&void 0!==t&&t.some((function(e){return e.hierarchicalInstance===i}))&&i.updateHierarchyLevels()})),t.subscribe("hierarchyFilters/updateLevels",(function(e,t){if(e===i)for(var r=1;r<i.count;r++){var n=i.filters[r],o=_t(t["level_"+r]).find("select").html();o&&(n.$select.html(o),i.updateFilterIndexer(n))}})),setTimeout((function(){i.filters.forEach((function(e){k(e.dataValue)||e.$select.val("")}))})))},r=[{key:"setData",value:function(e){for(var t=0;t<e.length;t++){var r=e[t],i=this.filters[t];i&&(i.dataValue=r)}this.updateHierarchyLevels()}},{key:"syncFilterData",value:function(e,t){if(k(t)){var r=e.getItemByValue(t);r&&r.length?e.setData(t):e.dataValue=t}else e.setData(t)}},{key:"scheduleHierarchyLevelsUpdate",value:function(){var e=this;clearTimeout(this.updateHierarchyLevelsTimer),this.updateHierarchyLevelsTimer=setTimeout((function(){e.filters.some((function(e){return k(e.dataValue)}))&&e.updateHierarchyLevels()}))}},{key:"hierarchicalFilterProcessData",value:function(e){e.dataValue=e.$selected.val(),e.additionalFilterSettings&&e.additionalFilterSettings.dataUpdated()}},{key:"getNextHierarchyLevels",value:function(e){var t=e.depth+1,r=[];if(t){for(var i=t;i<this.filters.length;i++)this.filters[i].reset(),this.filters[i].showPreloader();for(var n=0;n<t;n++){var o=this.filters[n];r.push({value:o.data,tax:o.queryVar})}this.ajaxRequest({values:r,depth:t,args:e.layoutOptions||!1})}}},{key:"updateHierarchyLevels",value:function(){var e=this,r=[],i=null;this.filters.forEach((function(e){k(e.dataValue)&&(null===i&&(i=e.layoutOptions||!1),r.push({value:e.data,tax:e.queryVar}),e.showPreloader())})),this.ajaxRequest({values:r,args:i},(function(){e.filters.forEach((function(e){e.setData(e.data)}));var r=e.filters[0];r&&t.publish("activeItems/rebuild",r.provider,r.queryId)}))}},{key:"clearHierarchyLevels",value:function(){(function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ct(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ct(e,t):void 0}}(e)||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(e){e.$select.find("option").each((function(e,t){0!==e&&_t(t).remove()}))}))}},{key:"ajaxRequest",value:function(e,r){var i=this,n=e.values,o=e.depth,a=void 0!==o&&o,s=e.indexer,l=void 0===s?this.indexer:s,u=e.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),_t.ajax({url:JetSmartFilterSettings.ajaxurl,type:"POST",dataType:"json",data:f}).done((function(e){t.publish("hierarchyFilters/updateLevels",i,e.data),"function"==typeof r&&r(),t.publish("hierarchyFilters/levelsUpdated",i.filterId)})).always((function(){i.filters.forEach((function(e){e.hidePreloader()}))}))}},{key:"updateFilterIndexer",value:function(e){if(e.indexer){var t=e.isReload,r="never"===e.indexer.changeCounte;(t||r)&&e.indexer.set()}}},{key:"count",get:function(){return this.filters.length}}],r&&$t(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}();function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function Dt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,At(i.key),i)}}function At(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rt=function(){return!!e})()}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vt(e)}function qt(e,t){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qt(e,t)}function Bt(e){return Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(e)}function Lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lt=function(){return!!e})()}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}function Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}function Gt(e){var t=function(e){if("object"!=Bt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Bt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bt(t)?t:t+""}var Jt=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-range");return r=function(e,t,r){return t=Nt(t),function(e,t){if(t&&("object"==Bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lt()?Reflect.construct(t,r||[],Nt(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="range",(n=Gt(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(e){function t(e,r,i,n,o,a,s,l,c,f,d){var p;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(p=function(e,t,r){return t=Vt(t),function(e,t){if(t&&("object"==Tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rt()?Reflect.construct(t,r||[],Vt(e).constructor):t.apply(e,r))}(this,t,[r,e])).$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.dynamicRangeType&&oe("request/ajax-data",(function(e){return e?(u(e.dynamic_range)&&(e.dynamic_range={}),u(e.dynamic_range[p.dynamicRangeType])&&(e.dynamic_range[p.dynamicRangeType]=[]),e.dynamic_range[p.dynamicRangeType].includes(p.queryVar)||e.dynamic_range[p.dynamicRangeType].push(p.queryVar),e):e})),p.initSlider(),p.processData(),p.initEvent(),p.valuesUpdated(),p}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qt(e,t)}(t,e),r=t,i=[{key:"updateSingleValueState",value:function(){this.$filter.toggleClass("jet-range--single-value",this.availableMinConstraint===this.availableMaxConstraint)}},{key:"initSlider",value:function(){var e=this;this.$filter.on("mousemove touchstart",this.findClosestRange.bind(this)),this.$sliderInputMin.on("input",(function(t){e.minVal=parseFloat(e.$sliderInputMin.val()),e.valuesUpdated("min")})),this.$sliderInputMax.on("input",(function(){e.maxVal=parseFloat(e.$sliderInputMax.val()),e.valuesUpdated("max")})),this.$rangeInputs.length&&this.$rangeInputs.on("input keydown blur",(function(t){var r=t.target,i=r.value,n="";if(r.hasAttribute("min-range")&&(n="min"),r.hasAttribute("max-range")&&(n="max"),n){if(e.rangeInputsSeparators){var o=r.oldValue||"",a=r.selectionEnd;if(i!==o){e.rangeInputUpdateValue(n,i);var s=r.value,l=r.numericValue;switch(n){case"min":e.minVal=e.inputNumberRangeValidation(l);break;case"max":e.maxVal=e.inputNumberRangeValidation(l)}if(s.length===r.selectionEnd){var u=-1;s!==o&&(u=s.slice(0,a).split(e.format.thousands_sep).length-1-(o.slice(0,a).split(e.format.thousands_sep).length-1)),s===o&&[e.format.thousands_sep,e.format.decimal_sep].includes(s.charAt(a))&&(u=0),r.setSelectionRange(a+u,a+u)}}}else switch(n){case"min":e.minVal=e.inputNumberRangeValidation(i||e.minConstraint);break;case"max":e.maxVal=e.inputNumberRangeValidation(i||e.maxConstraint)}"blur"!==t.type&&13!==t.keyCode||e.valuesUpdated(n)}}))}},{key:"addFilterChangeEvent",value:function(){var e=this;this.$sliderInputs.on("mouseup touchend",(function(){e.processData(),e.wasChanged()})),this.$rangeInputs.on("change",(function(){e.processData(),e.wasChanged()})),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&this.$rangeInputs.on("keydown",(function(t){"Enter"===t.key&&e.$rangeInputs.trigger("change")}))}},{key:"removeChangeEvent",value:function(){this.$filter.off(),this.$inputs.off()}},{key:"processData",value:function(){var e,t;this.$rangeInputMin.length&&this.rangeInputUpdateValue("min",this.minVal),this.$rangeInputMax.length&&this.rangeInputUpdateValue("max",this.maxVal);var r=null!==(e=this.availableMinConstraint)&&void 0!==e?e:this.minConstraint,i=null!==(t=this.availableMaxConstraint)&&void 0!==t?t:this.maxConstraint;this.minVal!=r||this.maxVal!=i?this.dataValue=this.minVal+"_"+this.maxVal:this.dataValue=!1}},{key:"setData",value:function(e){if(this.reset(),e){var t=e.split("_");t[0]&&(this.minVal=parseFloat(t[0]),this.$sliderInputMin.val(this.minVal)),t[1]&&(this.maxVal=parseFloat(t[1]),this.$sliderInputMax.val(this.maxVal)),this.valuesUpdated(),this.processData()}}},{key:"reset",value:function(){var e,t;this.dataValue=!1,this.minConstraint=null!==(e=this.availableMinConstraint)&&void 0!==e?e:this.minConstraint,this.maxConstraint=null!==(t=this.availableMaxConstraint)&&void 0!==t?t: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(e){var t=!1;if("mousemove"===e.type&&(t=e.clientX),"touchstart"===e.type&&e.touches[0]&&(t=e.touches[0].clientX),t){var r=t-e.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(e){switch(e){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 e=0,t=100;this.maxConstraint!==this.minConstraint&&(e=(this.minVal-this.minConstraint)/(this.maxConstraint-this.minConstraint)*100,t=(this.maxVal-this.minConstraint)/(this.maxConstraint-this.minConstraint)*100),this.$sliderTrackRange.css({"--low":e+"%","--high":t+"%"})}},{key:"updateRangeBounds",value:function(e){var t=e.min,r=e.max;if(t=parseFloat(t),r=parseFloat(r),!isNaN(t)&&!isNaN(r)){var i=parseFloat(this.minVal),n=parseFloat(this.maxVal),o="string"==typeof this.dataValue&&this.dataValue.length,a=o&&!isNaN(i)?i:t,s=o&&!isNaN(n)?n:r;this.availableMinConstraint=t,this.availableMaxConstraint=r,this.minConstraint=o?Math.min(t,a):t,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()}}},{key:"inputNumberRangeValidation",value:function(e){return e<this.minConstraint?this.minConstraint:e>this.maxConstraint?this.maxConstraint:e}},{key:"getFormattedData",value:function(e){var t="\\d(?=(\\d{3})+"+(this.format.decimal_num>0?"\\D":"$")+")",r=e.toFixed(Math.max(0,~~this.format.decimal_num));return(this.format.decimal_sep?r.replace(".",this.format.decimal_sep):r).replace(new RegExp(t,"g"),"$&"+(this.format.thousands_sep||""))}},{key:"restoreFormattedData",value:function(e){return"number"==typeof e?e:(this.format.thousands_sep&&(e=e.replace(new RegExp("\\"+this.format.thousands_sep,"g"),"")),this.format.thousands_sep&&(e=e.replace(this.format.decimal_sep,".")),parseFloat(this.removeNonNumeric(e)))}},{key:"removeNonNumeric",value:function(e){return e.replace(/[^\d.-]/g,"")}},{key:"rangeInputUpdateValue",value:function(e,t){if(this.$rangeInputs.length){var r;switch(e){case"min":r=this.$rangeInputMin[0];break;case"max":r=this.$rangeInputMax[0];break;default:return}if(this.rangeInputsSeparators){var i=this.restoreFormattedData(t),n=this.getFormattedData(i);if(isNaN(i))switch(r.value="",e){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(""!==t)r.value=t;else switch(e){case"min":r.value=this.minConstraint;break;case"max":r.value=this.maxConstraint}}}},{key:"activeValue",get:function(){if("string"==typeof this.dataValue){var e=this.dataValue.split("_"),t="";return e[0]&&(this.prefix&&(t+=this.prefix),t+=this.getFormattedData(parseFloat(e[0])),this.suffix&&(t+=this.suffix),e[1]&&(t+=" — ")),e[1]&&(this.prefix&&(t+=this.prefix),t+=this.getFormattedData(parseFloat(e[1])),this.suffix&&(t+=this.suffix)),t}return this.dataValue}}],i&&Dt(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te)),Ut=r(669);function Ht(e){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(e)}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(r),!0).forEach((function(t){zt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zt(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ht(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ht(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt={datePicker:{init:function(e){var t=e.$input,r=e.id,i=void 0!==r&&r,n=e.datepickerOptions,o=void 0!==n&&n,a=f(JetSmartFilterSettings,"misc","week_start")||1,s=Wt(Wt({dateFormat:"mm/dd/yy",firstDay:parseInt(a,10)},Qt.datePicker.texts),{},{beforeShow:function(e,t){i&&t.dpDiv.addClass("jet-smart-filters-datepicker-"+i)}});return t.datepicker(o?Object.assign(s,o):s)},formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm/dd/yy",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qt.datePicker.texts,n={monthNames:i.monthNames,monthNamesShort:i.monthNamesShort,dayNames:i.dayNames,dayNamesShort:i.dayNamesShort};return Ut.datepicker.formatDate(t,e,Object.assign(n,r))},parseDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mm/dd/yy",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Qt.datePicker.texts,n={monthNames:i.monthNames,monthNamesShort:i.monthNamesShort,dayNames:i.dayNames,dayNamesShort:i.dayNamesShort},o={date:Ut.datepicker.parseDate(t,e,Object.assign(n,r)),value:""};return o.value=v(o.date)||"",o},get texts(){var e=f(JetSmartFilterSettings,"datePickerData");return{closeText:e.closeText,prevText:e.prevText,nextText:e.nextText,currentText:e.currentText,monthNames:e.monthNames,monthNamesShort:e.monthNamesShort,dayNames:e.dayNames,dayNamesShort:e.dayNamesShort,dayNamesMin:e.dayNamesMin,weekHeader:e.weekHeader}}},dateRange:{inputSelector:".jet-date-range__input",submitSelector:".jet-date-range__submit",fromSelector:".jet-date-range__from",toSelector:".jet-date-range__to",init:function(e){var t=e.id,r=void 0!==t&&t,i=e.$container,n=void 0!==i&&i,o=e.$dateRangeInput,a=void 0===o?a||n.find(Qt.dateRange.inputSelector):o,s=e.$dateRangeFrom,l=void 0===s?l||n.find(Qt.dateRange.fromSelector):s,u=e.$dateRangeTo,c=void 0===u?c||n.find(Qt.dateRange.toSelector):u,f=e.setFocusOnChange,d=void 0!==f&&f,p=e.onChange,h=void 0===p?h||void 0:p,y=a.data("date-format")||"mm/dd/yy",v=b(a.data("mindate"))||null,m=b(a.data("maxdate"))||null,g={dateFormat:y,minDate:v,maxDate:m},w=Qt.datePicker.init({$input:l,id:r,datepickerOptions:g}).on("change",(function(){var e=Qt.datePicker.parseDate(l.val(),y),t=Qt.datePicker.parseDate(c.val(),y);e.value||t.value?a.val(e.value+"-"+t.value):a.val(""),h&&h("from",e.date),d&&l.focus(),S.datepicker("option","minDate",e.date||v)})),S=Qt.datePicker.init({$input:c,id:r,datepickerOptions:g}).on("change",(function(){var e=Qt.datePicker.parseDate(l.val(),y),t=Qt.datePicker.parseDate(c.val(),y);e.value||t.value?a.val(e.value+"-"+t.value):a.val(""),h&&h("from",e.date),d&&c.focus(),w.datepicker("option","maxDate",t.date||m)}))}}};const Yt=Qt;function Xt(e){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(e)}function Zt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,nr(i.key),i)}}function er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(er=function(){return!!e})()}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function rr(e,t){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rr(e,t)}function ir(e,t,r){return(t=nr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nr(e){var t=function(e){if("object"!=Xt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xt(t)?t:t+""}function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ar=function(){return!!e})()}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}function lr(e,t){return lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lr(e,t)}function ur(e){var t=function(e){if("object"!=or(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==or(t)?t:t+""}var cr=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-date-range");return r=function(e,t,r){return t=sr(t),function(e,t){if(t&&("object"==or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ar()?Reflect.construct(t,r||[],sr(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="date-range",(n=ur(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lr(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(e){function t(e,r,i,n,o,a){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ir(s=function(e,t,r){return t=tr(t),function(e,t){if(t&&("object"==Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,er()?Reflect.construct(t,r||[],tr(e).constructor):t.apply(e,r))}(this,t,[r,e]),"dateRangeInputSelector",Yt.dateRange.inputSelector),ir(s,"dateRangeSubmitSelector",Yt.dateRange.submitSelector),ir(s,"dateRangeFromSelector",Yt.dateRange.fromSelector),ir(s,"dateRangeToSelector",Yt.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(e){13==e.keyCode&&s.emitFiterApply()})),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rr(e,t)}(t,e),r=t,(i=[{key:"initDateRangeUI",value:function(){var e=this;Yt.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(){e.processData(),e.emitFiterChange()}})}},{key:"addFilterChangeEvent",value:function(){var e=this;this.$dateRangeSubmit.on("click",(function(){e.emitFiterApply()}))}},{key:"removeChangeEvent",value:function(){this.$dateRangeSubmit.off()}},{key:"processData",value:function(){this.dataValue=this.$dateRangeInput.val()}},{key:"setData",value:function(e){if(this.reset(),e){this.$dateRangeInput.val(e);var t=e.split("-");t[0]&&this.$dateRangeFrom.val(Yt.datePicker.formatDate(new Date(t[0].replaceAll(".","/")),this.dateFormat)),t[1]&&this.$dateRangeTo.val(Yt.datePicker.formatDate(new Date(t[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("-"," — ")}}])&&Zt(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te)),fr=r(669);function dr(e){return dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dr(e)}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function hr(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,gr(i.key),i)}}function yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yr=function(){return!!e})()}function vr(e){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vr(e)}function mr(e,t){return mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mr(e,t)}function br(e,t,r){return(t=gr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gr(e){var t=function(e){if("object"!=dr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dr(t)?t:t+""}var wr=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=e.find(".jet-date-period");return br(r=function(e,t,r){return t=vr(t),function(e,t){if(t&&("object"==dr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yr()?Reflect.construct(t,r||[],vr(e).constructor):t.apply(e,r))}(this,t,[i,e]),"name","date-period"),br(r,"datepickerButtonSelector",".jet-date-period__datepicker-button"),br(r,"datepickerInputSelector",".jet-date-period__datepicker-input"),br(r,"prevPeriodButtonSelector",".jet-date-period__prev"),br(r,"nextPeriodButtonSelector",".jet-date-period__next"),br(r,"datepickerOpenedClass","jet-date-period-datepicker-opened"),br(r,"periodIsSetClass","jet-date-period-is-set"),br(r,"periodStartClass","jet-date-period-start"),br(r,"periodSeparatorClass","jet-date-period-separator"),br(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=b(r.$datepickerInput.data("mindate")),r.maxDate=b(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=g(r.initDatepickerWeekHover,100),r.initDatepicker(),r.initEvent(),r.processData(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mr(e,t)}(t,e),r=t,i=[{key:"initDatepicker",value:function(){var e=this,t={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&&(t.minDate=this.minDate),this.maxDate&&(t.maxDate=this.maxDate),!fr.fn.airDatepicker.language.jsf){var r=f(JetSmartFilterSettings,"datePickerData");fr.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}}t.onSelect=function(t,r,i){if(r){var n,o=r;switch(e.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],(!e.minDate||e.minDate<o)&&(!e.maxDate||e.maxDate>n)&&(e.periodCustomRange=Math.round(Math.abs((n-o)/864e5)));break;default:return void e.$datepickerInput.val(v(r)).trigger("change")}e.minDate&&e.minDate>o&&(o=e.minDate),e.maxDate&&e.maxDate<n&&(n=e.maxDate),e.$datepickerInput.val(v(o)+"-"+v(n)).trigger("change")}},t.onShow=function(t){e.id&&t.$datepicker.addClass("jet-date-period-"+e.id),e.$filter.addClass(e.datepickerOpenedClass),t.$datepicker.addClass("jet-date-period-"+e.periodType)},t.onHide=function(t){e.id&&t.$datepicker.removeClass("jet-date-period-"+e.id),e.$filter.removeClass(e.datepickerOpenedClass),t.$datepicker.removeClass("jet-date-period-"+e.periodType)},t.onRenderCell=function(t,r){if("week"===e.periodType&&"day"===r&&(e.debounceInitDatepickerWeekHover(),e.isDateInRange(t))){var i="-week-selected-";return e.isDateFirstInRange(t)&&(i+=" -week-start-selected-"),e.isDateLastInRange(t)&&(i+=" -week-end-selected-"),{classes:i}}},"month"===this.periodType&&(t.view="months",t.minView="months"),"year"===this.periodType&&(t.view="years",t.minView="years"),"range"===this.periodType&&(t.range=!0),this.$datepicker=this.$datepickerInput.airDatepicker(t),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(){e.datepicker.show()})),this.$prevPeriodBtn.on("click",(function(){e.prevPeriod()})),this.$nextPeriodBtn.on("click",(function(){e.nextPeriod()})),this.$datepickerInput.on("change",(function(t){t.target.value!==e.dataValue&&(e.processData(),e.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(e){if(e){if(this.$datepickerInput.val(e),this.processData(),this.datePeriod.length){var t="range"===this.periodType&&2===this.datePeriod.length?[this.datePeriod[0].date,this.datePeriod[1].date]:this.datePeriod[0].date;this.datepicker.selectDate(t)}}else this.reset()}},{key:"reset",value:function(){this.$datepickerInput.val(""),this.processData();var e=this.datepicker.minDate,t=this.datepicker.maxDate,r=new Date;e&&r<e&&(r=e),t&&r>t&&(r=t),this.datepicker.clear(),this.datepicker.date=r}},{key:"activeValue",get:function(){var e=f(this.datePeriod,"0","date"),t=!!e&&this.getFormattedDate(e,"start"),r=!!this.startEndDateEnabled&&f(this.datePeriod,"1","date"),i=!!r&&this.getFormattedDate(r,"end");return t&&i?t+this.dateSeparator+i:t}},{key:"setPeriod",value:function(){var e=this,t=this.$datepickerInput.val(),r=[];t&&t.split("-",2).forEach((function(e){r.push(e)})),this.datePeriod=[],r.forEach((function(t){var r=new Date(t.replaceAll(".","/"));r instanceof Date&&e.datePeriod.push({date:r,value:t})})),this.renderPeriod()}},{key:"prevPeriod",value:function(){var e=this.datePeriod[0]||!1;if(e&&!(this.minDate&&this.minDate>=e.date)){var t=m(e.date,-1),r=t;"week"===this.periodType?r=m(t,-6):"month"===this.periodType?r=new Date(t.getFullYear(),t.getMonth(),1):"year"===this.periodType?r=new Date(t.getFullYear(),0,1):"range"===this.periodType&&(r=m(new Date(t.getTime()),-this.periodCustomRange)),this.minDate&&r<this.minDate&&(r=this.minDate),this.datepicker.selectDate("range"===this.periodType?[r,t]:r)}}},{key:"nextPeriod",value:function(){var e=this.datePeriod[1]||this.datePeriod[0]||!1;if(e&&!(this.maxDate&&this.maxDate<=e.date)){var t=m(e.date),r=t;"week"===this.periodType?r=m(new Date(t.getTime()),6):"month"===this.periodType?r=new Date(t.getFullYear(),t.getMonth()+1,0):"year"===this.periodType?r=new Date(t.getFullYear(),11,31):"range"===this.periodType&&(r=m(new Date(t.getTime()),this.periodCustomRange)),this.maxDate&&r>this.maxDate&&(r=this.maxDate),this.datepicker.selectDate("range"===this.periodType?[t,r]:t)}}},{key:"renderPeriod",value:function(){if(!this.datePeriod.length)return this.$filter.removeClass(this.periodIsSetClass),void this.$datepickerBtn.html(this.btnPlaceholder);var e=f(this.datePeriod,"0","date"),t=e?'<div class="'.concat(this.periodStartClass,'">').concat(this.getFormattedDate(e,"start"),"</div>"):"",r=!!this.startEndDateEnabled&&f(this.datePeriod,"1","date"),i=r?'<div class="'.concat(this.periodEndClass,'">').concat(this.getFormattedDate(r,"end"),"</div>"):"",n=e&&r?'<div class="'.concat(this.periodSeparatorClass,'">').concat(this.dateSeparator,"</div>"):"";this.$filter.addClass(this.periodIsSetClass),this.$datepickerBtn.html(t+n+i)}},{key:"getFormattedDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="mm/dd/yy";return this.dateFormat&&(this.startEndDateEnabled?("start"!==t&&t||!this.dateFormat.start||(r=this.dateFormat.start),"end"===t&&this.dateFormat.end&&(r=this.dateFormat.end)):r=this.dateFormat),this.datepicker.formatDate(r,e)}},{key:"isDateInRange",value:function(e){if(!(e instanceof Date)||this.datePeriod.length<2)return!1;var t=e.getTime(),r=this.datePeriod[0].date.getTime(),i=this.datePeriod[1].date.getTime();return t>=r&&t<=i}},{key:"isDateFirstInRange",value:function(e){return!!(e instanceof Date&&this.datePeriod[0])&&e.getTime()===this.datePeriod[0].date.getTime()}},{key:"isDateLastInRange",value:function(e){return!!(e instanceof Date&&this.datePeriod[1])&&e.getTime()===this.datePeriod[1].date.getTime()}},{key:"initDatepickerWeekHover",value:function(){var e=this.datepicker.$content.find(".datepicker--cells-days .datepicker--cell-day"),t=[];e.off().on({mouseenter:function(r){var i=function(e){return function(e){if(Array.isArray(e))return pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pr(e,t):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.")}()}(r.target.parentNode.children).indexOf(r.target);if(!(i<0))for(var n=0;n<7;n++){var o=e.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-"),t.push(o)}},mouseleave:function(e){t.forEach((function(e){e.removeClass("-week-hover- -week-start-hover- -week-end-hover-")})),t=[]}})}}],i&&hr(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te);function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jr=function(){return!!e})()}function kr(e){return kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kr(e)}function Pr(e,t){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pr(e,t)}function Or(e){var t=function(e){if("object"!=Sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Sr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sr(t)?t:t+""}var _r=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-radio-list");return r=function(e,t,r){return t=kr(t),function(e,t){if(t&&("object"==Sr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jr()?Reflect.construct(t,r||[],kr(e).constructor):t.apply(e,r))}(this,t,[e,a,a.find(":radio")]),i=r,o="radio",(n=Or(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 Ke(r),r.collapsibleList=new Xe(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pr(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(gt),xr=r(669);function Cr(e){return Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(e)}function $r(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Tr(i.key),i)}}function Ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ir=function(){return!!e})()}function Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}function Tr(e){var t=function(e){if("object"!=Cr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cr(t)?t:t+""}function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}function Ar(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ar=function(){return!!e})()}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Vr(e,t){return Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vr(e,t)}function qr(e){var t=function(e){if("object"!=Dr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dr(t)?t:t+""}var Br=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-rating");return r=function(e,t,r){return t=Rr(t),function(e,t){if(t&&("object"==Dr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ar()?Reflect.construct(t,r||[],Rr(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="rating",(n=qr(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vr(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(e){function t(e,r,i){var n,o,a,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,r){return t=Fr(t),function(e,t){if(t&&("object"==Cr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ir()?Reflect.construct(t,r||[],Fr(e).constructor):t.apply(e,r))}(this,t,[r,e]),o=n,s=".jet-rating-star__input",(a=Tr(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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Er(e,t)}(t,e),r=t,(i=[{key:"initEvent",value:function(){var e=this;this.$starsRating.off("click"),this.$starsRating.on("click",(function(t){var r=xr(t.target);r.hasClass("is-checked")?e.$starsRating.prop("checked",!1).removeClass("is-checked"):(e.$starsRating.removeClass("is-checked"),r.addClass("is-checked")),e.processData(),e.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(e){this.reset(),e&&(this.$checked.removeClass("is-checked"),this.$starsRating.filter('[value="'+e+'"]').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")}}])&&$r(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te));function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function Nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nr=function(){return!!e})()}function Mr(e){return Mr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mr(e)}function Gr(e,t){return Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gr(e,t)}function Jr(e){var t=function(e){if("object"!=Lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lr(t)?t:t+""}var Ur=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-color-image-list");return r=function(e,t,r){return t=Mr(t),function(e,t){if(t&&("object"==Lr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nr()?Reflect.construct(t,r||[],Mr(e).constructor):t.apply(e,r))}(this,t,[e,a,a.find(".jet-color-image-list__input")]),i=r,o="visual",(n=Jr(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 Ke(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gr(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Me);function Hr(e){return Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(e)}function Kr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kr=function(){return!!e})()}function Wr(e){return Wr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wr(e)}function zr(e,t){return zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zr(e,t)}function Qr(e){var t=function(e){if("object"!=Hr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hr(t)?t:t+""}var Yr=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-alphabet-list");return r=function(e,t,r){return t=Wr(t),function(e,t){if(t&&("object"==Hr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kr()?Reflect.construct(t,r||[],Wr(e).constructor):t.apply(e,r))}(this,t,[e,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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zr(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Me);function Xr(e){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(e)}function Zr(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,oi(i.key),i)}}function ei(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ei=function(){return!!e})()}function ti(){return ti="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ri(e)););return e}(e,t);if(i){var n=Object.getOwnPropertyDescriptor(i,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},ti.apply(null,arguments)}function ri(e){return ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ri(e)}function ii(e,t){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ii(e,t)}function ni(e,t,r){return(t=oi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oi(e){var t=function(e){if("object"!=Xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xr(t)?t:t+""}function ai(e){return ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ai(e)}function si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(si=function(){return!!e})()}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},li(e)}function ui(e,t){return ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ui(e,t)}function ci(e){var t=function(e){if("object"!=ai(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ai(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ai(t)?t:t+""}var fi=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-search-filter");return r=function(e,t,r){return t=li(t),function(e,t){if(t&&("object"==ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,si()?Reflect.construct(t,r||[],li(e).constructor):t.apply(e,r))}(this,t,[e,a]),i=r,o="search",(n=ci(n="name"))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ui(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(function(e){function r(e,i,n,o,a){var s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ni(s=function(e,t,r){return t=ri(t),function(e,t){if(t&&("object"==Xr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ei()?Reflect.construct(t,r||[],ri(e).constructor):t.apply(e,r))}(this,r,[i,e]),"searchInputSelector",".jet-search-filter__input"),ni(s,"searchSubmitSelector",".jet-search-filter__submit"),ni(s,"searchClearSelector",".jet-search-filter__input-clear"),ni(s,"searchLoadingClass","jet-filters-single-loading"),ni(s,"inputNotEmptyClass","jet-input-not-empty"),ni(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(),t.subscribe("ajaxFilters/end-loading",(function(){s.$filter.removeClass(s.searchLoadingClass)})),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}(r,e),i=r,n=[{key:"addFilterChangeEvent",value:function(){var e=this;this.$searchSubmit.on("click",(function(){e.wasChanged()})),this.$searchClear.on("click",(function(){e.$searchInput.val(""),e.$searchInput.removeClass(e.inputNotEmptyClass),e.wasChanged()})),this.$searchInput.on("keyup",(function(r){var i=r.target.value;i!==e.dataValue&&(t.publish("fiter/syncSameFilters",e),"ajax-ontyping"===e.applyType?e.minLettersCount<=i.length?(e.emitFiterChangeWithDelay(),e.$searchInput.addClass(e.inputNotEmptyClass)):(e.$searchInput.hasClass(e.inputNotEmptyClass)&&e.emitFiterChangeWithDelay(),e.$searchInput.removeClass(e.inputNotEmptyClass)):13===r.keyCode&&e.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(e){this.reset(),e&&(this.$searchInput.val(e),"ajax-ontyping"===this.applyType&&this.minLettersCount<=e.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 e,t,i;this.processData(),(e=r,t=this,"function"==typeof(i=ti(ri(1&3?e.prototype:e),"wasChanged",t))?function(e){return i.apply(t,e)}:i)([this.filterGroup.isProviderExist])}},{key:"emitFiterChangeWithDelay",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;clearTimeout(this.delayID),this.delayID=setTimeout((function(){e.$filter.addClass(e.searchLoadingClass),e.processData(),e.wasChanged()}),t)}},{key:"syncWithSameFilter",value:function(e){var t=e.$searchInput.val();this.$searchInput.val()!==t&&this.$searchInput.val(t)}},{key:"minLettersCount",get:function(){return this.$filter.data("min-letters-count")}},{key:"activeValue",get:function(){return this.dataValue}}],n&&Zr(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Te));function di(e){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},di(e)}function pi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pi=function(){return!!e})()}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}function yi(e,t){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yi(e,t)}function vi(e){var t=function(e){if("object"!=di(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=di(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==di(t)?t:t+""}var mi=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i,n,o,a=e.find(".jet-sorting");return r=function(e,t,r){return t=hi(t),function(e,t){if(t&&("object"==di(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pi()?Reflect.construct(t,r||[],hi(e).constructor):t.apply(e,r))}(this,t,[e,a,a.find(".jet-sorting-select")]),i=r,o="sorting",(n=vi(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(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yi(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(gt);function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function gi(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ki(i.key),i)}}function wi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wi=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function ji(e,t){return ji=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ji(e,t)}function ki(e){var t=function(e){if("object"!=bi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=bi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bi(t)?t:t+""}var Pi=function(e){function r(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n,o,a,s=e.find(".apply-filters");return i=function(e,t,r){return t=Si(t),function(e,t){if(t&&("object"==bi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wi()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}(this,r,[s,e]),n=i,a="button-apply",(o=ki(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()})),t.subscribe("filters/processed",(function(e){i.filterGroup&&i.filterGroup.isCurrentProvider(e)&&i.updateState()})),t.subscribe("fiter/change",(function(e){i.filterGroup&&i.filterGroup.isCurrentProvider(e)&&i.updateState()})),t.subscribe("fiters/remove",(function(e){i.filterGroup&&i.filterGroup.isCurrentProvider(e)&&setTimeout((function(){i.updateState()}))})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}(r,e),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 e=this.filterGroup.filters.filter((function(e){return!["button-apply","button-remove","pagination"].includes(e.name)&&void 0!==e.dataValue})),t=function(e){return"location-distance"===e.name?e.hasLocation():e.dataValue};switch(this.activeState){case"any":return e.some(t);case"all":return e.every(t);default:return!0}}}],n&&gi(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Te);function Oi(e){return Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oi(e)}function _i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ii(i.key),i)}}function xi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xi=function(){return!!e})()}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ci(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$i(e,t)}function Ii(e){var t=function(e){if("object"!=Oi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Oi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oi(t)?t:t+""}var Fi=function(e){function r(e){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n,o,a,s=e.find(".jet-remove-all-filters__button");return i=function(e,t,r){return t=Ci(t),function(e,t){if(t&&("object"==Oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xi()?Reflect.construct(t,r||[],Ci(e).constructor):t.apply(e,r))}(this,r,[s,e.find(".jet-remove-all-filters")]),n=i,a="button-remove",(o=Ii(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()})),t.subscribe("filters/processed",(function(e){i.isCurrentProvider(e)&&setTimeout((function(){i.updateVisibility()}))})),t.subscribe("fiter/change",(function(e){(i.isCurrentProvider(e)||i.isAdditionalProvider(e))&&setTimeout((function(){i.updateVisibility()}))})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$i(e,t)}(r,e),i=r,n=[{key:"updateVisibility",value:function(){var e=this.filterGroup;if(e){var t=ae("filters/button-remove/not-removable-filters",["pagination"],this,e),r=e.uniqueFilters.some((function(e){return e.data&&e.reset&&!t.includes(e.name)}));r?(this.show(),this.$elementorWidget.removeClass("hide-widget")):(this.hide(),this.$elementorWidget.addClass("hide-widget"))}}}],n&&_i(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Te),Ei=r(669),Ti=r(669);const Di={init:function(){var e=this;this.subscribers=[],this.preloaderTemplate=f(JetSmartFilterSettings,"plugin_settings","provider_preloader"),t.subscribe("ajaxFilters/start-loading",(function(t,r){e.action(e.currentElements(t,r),"show")})),t.subscribe("ajaxFilters/end-loading",(function(t,r){e.action(e.currentElements(t,r),"hide")}))},subscribe:function(e,t){var r=t.provider,i=void 0!==r&&r,n=t.queryId,o=void 0===n?"default":n,a=t.preloaderClass,s=void 0===a?"jet-filters-loading":a;i&&this.subscribers.push({target:e,provider:i,queryId:o,preloaderClass:s})},action:function(e,t){var r=this;e.forEach((function(e){var i=e.target,n=e.preloaderClass,o=i instanceof Ei?i:Ti(i);switch(t){case"show":o.addClass(n),e.$preloader=o.append(r.preloaderTemplate);break;case"hide":o.removeClass(n)}}))},currentElements:function(e,t){return this.subscribers.filter((function(r){return r.provider===e&&r.queryId===t}))}},Ai=function(e,t){return e.replace(/\/%\s*\$value\s*%\//g,t)};var Ri=r(669);function Vi(e){return Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vi(e)}function qi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Bi(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Ji(i.key),i)}}function Li(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Li=function(){return!!e})()}function Ni(e){return Ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ni(e)}function Mi(e,t){return Mi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mi(e,t)}function Gi(e,t,r){return(t=Ji(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ji(e){var t=function(e){if("object"!=Vi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vi(t)?t:t+""}var Ui=function(e){function r(e){var i,n,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Gi((n=this,a=[e],o=Ni(o=r),i=function(e,t){if(t&&("object"==Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(n,Li()?Reflect.construct(o,a||[],Ni(n).constructor):o.apply(n,a))),"name","pagination"),Gi(i,"paginationListClass","jet-filters-pagination"),Gi(i,"paginationItemClass","jet-filters-pagination__item"),Gi(i,"paginationLoadMoreClass","jet-filters-pagination__load-more"),Gi(i,"paginationCurrentClass","jet-filters-pagination__current"),Gi(i,"paginationDisabledClass","jet-filters-pagination__disabled"),Gi(i,"navClass","prev-next"),Gi(i,"prevClass","prev"),Gi(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(e,{provider:i.provider,queryId:i.queryId}),t.subscribe("ajaxFilters/end-loading",(function(e,t){i.isCurrentProvider({provider:e,queryId:t})&&i.update()})),t.subscribe("pagination/change",(function(e){i.isCurrentProvider(e)&&e.data!==i.data&&(i.dataValue=e.data)})),document.addEventListener("jet-smart-filters/inited",(function(){i.buildPagination()})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mi(e,t)}(r,e),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 e=document.createElement("nav");e.className=this.paginationListClass,e.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||(e.appendChild(this.buildDotsItem()),r=!0):(i===this.pageIndex||this.moreActiveIndexes.includes(i)?e.appendChild(this.buildPaginationItem("current",i)):e.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",""),e.prepend(a)}if(!this.hideInactiveNav||!o){var s=this.buildPaginationItem("next",this.nextText,this.onPaginationItemClick.bind(this));o&&s.setAttribute("disabled",""),e.append(s)}}this.isLoadMore&&this.pageIndex<this.pagesCount&&e.appendChild(this.buildLoadMore()),this.$filter.html(e),t.publish("pagination/itemsBuilt",this)}}},{key:"buildPaginationItem",value:function(e,t,r){var i;i=this.templates.item?Ai(this.templates.item,t):t;var n=document.createElement("current"===e?"div":"a");if(n.className=this.paginationItemClass,n.innerHTML=i,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&"current"!==e&&(n.tabIndex=0),"prev"===e||"next"===e){n.dataset.value=e,n.classList.add(this.navClass),n.classList.add(this[e+"Class"]);var o=this.pageIndex;"prev"===e&&(n.setAttribute("rel","prev"),o=Math.max(1,this.pageIndex-1)),"next"===e&&(n.setAttribute("rel","next"),o=Math.min(this.pagesCount,this.pageIndex+1)),n.href=this.getPageUrl(o)}else"current"===e?(n.dataset.value=t,n.setAttribute("aria-current","page"),n.classList.add(this.paginationCurrentClass)):(n.dataset.value=t,n.href=this.getPageUrl(t));return Ri(n).on("click",r),n}},{key:"buildDotsItem",value:function(){var e,t=document.createElement("div");return e=this.templates.dots?this.templates.dots:"...",t.className=this.paginationItemClass,t.innerHTML=e,t}},{key:"buildLoadMore",value:function(){var e,t=document.createElement("div");return e=this.templates.load_more?Ai(this.templates.load_more,this.loadMoreText):this.loadMoreText,t.className=this.paginationLoadMoreClass,t.setAttribute("role","button"),t.innerHTML=e,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&(t.tabIndex=0),Ri(t).on("click",this.onPaginationLoadMoreClick.bind(this)),t}},{key:"updateUrlParams",value:function(){var e=this.filterGroup.getUrl(!0);e&&"plain"===this.filterGroup.urlType&&e.includes("pagenum=")&&(e=e.replace(/([?&])pagenum=\d+&?/,"$1").replace(/[?&]$/,"")),e&&"permalink"===this.filterGroup.urlType&&e.includes("/pagenum/")&&(e=e.replace(/\/pagenum\/\d+\/?/,"/").replace(/\/\/+/g,"/")),this.currentUrlParams=e}},{key:"getPageUrl",value:function(e){var t=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?t+=this.currentUrlParams+"&pagenum="+e:t+="?jsf="+r+"&pagenum="+e;break;case"permalink":this.currentUrlParams?t+=this.currentUrlParams+"pagenum/"+e+"/":t+="jsf/"+r+"/pagenum/"+e+"/"}return t}},{key:"onPaginationItemClick",value:function(e){if(!this.isAjaxLoading){e.preventDefault();var r=Ri(e.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(),t.publish("pagination/change",this))}}},{key:"onPaginationLoadMoreClick",value:function(e){if(!this.isAjaxLoading){var r=this.dataValue;++r<=this.pagesCount&&(this.moreActiveIndexes.push(this.dataValue),this.dataValue=r,this.updateActivePagesProviderProps(),t.publish("pagination/load-more",this))}}},{key:"updateActivePagesProviderProps",value:function(){if(f(JetSmartFilterSettings,"props",this.provider,this.queryId)){var e=window.JetSmartFilterSettings.props[this.provider][this.queryId];this.moreActiveIndexes.length?e.pages=[].concat(function(e){if(Array.isArray(e))return qi(e)}(t=this.moreActiveIndexes)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return qi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qi(e,t):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.")}(),[this.dataValue]):delete e.pages}var t}},{key:"update",value:function(){var e=this.maxNumPagesProp,t=this.pageProp;e===this.pagesCount&&t===this.pageIndex||(this.pagesCount=e,this.pageIndex=t,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"}}])&&Bi(i.prototype,n),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,n}(Te),Hi=r(669);function Ki(e){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(e)}function Wi(e){return function(e){if(Array.isArray(e))return zi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zi(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zi(e,t):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.")}()}function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Qi(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Yi(i.key),i)}}function Yi(e){var t=function(e){if("object"!=Ki(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ki(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ki(t)?t:t+""}var Xi=function(){return e=function e(r){var i,n,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i=this,o={},(n=Yi(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=j(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(),t.subscribe("activeItems/change",(function(e,t,r){a.isCurrentProvider({provider:t,queryId:r})&&(a.addToCollection(e,t+"/"+r),a.buildItems())})),t.subscribe("activeItems/rebuild",(function(e,t){a.isCurrentProvider({provider:e,queryId:t})&&a.buildItems()}))},r=[{key:"addToCollection",value:function(e,t){var r=e.filter((function(e){return!e.isAdditional}));this.isThereHierarchicalFilters(r)&&(r=this.groupHierarchicalFilters(r)),this.activeItemsСollection[t]=r}},{key:"buildItems",value:function(){var e=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(){t.publish("fiters/remove",e)}})),r.forEach((function(t){var r;(r=Array.isArray(t)?e.groupedItem(t):e.isSeparate(t)?e.separatedItems(t):e.regularItem(t))&&i.appendChild(r)})),this.$activeItemsContainer.html(i),t.publish("activeItems/itemsBuilt",this)}},{key:"buildItem",value:function(e){var t=e.value,r=e.label,i=void 0!==r&&r,n=e.itemClass,o=void 0===n?this.itemClass:n,a=e.templates,s=void 0===a?this.templates:a,l=e.callback,u=void 0===l?function(){}:l,c="";s?(i&&s.label&&(c+=Ai(s.label,i)),k(t)&&s.value&&(c+=Ai(s.value,t)),s.remove&&(c+=s.remove)):c=t;var d=document.createElement("div");return d.className=o,d.innerHTML=c,"true"===f(JetSmartFilterSettings,"plugin_settings","use_tabindex")&&(d.tabIndex=0),Hi(d).one("click",u),d}},{key:"regularItem",value:function(e){var t=this,r=P(e.activeValue),i=e.activeLabel;return!!k(r)&&this.buildItem({value:r,label:i,callback:function(){t.removeFilter(e)}})}},{key:"separatedItems",value:function(e){var t=this,r=document.createDocumentFragment();return e.data.forEach((function(i){var n=P(e.getValueLabel(i)),o=e.activeLabel;k(n)&&r.appendChild(t.buildItem({value:n,label:o,callback:function(){t.removeFilter(e,i)}}))})),r}},{key:"groupedItem",value:function(e){var t,r=this,i=[];e.forEach((function(e){var r=e.activeValue,n=e.activeLabel;k(r)&&i.push(r),!t&&n&&(t=n)}));var n=i.join(" > ");return this.buildItem({value:n,label:t,callback:function(){r.removeFilter(e[0])}})}},{key:"removeFilter",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.reset(r);var i=e.copy;i.applyType=this.applyType,t.publish("fiter/change",i),t.publish("fiter/apply",i)}},{key:"setAllProviders",value:function(){var e=this,t=(this.additionalProviders&&Array.isArray(this.additionalProviders)?this.additionalProviders:[]).map((function(t){var r=t.split("/",2);return r[0]+"/"+(r[1]||e.queryId)}));this.allProviders=Wi(new Set([this.providerKey].concat(Wi(t))))}},{key:"isSeparate",value:function(e){return!(!this.separateMultiple||!Array.isArray(e.data))}},{key:"isThereHierarchicalFilters",value:function(e){return e.some((function(e){return e.isHierarchy}))}},{key:"isCurrentProvider",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{provider:!1,queryId:!1},t=e.provider,r=void 0!==t&&t,i=e.queryId,n=void 0===i?"default":i;return!!r&&!!this.allProviders.includes(r+"/"+n)}},{key:"activeItems",get:function(){var e=[];for(var t in this.activeItemsСollection)e=[].concat(Wi(e),Wi(this.activeItemsСollection[t]));return e}},{key:"containerElement",get:function(){return!!this.$activeItemsContainer&&!!this.$activeItemsContainer.length&&this.$activeItemsContainer.get(0)}},{key:"groupHierarchicalFilters",value:function(e){for(var t=[];e.length;){for(var r=void 0,i=e.shift(),n=i.filterId,o=0;o<e.length;o++){var a;e[o].filterId===n&&(r||(r=[i]),(a=r).push.apply(a,Wi(e.splice(o,1))),o--)}r?t.push(r):t.push(i)}return t}}],r&&Qi(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r}();function Zi(e){return Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zi(e)}function en(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(en=function(){return!!e})()}function tn(e){return tn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tn(e)}function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rn(e,t)}function nn(e){var t=function(e){if("object"!=Zi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zi(t)?t:t+""}function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(an=function(){return!!e})()}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sn(e)}function ln(e,t){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ln(e,t)}function un(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=on(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:t+""}function cn(e){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cn(e)}function fn(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,yn(i.key),i)}}function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dn=function(){return!!e})()}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pn(e)}function hn(e,t){return hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hn(e,t)}function yn(e){var t=function(e){if("object"!=cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cn(t)?t:t+""}const vn={BasicFilter:Te,CheckBoxes:nt,CheckRange:ct,Select:Ot,SelectHierarchical:Et,Range:Jt,DateRange:cr,DatePeriod:wr,Radio:_r,Rating:Br,Visual:Ur,Alphabet:Yr,Search:fi,Sorting:mi,ButtonApply:Pi,ButtonRemove:Fi,Pagination:Ui,ActiveFilters:function(e){function t(e){var r,i,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){(t=nn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}((i=this,o=[e,{templateName:"active_filter",listClass:"jet-active-filters__list",labelClass:"jet-active-filters__title",itemClass:"jet-active-filter"}],n=tn(n=t),r=function(e,t){if(t&&("object"==Zi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(i,en()?Reflect.construct(n,o||[],tn(i).constructor):n.apply(i,o))),"name","active-filters"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rn(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Xi),ActiveTags:function(e){function t(e){var r,i,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){(t=un(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}((i=this,o=[e,{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=sn(n=t),r=function(e,t){if(t&&("object"==on(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(i,an()?Reflect.construct(n,o||[],sn(i).constructor):n.apply(i,o))),"name","active-tags"),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ln(e,t)}(t,e),r=t,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(Xi),Hidden:function(e){function t(e){var r,i,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){(t=yn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}((i=this,n=t,o=[e.find(".jet-hidden-data"),e],n=pn(n),r=function(e,t){if(t&&("object"==cn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(i,dn()?Reflect.construct(n,o||[],pn(i).constructor):n.apply(i,o))),"name","hidden"),r.urlParams=h(),r.processFilter(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}(t,e),r=t,(i=[{key:"processFilter",value:function(){var e=this,t="plain_query"!==this.queryType?this.queryType.replace(/_query$/,""):this.queryType;this.urlParams.hasOwnProperty(t)&&this.urlParams[t].split(";").forEach((function(t){var r=t.split(":");r[0]===e.queryVar&&void 0!==r[1]&&e.setData(r[1])}))}},{key:"setData",value:function(e){e?this.dataValue=e:this.reset()}},{key:"reset",value:function(){this.dataValue=!1}},{key:"urlData",get:function(){return this.$filter.data("url-value")||this.dataValue}}])&&fn(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i}(Te)};var mn=r(669);const bn={archivePostsClass:".elementor-widget-archive-posts",defaultPostsClass:".elementor-widget-posts",postsSettings:{},skin:"archive_classic",addSubscribers:function(){t.subscribe("provider/content-rendered",this.eproPostRendered.bind(this))},eproPostRendered:function(e,t){if("epro-archive"===e||"epro-posts"===e){var r=this.defaultPostsClass,i=null,n="posts";"epro-archive"===e&&(r=this.archivePostsClass,n="archive-posts"),i=t.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(e){var t,r=e.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(t=o>=2,r.toggleClass("elementor-posts-masonry",t),t){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(e){var t=e.find(".elementor-post__thumbnail"),r=t.find("img")[0];if(r){var i=t.outerHeight()/t.outerWidth(),n=r.naturalHeight/r.naturalWidth;t.toggleClass("elementor-fit-height",n<i)}},fitImages:function(e){var t=this,r=getComputedStyle(e[0],":after").content;e.find(".elementor-posts-container").toggleClass("elementor-has-item-ratio",!!r.match(/\d/)),e.find(".elementor-post").each((function(e,r){var i=mn(r),n=i.find(".elementor-post__thumbnail img");t.fitImage(i),n.on("load",(function(){t.fitImage(i)}))}))}};var gn=r(669),wn={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(e){for(var t in wn.filtersList)if("jet-smart-filters-"+e===wn.filtersList[t])return t},filters:vn,filterNames:[],filterGroups:{},initFilter:function(e){if(!e.is("[jsf-filter]")){e.attr("jsf-filter","");var t=null;for(var r in wn.filtersList)e.hasClass(wn.filtersList[r])&&(t=r);if(t){var i=new wn.filters[t](e);i.isHierarchy?i.filters.forEach((function(e){jn(e)})):jn(i);var n=e.data("additional-providers")||e.find("[data-additional-providers]").data("additional-providers");n&&!Sn.includes(t)&&n.forEach((function(e){var t=e.split("/",2),r=t[0],n=t[1]||i.queryId;i.isHierarchy?i.filters.forEach((function(e){jn(kn(r,n,e))})):jn(kn(r,n,i))}))}}},reinitFilters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;for(var t in e&&!Array.isArray(e)&&(e=[e]),wn.filterGroups)wn.filterGroups[t].reinitFilters(e)},findFilters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gn("html");return gn("."+Object.values(wn.filtersList).join(", ."),e)},filtersUI:Yt,setIndexedData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wn.filterGroups[e]&&wn.filterGroups[e].indexingFilters){var r=f(JetSmartFilterSettings,"ajaxurl"),i={action:"jet_smart_filters_get_indexed_data",provider:e,query_args:t,indexing_filters:wn.filterGroups[e].indexingFilters};gn.ajax({url:r,type:"POST",dataType:"json",data:i}).done((function(t){t.data&&(window.JetSmartFilterSettings.jetFiltersIndexedData||(window.JetSmartFilterSettings.jetFiltersIndexedData={}),window.JetSmartFilterSettings.jetFiltersIndexedData[e]||(window.JetSmartFilterSettings.jetFiltersIndexedData[e]={}),window.JetSmartFilterSettings.jetFiltersIndexedData[e]=t.data,wn.filterGroups[e]&&wn.filterGroups[e].filters.forEach((function(e){e.indexer&&e.indexer.update()})))}))}},events:t},Sn=["ActiveFilters","ActiveTags","ButtonRemove"];function jn(e){var t,r,i;e.provider&&e.queryId&&(t=e.provider,r=e.queryId,i=t+"/"+r,wn.filterGroups[i]||(wn.filterGroups[i]=new xe(t,r)),wn.filterGroups[i]).addFilter(e)}function kn(e,t,r){var i={isAdditional:!0,name:r.name,path:r.path,provider:e,queryId:t,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 Pn in window.JetSmartFilters=wn,gn(document).ready((function(){var e=new Event("jet-smart-filters/before-init");document.dispatchEvent(e),window.elementorFrontend&&bn.addSubscribers(),Di.init();var t=wn.findFilters();t.each((function(e){var r=t.eq(e);wn.initFilter(r)}));var r=new Event("jet-smart-filters/inited");document.dispatchEvent(r)})),wn.filtersList){var On=wn.filtersList[Pn];wn.filterNames.push(On.replace("jet-smart-filters-",""))}const _n=wn;var xn=r(669);const Cn={initFilter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:xn("body");switch(e){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(e){var r=t.find("."+window.JetSmartFilters.filtersList[e]);r.length&&r.each((function(t){new window.JetSmartFilters.filters[e](r.eq(t))}))}},intiAllFilters:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xn("body");window.JetSmartFilters.filterNames.forEach((function(r){e.initFilter(r,t)}))}};t.subscribe("ajaxFilters/updated",(function(e,t,r){var i=f(JetSmartFilters,"filterGroups",e+"/"+t);if(i&&r){var n=f(r,"dynamic_range");n&&function(e,t){for(var r in e.filters){var i=e.filters[r];"range"===i.name&&t[i.queryVar]&&i.updateRangeBounds(t[i.queryVar])}}(i,n)}})),document.addEventListener("jet-smart-filters/inited",(function(){var e=f(JetSmartFilterSettings,"jetFiltersDynamicRange");if(e)for(var t in JetSmartFilters.filterGroups){var r=JetSmartFilters.filterGroups[t],i=f(e,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 $n=r(669),In=f(JetSmartFilterSettings,"seo","selectors","title"),Fn=f(JetSmartFilterSettings,"seo","selectors","description"),En=$n(In),Tn=$n(Fn),Dn=In&&En.length,An=Fn&&Tn.length;function Rn(e,t){t||(t=e.data("fallback")||""),e.html(t)}(Dn||An)&&(JetSmartFilterSettings.extra_props.seo={current_page:f(JetSmartFilterSettings,"seo","current_page")}),Dn&&(JetSmartFilterSettings.extra_props.seo.is_title_enabled=!0),An&&(JetSmartFilterSettings.extra_props.seo.is_description_enabled=!0),t.subscribe("ajaxFilters/updated",(function(e,t,r){r.seo&&(r.seo.hasOwnProperty("title")&&Dn&&Rn(En,r.seo.title),r.seo.hasOwnProperty("description")&&An&&Rn(Tn,r.seo.description))}));var Vn=["woocommerce-archive","default-woo-archive","epro-archive-products"];oe("request/ajax-data",(function(e){if(!e||!e.provider)return e;var t=e.provider.split("/")[0];return Vn.includes(t)&&document.querySelector(".woocommerce-result-count")?(e.has_result_count=!0,e):e})),r(0);var qn=r(669);qn(document).on("jet-engine/listing/ajax-get-listing/done",(function(e,t){var r,i=t.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(e){e.reinit()})))}}}})),t.subscribe("filterGroup/init",(function(e){if("jet-engine"==e.provider&&e.$provider.hasClass("jet-listing-grid--lazy-load")){var t=e.predefinedData.set;e.predefinedData.set=function(){e.$provider.hasClass("jet-listing-grid--lazy-load")?qn(document).on("jet-engine/listing-grid/after-lazy-load",(function(){t.call(e.predefinedData)})):t.call(e.predefinedData)}}}));var Bn=r(669);function Ln(e){return Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ln(e)}function Nn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function Mn(e,t,r){return(t=Hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gn(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Jn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},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(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Un(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Hn(i.key),i)}}function Hn(e){var t=function(e){if("object"!=Ln(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ln(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ln(t)?t:t+""}var Kn=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filterGroup=!1,this.wooProvider="default-woo-archive",this.init()},t=[{key:"init",value:function(){var e=this;document.addEventListener("jet-smart-filters/inited",(function(){if(window.JetSmartFilters.filterGroups)for(var t in window.JetSmartFilters.filterGroups){var r=window.JetSmartFilters.filterGroups[t];e.onFilterGroupInit(r)}}))}},{key:"withQueryArgs",value:function(e,t){if(!e||!t)return e;var r=new URL(e);return Object.keys(t).forEach((function(e){var i=t[e];i?r.searchParams.set(e,i):r.searchParams.delete(e)})),r.toString()}},{key:"onFilterGroupInit",value:function(e){var t=this;if(!this.filterGroup&&this.wooProvider===e.provider&&(this.groupHasFiltersType(e,["reload"])&&this.fixReloadPagination(),this.groupHasFiltersType(e,["ajax","mixed"]))){this.setURL();var r=f(window.JetSmartFilterSettings,"wc_archive","pager_selector"),i=f(window.JetSmartFilterSettings,"wc_archive","order_selector");this.filterGroup=e,Bn(document).on("click",r,(function(e){e.preventDefault(),t.doAjax(Bn(e.currentTarget).attr("href"))})),Bn(document).on("submit",i,(function(e){e.preventDefault();var r,i=Bn(e.currentTarget),n=f(window.JetSmartFilterSettings,"wc_archive","referrer_url"),o={},a=Gn(i.serializeArray());try{for(a.s();!(r=a.n()).done;){var s=r.value;o[s.name]=s.value}}catch(e){a.e(e)}finally{a.f()}t.doAjax(t.withQueryArgs(n,o))}))}}},{key:"fixReloadPagination",value:function(){var e=this;window.JetPlugins&&window.JetPlugins.hooks.addFilter("jet-smart-filters.filter.reload-location","wooDefaultArchive",(function(t,r){return r.provider!==e.wooProvider?t:t=t.replace(/\/(page|pagenum)\/\d+\/?/,"/")}))}},{key:"groupHasFiltersType",value:function(e,t){var r=e.filters||[];if(t=t||[],Array.isArray(t)||(t=[t]),!r)return!1;var i,n=Gn(r);try{for(n.s();!(i=n.n()).done;){var o=i.value;if(o.applyType&&t.includes(o.applyType))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"doAjax",value:function(e){var t=this;this.setURL(e),this.filterGroup.ajaxRequest((function(e){t.filterGroup.ajaxRequestCompleted(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(r),!0).forEach((function(t){Mn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),{}),t.resetURL()}))}},{key:"resetURL",value:function(){window.JetPlugins&&window.JetPlugins.hooks.removeFilter("jet-smart-filters.request.data","wooDefaultArchive"),this.setURL()}},{key:"setURL",value:function(e){var t=this;e||(e=f(window.JetSmartFilterSettings,"wc_archive","referrer_url"));var r=f(window.JetSmartFilterSettings,"wc_archive","query_args");e=this.withQueryArgs(e,r);var i=Bn('.woocommerce-ordering select[name="orderby"]').val();i&&(e=this.withQueryArgs(e,{orderby:i})),window.JetPlugins&&window.JetPlugins.hooks.addFilter("jet-smart-filters.request.data","wooDefaultArchive",(function(r){return r.provider!==t.wooProvider||(r.url=e,r.referrer_url=e),r}))}}],t&&Un(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();new Kn;var Wn=r(669);Wn(document).ready((function(){window.JetPlugins.init(!1,_n.filterNames.map((function(e){return{block:"jet-smart-filters/"+e,callback:function(e){_n.initFilter(e)}}})))})),Wn(window).on("elementor/frontend/init",(function(){_n.filterNames.forEach((function(e){elementorFrontend.hooks.addAction("frontend/element_ready/jet-smart-filters-"+e+".default",(function(t){if(elementorFrontend.isEditMode())Cn.initFilter(e,t);else{var r=t.find(".jet-filter");if(!r.length)return;r.each((function(e){_n.initFilter(r.eq(e))}))}}))}))})),window.JetSmartFiltersBricksInit=function(){window.bricksIsFrontend||Cn.intiAllFilters()}})()})();