https://www.bwfund.org/wp-content/plugins/ajax-load-more-pro/pro/a…/dist/js/filters.min.js?ver=3.4.2
1var almfilters;(()=>{var e={990(e){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){(t=Object.assign({},r,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",t.target&&t.selector&&(o(t),window.addEventListener(t.event,function(e){a(e,t)}))};var r=n(1),a=n(2),o=n(7);n(8)},function(e,t,n){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,n){"use strict";var r=n(3),a=n(4),o=n(5),i=n(6);e.exports=function(e,t){var n=e.target,l=e.which||e.keycode,s=t.target.querySelectorAll(t.selector);s=s?Array.prototype.slice.call(s):s;var c=o(n,s);if(!s||!c)return!1;if(-1!==i(t.next,r).indexOf(l)){var u=a(n,s,"next");if(u<s.length)return s[u].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==i(t.prev,r).indexOf(l)){var d=a(n,s,"previous");if(d<s.length&&-1!==d)return s[d].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[s.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,n){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,n){"use strict";e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",r=Array.prototype.slice.call(t).indexOf(e);if(-1!==r)return"previous"===n?r-1:r+1}},function(e,t,n){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.split(" "),r=[],a=0;a<n.length;a++)r.push(t[n[a]]);return r}},function(e,t,n){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach(function(e){e.tabIndex=0})}},function(e,t,n){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),a=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<a;){var o;n in r&&(o=r[n],e.call(t,o,n,r)),n++}})}])},559(e){var t=".alm-listing[data-filters=true]",n=".alm-filters.alm-filters-container";e.exports={url:"",alm_filtering:!1,alm_filtering_popstate:!1,alm_core:document.querySelectorAll(t),alm_core_classname:t,alm_filters:document.querySelectorAll(n),alm_filters_facets:document.querySelectorAll(".alm-filters.alm-filters-facets"),filters_classname:n,filter_classname:".alm-filter",almFilters:document.querySelector(n),reset_btn_classname:"button#alm-filters-reset-button",pushstate:!1,delay:125}},609(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},a=0,o=t;a<o.length;a++){r(o[a])}return e})}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{getActiveFilters:()=>nn,reset:()=>tn,resetFilter:()=>rn,start:()=>en,wpblock:()=>an});var e=n(990);function t(e){return function(e){if(Array.isArray(e))return a(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 a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var o=function(e){if(e){var n=e.closest(".alm-filters"),r=e.parentNode.parentNode.querySelector(".alm-filter--inner");if(n&&r){if(r&&"true"===e.getAttribute("aria-expanded"))r.style.display="none",r.setAttribute("aria-hidden",!0),e.setAttribute("aria-expanded",!1);else if(r.style.display="block",r.setAttribute("aria-hidden",!1),e.setAttribute("aria-expanded",!0),"true"===n.getAttribute("data-single-expand-toggle"))t(n.querySelectorAll(".alm-filter--toggle[aria-expanded=true]")).forEach(function(t){if(t!==e){var n=t.parentNode.parentNode.querySelector(".alm-filter--inner");n&&(n.style.display="none",n.setAttribute("aria-hidden",!0),t.setAttribute("aria-expanded",!1))}})}else console.error("Ajax Load More Filters: Unable to find filter container or target element.")}};function i(e){var n=e.currentTarget,r=n.parentNode.querySelectorAll("li.alm-filters-limit");n.classList.contains("open")?(n.classList.remove("open"),n.innerHTML=n.dataset.open,t(r).forEach(function(e){e.style.display="none"})):(n.classList.add("open"),n.innerHTML=n.dataset.close,t(r).forEach(function(e){e.style.display=""}))}function l(e){return function(e){if(Array.isArray(e))return s(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 s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e){if(e&&"true"===e.dataset.mobile){var t=e.dataset.id,n=t?document.querySelectorAll('.button-alm-filters-drawer, .alm-filters-mobile-drawer[data-target="'.concat(t,'"]')):null;if(n&&n.length){n.forEach(function(e){e.hasAttribute("aria-controls")||e.setAttribute("aria-controls","alm-filters-".concat(t)),e.hasAttribute("aria-expanded")||e.setAttribute("aria-expanded","false")});var r=e.querySelector(".alm-filters--drawer-close"),a=parseInt(e.dataset.mobileBreakpoint,10)||767;e.classList.add("is-resizing"),requestAnimationFrame(function(){return requestAnimationFrame(function(){return e.classList.remove("is-resizing")})});var o,i=window.matchMedia("(max-width: ".concat(a,"px)")),s=function(t){e.classList.toggle("is-mobile",t.matches),!t.matches&&e.classList.contains("is-open")&&m()};s(i),i.addEventListener("change",s),window.addEventListener("resize",function(){e.classList.add("is-resizing"),clearTimeout(o),o=setTimeout(function(){return e.classList.remove("is-resizing")},150)});var c=function(t){if("Tab"===t.key){var n=l(e.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not
1([tabindex="-1"])')).filter(function(e){return!e.closest("[hidden]")});if(n.length){var r=n[0],a=n[n.length-1];t.shiftKey?document.activeElement===r&&(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),r.focus())}}},u=document.createElement("div");u.className="alm-filters--backdrop",u.setAttribute("aria-hidden","true"),document.body.appendChild(u);var d=null,f=function(t){var a;d=null!==(a=null==t?void 0:t.currentTarget)&&void 0!==a?a:null,e.classList.add("is-open"),document.body.classList.add("alm-filters-open"),n.forEach(function(e){return e.setAttribute("aria-expanded","true")}),r&&r.focus(),e.addEventListener("keydown",c)},m=function(){var t;e.classList.remove("is-open"),document.body.classList.remove("alm-filters-open"),n.forEach(function(e){return e.setAttribute("aria-expanded","false")}),e.removeEventListener("keydown",c),null===(t=null!=d?d:n[0])||void 0===t||t.focus(),d=null};n.forEach(function(e){return e.addEventListener("click",f)}),u.addEventListener("click",m),r&&r.addEventListener("click",m),document.addEventListener("keydown",function(t){"Escape"===t.key&&e.classList.contains("is-open")&&m()})}}}var u=n(559),d=n.n(u);function f(){var e=alm_filters_localize.allow_multiple;if(void 0!==e&&e)return!1;var t=document.querySelectorAll(d().alm_core_classname);return!!(t&&t.length>1)}const m=function(e){var t,n,r,a,o={};for(r=0,a=(t=e.split("&")).length;r<a;r++)o[(n=t[r].split("="))[0]]=n[1];return o};function p(e){return function(e){if(Array.isArray(e))return h(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 h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function g(){return document.querySelectorAll(d().filters_classname)}function v(){return document.querySelectorAll("".concat(d().filters_classname," ").concat(d().filter_classname))}function y(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(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 b(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(arguments.length>2?arguments[2]:void 0).querySelector("[data-type=all]");if("checkbox"===e&&n){var r=y(t).filter(function(e){return"checkbox"===e.dataset.type}),a=!0;if(r){var o,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}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,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw o}}}}(r);try{for(i.s();!(o=i.n()).done;){if(!o.value.classList.contains("active")){a=!1;break}}}catch(e){i.e(e)}finally{i.f()}a?(n.classList.add("active"),n.setAttribute("aria-checked",!0)):(n.classList.remove("active"),n.setAttribute("aria-checked",!1))}}}
vendor: 9,054 bytes, line 1
1function x(){console.warn("Ajax Load More: Filters - Unable to locate core Ajax Load More instance. Ensure the target attribute is set on each instance of filters.")}var C,D;function k(e){return"object"==typeof e&&"function"==typeof e.to}function E(e){e.parentElement.removeChild(e)}function A(e){return null!=e}function M(e){e.preventDefault()}function _(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function O(e,t,n){n>0&&(j(e,t),setTimeout(function(){P(e,t)},n))}function T(e){return Math.max(Math.min(e,100),0)}function L(e){return Array.isArray(e)?e:[e]}function I(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function j(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function P(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function N(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function F(e,t){return 100/(t-e)}function q(e,t,n){return 100*t/(e[n+1]-e[n])}function H(e,t){for(var n=1;e>=t[n];)n+=1;return n}function Y(e,t,n){if(n>=e.slice(-1)[0])return 100;var r=H(n,e),a=e[r-1],o=e[r],i=t[r-1],l=t[r];return i+function(e,t){return q(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([a,o],n)/F(i,l)}function U(e,t,n,r){if(100===r)return r;var a=H(r,e),o=e[a-1],i=e[a];return n?r-o>(i-o)/2?i:o:t[a-1]?e[a-1]+function(e,t){return Math.round(e/t)*t}(r-e[a-1],t[a-1]):r}!function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(C||(C={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(D||(D={}));var V=function(){function e(e,t,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var a=[];for(Object.keys(e).forEach(function(t){a.push([L(e[t]),t])}),a.sort(function(e,t){return e[0][0]-t[0][0]}),r=0;r<a.length;r++)this.handleEntryPoint(a[r][1],a[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=q(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var r,a=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[a+1];)a++;else e===this.xPct[this.xPct.length-1]&&(a=this.xPct.length-2);n||e!==this.xPct[a+1]||a++,null===t&&(t=[]);var o=1,i=t[a],l=0,s=0,c=0,u=0;for(r=n?(e-this.xPct[a])/(this.xPct[a+1]-this.xPct[a]):(this.xPct[a+1]-e)/(this.xPct[a+1]-this.xPct[a]);i>0;)l=this.xPct[a+1+u]-this.xPct[a+u],t[a+u]*o+100-100*r>100?(s=l*r,o=(i-100*r)/t[a+u],r=1):(s=t[a+u]*l/100*o,o=0),n?(c-=s,this.xPct.length+u>=1&&u--):(c+=s,this.xPct.length-u>=1&&u++),i=t[a+u]*o;return e+c},e.prototype.toStepping=function(e){return e=Y(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var r=H(n,t),a=e[r-1],o=e[r],i=t[r-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([a,o],(n-i)*F(i,t[r]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=U(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var r=H(e,this.xPct);return(100===e||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},e.prototype.getNearbySteps=function(e){var t=H(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(I);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!_(n="min"===e?0:"max"===e?100:parseFloat(e))||!_(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var r=Number(t[1]);n?this.xSteps.push(!isNaN(r)&&r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=q([this.xVal[e],this.xVal[e+1]],t,0)/F(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(n.toFixed(3))-1),a=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=a}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),R={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},z={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},K=".__tooltips",W=".__aria";function B(e,t){if(!_(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function $(e,t){if(!_(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function J(e,t){if(!_(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function X(e,t){if(!_(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function G(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new V(t,e.snap||!1,e.singleStep)}function Z(e,t){if(t=L(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function Q(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function ee(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function te(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function ne(e,t){var n,r=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)r.push(t);r.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");r=t}e.connect=r}function re(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ae(e,t){if(!_(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function oe(e,t){if(!_(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function ie(e,t){var n;if(!_(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!_(t[0])&&!_(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var r=t[0]+t[1],a=e.spectrum.xVal[0];if(r/(e.spectrum.xVal[e.spectrum.xVal.length-1]-a)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function le(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function se(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,r=t.indexOf("drag")>=0,a=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,i=t.indexOf("hover")>=0,l=t.indexOf("unconstrained")>=0,s=t.indexOf("invert-connects")>
vendor: 4,454 bytes, line 1
1=0,c=t.indexOf("drag-all")>=0,u=t.indexOf("smooth-steps")>=0;if(a){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ae(e,e.start[1]-e.start[0])}if(s&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:r,dragAll:c,smoothSteps:u,fixed:a,snap:o,hover:i,unconstrained:l,invertConnects:s}}function ce(e,t){if(!1!==t)if(!0===t||k(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=L(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach(function(e){if("boolean"!=typeof e&&!k(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),e.tooltips=t}}function ue(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function de(e,t){if(!k(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function fe(e,t){if(!function(e){return k(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function me(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function pe(e,t){e.documentElement=t}function he(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function ge(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach(function(n){e.cssClasses[n]=e.cssPrefix+t[n]})):e.cssClasses=t}function ve(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:R,format:R},n={step:{r:!1,t:B},keyboardPageMultiplier:{r:!1,t:$},keyboardMultiplier:{r:!1,t:J},keyboardDefaultStep:{r:!1,t:X},start:{r:!0,t:Z},connect:{r:!0,t:ne},direction:{r:!0,t:le},snap:{r:!1,t:Q},animate:{r:!1,t:ee},animationDuration:{r:!1,t:te},range:{r:!0,t:G},orientation:{r:!1,t:re},margin:{r:!1,t:ae},limit:{r:!1,t:oe},padding:{r:!1,t:ie},behaviour:{r:!0,t:se},ariaFormat:{r:!1,t:de},format:{r:!1,t:fe},tooltips:{r:!1,t:ce},keyboardSupport:{r:!0,t:me},documentElement:{r:!1,t:pe},cssPrefix:{r:!0,t:he},cssClasses:{r:!0,t:ge},handleAttributes:{r:!1,t:ue}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:z,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(a){if(A(e[a])||void 0!==r[a])n[a].t(t,A(e[a])?e[a]:r[a]);else if(n[a].r)throw new Error("noUiSlider: '"+a+"' is required.")}),t.pips=e.pips;var a=document.createElement("div"),o=void 0!==a.style.msTransform,i=void 0!==a.style.transform;t.transformRule=i?"transform":o?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function ye(e,t,n){var r,a,o,i,l,s,c,u=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},d=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),f=e,m=t.spectrum,p=[],h=[],g=[],v=0,y={},b=!1,w=e.ownerDocument,S=t.documentElement||w.documentElement,x=w.body,k="rtl"===w.dir||1===t.ort?0:100;function _(e,t){var n=w.createElement("div");return t&&j(n,t),e.appendChild(n),n}function I(e,n){var r=_(e,t.cssClasses.origin),a=_(r,t.cssClasses.handle);if(_(a,t.cssClasses.touchArea),a.setAttribute("data-handle",String(n)),t.keyboardSupport&&(a.setAttribute("tabindex","0"),a.addEventListener("keydown",function(e){return function(e,n){if(H()||Y(n))return!1;var r=["Left","Right"],a=["Down","Up"],o=["PageDown","PageUp"],i=["Home","End"];t.dir&&!t.ort?r.reverse():t.ort&&!t.dir&&(a.reverse(),o.reverse());var l,s=e.key.replace("Arrow",""),c=s===o[0],u=s===o[1],d=s===a[0]||s===r[0]||c,f=s===a[1]||s===r[1]||u,g=s===i[0],v=s===i[1];if(!(d||f||g||v))return!0;
1if(e.preventDefault(),f||d){var y=d?0:1,b=xe(n)[y];if(null===b)return!1;!1===b&&(b=m.getDefaultStep(h[n],d,t.keyboardDefaultStep)),b*=u||c?t.keyboardPageMultiplier:t.keyboardMultiplier,b=Math.max(b,1e-7),b*=d?-1:1,l=p[n]+b}else l=v?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return ge(n,m.toStepping(l),!0,!0),ce("slide",n),ce("update",n),ce("change",n),ce("set",n),!1}(e,n)})),void 0!==t.handleAttributes){var o=t.handleAttributes[n];Object.keys(o).forEach(function(e){a.setAttribute(e,o[e])})}return a.setAttribute("role","slider"),a.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?j(a,t.cssClasses.handleLower):n===t.handles-1&&j(a,t.cssClasses.handleUpper),r.handle=a,r}function F(e,n){return!!n&&_(e,t.cssClasses.connect)}function q(e,n){return!(!t.tooltips||!t.tooltips[n])&&_(e.firstChild,t.cssClasses.tooltip)}function H(){return f.hasAttribute("disabled")}function Y(e){return o[e].hasAttribute("disabled")}function U(){s&&(se("update"+K),s.forEach(function(e){e&&E(e)}),s=null)}function V(){U(),s=o.map(q),le("update"+K,function(e,n,r){if(s&&t.tooltips&&!1!==s[n]){var a=e[n];!0!==t.tooltips[n]&&(a=t.tooltips[n].to(r[n])),s[n].innerHTML=a}})}function R(e,t){return e.map(function(e){return m.fromStepping(t?m.getStep(e):e)})}function z(e){function t(e,t){return Number((e+t).toFixed(7))}var n,r=function(e){if(e.mode===C.Range||e.mode===C.Steps)return m.xVal;if(e.mode===C.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var t=e.values-1,n=100/t,r=[];t--;)r[t]=t*n;return r.push(100),R(r,e.stepped)}return e.mode===C.Positions?R(e.values,e.stepped):e.mode===C.Values?e.stepped?e.values.map(function(e){return m.fromStepping(m.getStep(m.toStepping(e)))}):e.values:[]}(e),a={},o=m.xVal[0],i=m.xVal[m.xVal.length-1],l=!1,s=!1,c=0;return n=r.slice().sort(function(e,t){return e-t}),(r=n.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==o&&(r.unshift(o),l=!0),r[r.length-1]!==i&&(r.push(i),s=!0),r.forEach(function(n,o){var i,u,d,f,p,h,g,v,y,b,w=n,S=r[o+1],x=e.mode===C.Steps;for(x&&(i=m.xNumSteps[o]),i||(i=S-w),void 0===S&&(S=w),i=Math.max(i,1e-7),u=w;u<=S;u=t(u,i)){for(v=(p=(f=m.toStepping(u))-c)/(e.density||1),b=p/(y=Math.round(v)),d=1;d<=y;d+=1)a[(h=c+d*b).toFixed(5)]=[m.fromStepping(h),0];g=r.indexOf(u)>-1?D.LargeValue:x?D.SmallValue:D.NoValue,!o&&l&&u!==S&&(g=0),u===S&&s||(a[f.toFixed(5)]=[u,g]),c=f}}),a}function B(e,n,r){var a,o,i=w.createElement("div"),l=((a={})[D.None]="",a[D.NoValue]=t.cssClasses.valueNormal,a[D.LargeValue]=t.cssClasses.valueLarge,a[D.SmallValue]=t.cssClasses.valueSub,a),s=((o={})[D.None]="",o[D.NoValue]=t.cssClasses.markerNormal,o[D.LargeValue]=t.cssClasses.markerLarge,o[D.SmallValue]=t.cssClasses.markerSub,o),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],u=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var r=n===t.cssClasses.value,a=r?l:s;return n+" "+(r?c:u)[t.ort]+" "+a[e]}return j(i,t.cssClasses.pips),j(i,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach(function(a){!function(e,a,o){if((o=n?n(a,o):o)!==D.None){var l=_(i,!1);l.className=d(o,t.cssClasses.marker),l.style[t.style]=e+"%",o>D.NoValue&&((l=_(i,!1)).className=d(o,t.cssClasses.value),l.setAttribute("data-value",String(a)),l.style[t.style]=e+"%",l.innerHTML=String(r.to(a)))}}(a,e[a][0],e[a][1])}),i}function $(){l&&(E(l),l=null)}function J(e){$();var t=z(e),n=e.filter,r=e.format||{to:function(e){return String(Math.round(e))}};return l=f.appendChild(B(t,n,r))}function X(){var e=r.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||r[n]:e.height||r[n]}function G(e,n,r,a){var o=function(o){var i,l,s=function(e,t,n){var r=0===e.type.indexOf("touch"),a=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),i=0,l=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(r){var s=function(t){var r=t.target;return r===n||n.contains(r)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var c=Array.prototype.filter.call(e.touches,s);if(c.length>1)return!1;i=c[0].pageX,l=c[0].pageY}else{var u=Array.prototype.find.call(e.changedTouches,s);if(!u)return!1;i=u.pageX,l=u.pageY}}t=t||N(w),(a||o)&&(i=e.clientX+t.x,l=e.clientY+t.y);return e.pageOffset=t,e.points=[i,l],e.cursor=a||o,e}(o,a.pageOffset,a.target||n);
1return!!s&&(!(H()&&!a.doNotReject)&&(i=f,l=t.cssClasses.tap,!((i.classList?i.classList.contains(l):new RegExp("\\b"+l+"\\b").test(i.className))&&!a.doNotReject)&&(!(e===u.start&&void 0!==s.buttons&&s.buttons>1)&&((!a.hover||!s.buttons)&&(d||s.preventDefault(),s.calcPoint=s.points[t.ort],void r(s,a))))))},i=[];return e.split(" ").forEach(function(e){n.addEventListener(e,o,!!d&&{passive:!0}),i.push([e,o])}),i}function Z(e){var n,a,o,i,l,s,c=100*(e-(n=r,a=t.ort,o=n.getBoundingClientRect(),i=n.ownerDocument,l=i.documentElement,s=N(i),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),a?o.top+s.y-l.clientTop:o.left+s.x-l.clientLeft))/X();return c=T(c),t.dir?100-c:c}function Q(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&te(e,t)}function ee(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return te(e,n);var r=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);fe(r>0,100*r/n.baseSize,n.locations,n.handleNumbers,n.connect)}function te(e,n){n.handle&&(P(n.handle,t.cssClasses.active),v-=1),n.listeners.forEach(function(e){S.removeEventListener(e[0],e[1])}),0===v&&(P(f,t.cssClasses.drag),he(),e.cursor&&(x.style.cursor="",x.removeEventListener("selectstart",M))),t.events.smoothSteps&&(n.handleNumbers.forEach(function(e){ge(e,h[e],!0,!0,!1,!1)}),n.handleNumbers.forEach(function(e){ce("update",e)})),n.handleNumbers.forEach(function(e){ce("change",e),ce("set",e),ce("end",e)})}function re(e,n){if(!n.handleNumbers.some(Y)){var r;if(1===n.handleNumbers.length)r=o[n.handleNumbers[0]].children[0],v+=1,j(r,t.cssClasses.active);e.stopPropagation();var a=[],i=G(u.move,S,ee,{target:e.target,handle:r,connect:n.connect,listeners:a,startCalcPoint:e.calcPoint,baseSize:X(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:h.slice()}),l=G(u.end,S,te,{target:e.target,handle:r,listeners:a,doNotReject:!0,handleNumbers:n.handleNumbers}),s=G("mouseout",S,Q,{target:e.target,handle:r,listeners:a,doNotReject:!0,handleNumbers:n.handleNumbers});a.push.apply(a,i.concat(l,s)),e.cursor&&(x.style.cursor=getComputedStyle(e.target).cursor,o.length>1&&j(f,t.cssClasses.drag),x.addEventListener("selectstart",M,!1)),n.handleNumbers.forEach(function(e){ce("start",e)})}}function ae(e){e.stopPropagation();var n=Z(e.calcPoint),r=function(e){var t=100,n=!1;return o.forEach(function(r,a){if(!Y(a)){var o=h[a],i=Math.abs(o-e);(i<t||i<=t&&e>o||100===i&&100===t)&&(n=a,t=i)}}),n}(n);!1!==r&&(t.events.snap||O(f,t.cssClasses.tap,t.animationDuration),ge(r,n,!0,!0),he(),ce("slide",r,!0),ce("update",r,!0),t.events.snap?re(e,{handleNumbers:[r]}):(ce("change",r,!0),ce("set",r,!0)))}function oe(e){var t=Z(e.calcPoint),n=m.getStep(t),r=m.fromStepping(n);Object.keys(y).forEach(function(e){"hover"===e.split(".")[0]&&y[e].forEach(function(e){e.call(De,r)})})}function ie(e){e.fixed||o.forEach(function(e,t){G(u.start,e.children[0],re,{handleNumbers:[t]})}),e.tap&&G(u.start,r,ae,{}),e.hover&&G(u.move,r,oe,{hover:!0}),e.drag&&i.forEach(function(n,r){if(!1!==n&&0!==r&&r!==i.length-1){var a=o[r-1],l=o[r],s=[n],c=[a,l],d=[r-1,r];j(n,t.cssClasses.draggable),e.fixed&&(s.push(a.children[0]),s.push(l.children[0])),e.dragAll&&(c=o,d=g),s.forEach(function(e){G(u.start,e,re,{handles:c,handleNumbers:d,connect:n})})}})}function le(e,t){y[e]=y[e]||[],y[e].push(t),"update"===e.split(".")[0]&&o.forEach(function(e,t){ce("update",t)})}function se(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(y).forEach(function(e){var r=e.split(".")[0],a=e.substring(r.length);t&&t!==r||n&&n!==a||function(e){return e===W||e===K}(a)&&n!==a||delete y[e]})}function ce(e,n,r){Object.keys(y).forEach(function(a){var o=a.split(".")[0];e===o&&y[a].forEach(function(e){e.call(De,p.map(t.format.to),n,p.slice(),r||!1,h.slice(),De)})})}function ue(e,n,r,a,i,l,s){var c;return o.length>1&&!t.events.unconstrained&&(a&&n>0&&(c=m.getAbsoluteDistance(e[n-1],t.margin,!1),r=Math.max(r,c)),i&&n<o.length-1&&(c=m.getAbsoluteDistance(e[n+1],t.margin,!0),r=Math.min(r,c))),o.length>1&&t.limit&&(a&&n>0&&(c=m.getAbsoluteDistance(e[n-1],t.limit,!1),r=Math.min(r,c)),i&&n<o.length-1&&(c=m.getAbsoluteDistance(e[n+1],t.limit,!0),r=Math.max(r,c))),t.padding&&(0===n&&(c=m.getAbsoluteDistance(0,t.padding[0],!1),r=Math.max(r,c)),n===o.length-1&&(c=m.getAbsoluteDistance(100,t.padding[1],!0),r=Math.min(r,c))),s||(r=m.getStep(r)),!((r=T(r))===e[n]&&
1!l)&&r}function de(e,n){var r=t.ort;return(r?n:e)+", "+(r?e:n)}function fe(e,n,r,a,o){var i=r.slice(),l=a[0],s=t.events.smoothSteps,c=[!e,e],u=[e,!e];a=a.slice(),e&&a.reverse(),a.length>1?a.forEach(function(e,t){var r=ue(i,e,i[e]+n,c[t],u[t],!1,s);!1===r?n=0:(n=r-i[e],i[e]=r)}):c=u=[!0];var d=!1;a.forEach(function(e,t){d=ge(e,r[e]+n,c[t],u[t],!1,s)||d}),d&&(a.forEach(function(e){ce("update",e),ce("slide",e)}),null!=o&&ce("drag",l))}function me(e,n){return t.dir?100-e-n:e}function pe(e,n){h[e]=n,p[e]=m.fromStepping(n);var r="translate("+de(me(n,0)-k+"%","0")+")";if(o[e].style[t.transformRule]=r,t.events.invertConnects&&h.length>1){var a=h.every(function(e,t,n){return 0===t||e>=n[t-1]});if(b!==!a)return b=!b,ne(t,t.connect.map(function(e){return!e})),void Ce()}ye(e),ye(e+1),b&&(ye(e-1),ye(e+2))}function he(){g.forEach(function(e){var t=h[e]>50?-1:1,n=3+(o.length+t*e);o[e].style.zIndex=String(n)})}function ge(e,t,n,r,a,o){return a||(t=ue(h,e,t,n,r,!1,o)),!1!==t&&(pe(e,t),!0)}function ye(e){if(i[e]){var n=h.slice();b&&n.sort(function(e,t){return e-t});var r=0,a=100;0!==e&&(r=n[e-1]),e!==i.length-1&&(a=n[e]);var o=a-r,l="translate("+de(me(r,o)+"%","0")+")",s="scale("+de(o/100,"1")+")";i[e].style[t.transformRule]=l+" "+s}}function be(e,n){return null===e||!1===e||void 0===e?h[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=m.toStepping(e)),!1===e||isNaN(e)?h[n]:e)}function we(e,n,r){var a=L(e),o=void 0===h[0];n=void 0===n||n,t.animate&&!o&&O(f,t.cssClasses.tap,t.animationDuration),g.forEach(function(e){ge(e,be(a[e],e),!0,!1,r)});var i=1===g.length?0:1;if(o&&m.hasNoSize()&&(r=!0,h[0]=0,g.length>1)){var l=100/(g.length-1);g.forEach(function(e){h[e]=e*l})}for(;i<g.length;++i)g.forEach(function(e){ge(e,h[e],!0,!0,r)});he(),g.forEach(function(e){ce("update",e),null!==a[e]&&n&&ce("set",e)})}function Se(e){if(void 0===e&&(e=!1),e)return 1===p.length?p[0]:p.slice(0);var n=p.map(t.format.to);return 1===n.length?n[0]:n}function xe(e){var n=h[e],r=m.getNearbySteps(n),a=p[e],o=r.thisStep.step,i=null;if(t.snap)return[a-r.stepBefore.startValue||null,r.stepAfter.startValue-a||null];!1!==o&&a+o>r.stepAfter.startValue&&(o=r.stepAfter.startValue-a),i=a>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&a-r.stepBefore.highestStep,100===n?o=null:0===n&&(i=null);var l=m.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(l))),null!==i&&!1!==i&&(i=Number(i.toFixed(l))),[i,o]}function Ce(){for(;a.firstChild;)a.removeChild(a.firstChild);for(var e=0;e<=t.handles;e++)i[e]=F(a,t.connect[e]),ye(e);ie({drag:t.events.drag,fixed:!0})}j(c=f,t.cssClasses.target),0===t.dir?j(c,t.cssClasses.ltr):j(c,t.cssClasses.rtl),0===t.ort?j(c,t.cssClasses.horizontal):j(c,t.cssClasses.vertical),j(c,"rtl"===getComputedStyle(c).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),r=_(c,t.cssClasses.base),function(e,n){a=_(n,t.cssClasses.connects),o=[],(i=[]).push(F(a,e[0]));for(var r=0;r<t.handles;r++)o.push(I(n,r)),g[r]=r,i.push(F(a,e[r+1]))}(t.connect,r),ie(t.events),we(t.start),t.pips&&J(t.pips),t.tooltips&&V(),se("update"+W),le("update"+W,function(e,n,r,a,i){g.forEach(function(e){var n=o[e],a=ue(h,e,0,!0,!0,!0),l=ue(h,e,100,!0,!0,!0),s=i[e],c=String(t.ariaFormat.to(r[e]));a=m.fromStepping(a).toFixed(1),l=m.fromStepping(l).toFixed(1),s=m.fromStepping(s).toFixed(1),n.children[0].setAttribute("aria-valuemin",a),n.children[0].setAttribute("aria-valuemax",l),n.children[0].setAttribute("aria-valuenow",s),n.children[0].setAttribute("aria-valuetext",c)})});var De={destroy:function(){for(se(W),se(K),Object.keys(t.cssClasses).forEach(function(e){P(f,t.cssClasses[e])});f.firstChild;)f.removeChild(f.firstChild);delete f.noUiSlider},steps:function(){return g.map(xe)},on:le,off:se,get:Se,set:we,setHandle:function(e,t,n,r){if(!((e=Number(e))>=0&&e<g.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ge(e,be(t,e),!0,!0,r),ce("update",e),n&&ce("set",e)},reset:function(e){we(t.start,e)},disable:function(e){null!=e?(o[e].setAttribute("disabled",""),o[e].handle.removeAttribute("tabindex")):(f.setAttribute("disabled",""),o.forEach(function(e){e.handle.removeAttribute("tabindex")}))},enable:function(e){null!=e?(o[e].removeAttribute("disabled"),o[e].handle.setAttribute("tabindex","0")):(f.removeAttribute("disabled"),o.forEach(function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")}))}
1,__moveHandles:function(e,t,n){fe(e,t,h,n)},options:n,updateOptions:function(e,r){var a=Se(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];o.forEach(function(t){void 0!==e[t]&&(n[t]=e[t])});var i=ve(n);o.forEach(function(n){void 0!==e[n]&&(t[n]=i[n])}),m=i.spectrum,t.margin=i.margin,t.limit=i.limit,t.padding=i.padding,t.pips?J(t.pips):$(),t.tooltips?V():U(),h=[],we(A(e.start)?e.start:a,r),e.connect&&Ce()},target:f,removePips:$,removeTooltips:U,getPositions:function(){return h.slice()},getTooltips:function(){return s},getOrigins:function(){return o},pips:J};return De}const be={__spectrum:V,cssClasses:z,create:function(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=ye(e,ve(t),t);return e.noUiSlider=n,n}};function we(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?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.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(e,t,n,r,a,o,i,l,s,c,u){var d=e.get();if(t.innerHTML=Ce(d,a,o,s,u),n.value=d,"change"===c){var f=document.createEvent("Event");f.initEvent("keyup",!0,!1),f.which=f.keyCode=13,n.dispatchEvent(f)}r&&De(r,d,i,l)}function Ce(e,t,n,r,a){if(!e&&2!==e.length)return!1;var o=r,i=e[0]?e[0]:t,l=e[1]?e[1]:n;if("function"==typeof almFiltersFormatRangeValues){var s=almFiltersFormatRangeValues(a,{start:i,end:l});s&&s.start&&s.end&&(i=s.start,l=s.end)}return o=(o=o.replace("{start}",'<span class="alm-range-start">'.concat(i,"</span>"))).replace("{end}",'<span class="alm-range-end">'.concat(l,"</span>"))}function De(e,t,n,r){parseInt(t[0])!==parseInt(n)||parseInt(t[1])!==
1parseInt(r)?e.style.visibility="visible":e.style.visibility="hidden"}function ke(e){var t=e.parentNode.parentNode.querySelector(".alm-range-reset");t&&t.click()}function Ee(e){return function(e){if(Array.isArray(e))return Ae(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 Ae(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ae(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 Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){var t=e.dataset.fieldtype,n=e.dataset.selectedValue;switch(t){case"radio":case"checkbox":Ee(e.querySelectorAll(".alm-filter--link")).forEach(function(e){e.dataset.value===n&&"all"!==e.dataset.type?(e.classList.add("active"),e.setAttribute("aria-checked",!0)):(e.classList.remove("active"),e.setAttribute("aria-checked",!1))});break;case"select":var r=e.querySelector("select");if(!r)break;n=null==n||""===n?"#":n,Ee(r.options).forEach(function(e){e.value===n&&(r.value=e.value)});break;case"select_multiple":var a=e.querySelector("select");if(!a)break;n=null==n||""===n?"#":n,Ee(a.options).forEach(function(e){e.selected=!1});break;case"range_slider":ke(e);break;default:var o=e.querySelector("input");if(!o)break;o.value=""}}function _e(e){return function(e){if(Array.isArray(e))return Oe(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 Oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oe(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 Oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Te=function(e,t){var n=0,r="",a="";switch(e.dataset.fieldtype){case"select_multiple":var o=e.querySelector("select"),i=o&&o.options,l="",s=0;if(!o)break;_e(i).forEach(function(e,t){e.selected&&(l+=s>0?",":"",""!==e.value&&(l+=e.value,s++))}),a=l.replace("+",","),r+="#"===a?"":a;break;case"select":var c=e.querySelector("select");if(!c)break;a=c.value.replace("+",","),r+="#"===a?"":a;break;case"text":case"number":case"range_slider":var u=e.querySelector("input");if(!u)break;var d=u.value;r+=""===d||0===d.trim().length?"":d;break;case"date_picker":var f=e.querySelector(".flatpickr-input");if(!f)break;r+=""===f.value?"":f.value.split(" | ");break;default:var m=e.querySelectorAll(".alm-filter--link");if(!m.length)break;_e(m).forEach(function(e,t){e.classList.contains("active")&&""!==e.dataset.value&&(a=e.dataset.value.replace("+",","),n>0&&(r+=","),r+=a,n++)})}return r||(r=function(e){var t="",n=(e.dataset.key,e.dataset.defaultValue);return n&&(t=n),t}(e)),r};function Le(e,t){var n=e.dataset.key,r=e.dataset.isArchive,a=e.dataset.taxonomy,o=e.dataset.taxonomyOperator,i=e.dataset.taxonomyIncludeChildren,l=e.dataset.metaKey,s=e.dataset.metaCompare,c=e.dataset.metaType;switch(n){case"perPage":n="postsPerPage";break;case"_year":n="year";break;case"_month":n="month";break;case"_day":n="day";break;case"_author":n="author";break;case"category_and":n="categoryAnd";break;case"tag_and":n="tagAnd";break;case"_tag":n="tag"}var u="";if(a)if(r&&(a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e&&"_"===e[0]&&(e=e.substring(1)),e}(a)),t.hasOwnProperty("taxonomy")){u=Te(e,t);var d=""!==t.taxonomy&&void 0!==t.taxonomy?"".concat(t.taxonomy,":"):"",f=""!==t.taxonomyTerms&&void 0!==t.taxonomyTerms?"".concat(t.taxonomyTerms,":"):"",m=""!==t.taxonomyOperator&&void 0!==t.taxonomyOperator?"".concat(t.taxonomyOperator,":"):"",p=""!==t.taxonomyIncludeChildren&&void 0!==t.taxonomyIncludeChildren?"".concat(t.taxonomyIncludeChildren,":"):"";u&&(t.taxonomy="".concat(d).concat(a),t.taxonomyTerms="".concat(f).concat(u),t.taxonomyOperator="".concat(m).concat(o),t.taxonomyIncludeChildren="".concat(p).concat(i))}else u=Te(e,t),t.taxonomy="",u&&(t.taxonomy=a,t.taxonomyOperator=o,t.taxonomyIncludeChildren=i,t.taxonomyTerms=u);else if(l)if(t.hasOwnProperty("metaKey")){u=Te(e,t);var h=""!==t.metaKey&&void 0!==t.metaKey?"".concat(t.metaKey,":"):"",g=""!==t.metaValue&&void 0!==t.metaValue?"".concat(t.metaValue,":"):"",v=""!==t.metaCompare&&void 0!==t.metaCompare?"".concat(t.metaCompare,":"):"",y=""!==t.metaType&&void 0!==t.metaType?"".concat(t.metaType,":"):"";u&&(t.metaKey="".concat(h).concat(l),t.metaValue="".concat(g).concat(u),t.metaCompare="".concat(v).concat(s),t.metaType="".concat(y).concat(c))}else u=Te(e,t),t.metaKey="",u&&(t.metaKey=l,t.metaValue=u,t.metaCompare=s,t.metaType=c);else"sort"===n?t=function(e,t){var n=Te(e,t);if(n){var r=n.split(":");if(r.length>1&&r.length<=3){var a=r[0],o=r[1].toLowerCase();
1if(-1!==["id","author","title","name","type","date","modified","parent","rand","relevance","menu_order","post__in","post__name_in","post_parent__in"].indexOf(o))t.order=a,t.orderby=o,t.sortKey="";else{var i=r[2];i=i?i.toLocaleLowerCase():"meta_value",t.order=a,t.orderby=i,t.sortKey=o}}}else t.sortKey="";return t}(e,t):t[n]=Te(e,t);return t}const Ie=function(e){var t="";if(t=document.querySelector('.alm-filter[data-taxonomy="'.concat(e,'"]'))?document.querySelector('.alm-filter[data-taxonomy="'.concat(e,'"]')):document.querySelector('.alm-filter[data-meta-key="'.concat(e,'"]'))?document.querySelector('.alm-filter[data-meta-key="'.concat(e,'"]')):document.querySelector('.alm-filter[data-key="'.concat(e,'"]')))return{fieldType:t.dataset.fieldtype,target:t}};const je=function(e,t,n){switch(n){case"select":case"select_multiple":return e.querySelector("select.alm-filter--item");case"text":case"range_slider":return e.querySelector("input.alm-filter--textfield");case"number":return e.querySelector("input.alm-filter--numberfield");default:return e.querySelector('div.alm-filter--link[data-value="'+decodeURI(t)+'"]')}};function Pe(e){return function(e){if(Array.isArray(e))return Ne(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 Ne(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ne(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 Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Fe=function(e,t){var n=Ie(e);if(n){var r=je(n.target,t,n.fieldType);if(r){var a="";switch(n.fieldType){case"select":a=r.selectedOptions&&r.selectedOptions.length?r.selectedOptions[0].text:"";break;case"select_multiple":r.options?Pe(r.options).forEach(function(e){e.selected&&e.value===t&&(a=t)}):a="";break;case"star_rating":a=r.getAttribute("title")||"";break;case"range_slider":var o=r.parentNode.parentNode.querySelector(".alm-range-slider--label");return o?o.textContent:"";case"text":case"number":return r.value;default:return r.innerHTML}return a}}};function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return He(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Ye=function(e){var t=document.getElementById("alm-selected-filters"),n=d().alm_core;if(t&&!(n&&n.length>1)){if(e&&-1!==e.indexOf("?")){var r=function(e){return function(e){for(var t="",n=["perPage","sort","order","orderBy"],r=0,a=Object.entries(e);r<a.length;r++){var o=qe(a[r],2),i=o[0],l=o[1];if(l&&!n.includes(i)){var s=[];switch(i){case"search":case"rating":case"range":s=[l];break;default:s=l.split("+")}for(var c=0;c<s.length;c++){var u=Fe(i,s[c]);if(u){u=decodeURIComponent(u);var d=document.createElement("div");d.innerHTML=u;var f=d.querySelector("span.alm-filter-count, span.alm-filter-counter");f&&(f.remove(),u=d.textContent),u=u.replace("<","<").replace(">",">"),t+="<li>",t+='<div role="button" onclick="window.removeSelectedFilter(this);" onkeyup="window.removeSelectedFilterEnter(event);" data-key="'+i+'" data-value="'+s[c]+'" tabindex="0" aria-label="'+window.alm_filters_localize.remove_active_filter+s[c]+'">',t+=u,t+="</div>",t+="</li>"}}}}return t}(m(e.replace("?","")))}(e);t.innerHTML=r||""}else t.innerHTML="";t.dataset.total=t.querySelectorAll("li").length,"function"==typeof window.almFiltersSelected&&window.almFiltersSelected(t)}};function Ue(){"function"==typeof ajaxloadmore.analytics&&ajaxloadmore.analytics("filters")}const Ve=function(e,t,n){var r=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+e+'"]');if(r){var a=(r=r[0]).querySelector(".alm-listing.alm-ajax"),o=null===a.dataset.transition?"fade":a.dataset.transition,i=null===a.dataset.speed?200:a.dataset.speed,l=r.dataset.localized;t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t?(t.meta_key&&t.meta_value&&(e.metaKey=e.metaKey?e.metaKey+":"+t.meta_key:t.meta_key,e.metaValue=e.metaValue?e.metaValue+":"+t.meta_value:t.meta_value,t.meta_compare&&(e.metaCompare=e.metaCompare?e.metaCompare+":"+t.meta_compare:t.meta_compare),t.meta_type&&(e.metaType=e.metaType?e.metaType+":"+t.meta_type:t.meta_type)),t.taxonomy&&t.taxonomy_terms&&(e.taxonomy=e.taxonomy?e.taxonomy+":"+t.taxonomy:t.taxonomy,e.taxonomyTerms=e.taxonomyTerms?e.taxonomyTerms+":"+t.taxonomy_terms:t.taxonomy_terms,t.taxonomy_operator&&(e.taxonomyOperator=e.taxonomyOperator?e.taxonomyOperator+":"+t.taxonomy_operator:t.taxonomy_operator)),e):e}(t,l&&window[l]&&window[l].defaults?window[l].defaults:{}
1),Ue(),"true"===a.dataset.filtersDebug&&console.log("ALM Filters Debug:",t),"function"==typeof ajaxloadmore.filter&&ajaxloadmore.filter(o,i,t),Ye(n)}};const Re=function(e){if(e){var t=d().alm_filters_facets,n=d().filter_classname,r=[];t&&(t&&t.forEach(function(e){var t=e.querySelectorAll("".concat(n,"[data-key=taxonomy],\n\t\t\t\t").concat(n,"[data-key=meta],\n\t\t\t\t").concat(n,"[data-key=_author],\n\t\t\t\t").concat(n,"[data-key=_year],\n\t\t\t\t").concat(n,"[data-key=_month],\n\t\t\t\t").concat(n,"[data-key=_day],\n\t\t\t\t").concat(n,"[data-key=category],\n\t\t\t\t").concat(n,"[data-key=category_and],\n\t\t\t\t").concat(n,"[data-key=tag],\n\t\t\t\t").concat(n,"[data-key=tag_and],\n\t\t\t\t").concat(n,"[data-key=postType]"));e.classList.add("alm-filters-facets-loaded"),r.push(Array.from(t))}),r&&r.flat().forEach(function(t){var n=t.dataset.key,r=t.dataset.fieldtype,a=!!t.dataset.isArchive;switch(n){case"taxonomy":var o=t.dataset.taxonomy;o=a?o.replace(/^_/,""):o,ze(e.taxonomies&&e.taxonomies[o]?e.taxonomies[o]:"",t,r);break;case"category":ze(e.category?e.category:"",t,r);break;case"category_and":ze(e.category__and?e.category__and:"",t,r);break;case"tag":ze(e.tag?e.tag:"",t,r);break;case"tag_and":ze(e.tag__and?e.tag__and:"",t,r);break;case"meta":var i=t.dataset.metaKey;ze(e.meta&&e.meta[i]?e.meta[i]:"",t,r);break;case"_author":ze(e.author?e.author:"",t,r);break;case"_year":ze(e.year?e.year:"",t,r);break;case"_month":ze(e.month?e.month:"",t,r);break;case"_day":ze(e.day?e.day:"",t,r);break;case"postType":ze(e.post_type?e.post_type:"",t,r)}}))}};function ze(e,n,r){var a=e?Object.keys(e):[],o=n.parentNode.classList.contains("alm-filters-facets-hide-inactive"),l=alm_filters_localize.hide_inactive_group,s=void 0===l?"1":l;if(n.dataset.active=a.length,0===a.length&&o&&"1"===s)n.style.display="none";else switch(n.removeAttribute("style"),r){case"radio":case"checkbox":var c=n.querySelectorAll("li");c&&c.forEach(function(t){var n=t.firstChild.dataset.value,i=a.includes(n),l=e&&e[n]?parseInt(e[n]):0,s=t.querySelector(".alm-filter--link");s.tabIndex="0";var c=s.querySelector(".alm-filter-counter");c&&(c.innerHTML=l),0===l&&(s.classList.add("disabled"),s.classList.remove("active"),s.tabIndex="-1"),o&&"checkbox"===r&&(i?(t.removeAttribute("style"),Ke(t)):t.style.display="none"),i||s.classList.contains("active")?0!==l&&s.classList.remove("disabled"):(s.classList.add("disabled"),s.classList.remove("active"))}),o&&function(e){if(e){var n=e.querySelector("a.alm-filter--checkbox-limit");if(n){n.removeEventListener("click",i);var r=parseInt(n.dataset.limit),a=n.dataset.template,o=n.parentNode.querySelectorAll('li.field-parent:not([style*="display: none;"])'),l=o.length,s=l-r;n.classList.remove("open"),l<=r?n.style.display="none":(n.style.display="inline-block",n.innerHTML=a.replace("%total%",s),n.addEventListener("click",i),t(o).forEach(function(e,t){t>=r&&(e.style.display="none")}))}}}(n);break;case"select":case"select_multiple":var u=n.querySelector("select"),d="true"===u.dataset.count,f=!1;Array.from(u.options).forEach(function(t){var n=t.value;if("#"!==n){var r=e&&e[n]?e[n]:"0",o=t.dataset.name;if(d){var i=u.dataset.countTemplate,l=" ".concat(i.replace("%count%",r));t.innerHTML="".concat(o).concat(l)}var s=a.includes(n);f=!!s||f,t.disabled=!s}}),u.disabled=!f,u.disabled?u.classList.add("disabled"):u.classList.remove("disabled")}}function Ke(e){if(e.classList.contains("field-child")){var t=e.parentNode.parentNode;t.removeAttribute("style"),Ke(t)}}const We=function(e,t){if(d().alm_filtering)return!1;var n=t.querySelector(".alm-filters:first-child");if(!n)return!1;var r=window.pageYOffset,a=e.dataset.target?e.dataset.target:"",o=document.querySelectorAll('.ajax-load-more-wrap[data-id="'+a+'"] .alm-listing.alm-ajax'),i=t.dataset.filtersScrolltop;if(i=i?parseInt(i):30,"true"===o[0].parentNode.dataset.nested)return!1;window.setTimeout(function(){var e=r+i,t=document.querySelectorAll(".alm-filters"),a=window.location.href,o=Array.prototype.filter.call(t,function(t,n){if("function"==typeof ajaxloadmore.getOffset&&ajaxloadmore.getOffset(t).top<e)return t}),l=o[o.length-1],s=l?l.dataset.url:"",c=l?l.dataset.page:"";if(void 0!==c&&""!==c||(c=n.dataset.page,s=n.dataset.url),a!==s){var u={page:c,permalink:s};"function"==typeof window.history.pushState&&history.replaceState(u,window.location.title,s),Ue()}},15)};function Be(e){return function(e){if(Array.isArray(e))return $e(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 $e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$e(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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const Je=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return!1;for(var t=function(t){e[t].addEventListener("mouseover",function(){!function(e,t){for(var n=0;n<t.length;n++)n<=e?t[n].classList.add("hover"):(t[n].classList.remove("hover"),t[n].classList.add("none"))}(t,e)}),e[t].addEventListener("mouseout",function(){!function(e){for(var t=0;t<e.length;t++)e[t].classList.remove("hover"),e[t].classList.remove("none")}(e)}),e[t].addEventListener("click",function(){Xe(this,e)}),e[t].addEventListener("keyup",function(t){13!==t.keyCode&&32!==t.keyCode||Xe(this,e)})},n=0;n<e.length;n++)t(n)};function Xe(e,t){var n=e.dataset.value,r=e.parentNode.parentNode.querySelector(".alm-star--feedback");if(Ze(t),e.classList.contains("active")){for(var a=n-1;a>=0;a--)t[a].classList.toggle("highlight");r&&Ge(r,e.dataset.text)}else r&&Ge(r,"")}function Ge(e,t){e.innerHTML=t}function Ze(e){if(!e)return!1;for(var t=0;t<e.length;t++)e[t].classList.remove("highlight")}function Qe(e){return function(e){if(Array.isArray(e))return et(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 et(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?et(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 et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tt(e,t){Qe(t).forEach(function(e){e.classList.remove("active"),e.classList.remove("highlight"),e.setAttribute("aria-checked",!1)}),Me(e)}const nt=function(e,t){var n=t.dataset.value;e.indexOf(n)>-1?(t.classList.add("active"),t.setAttribute("aria-checked",!0)):(t.classList.remove("active"),t.setAttribute("aria-checked",!1))};function rt(e){var t,n,r,a,o={};for(r=0,a=(t=(e=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e.replace("?",""):e).split("&")).length;r<a;r++)o[(n=t[r].split("="))[0]]=n[1];return o}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===e?e:e.split("").sort().join("")}function ot(e){return function(e){if(Array.isArray(e))return it(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 it(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?it(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 it(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
1const lt=function(e,t){var n=e.dataset.key,r=e.dataset.fieldtype,a=e.dataset.taxonomy,o=e.dataset.metaKey,i="",l="".concat("taxonomy"===n?a:n);l="meta"===n?"".concat(o):l,l=""===t?"?".concat(l):"&".concat(l);var s=e.dataset.selectedValue;switch(r){case"select_multiple":var c=e.querySelector("select"),u=c&&c.options,d="",f=0;if(!c)break;ot(u).forEach(function(e){var t=e.value;e.selected&&(d+=f>0?"+":"",""!==t&&(d+=t,f++))}),i+=f>0?"".concat(l,"=").concat(d):i;break;case"select":var m=e.querySelector("select");if(!m)break;var p=m.value;i+="#"===p||p===s?"":"".concat(l,"=").concat(p);break;case"range_slider":i+=function(e,t){var n=e.querySelector(".alm-range-slider");if(!n)return"";var r=!!n.dataset.startReset&&parseInt(n.dataset.startReset),a=!!n.dataset.endReset&&parseInt(n.dataset.endReset),o=e.querySelector("input[type=text]");if(!o||!1===r||!1===a)return"";var i=o.value;if(!i)return"";var l=o?o.value.split(","):[],s=l.length>0?parseInt(l[0]):null,c=l.length>1?parseInt(l[1]):null;return s===r&&c===a?"":"".concat(t,"=").concat(i)}(e,l);break;case"text":case"number":var h=e.querySelector("input[type=text], input[type=number]");if(!h)break;var g=h.value;i+=""===g||0===g.trim().length?"":"".concat(l,"=").concat(g);break;case"date_picker":var v=e.querySelector("input.flatpickr-input");if(!v)break;if(v.value){var y=v.value.replace(" | ","+");i+=""===v.value?"":"".concat(l,"=").concat(y)}break;default:var b=e.querySelectorAll(".alm-filter--link"),w="",S=0;if(!b.length)break;ot(b).forEach(function(e){var t=e.dataset.value;e.classList.contains("active")&&(S>0&&""!==t&&(w+="+"),""!==t&&(w+=t,S++))}),i+=S>0&&at(s)!==at(w)?"".concat(l,"=").concat(w):i}return i};function st(e){return function(e){if(Array.isArray(e))return ct(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 n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ct(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 ct(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const ut=function(e){"function"==typeof window.almFiltersChange&&window.almFiltersChange(),st(g()).forEach(function(e){e.classList.add("filtering")}),d().alm_filtering=!0;var t=e.dataset,n=t.target,r=t.redirect,a=void 0!==r&&r;n||x(),n.split(",").forEach(function(e){var t=document.querySelector('.ajax-load-more-wrap[data-id="'+e+'"]')||!1;if(t){var n=t.dataset.canonicalUrl,r=f(),o={},i="",l=function(e){var t=g();if(!t)return[];var n=[];return t.forEach(function(t){var r=t.dataset.target;if(r&&(r=r.split(",")).includes(e)){var a=t.querySelectorAll(d().filter_classname);n.push.apply(n,p(a))}}),n}(e);
1if(st(l).forEach(function(e){o=Le(e,o),r||(i+=lt(e,i))}),a)window.location.href="".concat(a).concat(i);else{var s=""!==i?rt(i,!0):"";if("function"==typeof window.almFiltersActive&&window.almFiltersActive(s),"function"==typeof window.almFiltersResetStatus&&window.almFiltersResetStatus(s),i=""===i?n:i,!d().alm_filtering_popstate&&!r&&"function"==typeof window.history.pushState){var c=t.querySelector(".alm-listing"),u={permalink:i};c&&"false"!==c.dataset.filtersUrl&&(history.pushState(u,null,i),d().pushstate=!0,"function"==typeof window.almFiltersURLUpdate&&window.almFiltersURLUpdate(i))}d().alm_filtering_popstate=!1,o.pause=!1,o.preloaded=!1,o.target=e,Ve(e,o,i)}}})};function dt(e){return function(e){if(Array.isArray(e))return ft(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 ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(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 ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const mt=function(e){var t=document.querySelector(d().filters_classname);t&&(d().alm_filtering_popstate=!0,dt(v()).forEach(function(t){var n=t.dataset.fieldtype,r=t.dataset.key;switch(r="meta"===(r="taxonomy"===r?t.dataset.taxonomy:r)?t.dataset.metaKey:r,n){case"checkbox":var a=t.querySelectorAll("div.field-checkbox");if(e.hasOwnProperty(r)){var o=e[r].split("+");dt(a).forEach(function(e){nt(o,e)})}else tt(t,a);break;case"radio":var i=t.querySelectorAll("div.field-radio");if(e.hasOwnProperty(r)){var l=e[r].split("+");dt(i).forEach(function(e){nt(l,e)})}else tt(t,i);break;case"star_rating":var s=t.querySelectorAll("div.field-starrating");if(!s)break;if(e.hasOwnProperty(r)){var c=e[r].split("+");dt(s).forEach(function(e){nt(c,e)}),function(e,t){var n=e.querySelector("div.active");if(!n)return!1;var r=n.dataset.value;Ze(t),Ge(e.querySelector(".alm-star--feedback"),n.dataset.text);for(var a=r-1;a>=0;a--)t[a].classList.toggle("highlight")}(t,s)}else tt(t,s);break;case"select":var u=t.querySelector("select");e.hasOwnProperty(r)?u.value=e[r]:u.value="#";break;case"select_multiple":var d=t.querySelector("select");if(!d)break;e.hasOwnProperty(r)?d.value=e[r]:d.value="#";break;case"date_picker":var f=t.querySelector(".flatpickr-input");if(!f)break;if(e.hasOwnProperty(r)){var m=e[r].replace("+"," | ");f.value=m}else f.value="";break;default:var p=t.querySelector("input[type=text], input[type=number]");if(!p)break;e.hasOwnProperty(r)?p.value=e[r]:p.value=""}}),ut(t))};var pt=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],ht={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
vendor: 30,126 bytes, line 1
1ox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},gt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1};const vt=gt;var yt=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},bt=function(e){return!0===e?1:0};function wt(e,t){var n;return function(){var r=this,a=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(r,a)},t)}}var St=function(e){return e instanceof Array?e:[e]};function xt(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function Ct(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function Dt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function kt(e,t){return t(e)?e:e.parentNode?kt(e.parentNode,t):void 0}function Et(e,t){var n=Ct("div","numInputWrapper"),r=Ct("input","numInput "+e),a=Ct("span","arrowUp"),o=Ct("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var i in t)r.setAttribute(i,t[i]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n}function At(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var Mt=function(){},_t=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},Ot={D:Mt,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*bt(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var r=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:Mt,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:Mt,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},Tt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Lt={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[Lt.w(e,t,n)]},F:function(e,t,n){return _t(Lt.n(e,t,n)-1,!1,t)},G:function(e,t,n){return yt(Lt.h(e,t,n))},H:function(e){return yt(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[bt(e.getHours()>11)]},M:function(e,t){return _t(e.getMonth(),!0,t)},S:function(e){return yt(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return yt(e.getFullYear(),4)},d:function(e){return yt(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return yt(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return yt(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},It=function(e){var t=e.config,n=void 0===t?ht:t,r=e.l10n,a=void 0===r?gt:r,o=e.isMobile,i=void 0!==o&&o;return function(e,t,r){var o=r||a;return void 0===n.formatDate||i?t.split("").map(function(t,r,a){return Lt[t]&&"\\"!==a[r-1]?Lt[t](e,o,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,o)}},jt=function(e){var t=e.config,n=void 0===t?ht:t,r=e.l10n,a=void 0===r?gt:r;return function(e,t,r,o){if(0===e||e){var i,l=o||a,s=e;if(e instanceof Date)i=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)i=new Date(e);else if("string"==typeof e){var c=t||(n||ht).dateFormat,u=String(e).trim();if("today"===u)i=new Date,r=!0;else if(n&&n.parseDate)i=n.parseDate(e,c);else if(/Z$/.test(u)||/GMT$/.test(u))i=new Date(e);else{for(var d=void 0,f=[],m=0,p=0,h="";m<c.length;m++){var g=c[m],v="\\"===g,y="\\"===c[m-1]||v;if(Tt[g]&&!y){h+=Tt[g];var b=new RegExp(h).exec(e);b&&(d=!0)&&f["Y"!==g?"push":"unshift"]({fn:Ot[g],val:b[++p]})}else v||(h+=".")}i=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),f.forEach(function(e){var t=e.fn,n=e.val;return i=t(i,n,l)||i}),i=d?i:void 0}}if(i instanceof Date&&!isNaN(i.getTime()))return!0===r&&i.setHours(0,0,0,0),i;n.errorHandler(new Error("Invalid date provided: "+s))}}};function Pt(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var Nt=function(e,t,n){return 3600*e+60*t+n},Ft=864e5;function qt(e){var t=e.defaultHour,n=e.defaultMinute,r=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),o=e.minDate.getMinutes(),i=e.minDate.getSeconds();t<a&&(t=a),t===a&&n<o&&(n=o),t===a&&n===o&&r<i&&(r=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),s=e.maxDate.getMinutes();(t=Math.min(t,l))===l&&(n=Math.min(s,n)),t===l&&n===s&&(r=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:r}}n(609);var Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ht.apply(this,arguments)},Yt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var o=arguments[t],i=0,l=o.length;i<l;i++,a++)r[a]=o[i];return r};function Ut(e,t){var n={config:Ht(Ht({},ht),Rt.defaultConfig),l10n:vt};function r(){var e;return(null===(e=n.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(n)}function o(){var e=n.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==n.calendarContainer&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),void 0!==n.daysContainer){var t=(n.days.offsetWidth+1)*e.showMonths;n.daysContainer.style.width=t+"px",n.calendarContainer.style.width=t+(void 0!==n.weekWrapper?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function i(e){if(0===n.selectedDates.length){var t=void 0===n.config.minDate||Pt(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),r=qt(n.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=At(e),a=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[bt(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),i=parseFloat(a.getAttribute("max")),l=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),c=e.delta||(t?38===e.which?1:-1:0),u=s+l*c;if(void 0!==a.value&&2===a.value.length){var d=a===n.hourElement,f=a===n.minuteElement;u<o?(u=i+u+bt(!d)+(bt(d)&&bt(!n.amPM)),f&&h(void 0,-1,n.hourElement)):u>i&&(u=a===n.hourElement?u-i-bt(!n.amPM):o,f&&h(void 0,1,n.hourElement)),n.amPM&&d&&(1===l?u+s===23:Math.abs(u-s)>l)&&(n.amPM.textContent=n.l10n.amPM[bt(n.amPM.textContent===n.l10n.amPM[0])]),a.value=yt(u)}}(e);var a=n._input.value;l(),Q(),n._input.value!==a&&n._debouncedChange()}function l(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=r,t=n.amPM.textContent,r=e%12+12*bt(t===n.l10n.amPM[1]));var i=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===Pt(n.latestSelectedDateObj,n.config.minDate,!0),l=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===Pt(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var s=Nt(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),u=Nt(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),d=Nt(r,a,o);if(d>u&&d<s){var f=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(s);r=f[0],a=f[1],o=f[2]}}else{if(l){var m=void 0!==n.config.maxTime?n.config.maxTime:n.config.maxDate;(r=Math.min(r,m.getHours()))===m.getHours()&&(a=Math.min(a,m.getMinutes())),a===m.getMinutes()&&(o=Math.min(o,m.getSeconds()))}if(i){var p=void 0!==n.config.minTime?n.config.minTime:n.config.minDate;(r=Math.max(r,p.getHours()))===p.getHours()&&a<p.getMinutes()&&(a=p.getMinutes()),a===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}c(r,a,o)}}function s(e){var t=e||n.latestSelectedDateObj;t&&t instanceof Date&&c(t.getHours(),t.getMinutes(),t.getSeconds())}function c(e,t,r){void 0!==n.latestSelectedDateObj&&n.latestSelectedDateObj.setHours(e%24,t,r||0,0),n.hourElement&&n.minuteElement&&!n.isMobile&&(n.hourElement.value=yt(n.config.time_24hr?e:(12+e)%12+12*bt(e%12==0)),n.minuteElement.value=yt(t),void 0!==n.amPM&&(n.amPM.textContent=n.l10n.amPM[bt(e>=12)]),void 0!==n.secondElement&&(n.secondElement.value=yt(r)))}function u(e){var t=At(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&O(n)}function d(e,t,r,a){return t instanceof Array?t.forEach(function(t){return d(e,t,r,a)}):e instanceof Array?e.forEach(function(e){return d(e,t,r,a)}):(e.addEventListener(t,r,a),void n._handlers.push({remove:function(){return e.removeEventListener(t,r,a)}}))}function f(){$("onChange")}function m(e,t){var r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),a=n.currentYear,o=n.currentMonth;try{void 0!==r&&(n.currentYear=r.getFullYear(),n.currentMonth=r.getMonth())}catch(e){e.message="Invalid date supplied: "+r,n.config.errorHandler(e)}t&&n.currentYear!==a&&($("onYearChange"),x()),!t||n.currentYear===a&&n.currentMonth===o||$("onMonthChange"),n.redraw()}function p(e){var t=At(e);~t.className.indexOf("arrow")&&h(e,t.classList.contains("arrowUp")?1:-1)}function h(e,t,n){var r=e&&At(e),a=n||r&&r.parentNode&&r.parentNode.firstChild,o=J("increment");o.delta=t,a&&a.dispatchEvent(o)}function g(e,t,r,a){var o=T(t,!0),i=Ct("span",e,t.getDate().toString());return i.dateObj=t,i.$i=a,i.setAttribute("aria-label",n.formatDate(t,n.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===Pt(t,n.now)&&(n.todayDateElem=i,i.classList.add("today"),i.setAttribute("aria-current","date")),o?(i.tabIndex=-1,X(t)&&(i.classList.add("selected"),n.selectedDateElem=i,"range"===n.config.mode&&(xt(i,"startRange",n.selectedDates[0]&&0===Pt(t,n.selectedDates[0],!0)),xt(i,"endRange",n.selectedDates[1]&&0===Pt(t,n.selectedDates[1],!0)),"nextMonthDay"===e&&i.classList.add("inRange")))):i.classList.add("flatpickr-disabled"),"range"===n.config.mode&&function(e){return!("range"!==n.config.mode||n.selectedDates.length<2)&&(Pt(e,n.selectedDates[0])>=0&&Pt(e,n.selectedDates[1])<=0)}(t)&&!X(t)&&i.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(t)+"</span>"),$("onDayCreate",i),i}function v(e){e.focus(),"range"===n.config.mode&&P(e)}function y(e){for(var t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1,a=t;a!=r;a+=e)for(var o=n.daysContainer.children[a],i=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,s=i;s!=l;s+=e){var c=o.children[s];if(-1===c.className.indexOf("hidden")&&T(c.dateObj))return c}}function b(e,t){var a=r(),o=L(a||document.body),i=void 0!==e?e:o?a:void 0!==n.selectedDateElem&&L(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&L(n.todayDateElem)?n.todayDateElem:y(t>0?1:-1);void 0===i?n._input.focus():o?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,a=t>0?n.config.showMonths:-1,o=t>0?1:-1,i=r-n.currentMonth;i!=a;i+=o)for(var l=n.daysContainer.children[i],s=r-n.currentMonth===i?e.$i+t:t<0?l.children.length-1:0,c=l.children.length,u=s;u>=0&&u<c&&u!=(t>0?c:-1);u+=o){var d=l.children[u];if(-1===d.className.indexOf("hidden")&&T(d.dateObj)&&Math.abs(e.$i-u)>=Math.abs(t))return v(d)}n.changeMonth(o),b(y(o),0)}(i,t):v(i)}function w(e,t){for(var r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,a=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),l=n.config.showMonths>1,s=l?"prevMonthDay hidden":"prevMonthDay",c=l?"nextMonthDay hidden":"nextMonthDay",u=a+1-r,d=0;u<=a;u++,d++)i.appendChild(g("flatpickr-day "+s,new Date(e,t-1,u),0,d));for(u=1;u<=o;u++,d++)i.appendChild(g("flatpickr-day",new Date(e,t,u),0,d));for(var f=o+1;f<=42-r&&(1===n.config.showMonths||d%7!=0);f++,d++)i.appendChild(g("flatpickr-day "+c,new Date(e,t+1,f%o),0,d));var m=Ct("div","dayContainer");return m.appendChild(i),m}function S(){if(void 0!==n.daysContainer){Dt(n.daysContainer),n.weekNumbers&&Dt(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<n.config.showMonths;t++){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),e.appendChild(w(r.getFullYear(),r.getMonth()))}n.daysContainer.appendChild(e),n.days=n.daysContainer.firstChild,"range"===n.config.mode&&1===n.selectedDates.length&&P()}}function x(){if(!(n.config.showMonths>1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&e<n.config.minDate.getMonth())&&!(void 0!==n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()&&e>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=Ct("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=_t(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function C(){var e,t=Ct("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=Ct("span","cur-month"):(n.monthsDropdownContainer=Ct("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),d(n.monthsDropdownContainer,"change",function(e){var t=At(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),$("onMonthChange")}),x(),e=n.monthsDropdownContainer);var a=Et("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var i=Ct("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(a),r.appendChild(i),t.appendChild(r),{container:t,yearElement:o,monthElement:e}}function D(){Dt(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=C();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function k(){n.weekdayContainer?Dt(n.weekdayContainer):n.weekdayContainer=Ct("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=Ct("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return E(),n.weekdayContainer}function E(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=Yt(n.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=Yt(t.splice(e,t.length),t.splice(0,e)));for(var r=n.config.showMonths;r--;)n.weekdayContainer.children[r].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function A(e,t){void 0===t&&(t=!0);var r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,$("onYearChange"),x()),S(),$("onMonthChange"),G())}function M(e){return n.calendarContainer.contains(e)}function _(e){if(n.isOpen&&!n.config.inline){var t=At(e),r=M(t),a=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!r&&!M(e.relatedTarget),o=!n.config.ignoredFocusElements.some(function(e){return e.contains(t)});a&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&i(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function O(e){if(!(!e||n.config.minDate&&e<n.config.minDate.getFullYear()||n.config.maxDate&&e>n.config.maxDate.getFullYear())){var t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),$("onYearChange"),x())}}function T(e,t){var r;void 0===t&&(t=!0);var a=n.parseDate(e,void 0,t);if(n.config.minDate&&a&&Pt(a,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&a&&Pt(a,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!n.config.enable,i=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,l=0,s=void 0;l<i.length;l++){if("function"==typeof(s=i[l])&&s(a))return o;if(s instanceof Date&&void 0!==a&&s.getTime()===a.getTime())return o;if("string"==typeof s){var c=n.parseDate(s,void 0,!0);return c&&c.getTime()===a.getTime()?o:!o}if("object"==typeof s&&void 0!==a&&s.from&&s.to&&a.getTime()>=s.from.getTime()&&a.getTime()<=s.to.getTime())return o}return!o}function L(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function I(e){var t=e.target===n._input,r=n._input.value.trimEnd()!==Z();!t||!r||e.relatedTarget&&M(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function j(t){var a=At(t),o=n.config.wrap?e.contains(a):a===n._input,s=n.config.allowInput,c=n.isOpen&&(!s||!o),u=n.config.inline&&o&&!s;if(13===t.keyCode&&o){if(s)return n.setDate(n._input.value,!0,a===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),a.blur();n.open()}else if(M(a)||c||u){var d=!!n.timeContainer&&n.timeContainer.contains(a);switch(t.keyCode){case 13:d?(t.preventDefault(),i(),V()):R(t);break;case 27:t.preventDefault(),V();break;case 8:case 46:o&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(d||o)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var f=r();if(void 0!==n.daysContainer&&(!1===s||f&&L(f))){var m=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),A(m),b(y(1),0)):b(void 0,m)}}break;case 38:case 40:t.preventDefault();var p=40===t.keyCode?1:-1;n.daysContainer&&void 0!==a.$i||a===n.input||a===n.altInput?t.ctrlKey?(t.stopPropagation(),O(n.currentYear-p),b(y(1),0)):d||b(void 0,7*p):a===n.currentYearElement?O(n.currentYear-p):n.config.enableTime&&(!d&&n.hourElement&&n.hourElement.focus(),i(t),n._debouncedChange());break;case 9:if(d){var h=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(e){return e}),g=h.indexOf(a);if(-1!==g){var v=h[g+(t.shiftKey?-1:1)];t.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(a)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&a===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],l(),Q();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],l(),Q()}(o||M(a))&&$("onKeyDown",t)}function P(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),a=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(r,n.selectedDates[0].getTime()),i=Math.max(r,n.selectedDates[0].getTime()),l=!1,s=0,c=0,u=o;u<i;u+=Ft)T(new Date(u),!0)||(l=l||u>o&&u<i,u<a&&(!s||u>s)?s=u:u>a&&(!c||u<c)&&(c=u));Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+t)).forEach(function(t){var o,i,u,d=t.dateObj.getTime(),f=s>0&&d<s||c>0&&d>c;if(f)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});l&&!f||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),a<r&&d===a?t.classList.add("startRange"):a>r&&d===a&&t.classList.add("endRange"),d>=s&&(0===c||d<=c)&&(i=a,u=r,(o=d)>Math.min(i,u)&&o<Math.max(i,u))&&t.classList.add("inRange")))})}}function N(){!n.isOpen||n.config.static||n.config.inline||Y()}function F(e){return function(t){var r=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),a=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(e){return T(e)}),n.selectedDates.length||"min"!==e||s(r),Q()),n.daysContainer&&(U(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!a&&void 0!==r&&a.getFullYear()===r.getFullYear())}}function q(){return n.config.wrap?e.querySelector("[data-input]"):e}function H(){"object"!=typeof n.config.locale&&void 0===Rt.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=Ht(Ht({},Rt.l10ns.default),"object"==typeof n.config.locale?n.config.locale:"default"!==n.config.locale?Rt.l10ns[n.config.locale]:void 0),Tt.D="("+n.l10n.weekdays.shorthand.join("|")+")",Tt.l="("+n.l10n.weekdays.longhand.join("|")+")",Tt.M="("+n.l10n.months.shorthand.join("|")+")",Tt.F="("+n.l10n.months.longhand.join("|")+")",Tt.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===Ht(Ht({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===Rt.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=It(n),n.parseDate=jt({config:n.config,l10n:n.l10n})}function Y(e){if("function"!=typeof n.config.position){if(void 0!==n.calendarContainer){$("onPreCalendarPosition");var t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),i=o[0],l=o.length>1?o[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,u="above"===i||"below"!==i&&c<r&&s.top>r,d=window.pageYOffset+s.top+(u?-r-2:t.offsetHeight+2);if(xt(n.calendarContainer,"arrowTop",!u),xt(n.calendarContainer,"arrowBottom",u),!n.config.inline){var f=window.pageXOffset+s.left,m=!1,p=!1;"center"===l?(f-=(a-s.width)/2,m=!0):"right"===l&&(f-=a-s.width,p=!0),xt(n.calendarContainer,"arrowLeft",!m&&!p),xt(n.calendarContainer,"arrowCenter",m),xt(n.calendarContainer,"arrowRight",p);var h=window.document.body.offsetWidth-(window.pageXOffset+s.right),g=f+a>window.document.body.offsetWidth,v=h+a>window.document.body.offsetWidth;if(xt(n.calendarContainer,"rightMost",g),!n.config.static)if(n.calendarContainer.style.top=d+"px",g)if(v){var y=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(r=document.createElement("style"),document.head.appendChild(r),r.sheet);var r}();if(void 0===y)return;var b=window.document.body.offsetWidth,w=Math.max(0,b/2-a/2),S=y.cssRules.length,x="{left:"+s.left+"px;right:auto;}";xt(n.calendarContainer,"rightMost",!1),xt(n.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,S),n.calendarContainer.style.left=w+"px",n.calendarContainer.style.right="auto"}else n.calendarContainer.style.left="auto",n.calendarContainer.style.right=h+"px";else n.calendarContainer.style.left=f+"px",n.calendarContainer.style.right="auto"}}}else n.config.position(n,e)}function U(){n.config.noCalendar||n.isMobile||(x(),G(),S())}function V(){n._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(n.close,0):n.close()}function R(e){e.preventDefault(),e.stopPropagation();var t=kt(At(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var r=t,a=n.latestSelectedDateObj=new Date(r.dateObj.getTime()),o=(a.getMonth()<n.currentMonth||a.getMonth()>n.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[a];else if("multiple"===n.config.mode){var i=X(a);i?n.selectedDates.splice(parseInt(i),1):n.selectedDates.push(a)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=a,n.selectedDates.push(a),0!==Pt(a,n.selectedDates[0],!0)&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(l(),o){var s=n.currentYear!==a.getFullYear();n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth(),s&&($("onYearChange"),x()),$("onMonthChange")}if(G(),S(),Q(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():v(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var c="single"===n.config.mode&&!n.config.enableTime,u="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(c||u)&&V()}f()}}n.parseDate=jt({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=d,n._setHoursFromDate=s,n._positionCalendar=Y,n.changeMonth=A,n.changeYear=O,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var r=qt(n.config);c(r.hours,r.minutes,r.seconds)}n.redraw(),e&&$("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));$("onClose")},n.onMouseOver=P,n._createElement=Ct,n.createDay=g,n.destroy=function(){void 0!==n.config&&$("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
1isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete n[e]}catch(e){}})},n.isEnabled=T,n.jumpToDate=m,n.updateValue=Q,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var r=At(e);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void $("onOpen")}if(n._input.disabled||n.config.inline)return;var a=n.isOpen;n.isOpen=!0,a||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),$("onOpen"),Y(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return n.hourElement.select()},50))},n.redraw=U,n.set=function(e,t){if(null!==e&&"object"==typeof e)for(var r in Object.assign(n.config,e),e)void 0!==z[r]&&z[r].forEach(function(e){return e()});else n.config[e]=t,void 0!==z[e]?z[e].forEach(function(e){return e()}):pt.indexOf(e)>-1&&(n.config[e]=St(t));n.redraw(),Q(!0)},n.setDate=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);K(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),m(void 0,t),s(),0===n.selectedDates.length&&n.clear(!1);Q(t),t&&$("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var z={locale:[H,E],showMonths:[D,o,k],minDate:[m],maxDate:[m],positionElement:[B],clickOpens:[function(){!0===n.config.clickOpens?(d(n._input,"focus",n.open),d(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function K(e,t){var r=[];if(e instanceof Array)r=e.map(function(e){return n.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)r=[n.parseDate(e,t)];else if("string"==typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map(function(e){return n.parseDate(e,t)});break;case"range":r=e.split(n.l10n.rangeSeparator).map(function(e){return n.parseDate(e,t)})}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter(function(e){return e instanceof Date&&T(e,!1)}),"range"===n.config.mode&&n.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function W(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function B(){n._positionElement=n.config.positionElement||n._input}function $(e,t){if(void 0!==n.config){var r=n.config[e];if(void 0!==r&&r.length>0)for(var a=0;r[a]&&a<r.length;a++)r[a](n.selectedDates,n.input.value,n,t);"onChange"===e&&(n.input.dispatchEvent(J("change")),n.input.dispatchEvent(J("input")))}}function J(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function X(e){for(var t=0;t<n.selectedDates.length;t++){var r=n.selectedDates[t];if(r instanceof Date&&0===Pt(r,e))return""+t}return!1}function G(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(e,t){var r=new Date(n.currentYear,n.currentMonth,1);r.setMonth(n.currentMonth+t),n.config.showMonths>1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=_t(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()}),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=void 0!==n.config.maxDate&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Z(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(e){return n.formatDate(e,t)}).filter(function(e,t,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t}).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Q(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Z(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=Z(n.config.altFormat)),!1!==e&&$("onValueUpdate")}function ee(e){var t=At(e),r=n.prevMonthNav.contains(t),a=n.nextMonthNav.contains(t);r||a?A(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var r=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],o=Ht(Ht({},JSON.parse(JSON.stringify(e.dataset||{}))),t),i={};n.config.parseDate=o.parseDate,n.config.formatDate=o.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=W(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=W(e)}});var l="time"===o.mode;if(!o.dateFormat&&(o.enableTime||l)){var s=Rt.defaultConfig.dateFormat||ht.dateFormat;i.dateFormat=o.noCalendar||l?"H:i"+(o.enableSeconds?":S":""):s+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||l)&&!o.altFormat){var c=Rt.defaultConfig.altFormat||ht.altFormat;i.altFormat=o.noCalendar||l?"h:i"+(o.enableSeconds?":S K":" K"):c+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:F("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:F("max")});var u=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:u("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:u("max")}
vendor: 10,091 bytes, line 1
1),"time"===o.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,i,o);for(var d=0;d<r.length;d++)n.config[r[d]]=!0===n.config[r[d]]||"true"===n.config[r[d]];pt.filter(function(e){return void 0!==n.config[e]}).forEach(function(e){n.config[e]=St(n.config[e]||[]).map(a)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&"single"===n.config.mode&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(d=0;d<n.config.plugins.length;d++){var f=n.config.plugins[d](n)||{};for(var m in f)pt.indexOf(m)>-1?n.config[m]=St(f[m]).map(a).concat(n.config[m]):void 0===o[m]&&(n.config[m]=f[m])}o.altInputClass||(n.config.altInputClass=q().className+" "+n.config.altInputClass);$("onParseConfig")}(),H(),function(){if(n.input=q(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=Ct(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");B()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&K(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=Ct("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=Ct("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=Ct("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=Ct("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,D(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(xt(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(xt(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],G(),n.monthNav)),n.innerContainer=Ct("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=Ct("div","flatpickr-weekwrapper");e.appendChild(Ct("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=Ct("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,a=t.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=a,n.weekWrapper=r}n.rContainer=Ct("div","flatpickr-rContainer"),n.rContainer.appendChild(k()),n.daysContainer||(n.daysContainer=Ct("div","flatpickr-days"),n.daysContainer.tabIndex=-1),S(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=qt(n.config);n.timeContainer=Ct("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=Ct("span","flatpickr-time-separator",":"),r=Et("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var a=Et("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=a.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=yt(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=yt(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(a),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=Et("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=yt(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(Ct("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=Ct("span","flatpickr-am-pm",n.l10n.amPM[bt((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());xt(n.calendarContainer,"rangeMode","range"===n.config.mode),xt(n.calendarContainer,"animate",!0===n.config.animate),xt(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var i=Ct("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(i,n.element),i.appendChild(n.element),n.altInput&&i.appendChild(n.altInput),i.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),function(t){return d(t,"click",n[e])})});if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=Ct("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(e){}d(n.mobileInput,"change",function(e){n.setDate(At(e).value,!1,n.mobileFormatStr),$("onChange"),$("onClose")})}();var e=wt(N,50);n._debouncedChange=wt(f,300),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&d(n.daysContainer,"mouseover",function(e){"range"===n.config.mode&&P(At(e))});d(n._input,"keydown",j),void 0!==n.calendarContainer&&d(n.calendarContainer,"keydown",j);n.config.inline||n.config.static||d(window,"resize",e);void 0!==window.ontouchstart?d(window.document,"touchstart",_):d(window.document,"mousedown",_);d(window.document,"focus",_,{capture:!0}),!0===n.config.clickOpens&&(d(n._input,"focus",n.open),d(n._input,"click",n.open));void 0!==n.daysContainer&&(d(n.monthNav,"click",ee),d(n.monthNav,["keyup","increment"],u),d(n.daysContainer,"click",R));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return At(e).select()};d(n.timeContainer,["increment"],i),d(n.timeContainer,"blur",i,{capture:!0}),d(n.timeContainer,"click",p),d([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&d(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),void 0!==n.amPM&&d(n.amPM,"click",function(e){i(e)})}n.config.allowInput&&d(n._input,"blur",I)}
1(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&s(n.config.noCalendar?n.latestSelectedDateObj:void 0),Q(!1)),o();var r=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&r&&Y(),$("onReady")}(),n}function Vt(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),r=[],a=0;a<n.length;a++){var o=n[a];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=Ut(o,t||{}),r.push(o._flatpickr)}catch(e){console.error(e)}}return 1===r.length?r[0]:r}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return Vt(this,e)},HTMLElement.prototype.flatpickr=function(e){return Vt([this],e)});var Rt=function(e,t){return"string"==typeof e?Vt(window.document.querySelectorAll(e),t):e instanceof Node?Vt([e],t):Vt(e,t)};Rt.defaultConfig={},Rt.l10ns={en:Ht({},vt),default:Ht({},vt)},Rt.localize=function(e){Rt.l10ns.default=Ht(Ht({},Rt.l10ns.default),e)},Rt.setDefaults=function(e){Rt.defaultConfig=Ht(Ht({},Rt.defaultConfig),e)},Rt.parseDate=jt({}),Rt.formatDate=It({}),Rt.compareDates=Pt,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return Vt(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=Rt);const zt=Rt;function Kt(e){return Kt="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},Kt(e)}function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Kt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Kt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){return function(e){if(Array.isArray(e))return Jt(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 Jt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jt(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 Jt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xt(e,t){if(!t)return!1;$t(t).forEach(function(t,n){var r=t.dataset.displayMode?t.dataset.displayMode:"single",a=t.dataset.displayFormat?t.dataset.displayFormat:"Y-m-d",o=t.dataset.dateLocale?t.dataset.dateLocale:"en",i="en"!==o?zt.l10ns[o]:null,l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach(function(t){Bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({dateFormat:a,mode:r},i?{locale:i}:{}),s=window[""!==e?"alm_flatpickr_opts_"+e:"alm_flatpickr_opts"];s&&Object.keys(s).forEach(function(e){l[e]=s[e]}),i&&(l.locale.rangeSeparator=" | ");zt(t,l)})}function Gt(e){return function(e){if(Array.isArray(e))return Zt(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 Zt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(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 Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}window.flatpickr=zt;var Qt=function(n){if(n){var r=n.dataset,a=r.style,l=r.target,s=void 0===l?"":l;s||x(),s.split(",").forEach(function(e){document.querySelector('.ajax-load-more-wrap[data-id="'.concat(e,'"]'))||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"null";
1console.warn('Ajax Load More: Filters - Unable to locate core Ajax Load More instance with the ID of "'+e+'". Ensure the target attribute is set correctly on each instance of filters.')}(e)});var u=function(){if(d().alm_filtering)return!1;ut(n)},f=function(e){if(e.preventDefault(),d().alm_filtering)return!1;var t=e.currentTarget,r=t.dataset.type,o=t.id,i=t.closest(".alm-filter"),l=i.querySelectorAll(".alm-filter--link");if("all"===r)t.classList.contains("active")?Gt(l).forEach(function(e,t){e.classList.remove("active"),e.setAttribute("aria-checked",!1)}):Gt(l).forEach(function(e,t){e.classList.add("active"),e.setAttribute("aria-checked",!0)});else{if("radio"===r||"star_rating"===r){if(i.classList.contains("alm-filter--preselected")&&t.classList.contains("active"))return e.preventDefault(),!1;Gt(l).forEach(function(e,t){e.id!==o&&(e.classList.remove("active"),e.setAttribute("aria-checked",!1)),"radio"===r&&e.setAttribute("tabindex",e.id===o?"0":"-1")})}t.classList.contains("active")?(t.classList.remove("active"),t.setAttribute("aria-checked",!1)):(t.classList.add("active"),t.setAttribute("aria-checked",!0)),S(r,l,i)}"change"===a&&ut(n)},m=n.querySelectorAll(".alm-filter--link");m&&Gt(m).forEach(function(e,t){e.addEventListener("click",f),e.addEventListener("keyup",function(e){var t=e.keyCode;13!==t&&32!==t||f(e)}),e.addEventListener("keydown",function(e){if(32===e.keyCode)return e.preventDefault(),e.stopPropagation(),!1})});var p=n.querySelectorAll("div.alm-filter[data-fieldtype=radio]");p&&(Gt(p).forEach(function(t){var n=t.querySelector("ul");e.init(n,{selector:".alm-filter--link"})}),Gt(p).forEach(function(e){var t=e.querySelectorAll(".alm-filter--link"),n=!1;Gt(t).forEach(function(e){e.classList.contains("active")&&!n?(e.setAttribute("tabindex","0"),n=!0):e.setAttribute("tabindex","-1")}),!n&&t.length>0&&t[0].setAttribute("tabindex","0")}));var h=n.querySelectorAll("div.alm-filter[data-fieldtype=star_rating]");h&&Gt(h).forEach(function(e){var t=e.querySelectorAll("li div.field-starrating");t&&Je(t)});var g=n.querySelectorAll(".alm-filter--text-wrap.has-button button");if(g&&Gt(g).forEach(function(e){e.addEventListener("click",u)}),"change"===a){var v=n.querySelectorAll(".alm-filter--item");v&&Gt(v).forEach(function(e){e.addEventListener("change",u)})}if("button"===a){var y=n.querySelector(".alm-filters--submit-button");y&&y.addEventListener("click",u)}var b=n.querySelector(d().reset_btn_classname);b&&b.addEventListener("click",function(){window.almFiltersClear(!0,n)});var w=n.querySelectorAll(".alm-filter--textfield");w&&Gt(w).forEach(function(e){e.addEventListener("keyup",function(e){13===e.keyCode&&u()}),e.addEventListener("focus",function(e){e.target.parentNode.classList.add("has-focus")}),e.addEventListener("focusout",function(e){e.target.parentNode.classList.remove("has-focus")})});var C=n.querySelectorAll("input.alm-flatpickr");C&&Xt(n.dataset.id,C);var D=n.querySelectorAll("div.alm-range-slider");D&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"button";if(!t)return!1;we(t).forEach(function(t,r){var a=t.querySelector(".alm-range-slider--target"),o=t.querySelector(".alm-range-slider--label"),i=t.querySelector(".alm-range-slider--reset"),l=t.parentNode.querySelector("input"),s=t.dataset.min?parseInt(t.dataset.min):0,c=t.dataset.max?parseInt(t.dataset.max):100,u=t.dataset.start?parseInt(t.dataset.start):s,d=t.dataset.startReset?parseInt(t.dataset.startReset):u,f=t.dataset.end?parseInt(t.dataset.end):c,m=t.dataset.endReset?parseInt(t.dataset.endReset):f,p=t.dataset.steps?Number(t.dataset.steps):1,h=t.dataset.label?t.dataset.label:"{start} - {end}",g=t.dataset.orientation?t.dataset.orientation:"horizontal",v=t.dataset.decimals?t.dataset.decimals:"true",y={start:[u,f],step:p,connect:!0,behaviour:"tap",orientation:g,range:{min:s,max:c}};(v="true"===v)||(y.format={to:function(e){return 0|e},from:function(e){return 0|e}});var b=window[""!==e?"alm_nouislider_opts_"+e:"alm_nouislider_opts"];b&&Object.keys(b).forEach(function(e){y[e]=b[e]}),be.create(a,y),a.noUiSlider.on("update",function(){var t=this.get();o.innerHTML=Ce(t,s,c,h,e)}),a.noUiSlider.on("end",function(){var e=this.get();if("change"===n){var t=document.createEvent("Event");t.initEvent("keyup",!0,!1),t.which=t.keyCode=13,l.dispatchEvent(t)}i&&De(i,e,d,m)}),a.noUiSlider.on("change",function(){xe(this,o,l,i,s,c,d,m,h,n,e)}),a.noUiSlider.on("set",function(){xe(this,o,l,i,s,c,d,m,h,n,e)}),i&&(i.addEventListener("click",function(){a.noUiSlider.set([d,m])}),De(i,a.noUiSlider.get(),d,m)),window["ajax_load_more_range_".concat(e,"_").concat(r)]=a})}(n.dataset.id,D,a);var k=n.querySelectorAll("div.alm-filter--title .alm-filter--toggle");
1k&&t(k).forEach(function(e){e.addEventListener("click",function(){o(this)}),e.addEventListener("keyup",function(e){var t=e.keyCode;13!==t&&32!==t||(e.preventDefault(),o(e.target))})});var E=n.querySelectorAll("a.alm-filter--checkbox-limit");E&&t(E).forEach(function(e){e.addEventListener("click",i)}),Ye(window.location.search),c(n)}};window.almFiltersFacets=function(e){Re(e)},window.almFiltersResetStatus=function(e){var t=document.querySelectorAll(d().reset_btn_classname);t&&Gt(t).forEach(function(t){t.style.display=""===e?"none":"block"})},window.removeSelectedFilter=function(e){var t=e.dataset,n=t.key,r=t.value,a=Ie(n),o=a.target,i=a.fieldType;if(o&&i){var l=je(o,r,i),s=o.closest(d().filters_classname);if(s)switch(a.fieldType){case"select":l.value=o.dataset.selectedValue?o.dataset.selectedValue:"#",ut(s);break;case"text":case"number":l.value="",ut(s);break;case"range_slider":ke(l);break;default:l.click(),"button"===s.dataset.style&&ut(s)}}},window.removeSelectedFilterEnter=function(e){13===e.keyCode&&removeSelectedFilter(e.target)};var en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=d().filters_classname,r=e?document.querySelectorAll("".concat(n,'[data-id="').concat(e,'"]')):document.querySelectorAll("".concat(n));if(r&&(r.forEach(function(e){if(Qt(e),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return!1;y(e.querySelectorAll(".alm-filter[data-fieldtype=checkbox]")).forEach(function(e,t){var n=e.querySelector(".alm-filter--link[data-type=all]");if(!n)return!1;var r=e.querySelectorAll(".alm-filter--link[data-type=checkbox]");if(!r)return!1;y(r).filter(function(e){return!e.classList.contains("active")}).length<1&&n.classList.add("active")})}(e),t)return!0;var n=e.dataset.target,r=document.querySelector('.ajax-load-more-wrap[data-id="'.concat(n,'"]'));if(r){var a=r.querySelector(".alm-listing[data-filters=true]");if(!f()&&a&&"true"!==a.dataset.paging)"true"===a.dataset.filtersPaging&&(window.addEventListener("touchstart",function(){We(e,a)}),window.addEventListener("scroll",function(){We(e,a)}))}}),"function"==typeof window.history.pushState)){var a=window.location.search,o={permalink:a};if(history.replaceState(o,null,a),a){var i=rt(a,!0);"function"==typeof window.almFiltersResetStatus&&window.almFiltersResetStatus(i)}}};window.addEventListener("load",function(){d().almFilters&&en()}),window.addEventListener("popstate",function(e){if((d().almFilters||document.querySelector(d().filters_classname))&&d().pushstate&&!f())if(null!==e.state){var t=window.location.search,n=e.state?e.state.permalink:t;n=n.replace("?","");var r=document.querySelector(d().reset_btn_classname);n&&""!==t?(mt(m(n)),r&&(r.style.display="block")):(window.almFiltersClear(!1),r&&(r.style.display="none"))}else e.preventDefault()}),window.almFiltersPaged=function(e){!function(e,t){var n="true"===e.main.dataset.nested;if(e.finished||n||f())return!1;var r={},a=e.page+1;a=e.preloaded?a+1:a;var o=window.location.search.substring(1);o?(r=m(o),Object.keys(r).length&&(r.pg=a)):r.pg=a;var i="?",l=0;if(Object.keys(r).forEach(function(e){++l>1&&(i+="&"),i+="".concat(e,"=").concat(r[e])}),i=""===(i="?"===(i=1==a?i.replace(/\A?pg=[^&]+&*/g,""):i)[i.length-1]||"&"===i[i.length-1]?i.substring(0,i.length-1):i)?e.canonical_url:i,e.addons.filters_paging){var s={permalink:i};history.replaceState(s,null,i)}var c=e.addons.filters_scroll;if("function"==typeof ajaxloadmore.almScroll&&c&&!t){var u=e.listing;if(!u)return!1;var d=ajaxloadmore.getOffset(u).top-(e.addons.filters_scrolltop?parseInt(e.addons.filters_scrolltop):30)+1;ajaxloadmore.almScroll(d)}}(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1])};var tn=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t||(d().almFilters||document.querySelector(".alm-filters-container"));if(!n)return!1;var r=n.dataset.target,a=v();if(a){var o={};Gt(a).forEach(function(e){Me(e),o=Le(e,o)}),e?ut(n):Ve(r,o)}};window.almFiltersClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(){var e=document.querySelectorAll(".alm-filter--link.field-starrating");e&&Be(e).forEach(function(e){e.classList.remove("active"),e.classList.remove("highlight"),e.classList.remove("hover")});var t=document.querySelectorAll(".alm-star--feedback");e&&Be(t).forEach(function(e){e.innerHTML=""})}(),almfilters.reset(e,t)};var nn=function(){var e=window.location.search.replace("?","");if(!e)return{};var t=m(e),n={};for(var r in t)n[r]=t[r];return n},rn=function(e){e&&Me(e)},an=function(e){var t=e.querySelector(".alm-filters-container");if(!t||"true"===t.dataset.blockLoaded)return!0;t.dataset.blockLoaded="true";var n=t.dataset.id;
1n&&en(n,!0)};window.almFiltersOnload=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e||f())return!1;setTimeout(function(){var t=parseInt(e.page)+1,n=0;if(t>1){var r=function(){if(!(n>5)){var a=e.listing.querySelector('.alm-filters[data-page="'+t+'"]');if(a){var o=("function"==typeof ajaxloadmore.getOffset?ajaxloadmore.getOffset(a).top:a.offsetTop)-(e.addons.filters_scrolltop?parseInt(e.addons.filters_scrolltop):30)+1;window.scrollTo(0,o)}else setTimeout(function(){n++,r()},250)}};r()}},d().delay)},window.almFiltersAddonComplete=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=e.querySelector(".alm-listing"),n=!1,r=30;t&&(n="true"===t.dataset.filtersScroll,r=t.dataset.filtersScrolltop?parseInt(t.dataset.filtersScrolltop):30),setTimeout(function(){if(d().alm_filtering=!1,Gt(g()).forEach(function(e){e.classList.remove("filtering")}),"function"==typeof window.almFiltersComplete&&window.almFiltersComplete(),"function"==typeof ajaxloadmore.almScroll&&n){if(!e)return;var t=("function"==typeof ajaxloadmore.getOffset?ajaxloadmore.getOffset(e).top:e.offsetTop)-r+1;ajaxloadmore.almScroll(t)}},d().delay)}})(),almfilters=r})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.