// source --> https://www.cerratinga.org.br/wp-includes/js/jquery/jquery.min.js?ver=3.7.1 
/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
jQuery.noConflict();
// source --> https://www.cerratinga.org.br/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1 
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter-pro/assets/frontend/app.js?ver=53ea2d62de334b9d150f 
/*! For license information please see app.js.LICENSE.txt */
window.searchAndFilter||(window.searchAndFilter={}),window.searchAndFilter.frontend||(window.searchAndFilter.frontend={packages:{core:{hooks:{}},utils:{},components:{},fields:{},registry:{},hooks:{},extensions:{},storybook:{}}}),function(){var e={395:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},509:function(){const e=Element.prototype.insertBefore,t=new WeakSet;Element.prototype.insertBefore=function(n,r){return n instanceof Text&&r instanceof HTMLElement&&"font"===r.localName&&!t.has(n)?(t.add(n),n):e.call(this,n,r)},window.addEventListener("beforeunload",(()=>{Element.prototype.insertBefore=e}))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{get:function(){return h},register:function(){return p}});var t={};n.r(t),n.d(t,{useCallback:function(){return ke},useContext:function(){return Pe},useDebugValue:function(){return Ie},useEffect:function(){return xe},useErrorBoundary:function(){return Te},useId:function(){return De},useImperativeHandle:function(){return Le},useLayoutEffect:function(){return Ee},useMemo:function(){return Ae},useReducer:function(){return Se},useRef:function(){return Ne},useState:function(){return Ce}});var r={};n.r(r),n.d(r,{assignObject:function(){return st},classNames:function(){return tt()},cloneArray:function(){return it},cloneObject:function(){return at},debounce:function(){return dt},forEach:function(){return lt},getNumericString:function(){return ft},getRealInputType:function(){return vt},getUid:function(){return _t},log:function(){return yt},mergeObjects:function(){return ut},mergeRefs:function(){return ct},onDocumentInteractive:function(){return gt},onInitDocument:function(){return pt}});var o={};n.r(o),n.d(o,{Button:function(){return ot},ButtonGroup:function(){return At},CheckableButton:function(){return Et},CheckableOptions:function(){return Tt},CheckableSkeleton:function(){return It},Description:function(){return Ze},FocusProvider:function(){return Ge},Icon:function(){return nt},InputGroup:function(){return Dt},Label:function(){return Je},Popover:function(){return bn},RadioControl:function(){return Sn},TextControl:function(){return An},TextControlContainer:function(){return En},TextInput:function(){return kn},checkableGetNextState:function(){return Pt},useFocusContext:function(){return ze},useFocusDispatch:function(){return Qe},useFocusEvent:function(){return Ye},usePopover:function(){return yn}});var i={};n.r(i),n.d(i,{AutocompleteControl:function(){return Dn},Label:function(){return Rn}});var s={};n.r(s),n.d(s,{Component:function(){return R},Fragment:function(){return $},cloneElement:function(){return se},createContext:function(){return le},createElement:function(){return O},createPortal:function(){return tn},createRef:function(){return q},h:function(){return O},hooks:function(){return t},hydrate:function(){return ie},isValidElement:function(){return v},options:function(){return m},render:function(){return oe},toChildArray:function(){return K}});var l={};n.r(l),n.d(l,{Button:function(){return _r},Checkbox:function(){return er},DatePicker:function(){return mr},PerPage:function(){return Sr},Radio:function(){return Qn},Reset:function(){return yr},Select:function(){return zn},Sort:function(){return Cr},Submit:function(){return vr},Text:function(){return hr},__getInputClassName:function(){return Hn}});var a={};n.r(a),n.d(a,{Autocomplete:function(){return Nr},DatePicker:function(){return Rr},LoadMore:function(){return $r},RangeNumber:function(){return Dr},RangeRadio:function(){return Tr},RangeSelect:function(){return Ir},RangeSlider:function(){return Pr},Selection:function(){return Fr}});var u={};n.r(u),n.d(u,{generateInputId:function(){return xt},getInstanceId:function(){return St},useDebounce:function(){return gn},useInstanceId:function(){return Ct}});var c={};n.r(c),n.d(c,{getScreenDimensions:function(){return Mr},useScreenDimensions:function(){return Hr},useSyncExternalStore:function(){return Vr}});var d={};n.r(d),n.d(d,{add:function(){return Br},applyFilters:function(){return zr},doActions:function(){return Gr},fields:function(){return jr},get:function(){return Kr},queries:function(){return Wr}});const f="searchAndFilter",p=(e,t,n,r=!1)=>{let o=window;e.unshift("frontend"),e.unshift(f);for(const t of e)o[t]||(o[t]={}),o=o[t];if(r&&"object"==typeof o[t])for(const e in n)o[t][e]=n[e];else o[t]=n},h=(e,t)=>{let n=window;e.unshift("frontend"),e.unshift(f);for(const t of e){if(!n[t])return;n=n[t]}return n[t]};var _,m,g,v,b,y,w,C,S,x,E,N,L,A={},k=[],P=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,I=Array.isArray;function T(e,t){for(var n in t)e[n]=t[n];return e}function D(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function O(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)null==s[i]&&(s[i]=e.defaultProps[i]);return F(e,s,r,o,null)}function F(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++g:o,__i:-1,__u:0};return null==o&&null!=m.vnode&&m.vnode(i),i}function q(){return{current:null}}function $(e){return e.children}function R(e,t){this.props=e,this.context=t}function U(e,t){if(null==t)return e.__?U(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?U(e):null}function V(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return V(e)}}function M(e){(!e.__d&&(e.__d=!0)&&b.push(e)&&!H.__r++||y!=m.debounceRendering)&&((y=m.debounceRendering)||w)(H)}function H(){for(var e,t,n,r,o,i,s,l=1;b.length;)b.length>l&&b.sort(C),e=b.shift(),l=b.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=T({},r)).__v=r.__v+1,m.vnode&&m.vnode(n),X(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,null==o?U(r):o,!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,J(i,n,s),n.__e!=o&&V(n)));H.__r=0}function B(e,t,n,r,o,i,s,l,a,u,c){var d,f,p,h,_,m,g=r&&r.__k||k,v=t.length;for(a=j(n,t,g,a,v),d=0;d<v;d++)null!=(p=n.__k[d])&&(f=-1==p.__i?A:g[p.__i]||A,p.__i=d,m=X(e,p,f,o,i,s,l,a,u,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&te(f.ref,null,p),c.push(p.ref,p.__c||h,p)),null==_&&null!=h&&(_=h),4&p.__u||f.__k===p.__k?a=W(p,a,e):"function"==typeof p.type&&void 0!==m?a=m:h&&(a=h.nextSibling),p.__u&=-7);return n.__e=_,a}function j(e,t,n,r,o){var i,s,l,a,u,c=n.length,d=c,f=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(s=t[i])&&"boolean"!=typeof s&&"function"!=typeof s?(a=i+f,(s=e.__k[i]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?F(null,s,null,null,null):I(s)?F($,{children:s},null,null,null):null==s.constructor&&s.__b>0?F(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,l=null,-1!=(u=s.__i=G(s,n,a,d))&&(d--,(l=n[u])&&(l.__u|=2)),null==l||null==l.__v?(-1==u&&(o>c?f--:o<c&&f++),"function"!=typeof s.type&&(s.__u|=4)):u!=a&&(u==a-1?f--:u==a+1?f++:(u>a?f--:f++,s.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<c;i++)null!=(l=n[i])&&!(2&l.__u)&&(l.__e==r&&(r=U(l)),ne(l,l));return r}function W(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=W(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=U(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function K(e,t){return t=t||[],null==e||"boolean"==typeof e||(I(e)?e.some((function(e){K(e,t)})):t.push(e)),t}function G(e,t,n,r){var o,i,s=e.key,l=e.type,a=t[n];if(null===a&&null==e.key||a&&s==a.key&&l==a.type&&!(2&a.__u))return n;if(r>(null==a||2&a.__u?0:1))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((a=t[o])&&!(2&a.__u)&&s==a.key&&l==a.type)return o;o--}if(i<t.length){if((a=t[i])&&!(2&a.__u)&&s==a.key&&l==a.type)return i;i++}}return-1}function z(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||P.test(t)?n:n+"px"}function Q(e,t,n,r,o){var i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||z(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||z(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(S,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=x,e.addEventListener(t,i?N:E,i)):e.removeEventListener(t,i?N:E,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Y(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=x++;else if(t.t<n.u)return;return n(m.event?m.event(t):t)}}}function X(e,t,n,r,o,i,s,l,a,u){var c,d,f,p,h,_,g,v,b,y,w,C,S,x,E,N,L,A=t.type;if(null!=t.constructor)return null;128&n.__u&&(a=!!(32&n.__u),i=[l=t.__e=n.__e]),(c=m.__b)&&c(t);e:if("function"==typeof A)try{if(v=t.props,b="prototype"in A&&A.prototype.render,y=(c=A.contextType)&&r[c.__c],w=c?y?y.props.value:c.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(b?t.__c=d=new A(v,w):(t.__c=d=new R(v,w),d.constructor=A,d.render=re),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=T({},d.__s)),T(d.__s,A.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)b&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==A.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,w),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,w)||t.__v==n.__v){for(t.__v!=n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,w),b&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,_)}))}if(d.context=w,d.props=v,d.__P=e,d.__e=!1,S=m.__r,x=0,b){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do{d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(r=T(T({},r),d.getChildContext())),b&&!f&&null!=d.getSnapshotBeforeUpdate&&(_=d.getSnapshotBeforeUpdate(p,h)),N=c,null!=c&&c.type===$&&null==c.key&&(N=Z(c.props.children)),l=B(e,I(N)?N:[N],t,n,r,o,i,s,l,a,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,a||null!=i)if(e.then){for(t.__u|=a?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else for(L=i.length;L--;)D(i[L]);else t.__e=n.__e,t.__k=n.__k;m.__e(e,t,n)}else null==i&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=ee(n.__e,t,n,r,o,i,s,a,u);return(c=m.diffed)&&c(t),128&t.__u?void 0:l}function J(e,t,n){for(var r=0;r<n.length;r++)te(n[r],n[++r],n[++r]);m.__c&&m.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){m.__e(e,t.__v)}}))}function Z(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:I(e)?e.map(Z):T({},e)}function ee(e,t,n,r,o,i,s,l,a){var u,c,d,f,p,h,g,v=n.props,b=t.props,y=t.type;if("svg"==y?o="http://www.w3.org/2000/svg":"math"==y?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((p=i[u])&&"setAttribute"in p==!!y&&(y?p.localName==y:3==p.nodeType)){e=p,i[u]=null;break}if(null==e){if(null==y)return document.createTextNode(b);e=document.createElementNS(o,y,b.is&&b),l&&(m.__m&&m.__m(t,i),l=!1),i=null}if(null==y)v===b||l&&e.data==b||(e.data=b);else{if(i=i&&_.call(e.childNodes),v=n.props||A,!l&&null!=i)for(v={},u=0;u<e.attributes.length;u++)v[(p=e.attributes[u]).name]=p.value;for(u in v)if(p=v[u],"children"==u);else if("dangerouslySetInnerHTML"==u)d=p;else if(!(u in b)){if("value"==u&&"defaultValue"in b||"checked"==u&&"defaultChecked"in b)continue;Q(e,u,null,p,o)}for(u in b)p=b[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?c=p:"value"==u?h=p:"checked"==u?g=p:l&&"function"!=typeof p||v[u]===p||Q(e,u,p,v[u],o);if(c)l||d&&(c.__html==d.__html||c.__html==e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),B("template"==t.type?e.content:e,I(f)?f:[f],t,n,r,"foreignObject"==y?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&U(n,0),l,a),null!=i)for(u=i.length;u--;)D(i[u]);l||(u="value","progress"==y&&null==h?e.removeAttribute("value"):null!=h&&(h!==e[u]||"progress"==y&&!h||"option"==y&&h!=v[u])&&Q(e,u,h,v[u],o),u="checked",null!=g&&g!=e[u]&&Q(e,u,g,v[u],o))}return e}function te(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){m.__e(e,n)}}function ne(e,t,n){var r,o;if(m.unmount&&m.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||te(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){m.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ne(r[o],t,n||"function"!=typeof e.type);n||D(e.__e),e.__c=e.__=e.__e=void 0}function re(e,t,n){return this.constructor(e,n)}function oe(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),m.__&&m.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],s=[],X(t,e=(!r&&n||t).__k=O($,null,[e]),o||A,A,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?_.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),J(i,e,s)}function ie(e,t){oe(e,t,ie)}function se(e,t,n){var r,o,i,s,l=T({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=null==t[i]&&null!=s?s[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?_.call(arguments,2):n),F(e.type,l,r||e.key,o||e.ref,null)}function le(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,M(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+L++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}_=k.slice,m={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},g=0,v=function(e){return null!=e&&null==e.constructor},R.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=T({},this.state),"function"==typeof e&&(e=e(T({},n),this.props)),e&&T(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},R.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},R.prototype.render=$,b=[],w="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C=function(e,t){return e.__v.__b-t.__v.__b},H.__r=0,S=/(PointerCapture)$|Capture$/i,x=0,E=Y(!1),N=Y(!0),L=0;var ae,ue,ce,de,fe=0,pe=[],he=m,_e=he.__b,me=he.__r,ge=he.diffed,ve=he.__c,be=he.unmount,ye=he.__;function we(e,t){he.__h&&he.__h(ue,e,fe||t),fe=0;var n=ue.__H||(ue.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ce(e){return fe=1,Se(Ve,e)}function Se(e,t,n){var r=we(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ve(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ue,!ue.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),i&&i.call(this,e,t,n)||s};ue.__f=!0;var i=ue.shouldComponentUpdate,s=ue.componentWillUpdate;ue.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},ue.shouldComponentUpdate=o}return r.__N||r.__}function xe(e,t){var n=we(ae++,3);!he.__s&&Ue(n.__H,t)&&(n.__=e,n.u=t,ue.__H.__h.push(n))}function Ee(e,t){var n=we(ae++,4);!he.__s&&Ue(n.__H,t)&&(n.__=e,n.u=t,ue.__h.push(n))}function Ne(e){return fe=5,Ae((function(){return{current:e}}),[])}function Le(e,t,n){fe=6,Ee((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function Ae(e,t){var n=we(ae++,7);return Ue(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ke(e,t){return fe=8,Ae((function(){return e}),t)}function Pe(e){var t=ue.context[e.__c],n=we(ae++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(ue)),t.props.value):e.__}function Ie(e,t){he.useDebugValue&&he.useDebugValue(t?t(e):e)}function Te(e){var t=we(ae++,10),n=Ce();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function De(){var e=we(ae++,11);if(!e.__){for(var t=ue.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Oe(){for(var e;e=pe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach($e),e.__H.__h.forEach(Re),e.__H.__h=[]}catch(t){e.__H.__h=[],he.__e(t,e.__v)}}he.__b=function(e){ue=null,_e&&_e(e)},he.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ye&&ye(e,t)},he.__r=function(e){me&&me(e),ae=0;var t=(ue=e.__c).__H;t&&(ce===ue?(t.__h=[],ue.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach($e),t.__h.forEach(Re),t.__h=[],ae=0)),ce=ue},he.diffed=function(e){ge&&ge(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pe.push(t)&&de===he.requestAnimationFrame||((de=he.requestAnimationFrame)||qe)(Oe)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),ce=ue=null},he.__c=function(e,t){t.some((function(e){try{e.__h.forEach($e),e.__h=e.__h.filter((function(e){return!e.__||Re(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],he.__e(n,e.__v)}})),ve&&ve(e,t)},he.unmount=function(e){be&&be(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{$e(e)}catch(e){t=e}})),n.__H=void 0,t&&he.__e(t,n.__v))};var Fe="function"==typeof requestAnimationFrame;function qe(e){var t,n=function(){clearTimeout(r),Fe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fe&&(t=requestAnimationFrame(n))}function $e(e){var t=ue,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ue=t}function Re(e){var t=ue;e.__c=e.__(),ue=t}function Ue(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ve(e,t){return"function"==typeof t?t(e):t}var Me=0;function He(e,t,n,r,o,i){t||(t={});var s,l,a=t;if("ref"in a)for(l in a={},t)"ref"==l?s=t[l]:a[l]=t[l];var u={type:e,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Me,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===a[l]&&(a[l]=s[l]);return m.vnode&&m.vnode(u),u}Array.isArray;const Be=le(),je=le(),We={id:null},Ke=(e,t)=>{switch(t.type){case"SET":return{id:t.id};case"RESET":return{id:null};default:return e}},Ge=({children:e})=>{const[t,n]=Se(Ke,We);return He(Be.Provider,{value:t,children:He(je.Provider,{value:n,children:e})})},ze=()=>Pe(Be);ze.displayName="useFocusContext";const Qe=()=>Pe(je);Qe.displayName="useFocusDispatch";const Ye=(e,t)=>{const{id:n}=ze(),r=Qe();n===t&&(e.current.focus(),r({type:"RESET"}))};Ye.displayName="useFocusEvent";const Xe=()=>{},Je=({showLabel:e,label:t,id:n,forId:r,onClick:o=Xe,isInteractive:i=!0,as:s="div",...l})=>{const a=Qe();return"yes"!==e?null:He(s,{className:"search-filter-label",onClick:()=>{i&&(o&&o(),a({type:"SET",id:r}))},id:n,...l,children:t})};Je.templateVars=["label",["showLabel",{type:"control"}]];const Ze=({showDescription:e,description:t,id:n})=>He($,{children:"yes"===e&&He("div",{id:n,className:"search-filter-description",children:t})});Ze.templateVars=["description",["showDescription",{type:"control"}]];var et=n(395),tt=n.n(et);const nt=({icon:e,className:t,isInteractive:n,isDestructive:r,label:o,onClick:i,...s})=>{const l=["search-filter-icon"];n&&l.push("search-filter-icon--interactive"),r&&l.push("search-filter-icon--destructive"),t&&l.push(t);let a=null;return n&&(a=e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),i(e))}),He("div",{className:tt()(l),onClick:i,role:n?"button":null,tabIndex:n?"0":null,"aria-label":n?o:null,onKeyDown:a,...s,children:He("svg",{className:"search-filter-icon__svg",children:He("use",{xlinkHref:"#sf-svg-"+e})})})},rt=()=>{},ot=({icon:e,className:t,iconPosition:n="left",iconProps:r,disabled:o,label:i,isPressed:s,children:l,isInteractive:a=!0,onClick:u=rt,isSelected:c,value:d,...f})=>He("button",{className:tt()(["search-filter-input-button",t,c?"search-filter-input-button--is-selected":""]),onClick:a?u:null,"aria-pressed":s,disabled:o,"data-option-value":d,...f,children:["left"===n&&e&&He(nt,{icon:e,...r}),l??i,"right"===n&&e&&He(nt,{icon:e,...r})]});ot.templateVars=["label",["isPressed",{type:"control"}]];const it=e=>{const t=[];for(let n=0;n<e.length;n++)t[n]=e[n];return t},st=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const t=Object(e);for(let e=1;e<arguments.length;e++){const n=arguments[e];if(null!=n)for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},lt=(e,t)=>{for(let n=0;n<e.length;n++)t(e[n],n)},at=e=>st({},e),ut=function(e){const t=[{}].concat(it(arguments));return st.apply(null,t)},ct=e=>t=>{e.forEach((e=>{"function"==typeof e?e(t):null!==e&&(e.current=t)}))},dt=(e,t)=>{let n=null;return function(){clearTimeout(n);const r=arguments,o=this;n=setTimeout((function(){e.apply(o,r)}),t)}};function ft(e,t,n){return(1===n?e:t).replace(/%d/g,n)}const pt=(e,t="interactive")=>{document.readyState===t?e():document.addEventListener("readystatechange",(()=>{document.readyState===t&&e()}))};let ht=0;const _t=()=>(ht++,ht),mt=new WeakMap,gt=e=>{if(!mt.has(e))if("loading"!==document.readyState)e(),mt.set(e,!0);else{const t=n=>{"loading"!==document.readyState&&(mt.has(e)||(e(),mt.set(e,!0)),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)}};function vt(e){return"control"===e.type?e.controlType:e.inputType}const bt=[];window.searchAndFilter.logs=bt;const yt=(e,t="info")=>{bt.push({message:e,type:t}),"error"===t?console.error("Search & Filter: "+e):"warning"===t?console.warn("Search & Filter: "+e):"notice"===t?console.log("Search & Filter: "+e):console.warn("Search & Filter: unknown log type: "+t+" - "+e),window.dispatchEvent(new CustomEvent("search-filter/log",{detail:{message:e,type:t}}))},wt=new WeakMap;function Ct(e,t,n=""){return Ae((()=>St(e,t,n)),[e])}function St(e,t,n=""){if(n)return n;const r=function(e){const t=wt.get(e)||0;return wt.set(e,t+1),t}(e);return t?`${t}-${r}`:r}function xt(e,t,n){return`search-filter-input-${vt(e)}-${t}-${n}`}Ct.displayName="useInstanceId";const Et=({type:e,value:t,groupId:n,checked:r,onChange:o,isInteractive:i=!0,icon:s,iconPosition:l="left",iconProps:a,countLabel:u,children:c,className:d})=>{const f=`search-filter-checkable-button-${n}-${Ct(Et)}`;return He("div",{className:"search-filter-checkable-button","data-option-value":t,children:[He("input",{type:e,id:f,name:`search-filter-input-group-${n}`,value:t,checked:r,onChange:e=>{i&&o(e)},readOnly:!i,tabIndex:i?void 0:-1,className:"search-filter-checkable-button__input"}),He("label",{htmlFor:f,className:tt()("search-filter-input-button","search-filter-checkable-button__label",d,r&&"search-filter-input-button--is-selected"),children:["left"===l&&s&&He(nt,{icon:s,...a}),c,u&&He("span",{className:"search-filter-input-button__count",children:u}),"right"===l&&s&&He(nt,{icon:s,...a})]})]})};var Nt=window.searchAndFilter.frontend.packages.components;const Lt=()=>{},At=({value:e=[],options:t,onChange:n=Lt,multiple:r=!1,showLabel:o,isInteractive:i=!0,label:s,description:l,showDescription:a,inputClassName:u,labelProps:c,icon:d,iconPosition:f,iconProps:p,checkable:h=!1})=>{const _="search-filter-label-"+Ct(Nt.Label),m=h?Et:ot,g=Ct(At),v="search-filter-input-button-group-"+g,b=(t,o)=>{if(!i)return;let s=it(e);if(r)if(o)s.includes(t)||s.push(t);else{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s=[t];n(s)},y={id:v,className:tt()("search-filter-input-button-group",u),role:r?"group":"radiogroup","aria-labelledby":_},w=`${v}-description`;return l&&"yes"===a&&(y["aria-describedby"]=w),He($,{children:[He(Nt.Label,{showLabel:o,label:s,id:_,forId:v,isInteractive:i,as:"legend",...c}),He(Ze,{id:w,description:l,showDescription:a}),He("fieldset",{...y,children:t.map(((t,o)=>{const{label:s,value:l,countLabel:a,className:u}=t;let c=!1;c=0===e.length&&""===l||e.includes(l);let _={};return h?(_.type=r?"checkbox":"radio",_.onChange=e=>{b(l,e.target.checked)}):_.onClick=()=>{n([l])},He(m,{value:l,groupId:g,checked:c,onChange:e=>b(l,e.target.checked),isInteractive:i,icon:d,iconPosition:f,iconProps:p,countLabel:a,className:u,..._,children:s},o)}))})]})};At.templateVars=["labelUid",["options",{type:"list"}]];const kt=le({});function Pt(e,t){const n=function(e,t){const n=e.indexOf(t);return n===e.length-1?0:n+1}(e,t);return e[n]}const It=({options:e,showLabel:t,label:n,isInteractive:r=!0,type:o,checkableState:i,onUpdateOption:s,CheckableOptionComponent:l,description:a,showDescription:u,inputClassName:c,labelProps:d,showCount:f})=>{const p=Ct(Nt.Label),h="search-filter-label-"+p,_="search-filter-input-"+o+"-"+Ct(It),m=`${_}-description`,g={id:_,className:c,role:"checkbox"===o?"group":"radiogroup","aria-labelledby":h};return a&&"yes"===u&&(g["aria-describedby"]=m),He(kt.Provider,{value:{checkableState:i,onUpdateOption:s,groupId:p,CheckableOptionComponent:l},children:[He(Nt.Label,{showLabel:t,label:n,id:h,forId:_,isInteractive:r,as:"legend",...d}),He(Nt.Description,{description:a,showDescription:u,id:m}),He(Tt,{id:_,label:n,type:o,options:e,isInteractive:r,className:c,showCount:f,...g})]})};It.templateVars=["labelUid"];const Tt=({id:e,type:t,options:n,isInteractive:r,className:o,showCount:i,nested:s=!1,...l})=>{const{checkableState:a,onUpdateOption:u,groupId:c,CheckableOptionComponent:d}=Pe(kt);return He(s?"div":"fieldset",{id:e,className:tt()("search-filter-input-group",o),...l,children:n.map(((e,n)=>{let o="false";""===e.value&&0===Object.keys(a).length?o="true":a[e.value]&&(o=a[e.value]);const s={groupId:c,key:e.value,option:e,type:t,onUpdate:u,checkedState:o,isInteractive:r,countLabel:i?e.countLabel:null};return He(d,{...s,showCount:i},e.value)}))})};Tt.templateVars=["labelUid",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const Dt=({children:e})=>He("div",{className:"search-filter-input-group",children:e}),Ot={},Ft={isVisible:!1,position:""},qt=(e,t)=>{switch(t.type){case"TOGGLE":{const n=t.name??"popover";let r={...Ft};e[n]&&(r=e[n]);const o=t?.show??!r.isVisible,i=ut(r,{isVisible:o});return ut(e,{[n]:i})}case"SET_POSITION":{const n=t.name??"popover";let r={...Ft};e[n]&&(r=e[n]);const o=ut(r,{position:t.position});return ut(e,{[n]:o})}default:return e}},$t=le(),Rt=le(),Ut=({children:e})=>{const[t,n]=Se(qt,Ot),r=ke((e=>t[e]?t[e]:{...Ft}),[t]);return He($t.Provider,{value:{get:r},children:He(Rt.Provider,{value:n,children:e})})},Vt=()=>Pe($t),Mt=()=>Pe(Rt);function Ht(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Bt(e,t){this.props=e,this.context=t}(Bt.prototype=new R).isPureReactComponent=!0,Bt.prototype.shouldComponentUpdate=function(e,t){return Ht(this.props,e)||Ht(this.state,t)};var jt=m.__b;m.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jt&&jt(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Wt=m.__e;m.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Wt(e,t,n,r)};var Kt=m.unmount;function Gt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Gt(e,t,n)}))),e}function zt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return zt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Qt(){this.__u=0,this.o=null,this.__b=null}function Yt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xt(){this.i=null,this.l=null}m.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Kt&&Kt(e)},(Qt.prototype=new R).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Yt(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(l):l())};n.__R=s;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=zt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Qt.prototype.componentWillUnmount=function(){this.o=[]},Qt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Gt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&O($,null,e.fallback);return o&&(o.__u&=-33),[O($,null,t.__a?null:e.children),o]};var Jt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Zt(e){return this.getChildContext=function(){return e.context},e.children}function en(e){var t=this,n=e.h;t.componentWillUnmount=function(){oe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),oe(O(Zt,{context:t.context},e.__v),t.v)}function tn(e,t){var n=O(en,{__v:e,h:t});return n.containerInfo=t,n}(Xt.prototype=new R).__a=function(e){var t=this,n=Yt(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Jt(t,e,r)):o()};n?n(i):i()}},Xt.prototype.render=function(e){this.i=null,this.l=new Map;var t=K(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Xt.prototype.componentDidUpdate=Xt.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Jt(e,n,t)}))};var nn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,rn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,on=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sn=/[A-Z0-9]/g,ln="undefined"!=typeof document,an=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};R.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(R.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var un=m.event;function cn(){}function dn(){return this.cancelBubble}function fn(){return this.defaultPrevented}m.event=function(e){return un&&(e=un(e)),e.persist=cn,e.isPropagationStopped=dn,e.isDefaultPrevented=fn,e.nativeEvent=e};var pn={enumerable:!1,configurable:!0,get:function(){return this.class}},hn=m.vnode;m.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var s=t[i];if(!("value"===i&&"defaultValue"in t&&null==s||ln&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===s?s="":"translate"===l&&"no"===s?s=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==n&&"textarea"!==n||an(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":on.test(i)&&(i=l):l=i="oninput":o&&rn.test(i)?i=i.replace(sn,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===l&&r[i=l]&&(i="oninputCapture"),r[i]=s}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=K(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=K(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",pn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=nn,hn&&hn(e)};var _n=m.__r;m.__r=function(e){_n&&_n(e),e.__c};var mn=m.diffed;m.diffed=function(e){mn&&mn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)};const gn=(e,t=1e3)=>{const n=Ne();return xe((()=>{n.current=e}),[e]),Ae((()=>dt((()=>{n.current?.()}),t)),[])},vn=()=>{},bn=({name:e="popup",htmlElement:t="div",closeOnScroll:n=!1,closeOnClickOutside:r=!0,updateOnScroll:o=!0,matchWidth:i=!1,onClickOutside:s=vn,onShow:l=vn,onHide:a=vn,node:u="inline",className:c,elementProps:d,children:f,containerRef:p,sourceRef:h,id:_,isAriaModal:m,ariaLabel:g,role:v,dialogMessage:b,showDialogMessage:y,overridePopoverPositions:w,overrideAttachmentNode:C})=>{const{isVisible:S,position:x}=Vt().get(e),E=Mt();let N=u;window.searchAndFilter?.admin?.popoverNode&&(N=window.searchAndFilter.admin.popoverNode),window.searchAndFilter?.admin?.blockEditor?.popoverNode&&(N=window.searchAndFilter.admin.popoverNode),window.searchAndFilterData?.popoverNode&&(N=window.searchAndFilterData.popoverNode),"function"==typeof C&&(N=C(N));const L=h.current?.ownerDocument||document,A=ke((t=>{E({type:"SET_POSITION",name:e,position:t})}),[e,E]),k="search-filter-component-popover",[P,I]=Ce({}),[T,D]=Ce(!1);let O=Ne(null);p&&(O=p);const F=ke((()=>{E({type:"TOGGLE",name:e,show:!1}),a()}),[e,E,a]),q=Ne(null),$=Ne(null),R=ke(((e="auto")=>{if(!O.current||!h.current)return;let t=e,n=null;if("function"==typeof w){const{position:e,style:r}=w(h.current,i,N,L);t=e,n=r}null===n&&("auto"===e&&(t=((e,t,n="auto",r=document)=>{const o=t.getBoundingClientRect(),i=e.getBoundingClientRect();let s="bottom";if("auto"===n){const t=window.getComputedStyle(e).marginTop,n=parseFloat(t);let l=0;l="px"===t.replace(n,"")?n:0;const a=o.top+o.height+i.height+l,u=o.top-i.height+l;a>(window.innerHeight||r.documentElement.clientHeight)&&(s="top",u<0&&(s="bottom"))}else s=n;return s})(O.current,h.current,e,L)),n=((e,t,n,r=!1,o=document,i="inline")=>{const s=t.getBoundingClientRect(),l=e.getBoundingClientRect(),a={};if("inline"===i){const i=((e,t)=>{let n=0,r=0,o=e;for(;o&&o!==t;)n+=o.offsetTop||0,r+=o.offsetLeft||0,o=o.offsetParent;return{top:n,left:r}})(t,e.offsetParent||o.body);a.position="absolute",a.left=i.left+"px",a.top="top"===n?i.top-l.height+"px":i.top+s.height+"px",r&&(a.width=s.width+"px");const u=wn(t);return a.zIndex=u,a}let u=t,c=[];const d=o.documentElement,f=o.body,p=window.getComputedStyle(d),h=window.getComputedStyle(f),_="static"!==p.position&&parseFloat(p.marginTop)||0,m="static"!==p.position&&parseFloat(p.marginLeft)||0,g=_+("static"!==h.position&&parseFloat(h.marginTop)||0),v=m+("static"!==h.position&&parseFloat(h.marginLeft)||0);for(;u&&u!==o.body;)"visible"!==getComputedStyle(u).overflow&&c.push(u),u=u.parentElement;let b=s;c.forEach((e=>{const t=e.getBoundingClientRect();b={top:Math.max(s.top,t.top),left:Math.max(s.left,t.left),bottom:Math.min(s.bottom,t.bottom),right:Math.min(s.right,t.right)}}));const y=window.scrollX||window.pageXOffset,w=window.scrollY||window.pageYOffset,C=b.left+y-v,S=b.top+w-g;b.right,b.bottom,"body"===i&&("top"===n?(a.left=C+"px",a.top=S-l.height+"px",a.position="absolute"):(a.left=s.left+y-v+"px",a.top=s.top+s.height+w-g+"px",a.position="absolute")),r&&(a.width=s.width+"px");const x=wn(t);return a.zIndex=x,a})(O.current,h.current,t,i,L,N)),q.current=t,A(t),D(!0),I(n)}),[i,A,D,I,w,O,h,L]),U=ke((e=>{if(S&&h.current&&e.target.contains(h.current))if(n)F();else if(!n&&O.current&&h.current){let e="auto";!1===o&&(e=q.current),R(e)}}),[S,n,o,R,h,F]);gn((()=>{R("auto")}),1),Ee((()=>{if(!O.current||!h.current)return;const e=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{R("auto")}))}));if(O.current,h.current){e.observe(h.current);let t=h.current?.parentNode;const n=[window.Node.DOCUMENT_NODE,window.Node.DOCUMENT_TYPE_NODE,window.Node.DOCUMENT_FRAGMENT_NODE];for(;t&&!n.includes(t.nodeType);){if(t&&t.nodeType===window.Node.ELEMENT_NODE)try{e.observe(t)}catch(e){}t=t.parentNode}}return()=>{if(O.current,h.current){e.unobserve(h.current);let t=h.current?.parentNode;for(;t&&t!==L.body;)t.nodeType===window.Node.ELEMENT_NODE&&e.unobserve(t),t=t.parentNode}}}),[O,h.current]);const V=Ne(null);Ee((()=>{V.current=window.innerWidth}),[]),xe((()=>($.current=S,S?window.addEventListener("scroll",U,!0):window.removeEventListener("scroll",U,!0),()=>{window.removeEventListener("scroll",U,!0)})),[S,U]),xe((()=>{const e=e=>{$.current&&V.current!==window.innerWidth&&(V.current=window.innerWidth,F())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[F]),xe((()=>{const e=e=>{h.current&&e.detail===h.current&&R("auto")};return window.addEventListener("searchFilterComponentDomUpdate",e),()=>{window.removeEventListener("searchFilterComponentDomUpdate",e)}}),[R]),Ee((()=>{R("auto"),S&&l(h)}),[S,R,l]),Ee((()=>{if(!r)return;const e=e=>{const t=e.target.closest(`.${k}`);!h.current||h.current.contains(e.target)||t||(s(),F())};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[h,F,r,s]);const M=["search-filter-base",k,`${k}--position-${x}`,(!S||!T)&&`${k}--hidden`,c],H=He(t,{style:P,id:_,className:tt()(M),ref:O,"aria-modal":m?"true":void 0,role:v,"aria-label":g||void 0,...d,children:[f,b&&He("div",{"aria-live":"polite",className:"search-filter-component-popup__dialog-message"+(y?"":" search-filter-component-popup__dialog-message-hidden"),children:b})]});return"inline"===N?H:tn(H,L.body)},yn=(e="popover")=>{const t=Vt().get(e),n=Mt();return{isVisible:t.isVisible,toggle:t=>{const r={type:"TOGGLE",name:e};void 0!==t&&(r.show=t),n(r)},position:t.position}},wn=e=>{let t=1e3;for(;e;){const n=window.getComputedStyle(e),r=parseInt(n.zIndex,10);if(r&&0!==r&&r>=t){t=r+1;break}e=e.parentElement}return t},Cn=["false","true"],Sn=({type:e,options:t,value:n,onChange:r,showLabel:o,label:i,isInteractive:s,...l})=>{const[a,u]=function(e,t){const[n,r]=Ce({});return Ee((()=>{e&&e.length>0?r({[e[0]]:"true"}):r({})}),[e]),[n,e=>{const r=n[e]??"false",o=Pt(Cn,r);t("true"===o?[e]:[])}]}(n,r);return He(It,{type:"radio",options:t,value:n,onChange:r,checkableState:a,onUpdateOption:u,CheckableOptionComponent:xn,showLabel:o,label:i,isInteractive:s,...l})},xn=({option:e,type:t,onUpdate:n,isInteractive:r=!0,checkedState:o="false",groupId:i,countLabel:s,showCount:l})=>{const{label:a,value:u,options:c,id:d}=e,f=Ct(xn),p=xt(t,i,d??f),h="true"===o,_="search-filter-input-"+t,m=h?" "+_+"--is-active":"",g=c?.length>0;let v="";"true"===o&&(v="-checked");const b=`#sf-svg-${t}${v}`;return He("div",{className:_+m,"data-option-value":u,children:[He("input",{id:p,type:t,readOnly:!r,tabIndex:r?null:-1,className:"search-filter-input-"+t+"__input",onChange:e=>{e.preventDefault(),n(u)},checked:h,name:`search-filter-input-group-${i}`,"aria-checked":o,value:u}),He("label",{htmlFor:p,className:"search-filter-input-"+t+"__container",onClick:e=>{r||e.preventDefault()},children:[He("span",{className:"search-filter-input-"+t+"__control","aria-hidden":"true",children:He("svg",{children:He("use",{xlinkHref:b})})}),He("span",{className:"search-filter-input-"+t+"__label",children:[a,s?He("span",{className:"search-filter-input-"+t+"__count",translate:"no",children:s}):null]})]}),g&&He(Tt,{type:t,options:c,isInteractive:r,showCount:l,nested:!0})]})};xn.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const En=({className:e,isFocused:t,onClick:n,cRef:r,children:o})=>He($,{children:He("div",{className:tt()({"search-filter-input-text":!0,"search-filter-input-text--focused":t,[e]:!!e}),onClick:n,ref:r,children:o})}),Nn=()=>{},Ln={},An=({className:e,value:t="",icon:n,iconPosition:r="left",hasClear:o=!1,placeholder:i,labelProps:s,showLabel:l,label:a,id:u,isInteractive:c=!0,focusStyles:d=!0,children:f,onChange:p=Nn,onFocus:h=Nn,onBlur:_=Nn,onClick:m=Nn,onClear:g=Nn,onEnter:v=Nn,inputRef:b,controlRef:y,describedBy:w,onClickIcon:C,inputProps:S=Ln,inputClassName:x,iconProps:E=Ln,description:N,showDescription:L})=>{const A=Ne(null),k=b||A,[P,I]=Ce(!1),T=Ct(An),D=u??"search-filter-input-text-"+T,O="search-filter-label-"+Ct(Nt.Label),F=""!==t;Ye(k,D);const q=Qe(),R=()=>{q({type:"SET",id:D}),d&&I(!0)},U=n?He(nt,{className:"search-filter-input-text__icon",icon:n,onClick:e=>{c&&(C?C(e):(R(),m(e)))},isInteractive:c&&C,"aria-controls":S.name?S.name:void 0,"aria-hidden":!S.name||void 0,...E}):null;return He($,{children:[He(Nt.Label,{showLabel:l,label:a,id:O,forId:D,isInteractive:c,...s}),He(Ze,{description:N,showDescription:L}),He(En,{isFocused:P,className:tt()("search-filter-input-text",e),cRef:y,onClick:()=>{c&&R()},children:[U&&"left"===r?U:null,He(kn,{id:D,"aria-labelledby":"yes"===l?O:null,"aria-label":"yes"===l?null:a,className:tt()("search-filter-input-text__input",x),autoComplete:"off",value:t,onInput:e=>{p(c?e.target.value:"")},onKeyDown:e=>{c&&"Enter"===e.key&&v(e)},readOnly:!c,tabIndex:c?null:-1,onFocus:()=>{c&&(d&&I(!0),h())},onBlur:()=>{c&&(d&&I(!1),_())},inputRef:k,onClick:e=>{c&&m(e)},placeholder:i,"aria-describedby":w?w.id:void 0,...S}),w&&He("span",{className:"search-filter-input-text__description",id:w.id,children:w.content}),f,o&&F&&He(nt,{className:"search-filter-input-text__clear-button",icon:"clear",onClick:function(){c&&(R(),g!==Nn?g():p(""))},isInteractive:!0,isDestructive:!0,label:"Clear input"}),U&&"right"===r?U:null]})]})};An.templateVars=["placeholder","uid","labelUid"];const kn=e=>{const t=at(e),n=e.value,r=e.inputRef;return delete t.value,delete t.inputRef,He("input",{type:"text",value:n,ref:r,...t})};kn.templateVars=["value"];var Pn=window.searchAndFilter.frontend.packages.hooks,In=window.searchAndFilter.frontend.packages.utils;const Tn=e=>{const{id:t,icon:n,inputRef:r,controlRef:o,label:i,showLabel:s,hasClear:l,onChange:a,value:u,placeholder:c,readOnly:d,onEnter:f,onClick:p,isInteractive:h,inputProps:_,controlProps:m,isLoading:g,popupVisible:v,inputClassName:b,...y}=e,{className:w,...C}=m,S=Ae((()=>({..._,...C})),[_,C]);return He(Nt.TextControl,{id:t,icon:n,inputRef:r,controlRef:o,label:i,showLabel:s,hasClear:(!v||!g)&&l,onChange:a,className:tt()("search-filter-component-autocomplete-control",w,b),value:u,placeholder:c,readOnly:d,onEnter:f,onClick:p,focusStyles:!1,isInteractive:h,inputProps:S,...y,children:g&&v?He(Nt.Icon,{icon:"spinner-circle",className:"search-filter-component-autocomplete-control__loading-icon"}):null})},Dn=e=>e.apiUrl?He(Fn,{...e}):He(On,{...e}),On=e=>{const{isLoading:t}=e,n="search-filter-component-combobox-base",r=He("div",{"aria-live":"polite",role:"status",className:tt()(`${n}__listbox-option`,`${n}__listbox-option--disabled`),children:e.loadingText??"Looking for suggestions…"});return He(Nt.ComboboxBase,{InputComponent:Tn,hideSuggestionsOnEmpty:!0,listboxContent:t?r:null,...e})};Dn.templateVars=["placeholder","uid","labelUid"];const Fn=e=>{const{apiUrl:t,apiArgs:n,useCache:r}=e,{suggestions:o,isLoading:i}=qn(t,e.value??"",n,r);return He(On,{...e,options:o,isLoading:i})},qn=(e,t,n,r=!0)=>{const[o,i]=Ce([]),[s,l]=Ce(!1),a=(0,Pn.useDebounce)((()=>{(()=>{const{fieldId:r,attributes:o}=n,s={method:"GET",headers:{"Content-Type":"application/json"}};let a=e,u={};window.searchAndFilterData?.suggestionsNonce&&(u={nonce:window.searchAndFilterData.suggestionsNonce}),(e=>e&&0!==e&&""!==e)(r)?a=((e,t)=>{const n=new URL(e),r=new URLSearchParams(n.search);return Object.keys(t).forEach((e=>{r.append(e,t[e])})),n.search=r,n.toString()})(e,{search:t,fieldId:r,...u}):(s.method="POST",s.body=JSON.stringify({search:t,attributes:o,...u}),window.searchAndFilter?.admin?.restNonce&&(s.headers["X-WP-Nonce"]=window.searchAndFilter.admin.restNonce)),fetch(a,s).then((e=>e.json())).then((e=>(((e,t)=>{i((n=>({...n,[e]:t})))})(t,e),l(!1),e))).catch((e=>{l(!1),"AbortError"!==e.name&&(0,In.log)("Unable to fetch suggestions, message: "+e.message,"error")}))})()}),400);return Ee((()=>{if(""===t)return;if(o[t]&&r)return;const e=new AbortController;return l(!0),a(),()=>{e.abort()}}),[t]),""===t?{suggestions:[],isLoading:!1}:{suggestions:o[t],isLoading:s}},$n=()=>{},Rn=({showLabel:e,label:t,id:n,forId:r,isInteractive:o=!0,isToggle:i=!1,fieldIsOpen:s=!0,onClick:l=$n,as:a="div"})=>{const u=(0,Nt.useFocusDispatch)();if("yes"!==e)return null;const c=i&&o;return He(a,{className:"search-filter-label",onClick:()=>{o&&(l(),i||u({type:"SET",id:r}))},id:n,tabIndex:c?"0":null,role:i?"button":null,"aria-expanded":i?s:null,"aria-controls":i?r:null,onKeyDown:c?e=>{"Enter"===e.key?l():" "===e.key&&(e.preventDefault(),l())}:null,children:[t,i?He(Nt.Icon,{icon:"arrow-down",className:tt()(["search-filter-label__toggle-icon",s?"search-filter-label__toggle-icon--up":"search-filter-label__toggle-icon--down"])}):null]})};Rn.templateVars=["label",["showLabel",{type:"control"}]];var Un=le({});const Vn=(e,t)=>e[t]??null,Mn=e=>({storeKey:t,...n})=>{const r=Pe(Un),[o,i]=Ce(Vn(r.getState(),t)),s=()=>{const e=Vn(r.getState(),t);e!==o&&i(e)};xe((()=>(r.subscribe(s),s(),()=>{r.unsubscribe(s)})),[]);const l=Vn(r.getState(),t);return He(e,{...l,...n})};Mn.displayName="withStoreKey";const Hn=e=>tt()("search-filter-field__input",e),Bn=()=>window.innerWidth<768||window.innerHeight<768,jn=()=>window.searchAndFilterData?.urlPrefix??"_",Wn=[],Kn=(e,t,n)=>Ae((()=>{if("yes"!==t)return e??Wn;let r=Array.isArray(e)?[...e]:Wn;return r.unshift({label:n,value:""}),r}),[e,t,n]),Gn={},zn=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,onClear:i,listboxClassName:s,listboxProps:l,isInteractive:a,id:u,closeListboxOnScroll:c=!1,moveListboxOnScroll:d=!1,extensions:f=Gn}=e,p=Kn(r,n?.inputOptionsAddDefault,n?.inputOptionsDefaultLabel),{multiple:h,inputScale:_,placeholder:m,label:g,showLabel:v,showCount:b,inputNoResultsText:y,inputEnableSearch:w,description:C,showDescription:S,stylesId:x,type:E,inputType:N,dropdownAttachment:L,inputBorderDivider:A="yes"}=n;return He(Nt.ComboboxControl,{value:t,multiple:"yes"===h,scale:_,options:p,pageAmount:5,onChange:o,onClear:i,closeListboxOnScroll:c,moveListboxOnScroll:d,placeholder:m,label:g,showLabel:v,showCount:b,noResultsText:y,listboxClassName:tt()([s,"search-filter-field__popup",`search-filter-field__popup--id-${u}`,`search-filter-style--id-${x}`,`search-filter-style--${E}-${N}`]),listboxAttachment:L,isInteractive:a,description:C,showDescription:S,showDivider:"yes"===A,listboxProps:l,...f,inputClassName:Hn(f.inputClassName),enableSearch:"no"!==w&&!Bn()})})),Qn=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,isInteractive:i,extensions:s={}}=e,l=Kn(r,n?.inputOptionsAddDefault,n?.inputOptionsDefaultLabel);return He(Sn,{value:t,options:l,onChange:o,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...s,inputClassName:Hn(s.inputClassName)})})),Yn=["false","true"],Xn=({type:e,options:t,value:n,onChange:r,showLabel:o,label:i,isInteractive:s,...l})=>{const[a,u]=function(e,t){const[n,r]=Ce({});return Ee((()=>{if(e&&e.length>0){const t={};e.forEach((e=>{t[e]="true"})),console.log("NEW STATE",t),r(t)}else r({})}),[e]),[n,r=>{const o=n[r]??"false",i=Pt(Yn,o),s=[...e||[]];if("true"===i)-1===s.indexOf(r)&&s.push(r);else{const e=s.indexOf(r);-1!==e&&s.splice(e,1)}t(s)}]}(n,r);return He(It,{type:"checkbox",options:t,value:n,onChange:r,checkableState:a,onUpdateOption:u,CheckableOptionComponent:Jn,showLabel:o,label:i,isInteractive:s,...l})},Jn=({option:e,type:t,onUpdate:n,isInteractive:r=!0,checkedState:o="false",groupId:i,countLabel:s,showCount:l})=>{const{label:a,value:u,options:c,id:d}=e,f=Ct(Jn),p=xt(t,i,d??f),h="true"===o,_="search-filter-input-"+t,m=h?" "+_+"--is-active":"",g=c?.length>0;let v="";"true"===o&&(v="-checked");const b=`#sf-svg-${t}${v}`;return He("div",{className:_+m,"data-option-value":u,children:[He("input",{id:p,type:t,readOnly:!r,tabIndex:r?null:-1,className:"search-filter-input-"+t+"__input",onChange:e=>{e.preventDefault(),n(u)},checked:h,name:`search-filter-input-group-${i}`,"aria-checked":o,value:u}),He("label",{htmlFor:p,className:"search-filter-input-"+t+"__container",onClick:e=>{r||e.preventDefault()},children:[He("span",{className:"search-filter-input-"+t+"__control","aria-hidden":"true",children:He("svg",{children:He("use",{xlinkHref:b})})}),He("span",{className:"search-filter-input-"+t+"__label",children:[a,s?He("span",{className:"search-filter-input-"+t+"__count",translate:"no",children:s}):null]})]}),g&&He(Tt,{type:t,options:c,isInteractive:r,showCount:l,nested:!0})]})};Jn.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]];const Zn={},er=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,isInteractive:i,extensions:s=Zn}=e,{inputCheckboxTristate:l}=n;let a=Nt.CheckboxControl;return"no"===l&&(a=Xn),He(a,{value:t,options:r,onChange:o,type:n.inputType,label:n.label,showLabel:n.showLabel,isInteractive:i,hierarchical:n.taxonomyHierarchical,description:n.description,showDescription:n.showDescription,showCount:n.showCount,...s,inputClassName:Hn(s.inputClassName)})}));function tr(e,t){for(var n in t)e[n]=t[n];return e}function nr(e){var t=[];function n(e){for(var n=[],r=0;r<t.length;r++)t[r]===e?e=null:n.push(t[r]);t=n}function r(n,r,o){e=r?n:tr(tr({},e),n);for(var i=t,s=0;s<i.length;s++)i[s](e,o)}return e=e||{},{action:function(t){function n(e){r(e,!1,t)}return function(){for(var r=arguments,o=[e],i=0;i<arguments.length;i++)o.push(r[i]);var s=t.apply(this,o);if(null!=s)return s.then?s.then(n):n(s)}},setState:r,subscribe:function(e){return t.push(e),function(){n(e)}},unsubscribe:n,getState:function(){return e}}}var rr=le({});const or={setAttributes(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.attributes=ut(o.attributes,n),r[t]=o,r},setProps(e,t,n){if(void 0===e[t])return e;const r=at(e),o=ut(e[t],n);return r[t]=o,r},setProp(e,t,n,r){if(void 0===e[t])return e;const o=at(e),i=ut(e[t],{[n]:r});return o[t]=i,o},setQuery(e,t,n){const r=at(e);return r[t]=at(n),r},removeQuery(e,t){const n=at(e);return n[t]&&delete n[t],n}},ir=nr({}),sr=(((e,t)=>{"function"==typeof e&&(e=e(t));const n={};for(const r in e)n[r]=t.action(e[r])})(or,ir),new WeakMap);sr.set(ir,or);const lr=function(e,t,n){const r=it(arguments);r.splice(0,2),r.unshift(t.getState());const o=sr.get(t)[e].apply(null,r);t.setState(o,!0)},ar=function(e){const t=it(arguments);t.splice(1,0,ir),lr.apply(null,t)},ur={},cr=(e,t)=>e[t]??ur,dr=(e,t)=>{const n=Pe(rr),r=cr(n.getState(),e),[o,i]=Ce(r[t]),s=()=>{const r=cr(n.getState(),e);r[t]!==o&&i(r[t])};return Ee((()=>(n.subscribe(s),()=>{n.unsubscribe(s)})),[]),cr(n.getState(),e)[t]??ur},fr=e=>dr(e,"actions"),pr=()=>{},hr=Mn((e=>{const{values:t,attributes:n,onChange:r,onClear:o,isInteractive:i,queryStoreKey:s,extensions:l={},icon:a="search"}=e,{submit:u=pr}=fr(s),c=t?t[0]:"";return He(An,{value:c,onChange:e=>{r([e])},onClear:o,icon:"yes"===n.inputShowIcon?a:null,iconPosition:n.inputIconPosition,hasClear:!0,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,isInteractive:i,onEnter:()=>{u()},description:n.description,showDescription:n.showDescription,...l,className:Hn(l.inputClassName)})})),_r=Mn((e=>{const{values:t,options:n,onChange:r,isInteractive:o,type:i,attributes:s={},extensions:l={}}=e,{inputOptionsAddDefault:a,inputOptionsDefaultLabel:u,label:c,showLabel:d,multiple:f,description:p,showDescription:h}=s,_=Kn(n,a,u);return He(At,{value:t,options:_,onChange:r,type:i,label:c,showLabel:d,multiple:"yes"===f,isInteractive:o,description:p,showDescription:h,...l,inputClassName:Hn(l.inputClassName),checkable:!0})})),mr=Mn((e=>{const{values:t,attributes:n,onChange:r,onClear:o,calendarClassName:i,isInteractive:s,id:l,extensions:a={},icon:u="event",hasClear:c=!0,flatpickrOptions:d}=e,f=t[0]?t[0]:"";return He(Nt.DatePickerControl,{value:f,onChange:e=>{r([e])},onClear:o,icon:"yes"===n.inputShowIcon?u:null,hasClear:c,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,dateFormat:"custom"===n.dateDisplayFormat?n.dateDisplayFormatCustom:n.dateDisplayFormat,calendarClassName:tt()(["search-filter-base",i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:s,description:n.description,showDescription:n.showDescription,flatpickrOptions:d,...a,inputClassName:Hn(a.inputClassName)})})),gr=()=>{},vr=Mn((e=>{const{attributes:t,queryStoreKey:n,icon:r,isInteractive:o}=e,{submit:i=gr}=fr(n);return He(ot,{onClick:i,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:o,className:"search-filter-field__input"})})),br=()=>{},yr=Mn((e=>{const{attributes:t,queryStoreKey:n,icon:r,isInteractive:o}=e,{reset:i=br}=fr(n);return He(ot,{onClick:i,icon:r,label:t.label,showLabel:t.showLabel,isInteractive:o,className:"search-filter-field__input"})})),wr={},Cr=Mn((e=>{const{values:t,attributes:n,onChange:r,listboxClassName:o,isInteractive:i,id:s,closeListboxOnScroll:l=!1,moveListboxOnScroll:a=!1,listboxProps:u=wr,extensions:c={},options:d=[]}=e;return He(Nt.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:d,pageAmount:5,onChange:r,closeListboxOnScroll:l,moveListboxOnScroll:a,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:tt()([o,"search-filter-field__popup",`search-filter-field__popup--id-${s}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),listboxProps:u,isInteractive:i,description:n.description,showDescription:n.showDescription,...c,inputClassName:Hn(c.inputClassName),enableSearch:!Bn()})})),Sr=Mn((e=>{const{values:t,attributes:n,onChange:r,setValuesAndLabels:o,listboxClassName:i,isInteractive:s,id:l,closeListboxOnScroll:a=!1,moveListboxOnScroll:u=!1,extensions:c={},options:d}=e;return He(Nt.ComboboxControl,{value:t,multiple:"yes"===n.multiple,scale:n.inputScale,options:d,pageAmount:5,onChange:r,closeListboxOnScroll:a,moveListboxOnScroll:u,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,showCount:n.showCount,listboxClassName:tt()([i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.controlType}`]),isInteractive:s,description:n.description,showDescription:n.showDescription,...c,inputClassName:Hn(c.inputClassName),enableSearch:!Bn()})}));var xr=window.searchAndFilter.frontend.packages.fields;const Er=()=>{},Nr=Mn((e=>{const{values:t,attributes:n,options:r,onChange:o,onClear:i,closeListboxOnScroll:s=!1,moveListboxOnScroll:l=!1,listboxClassName:a,isInteractive:u=!0,connectedData:c,autocompleteUseCache:d,queryStoreKey:f,id:p,icon:h="search",extensions:_={}}=e,m=t?t[0]:"",{submit:g=Er}=fr(f);let v="";c&&(v=c.autocompletApiUrl);const b=Ne(null),{autoSubmit:y,autoSubmitDelay:w,autoSubmitOnType:C,description:S,showDescription:x,inputLoadingText:E,inputNoResultsText:N,inputSingularResultsCountText:L,inputPluralResultsCountText:A}=n,k=()=>{b.current&&clearTimeout(b.current),g()},P=p&&0!==p&&""!==p;return He(Nt.AutocompleteControl,{value:m,multiple:"yes"===n.multiple,scale:n.scale,options:r,pageAmount:5,onChange:e=>{o([e]),"yes"===y&&"yes"===C&&(b.current&&clearTimeout(b.current),b.current=setTimeout((()=>{g()}),w))},onClear:()=>{i&&i(),"yes"===y&&k()},onSelectOption:e=>{o([e.value]),"yes"===y&&k()},closeListboxOnScroll:s,moveListboxOnScroll:l,placeholder:n.placeholder,label:n.label,showLabel:n.showLabel,listboxClassName:tt()([a,"search-filter-field__popup",`search-filter-field__popup--id-${p}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),isInteractive:u,apiUrl:v,apiArgs:P?{fieldId:p}:{attributes:n},icon:"yes"===n.inputShowIcon?h:null,onEnter:()=>{g()},useCache:d,description:S,showDescription:x,loadingText:E,noResultsText:N,singularResultsCountText:L,pluralResultsCountText:A,..._,inputClassName:(0,xr.__getInputClassName)(_.inputClassName)})})),Lr=[],Ar=(e,t)=>e[jn()+t]??Lr,kr=e=>{const{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:o,rangeDecimalCharacter:i,rangeMin:s,rangeMax:l,rangeStep:a}=e;return{rangeValuePrefix:t,rangeValueSuffix:n,rangeDecimalPlaces:r,rangeThousandCharacter:o,rangeDecimalCharacter:i,rangeMin:s,rangeMax:l,rangeStep:a}},Pr=Mn((e=>{const{values:t,attributes:n,onChange:r,urlName:o,isInteractive:i,extensions:s={},queryStoreKey:l}=e,a=dr(l,"currentValues"),u=Ar(a,o);return He(Nt.RangeSliderControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:i,description:n.description,showDescription:n.showDescription,...s,...kr(n),inputClassName:(0,xr.__getInputClassName)(s.inputClassName),separator:n.rangeSeparator,textPosition:n.rangeSliderTextPosition,showReset:n.rangeSliderShowReset,resetPosition:n.rangeSliderResetPosition})})),Ir=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,listboxClassName:i,listboxProps:s,id:l,extensions:a={},queryStoreKey:u,urlName:c}=e,d=dr(u,"currentValues"),f=Ar(d,c);return He(Nt.RangeSelectControl,{values:t,appliedValues:f,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,listboxClassName:tt()([i,"search-filter-field__popup",`search-filter-field__popup--id-${l}`,`search-filter-style--id-${n.stylesId}`,`search-filter-style--${n.type}-${n.inputType}`]),listboxProps:s,...a,...kr(n),inputClassName:(0,xr.__getInputClassName)(a.inputClassName)})})),Tr=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,extensions:i={},queryStoreKey:s,urlName:l}=e,a=dr(s,"currentValues"),u=Ar(a,l);return He(Nt.RangeRadioControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,separator:n.rangeSeparator,...i,...kr(n),inputClassName:(0,xr.__getInputClassName)(i.inputClassName)})})),Dr=Mn((e=>{const{values:t,attributes:n,onChange:r,isInteractive:o,extensions:i={},queryStoreKey:s,urlName:l}=e,a=dr(s,"currentValues"),u=Ar(a,l);return He(Nt.RangeNumberControl,{values:t,appliedValues:u,onChange:r,label:n.label,showLabel:n.showLabel,isInteractive:o,description:n.description,showDescription:n.showDescription,...i,...kr(n),inputClassName:(0,xr.__getInputClassName)(i.inputClassName)})})),Or=()=>{},Fr=Mn((e=>{const{values:t,attributes:n,isInteractive:r,queryStoreKey:o,type:i,extensions:s={},options:l,availableOptions:a=null,_setProp:u}=e,c=Ae((()=>{if(null===a)return l;const e=[];for(const t of l)a.includes(t.value)&&e.push(t);return e}),[a,l]),{submit:d=Or}=fr(o),f=dr(o,"activeFields");return He(Nt.ButtonGroup,{value:t,options:c,onChange:e=>{const t=e[0],[n,r]=t.split("/"),o=`field-${n}`;if(!f[o])return;const i=f[o].getValues(),s=r.split(",").map((e=>e.replace(/\x1F/g,","))),l=i.filter((e=>!s.includes(e)));f[o].setValues(l);const c=a.filter((e=>e!==t));u("availableOptions",c),d()},type:i,label:n.label,showLabel:n.showLabel,multiple:"yes"===n.multiple,isInteractive:r,description:n.description,showDescription:n.showDescription,...s,inputClassName:(0,xr.__getInputClassName)(s.inputClassName),icon:"clear",iconPosition:"right",iconProps:{isDestructive:!0}})})),qr=()=>{},$r=Mn((e=>{const{attributes:t,queryStoreKey:n,isInteractive:r,icon:o="spinner-circle"}=e,[i,s]=Ce(!1),{loadMore:l=qr}=fr(n),{currentPage:a=1,maxPages:u=2}=dr(n,"settings"),c=parseInt(a)>=parseInt(u),d=()=>{s(!1)};return He(Nt.Button,{disabled:i,onClick:()=>{i||c||(l(d),s(!0))},icon:i?o:null,label:t.label,showLabel:t.showLabel,isInteractive:r,className:tt()("search-filter-field__input",c?"search-filter-input-button--hidden":""),"aria-hidden":c})})),Rr=Mn((e=>{const{values:t,attributes:n={},onChange:r,isInteractive:o,id:i,extensions:s={},queryStoreKey:l,calendarClassName:a,urlName:u}=e,c=(dr(l,"currentValues"),2!==t.length?["",""]:t),{stylesId:d,type:f,inputType:p,placeholder:h,label:_,showLabel:m,icon:g}=n;return He(Nt.RangeDatePickerControl,{values:c,onChange:r,isInteractive:o,calendarClassName:tt()(["search-filter-base",a,"search-filter-field__popup",`search-filter-field__popup--id-${i}`,`search-filter-style--id-${d}`,`search-filter-style--${f}-${p}`]),...s,inputClassName:(0,xr.__getInputClassName)(s.inputClassName),inline:!1,locale:"en-GB",icon:"yes"===n.inputShowIcon?g:null,placeholder:h,label:_,escClears:!1,showLabel:m,dateFormat:"custom"===n.dateDisplayFormat?n.dateDisplayFormatCustom:n.dateDisplayFormat,description:n.description,showDescription:n.showDescription})}));function Ur(e){const t=e._getSnapshot,n=e._value;try{return!function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}(n,t())}catch(e){return!0}}function Vr(e,t){const n=t(),[{_instance:r},o]=Ce({_instance:{_value:n,_getSnapshot:t}});return Ee((()=>{r._value=n,r._getSnapshot=t,Ur(r)&&o({_instance:r})}),[e,n,t]),xe((()=>(Ur(r)&&o({_instance:r}),e((()=>{Ur(r)&&o({_instance:r})})))),[e]),n}const Mr=()=>{const{innerWidth:e,innerHeight:t}=window;return{screenWidth:e,screenHeight:t}},Hr=()=>{const[e,t]=Ce(Mr());return xe((()=>{function e(){t(Mr())}return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),e},Br=(e,t)=>{Kr(e).push(t)},jr=[],Wr=[],Kr=e=>"fields"===e?jr:"queries"===e?Wr:void 0,Gr=(e,t,n)=>{Array.isArray(e)&&e.forEach((e=>{e[t]&&e[t](...n)}))},zr=(e,t,n,r)=>{if(!Array.isArray(t))return r[0];let o=e;return t.forEach((e=>{e[n]&&(o=e[n](o,...r))})),o};p(["packages"],"registry",e);const Qr={...o,...i};p(["packages"],"components",Qr,!0);const{hooks:Yr,...Xr}=s;p(["packages"],"core",Xr,!0),p(["packages","core"],"hooks",Yr,!0);const Jr={...l,...a};p(["packages"],"fields",Jr,!0),p(["packages"],"utils",r,!0);const Zr={...u,...c};p(["packages"],"hooks",Zr,!0),p(["packages"],"extensions",d,!0),n(509);const eo={search:{text:hr},choice:{select:zn,radio:Qn,checkbox:er,button:_r},range:{},advanced:{date_picker:mr},control:{submit:vr,reset:yr,sort:Cr,per_page:Sr}};function to(e,t,n){eo[e]||(eo[e]={}),eo[e][t]=n}const no=()=>{const e={};return{triggerEvent:function(t,n=[]){e[t]&&e[t].forEach((e=>{e(...n)}))},addEventListener:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},removeEventListener:function(t,n){if(!e[t])return;const r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}};var ro=le({});const oo={setValues(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.values=n,r[t]=o,r},setValueLabels(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.valueLabels=n,r[t]=o,r},setAttributes(e,t,n){if(void 0===e[t])return e;const r=at(e),o=at(e[t]);return o.attributes=ut(o.attributes,n),r[t]=o,r},setProps(e,t,n){if(void 0===e[t])return e;const r=at(e),o=ut(e[t],n);return r[t]=o,r},setProp(e,t,n,r){if(void 0===e[t])return e;const o=at(e),i=ut(e[t],{[n]:r});return o[t]=i,o},setField(e,t,n){const r=at(e);return r[t]=at(n),r},removeField(e,t){const n=at(e);return n[t]&&delete n[t],n}},io={setValues(e,t,n){const r=at(e),o=it(n);return r[t]=o,r}},so=nr({}),lo=nr({}),ao=new WeakMap;ao.set(so,oo),ao.set(lo,io);const uo=function(e,t,n){const r=it(arguments);r.splice(0,2),r.unshift(t.getState());const o=ao.get(t)[e].apply(null,r);t.setState(o,!0)},co=function(e){const t=it(arguments);t.splice(1,0,so),uo.apply(null,t)},fo=function(e){const t=it(arguments);t.splice(1,0,lo),uo.apply(null,t)},po=({children:e,queryStore:t})=>He(Un.Provider,{value:so,children:He(ro.Provider,{value:lo,children:He(rr.Provider,{value:t,children:e})})});let ho=0;const _o=(e,t)=>{const n=(ho++,ho),r=`field_${n}`;let o={},i=[],s="",l={},a=!1;const u=Kr("fields"),c=h([],"queries"),d={},f={},p=no();let _=null;const m=e=>{o.values!==e&&(C(e),Gr(u,"onUpdateValues",[T,e,o]),p.triggerEvent("onUpdateValues",[T,e]))},g=()=>{C([]),Gr(u,"onClearValues",[T,o])};function v(){return void 0!==o.el?o.el:e}function b(){return r}function y(e){const t=e[r];if(t&&o!==t){if(void 0!==o.classList&&o.classList!==t.classList){const e=v();e&&(e.className="",t.classList.forEach((function(t){e.classList.add(t)})))}o=t,Gr(u,"onUpdate",[T,o])}}function w(e){const t=e[s];t&&(i=t)}function C(e){o.isInteractive&&(co("setValues",b(),e),fo("setValues",s,e))}function S(){return o.values}function x(){return o.inputType}function E(e,t,n){var r=e.lastIndexOf(t);return r>=0?e.substring(0,r)+n+e.substring(r+t.length):e}function N(e){const t=e?.attributes??{},r=t.type,i=vt(t);s=e.urlName;let p=at(e);p.isInteractive=e?.isInteractive??!0,p.classList=e?.classList??[],l=e.connectedData;const h=e.urlTemplate;_=c.get(parseInt(t.queryId));let y=null;_&&(y=_.getStoreKey()),h&&l&&l.termIdentifiers&&l.termIdentifiers.forEach((e=>{d[e.slug]=e.id,f[e.id]=e.slug}));const w=[];let C=p.classList?[...p.classList]:[];const x=v();x&&(x.classList.forEach((function(e){w.push(e),C=C.filter((t=>t!==e))})),C.forEach((function(e){x.classList.add(e),w.push(e)}))),p={...p,inputType:i,type:r,queryStoreKey:y,classList:w,uid:n,el:v(),onChange:m,onClear:g,_setProp:I},o._instance&&(p._instance=o._instance),p=zr(p,u,"config",[T]),co("setField",b(),p),fo("setValues",s,S()),Gr(u,"init",[T,p]),a=!0}function L(e){if(!e)return;const t=(n=o.type,i=x(),eo[n]&&eo[n][i]?eo[n][i]:null);var n,i;null!==t&&oe(He(Ge,{children:He(Ut,{children:He(po,{queryStore:ir,children:He(t,{storeKey:r})})})}),e)}function A(){v()&&(oe(null,v()),I("el",null))}function k(e){return o.attributes&&o.attributes[e]?o.attributes[e]:null}function P(e,t=!1){!1===t&&(e=zr(e,u,"setProps",[T])),co("setProps",b(),e),Gr(u,"onUpdateProps",[T,e,o])}function I(e,t,n=!1){P({[e]:t},n)}const T={initField:function(e){const t=function(e){return vt(e.attributes)!==vt(o.attributes)||e.type!==o.type}(e);N(e),t&&L(v())},setOptions:function(e){I("options",e),Gr(u,"onUpdateOptions",[T,e])},setAttributes:function(e){co("setAttributes",b(),e)},getAttributes:function(){return o.attributes},getAttribute:k,setValues:C,setProps:P,setProp:I,getProp:function(e){return o[e]},getUid:function(){return n},getId:function(){return o.id},getState:function(){return o},getName:function(){return o.name},getElement:v,getQueryData:function(){return{queryId:o.attributes.queryId}},getStoreKey:b,getValues:S,getUrlName:function(){return s},getUrlValues:function(e){return i},getConnectedData:function(){return l},setConnectedData:function(e){l=e},getUrl:function(){if(!o?.urlTemplate)return null;if(!function(){const e=x();return"checkbox"!==e&&("select"!==e&&"button"!==e||"yes"!==k("multiple"))}())return null;if(!l.taxonomyParents)return null;const e=S(),t=e.length>0?e[0]:"",n=d[t],r=f[n];let i=o.urlTemplate;if(!Array.isArray(i))return null;if(0===i.length)return null;let s=0;l.taxonomyParents[n]&&l.taxonomyParents[n].forEach((e=>{s++}));let a=i[s];return a?(a=E(a,"[id]",n),a=E(a,"[slug]",r),l.taxonomyParents[n]&&l.taxonomyParents[n].forEach((e=>{a=E(a,"[slug]",e.slug)})),a):null},remove:function(){A(),so.unsubscribe(y),lo.unsubscribe(w),co("removeField",b()),_&&_.removeField(T)},unmount:A,mount:function(e){e?(I("el",e),L(e)):L(v())},enable:function(){},disable:function(){},focus:function(){},blur:function(){},queryActions:function(){return _?_.getActions():{}},getQuery:function(){return _},on:p.addEventListener,off:p.removeEventListener};return so.subscribe(y),lo.subscribe(w),N(t),e&&L(e),I("_instance",T),_&&_.addField(T),T};var mo=window.searchAndFilter.frontend.packages.registry,go=window.searchAndFilter.frontend.packages.extensions;const vo=(e,t)=>{window.location.href=((e,t)=>{const n=new URLSearchParams(t).toString();let r=e;if(""===e&&(r="?"),""!==n){const e=r.indexOf("?")>-1;r+=(e?"&":"?")+n}return r})(e,t)},bo=()=>window.searchAndFilter.admin;let yo=null;const wo=e=>{if(e.getAttribute("href")){const t=Fo(e.getAttribute("href")).trim();t!==e.getAttribute("href")&&e.setAttribute("href",t)}else if(e.innerHTML){const t=Fo(e.innerHTML).trim();t!==e.innerHTML.trim()&&(e.innerHTML=t)}else if(e.textContent){const t=Fo(e.textContent).trim();t!==e.textContent.trim()&&(e.textContent=t)}},Co=e=>{const t=[];let n=null,r=null;if(e.head){let r=!1;for(const o of e.head.childNodes)if(o.nodeType===Node.ELEMENT_NODE&&"META"===o.tagName&&"search-filter-head-assets-start"===o.getAttribute("name")&&(r=!0,n=o),r&&o!==n&&o.nodeType===Node.ELEMENT_NODE){if("META"===o.tagName&&"search-filter-head-assets-end"===o.getAttribute("name"))break;(Eo(o)||xo(o))&&(wo(o),t.push({element:o,location:"head"}))}}if(e.body){const n='body > style, body > link[rel="stylesheet"], body > #search-filter-svg-template',o=e.body.querySelectorAll(n);for(const e of o)wo(e),t.push({element:e,location:"body"});r=e.body.firstChild}return{elementsList:t,headMarker:n,bodyMarker:r}},So=(e,t,n)=>new Promise(((r,o)=>{const i=e.cloneNode(!0),s=i.getAttribute("media")||"all";let l,a;const{element:u,action:c}=t;i.setAttribute("media","print");const d=()=>{i.onload=null,i.onerror=null,n&&n.removeEventListener("abort",p),i.setAttribute("media",s)},f=()=>{clearTimeout(l),cancelAnimationFrame(a),"replace"===c&&u.remove()},p=()=>{d(),f()};i.onload=()=>{d();const e=()=>{l=setTimeout((()=>{a=requestAnimationFrame((()=>{(e=>{for(const t of document.styleSheets)if(t.href===e)return t;return null})(i.href)||n&&n.aborted?(f(),r(i)):e()}))}),20)};e()},i.onerror=()=>{p()},u.after(i),n.addEventListener("abort",p,{once:!0}),n.aborted&&p()})),xo=e=>!!e&&"LINK"===e.tagName&&"stylesheet"===e.getAttribute("rel")&&e.getAttribute("href"),Eo=e=>!!e&&"STYLE"===e.tagName;let No=null,Lo=null;const Ao=(e,t,n=null,r=null)=>{if(bo())return Promise.resolve();if(!t)return Promise.resolve();const o=t.head&&t.head.querySelector('meta[name="search-filter-head-assets-start"]')&&t.head.querySelector('meta[name="search-filter-head-assets-end"]'),i=t.querySelector("#search-filter-data-js");if(!o&&!i)throw new Error("Failed to update assets: Page does not contain expected Search & Filter markers. The response may be an error page.");return Lo&&Lo.url===e?(No=null,Promise.resolve()):(Lo&&Lo.abortController&&Lo.abortController.abort(),No={url:e,doc:t,updateTreeSelectors:r,abortController:n||new AbortController},Lo?Promise.resolve():Po())},ko=e=>{const t=new Map;for(const n of e){const e=n.element;if(e.nodeType===Node.ELEMENT_NODE)if(e.id)t.set(e.id,e);else if(e.getAttribute("href")){const n=e.getAttribute("href");t.set(n,e)}else t.set(e.textContent,e)}return{getEquivelant:function(e){if(e.id)return t.get(e.id);if(e.getAttribute("href")){const n=e.getAttribute("href");return t.get(n)}return t.get(e.textContent)},elements:t}},Po=()=>{Lo=No,No=null;const e=Lo.abortController;return new Promise(((t,n)=>{if(e.signal.aborted)return void n(new DOMException("Request superseded by new request","AbortError"));const r=Lo.doc,{added:o,removed:i,changed:s}=(()=>{if(yo)return yo;if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return yo={added:[],removed:[],changed:[]},yo;const e=new DOMParser,t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=e.parseFromString(t,"text/html"),{elementsList:r}=Co(n),{elementsList:o}=Co(document),{added:i,removed:s,changed:l}=((e,t)=>{const n=ko(e),r=ko(t),o=[],i=[],s=[];for(const e of t){const t=e.element,r=n.getEquivelant(t);r?Eo(t)?t.textContent!==r.textContent&&s.push(e):xo(t)&&t.getAttribute("href")!==r.getAttribute("href")&&s.push(e):o.push(e)}for(const t of e){const e=t.element;r.getEquivelant(e)||i.push(t)}return{added:o,removed:i,changed:s}})(r,o);return yo={added:i,removed:s,changed:l},yo})(),l=ko(o),a=ko(i),{elementsList:u,headMarker:c,bodyMarker:d}=Co(document),{elementsList:f}=Co(r);if(!c)return void t();const p=ko(u),h=ko(f),_=[];let m=c,g=d;const v=new WeakMap,b=new Set;for(const t of f){const n=t.element;if(a.getEquivelant(n))continue;const r=p.getEquivelant(n),o="head"===t.location;if(r?(o?m=r:g=r,v.set(n,{action:"replace",element:o?m:g})):v.set(n,{action:"after",element:o?m:g}),Eo(n)){if(r&&r.textContent===n.textContent)continue;b.add(n)}else if(xo(n)){if(r&&n.getAttribute("href")===r.getAttribute("href"))continue;_.push(So(n,v.get(n),e.signal))}else{if(r&&r.textContent===n.textContent)continue;b.add(n)}}const y=new Set;for(const e of u){const t=e.element;l.getEquivelant(t)||(h.getEquivelant(t)||y.add(t))}const w=()=>{for(const n of b){const o=v.get(n),{action:i,element:s}=o;"replace"===i?s.replaceWith(n.cloneNode(!0)):s.after(n.cloneNode(!0))}for(const l of y)l.remove();document.title!==r.title&&(document.title=r.title),document.body.className!==r.body.className&&(document.body.className=r.body.className);const e=Lo.updateTreeSelectors;if(e)for(const a of e){const u=document.querySelector(a),c=r.querySelector(a);function d(e,t){return!(!e||!t)&&"BODY"!==e.tagName&&"BODY"!==t.tagName&&e&&t&&e.nodeType===Node.ELEMENT_NODE&&t.nodeType===Node.ELEMENT_NODE}if(d(u,c)){let f=u.parentElement,p=c.parentElement;for(;d(f,p);)f.className=p.className,f.style.cssText=p.style.cssText,f=f.parentElement,p=p.parentElement}}t()};Promise.all(_).then(w).catch((e=>{if("AbortError"!==e.name)throw e;w(),w()})).finally((()=>{Lo=null,No&&Po()}))}))},Io=(e,t,n=!1)=>{let r=e;const o=[];for(const e in t)!t[e]&&n?o.push(`${e}`):o.push(`${e}=${t[e]}`);const i=r.split("#");r=i[0];const s=i[1];return 0===o.length?e:(-1!==r.indexOf("?")?r+="&":r+="?",r+=o.join("&"),s&&(r+=`#${s}`),r)},To=(e,t)=>{let n=e;const r={};for(const e in t)if(Array.isArray(t[e])){const n=[];t[e].forEach((e=>{if(e){const t=e.replace(/,/g,"");n.push(encodeURIComponent(t))}else n.push(e)})),r[e]=n.join(",")}else r[e]=encodeURIComponent(t[e]);return n=Io(n,r),n},Do=e=>(new DOMParser).parseFromString(e,"text/html");let Oo=null;function Fo(e){let t=e;const n=window.searchAndFilterData.homeUrl,r=qo();return n&&r&&(t=e.replaceAll(r.url,n)),t}const qo=()=>{if(!window.searchAndFilterApiUrl)return null;if(null!==Oo)return Oo;Oo={auth:null,url:null};const e=new URL(window.searchAndFilterApiUrl);return e.username&&e.password&&(Oo.auth="Basic "+btoa(`${e.username}:${e.password}`)),Oo.url=`${e.origin}${e.pathname}${e.search}`,Oo.url.endsWith("/")&&(Oo.url=Oo.url.slice(0,-1)),Oo},$o=(()=>{const e={},t={},n=[];function r(e){if(t[e]){const n=t[e];t[e]=null;try{n.abort(new DOMException("Request superseded by new request","AbortError"))}catch(e){if("AbortError"===e.name)return}}}bo()||window.addEventListener("popstate",(t=>{(async(t,r)=>{const i=r&&Object.keys(r).length>0;if(!e[t]&&i&&(e[t]={dom:Do(r),raw:r}),e[t])try{await Ao(t,e[t].dom,null,o())}catch(e){if("AbortError"!==e.name)throw e}for(const r of n)r.popState&&r.popState(t,e[t])})(window.location.href,t.state)}));const o=()=>{let e=[];for(const t of n)t.treeSelector&&e.push(t.treeSelector);return e};return(0,In.onInitDocument)((()=>{if(!window.searchAndFilterPage||!window.searchAndFilterPage.head||!window.searchAndFilterPage.body)return;const t="<html>"+window.searchAndFilterPage.head+window.searchAndFilterPage.body+"</html>",n=Do(t);e[window.location.href]={dom:n,raw:t}}),"complete"),{newRequest:async function(n,i,s,l=!0,a=!1){const u=a?o():[];if(e[n]){r(s);const o=new AbortController;return t[s]=o,new Promise(((t,r)=>{setTimeout((async()=>{try{l&&await Ao(n,e[n].dom,o,u),t(i(e[n]))}catch(e){r(e)}}),100)}))}return new Promise(((o,a)=>{r(s);const c=new AbortController;t[s]=c;const d=function(e){let t=e;const n=window.searchAndFilterData.homeUrl,r=qo();return n&&r&&(t=e.replaceAll(n,r.url)),t}(n),f=qo(),p={"search-filter-api":"frontend"};f&&(p["search-filter-api"]="frontend/external");const h=To(d,p),_={"Content-Type":"text/html"};f&&f.auth&&(_.Authorization=f.auth),fetch(h,{method:"GET",headers:_,signal:c.signal}).then((e=>{if(t[s]!==c)throw new DOMException("Aborted","AbortError");if(!e.ok)throw new Error(`Failed to load page: HTTP ${e.status} ${e.statusText} for URL: ${h}`);return e.text()})).then((async r=>{if(t[s]!==c)throw new DOMException("Aborted","AbortError");return e[n]={dom:Do(r),raw:r},l&&await Ao(n,e[n].dom,c,u),Promise.resolve(i(e[n]))})).then((()=>{o()})).catch((e=>{"AbortError"!==e.name?a(e):o()})).finally((()=>{t[s]===c&&(t[s]=null)}))}))},registerHandler:e=>{n.push(e)},abortRequest:e=>{r(e)}}})(),Ro=$o.registerHandler,Uo=$o.newRequest,Vo=$o.abortRequest,Mo=window.getComputedStyle;function Ho(e,...t){if(!e)return"";let n=0;return e.replace(/%(\d+\$)?([ds])/g,((e,r,o)=>{const i=r?parseInt(r)-1:n++,s=t[i];return"d"===o?parseInt(s,10):String(s)}))}function Bo(e,t){e&&(e.textContent="",requestAnimationFrame((()=>{e.textContent=t})))}function jo(e,t,n,r){const o=r||{},i=o.noResultsText||"No results found",s=o.singleResultText||"%d result found",l=o.multipleResultsText||"%d results found",a=o.pageText||"Page %1$d of %2$d";let u="";return u=0===e?i:Ho(1===e?s:l,e),n>1&&(u+=". "+Ho(a,t,n)),u}let Wo=0;function Ko(e){if(Array.isArray(e)){if(0===e.length)return!0;if(1===e.length&&""===e[0])return!0}return!1}const Go={},zo=e=>{let t=0;const n=(Wo++,Wo),r=`query_${n}`;let o={},i="",s={},l=null,a=null,u=null,c=!1;const d=jn();let f=window.location.href;const p={},h=(0,go.get)("queries"),_=no();function m(){return t}function g(){return n}function v(){return r}function b(e){const t=e[r];t&&o!==t&&(o=e[r])}function y(e){return o.settings?o.settings[e]:null}function w(e){ar("setProp",v(),"activeFields",e)}function C(){return o.fields?o.fields:[]}function S(e){ar("setProp",v(),"fields",e)}function x(e,t=!1){if(function(){const e=C();for(const t in e){const n=e[t];if(n.getAttribute("defaultValueType")&&"none"!==n.getAttribute("defaultValueType"))return!0}return!1}()){const t=E();e=Io(e,{[t]:null},!0)}return e}function E(){return"~"+m()}function N(){const e={fieldValues:{},urlValues:{},url:i},t=y("currentTaxonomyArchive"),n=y("currentTaxonomyTermArchive");let r=!1,s=!1;for(const n in o.fields){const l=o.fields[n],a=o.fields[n].getUrlValues(),u=l.getProp("connectedData")?.navigatesTaxonomyArchive;u&&u===t&&Ko(a)&&(s=!0,r=!0,e.url=i)}for(const i in o.fields){const l=o.fields[i],a=d+o.fields[i].getUrlName(),u=o.fields[i].getUrlValues();Ko(u)||(e.urlValues[a]=u,e.fieldValues[i]=u);const c=l.getProp("connectedData")?.navigatesTaxonomyArchive;c&&(c===t?Ko(u)||(n!==u[0]&&(r=!0,e.url=l.getUrl()),e.urlValues[a]&&delete e.urlValues[a]):t&&!s||!c||Ko(u)||(r=!0,e.url=l.getUrl(),e.urlValues[a]&&delete e.urlValues[a]))}if(r)return e;const l=y("taxonomyArchiveUrl");return l?(e.url=l,e):e}function L(e){s=(0,In.cloneObject)(e),i=s.url,t=s.id,ar("setQuery",v(),s),c||(function(){if(u)return;const e=A("queryContainer");if(!e)return;const t=document.querySelectorAll(e);if(0===t.length)return void(function(){const e=new URL(N().url),t=new URL(window.location.href);return e.pathname===t.pathname}()&&(0,In.log)(`Query container not found for query ${m()}. Selector: ${e}`,"error"));if(t.length>1)return void(0,In.log)(`Multiple query containers found for query ${m()}. Selector: ${e}`,"error");u=t[0],u.classList.add("search-filter-query");const n=A("a11yQueryContainerLabel")||"Search Results";if(k("containerId",function(e,t,n){let r=e.id;var o;return r||(r=`search-filter-query-instance-${t}`,e.id=r),(o=e).tabIndex>=0||o.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")||e.setAttribute("aria-label",n),function(e){if(["MAIN","NAV","ASIDE","HEADER","FOOTER","SECTION","FORM"].includes(e.tagName))return!0;const t=e.getAttribute("role");return!(!t||!["main","navigation","complementary","banner","contentinfo","region","form","search"].includes(t))}(e)||e.setAttribute("role","region"),r}(u,g(),n)),I()){const e=function(e){const t=`search-filter-query-announcer-${e}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className="search-filter-screen-reader-text",n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n)}(m());u.parentNode.insertBefore(e,u),k("announcer",e)}}(),function(){if(!l&&I()&&u&&"yes"===A("resultsShowSpinner")){const e="search-filter-query--loading";l=function(e,t,n=null){let r=!1,o=!1;const i="search-filter-query__spinner--show",s=document.createElement("div");s.classList.add("search-filter-base"),s.classList.add("search-filter-query__spinner"),s.classList.add("search-filter-query--id-"+t);const l=document.createElement("div");l.classList.add("search-filter-query__spinner-icon");const a=document.createElementNS("http://www.w3.org/2000/svg","svg"),u=document.createElementNS("http://www.w3.org/2000/svg","use");function c(){const t=e.offsetParent,n=function(e,t=!0){let n=Mo(e);const r="absolute"===n.position,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===n.position)return document.body;for(let t=e;t=t.parentElement;)if(n=Mo(t),(!r||"static"!==n.position)&&o.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body}(e);if(!n||!n.tagName)return;t&&"body"!==n.tagName.toLowerCase()&&!n.contains(t)&&"static"===Mo(n).position&&(n.style.position="relative");let r="0px",o="0px";if(t&&"body"===t.tagName.toLowerCase()&&"static"===Mo(t).position){const e=Mo(document.documentElement);"relative"!==e.position&&(r=e.marginTop,o=e.marginLeft)}const i=e.getBoundingClientRect();s.style.width=i.width+"px",s.style.height=i.height+"px",s.style.top=`calc( ${e.offsetTop}px + ${r} )`,s.style.left=`calc( ${e.offsetLeft}px + ${o} )`}let d;function f(){d&&window.cancelAnimationFrame(d),d=window.requestAnimationFrame((function(){c()}))}u.setAttributeNS("http://www.w3.org/1999/xlink","href","#sf-svg-spinner-circle"),a.appendChild(u),l.appendChild(a),s.appendChild(l),window.addEventListener("scroll",f,!0),window.addEventListener("resize",f,!0);const p=()=>{s.style.visibility="hidden",r=!1,o=!1,n&&n()};return s.addEventListener("transitionstart",(function(e){o=!0})),s.addEventListener("transitionend",(function(e){r&&p()})),s.addEventListener("transitioncancel",(function(e){r&&p()})),e.after(s),c(),{container:s,setLoaderPosition:c,remove:function(){s.remove()},show:function(){s.style.visibility="visible",c(),s.classList.add(i)},hide:function(){c(),r=!0,o||p(),s.classList.remove(i)}}}(u,m(),(()=>{u.classList.remove(e)}))}}(),D(),O(),c=!0)}function A(e){return o.attributes&&o.attributes[e]?o.attributes[e]:null}function k(e,t){ar("setProp",v(),e,t)}function P(e){return ir.getState()[v()][e]}function I(){return"yes"===A("resultsDynamicUpdate")}function T(e){e.preventDefault(),P("preventPaginationPropagation")&&e.stopPropagation();const t=function(e){const t=new URL(document.baseURI).origin;return 0!==e.indexOf(t)}(n=e.currentTarget.getAttribute("href"))?new URL(n,document.baseURI).href:n;var n;t&&Q(t,!0)}function D(){const e=A("queryPaginationSelector");if(!e)return;const t=document.querySelectorAll(e);t&&t.forEach((e=>{e.removeEventListener("click",T),e.addEventListener("click",T)}))}function O(){if("infinite_scroll"!==A("resultsPaginationType"))return;const e=A("queryPostsContainer");if(!e)return void(0,In.log)(`Posts container selector not configured for infinite scroll on query ${m()}.`,"error");const t=document.querySelector(e);if(!t)return void(0,In.log)(`Posts container not found for infinite scroll on query ${m()}. Selector: ${e}`,"error");a&&a.remove();const n=A("infiniteScrollOffset")||"-100px";a=function(e,t,n={}){const{rootMargin:r="-100px",onTrigger:o=()=>{},onEnd:i=()=>{}}=n;let s=null,l=!1,a=!1,u=!1,c=!0;const d="search-filter-query__infinite-scroll-loader--show",f=document.createElement("div");f.classList.add("search-filter-base"),f.classList.add("search-filter-query__infinite-scroll-trigger"),f.classList.add("search-filter-query--id-"+t);const p=document.createElement("div");p.classList.add("search-filter-query__infinite-scroll-loader");const h=document.createElement("div");h.classList.add("search-filter-query__infinite-scroll-loader-icon");const _=document.createElementNS("http://www.w3.org/2000/svg","svg"),m=document.createElementNS("http://www.w3.org/2000/svg","use");function g(){s&&s.disconnect();const e=r.includes(" ")?r:`0px 0px ${r} 0px`;s=new IntersectionObserver((e=>{e.forEach((e=>{!e.isIntersecting||l||a||u||v()}))}),{root:null,rootMargin:e,threshold:0}),s.observe(f)}function v(){l=!0,y(),o(b)}function b(){l=!1,w(),g()}function y(){p.classList.add(d)}function w(){p.classList.remove(d)}return m.setAttributeNS("http://www.w3.org/1999/xlink","href","#sf-svg-spinner-circle"),_.appendChild(m),h.appendChild(_),p.appendChild(h),f.appendChild(p),e.after(f),g(),{container:f,show:y,hide:w,remove:function(){s&&(s.disconnect(),s=null),f.remove()},pause:function(){a=!0},resume:function(){a=!1},updateEndState:function(e,t){parseInt(e)>=parseInt(t)?(u=!0,w(),i()):(u=!1,c&&(c=!1,requestAnimationFrame((()=>{!function(){if(l||a||u)return;const e=f.getBoundingClientRect(),t=parseInt(r)||0;e.top<window.innerHeight+t&&v()}()}))))}}}(t,m(),{rootMargin:n,onTrigger:e=>{z(e)},onEnd:()=>{(0,In.log)(`Infinite scroll reached end for query ${m()}.`)}}),a.updateEndState(y("currentPage"),y("maxPages"))}function F(){a&&(a.remove(),a=null)}function q(){const e={};let t=!1;for(const n in o.fields)Ko(o.fields[n].getUrlValues())||(e[`field-${o.fields[n].getId()}`]=o.fields[n],t=!0);return t?e:Go}function $(e=null){const t=N();w(q());const n=e??t.url,r=Object.keys(t.urlValues).length>0;let o=null;return n&&(o=x(To(n,t.urlValues),r)),{values:t.urlValues,url:o}}function R(){const{values:e,url:t}=$();t?Q(t,!0):(0,In.log)(`No URL set for query ID: ${m()}.`,"error"),(0,go.doActions)(h,"onSubmit",[e])}ir.subscribe(b),L(e);const U=(e=!0)=>{const t=C();for(const n in t)t[n].setProp("isBusy",e)},V=()=>{const e="yes"===A("resultsFadeResults"),t="yes"===A("resultsShowSpinner");e&&u&&u.classList.add("search-filter-query--fade-out"),t&&l&&l.show(),u&&u.classList.add("search-filter-query--loading"),U(!0);const n=P("announcer");n&&Bo(n,A("a11yLoadingText")||"Loading results...")},M=()=>{const e="yes"===A("resultsFadeResults"),t="yes"===A("resultsShowSpinner");e&&u&&u.classList.remove("search-filter-query--fade-out"),t&&l&&l.hide(),u&&u.classList.remove("search-filter-query--loading"),U(!1)},H=(e="search")=>{const t=P("announcer");if(!t)return;const n=y("foundPosts"),r=y("currentPage"),o=y("maxPages");let i="";i="load-more"===e?((e,...t)=>{let n=0;return e.replace(/%(\d+\$)?([ds])/g,((e,r,o)=>{const i=r?parseInt(r)-1:n++,s=t[i];return"d"===o?parseInt(s,10):String(s)}))})(A("a11yLoadedMoreText")||"Loaded more results. Page %1$d of %2$d",r,o):jo(n,r,o,{noResultsText:A("a11yNoResultsText"),singleResultText:A("a11ySingleResultText"),multipleResultsText:A("a11yMultipleResultsText"),pageText:A("a11yPageText")}),Bo(t,i)},B=()=>{for(const e in o.fields)o.fields[e].setValues([]);w(q());const e=N().url;e&&Q(x(e),!0),(0,go.doActions)(h,"onReset",[])},j=e=>{k("currentValues",e)},W=e=>{if(!e)return;const t=(0,mo.get)([],"queries");Object.keys(e).forEach((n=>{const r={...e[n]},o=t.get(r.id);o?o.setSettings(r.settings):zo(r)}))},K=e=>{if(!e)return;const t=(0,mo.get)([],"fields");Object.keys(e).forEach((n=>{const r={...e[n]},o=t.get(r.id);if(o)r.values=o.getValues(),o.initField(r);else{const e=document.querySelector(`.search-filter-field[data-field-id="${r.id}"]`);e&&_o(e,r)}}))},G=e=>{if(!e)return;const t=(0,mo.get)([],"fields");for(const n in e){const r={...e[n]},o=t.get(r.id);o&&o.setValues(r.values)}w(q())};function z(e){if(!I())return void(0,In.log)(`Live search is not enabled for query ${m()}.`,"error");const t=A("queryPostsContainer"),n=document.querySelectorAll(t);if(0===n.length)return void(0,In.log)(`Posts container not found for query ${m()}. Selector: ${t}`,"error");if(n.length>1)return void(0,In.log)(`Multiple posts containers found for query ${m()}. Selector: ${t}`,"error");const r=n[0],o=parseInt(y("currentPage"))+1,i=N(),s=y("paginationKey");s?i.urlValues[s]=o:i.urlValues.paged=o;const l=Object.keys(i.urlValues).length>0,c=x(To(i.url,i.urlValues),l);_.triggerEvent("get-results/start",[oe,{action:"load-more"}]),U(!0);const d=P("announcer");d&&Bo(d,A("a11yLoadingMoreText")||"Loading more results..."),Uo(c,(t=>{const n=t.dom,o=Y(n),i=A("queryContainer"),s=n.querySelector(i);if(!s)return void(0,In.log)(`Destination query container not found for query ${m()}. Selector: ${i}`,"error");X(o,s);const l=A("queryPostsContainer"),c=n.querySelector(l);c?(Array.from(c.childNodes).forEach((e=>{r.appendChild(e.cloneNode(!0)),ee(u,o.fields)})),a&&a.updateEndState(y("currentPage"),y("maxPages")),H("load-more"),e&&e()):(0,In.log)(`Destination posts container not found for query ${m()}. Selector: ${l}`,"error")})).catch((e=>{if("AbortError"===e.name)return;(0,In.log)(`Failed to load more for query ${m()}: ${e.message}`,"error");const t=P("announcer");t&&Bo(t,A("a11yErrorText")||"Error loading results")})).finally((()=>{U(!1),_.triggerEvent("get-results/finish",[oe,{action:"load-more"}])}))}async function Q(e,t=!0){if(!u)return void(t&&vo(e));if(!I()||!u)return void(t&&vo(e));_.triggerEvent("get-results/start",[oe]),V();const n=A("queryContainer");await Uo(e,(async n=>{await async function(e,t,n=!0){j({...te(e)}),J(t),H("search"),"yes"===A("resultsUpdateUrl")&&n&&(((e,t)=>{e!==window.location.href&&window.history.pushState(t,"",e)})(e,t.raw),f=e);const r=A("resultsScrollToSelector");if(r&&""!==r){const e=document.querySelector(r);e?e.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}):(0,In.log)(`Scroll to selector element not found for query ${m()}. Selector: ${r}`,"error")}}(e,n,t)}),`results-${m()}`,!0,n).catch((e=>{if("AbortError"===e.name)return;(0,In.log)(`Failed to fetch results for query ${m()}: ${e.message}`,"error");const t=P("announcer");t&&Bo(t,A("a11yErrorText")||"Error loading results")})).finally((()=>{M(),_.triggerEvent("get-results/finish",[oe])}))}function Y(e){const t=e.querySelector("#search-filter-data-js");if(!t)throw new Error("Failed to parse page data: #search-filter-data-js script tag not found. The page may have returned an error or invalid response.");const n=t.getAttribute("data-search-filter-data");if(!n)throw new Error("Failed to parse page data: data-search-filter-data attribute is missing.");const r=JSON.parse(n);if(!r.fields||!r.queries)throw new Error("Failed to parse page data: fields or queries data is missing from response.");return r}function X(e,t,n=!1){if(W(e.queries),K(e.fields),n&&G(e.fields),u&&"yes"===A("resultsUpdatePage"))for(const e of t.attributes)u.setAttribute(e.name,e.value)}function J(e,t=!1){const n=e.dom,r=Y(n),o=A("queryContainer"),i=n.querySelector(o);if(!i)return void(0,In.log)(`Destination query container not found for query ${m()}. Selector: ${o}`,"error");F(),Z(u,i,r.fields),X(r,i,t);const s=A("dynamicSections");if(s===o)return void(0,In.log)(`Dynamic section value is the same as the query container for query ${m()}.`,"error");const l=[],a=A("additionalDynamicSections");s&&l.push(s),a&&l.push(a);const c=l.join(", ");""!==c&&c.split(",").forEach((e=>{const t=e.trim(),o=document.querySelectorAll(t),i=n.querySelectorAll(t);o.length!==i.length&&(0,In.log)(`Dynamic area count mismatch for query ${m()}. Selector: ${t}`,"error"),o.forEach(((e,t)=>{e.innerHTML=i[t].innerHTML,Z(e,i[t],r.fields)}))})),D(),O()}function Z(e,t,n){e&&t&&(function(e){if(!e)return;const t=(0,mo.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach((e=>{const n=e.getAttribute("data-search-filter-id"),r=t.get(parseInt(n));r&&r.unmount()}))}(e),e.innerHTML=t.innerHTML,ee(e,n))}function ee(e,t){if(!e)return;const n=(0,mo.get)([],"fields");e.querySelectorAll(".search-filter-field[data-search-filter-id]").forEach((e=>{const r=e.getAttribute("data-search-filter-id");let o=n.get(parseInt(r));const i={...t["field_"+r]};o?(i&&o.setOptions(i.options),o.mount(e)):o=_o(e,i)}))}function te(e){const t=new URL(e),n=new URLSearchParams(t.search),r={};return n.forEach(((e,t)=>{r[t]=e.split(",").map((e=>e.replace(/\x1F/g,",")))})),r}if(!bo()&&I()){let e=null;"yes"===A("resultsUpdatePage")&&(e=A("queryContainer")),Ro({popState:async function(e,t){if(I()){if(t)return _.triggerEvent("get-results/start",[oe]),j({...te(e)}),J(t,!0),_.triggerEvent("get-results/finish",[oe]),void(f=e);f.split("#")[0]!==e.split("#")[0]&&await Q(e,!1),f=e}},treeSelector:e})}function ne(){Vo(`results-${m()}`),Vo(`fields-${m()}`)}var re;re={submit:R,reset:B,loadMore:z,getFields:C,refreshFields:async function(){const{url:e}=$(window.location.href);e&&(_.triggerEvent("get-results/start",[oe]),U(!0),await Uo(e,(e=>{!function(e){(e=>{if(!e)return;const t=(0,mo.get)([],"fields");Object.keys(e).forEach((n=>{const r=e[n],o=t.get(r.id);o&&o.setOptions(r.options)}))})(Y(e.dom).fields)}(e)}),`fields-${m()}`,!1).catch((e=>{"AbortError"!==e.name&&(0,In.log)(`Failed to refresh fields for query ${m()}: ${e.message}`,"error")})).finally((()=>{U(!1),_.triggerEvent("get-results/finish",[oe])})))},signalUpdate:ne},ar("setProp",v(),"actions",re);const oe={setQuery:function(e,t){L(e)},setAttributes:function(e){ar("setAttributes",v(),e)},setProps:function(e){ar("setProps",v(),e)},setProp:k,getProp:P,setSettings:function(e){ar("setProp",v(),"settings",e)},getSetting:y,initConfig:L,getUid:g,getId:m,getValues:function(){return N().fieldValues},getStoreKey:v,getUrl:function(){return N().url},getName:function(){return s.name},getAttribute:A,getAttributes:function(){return o.attributes},getActions:function(){return o.actions??{}},submit:R,reset:B,remove:function(){l&&l.remove(),F(),ir.unsubscribe(b),ar("removeQuery",v())},loadMore:z,addField:e=>{S({...o.fields,[e.getStoreKey()]:e}),w(q()),p[e.getUrlName()]||(p[e.getUrlName()]=[]),p[e.getUrlName()].push(e);const t=o.activeValues??{};e.getValues().length>0&&(t[d+e.getUrlName()]=e.getValues()),j({...t}),e.on("onUpdateValues",ne)},removeField:e=>{const t={...o.fields};t[e.getStoreKey()]&&delete t[e.getStoreKey()],S(t),w(q()),e.off("onUpdateValues",ne)},getFields:C,isActive:function(){return o.isActive},getActiveUrlArg:E,getQueryContainer:function(){return u},on:_.addEventListener,off:_.removeEventListener};return ar("setProp",r,"_instance",oe),oe};function Qo(e){const t=e.getFields();for(const e in t){const n=t[e].getUrlValues();if(n&&n.length>0&&""!==n[0])return!0}return!1}function Yo(){if("loading"===document.readyState)return!1;if(window?.searchAndFilterData?.shouldMount){const e=h([],"mount");if(e){e();const t=h([],"queries");return t&&function(e){e&&Array.isArray(e)&&e.forEach((e=>{(function(e){if(!function(e){return Qo(e)}(e))return null;const t=e.getProp("containerId");if(!t)return null;const n=e.getAttribute("a11ySkipLinkLabel")||"Skip to search results",r=e.getAttribute("a11ySkipLinkClass")||"search-filter-screen-reader-text",o=document.createElement("a");o.href=`#${t}`,o.className=`skip-link ${r}`,o.textContent=n,o.setAttribute("data-search-filter-skip-link",e.getId()),o.addEventListener("click",(()=>{const e=document.getElementById(t);e&&e.focus()})),document.body.insertBefore(o,document.body.firstChild)})(e),function(e){if(!Qo(e))return;const t=e.getSetting("foundPosts"),n=e.getSetting("currentPage"),r=e.getSetting("maxPages");if(void 0===t)return;const o=jo(t,n,r,{noResultsText:e.getAttribute("a11yNoResultsText"),singleResultText:e.getAttribute("a11ySingleResultText"),multipleResultsText:e.getAttribute("a11yMultipleResultsText"),pageText:e.getAttribute("a11yPageText")}),i=function(e){const t=`search-filter-query-alert-${e}`;let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className="search-filter-screen-reader-text",n.setAttribute("role","alert"),n.setAttribute("aria-atomic","true"),n)}(e.getId());document.body.appendChild(i),Bo(i,o)}(e)}))}(t.getAll()),!0}}return!1}let Xo,Jo=!1;const Zo={},ei=(e,t)=>(!t.supports||!t.supports.includes("autoSubmit"))&&"yes"===t.attributes.autoSubmit,ti=(e,t)=>{const n=e.getQuery();if(!n)return;if("yes"!==n.getAttribute("useIndexer"))return;const r=e.queryActions(),{refreshFields:o}=r;if(!o)return;if(ei(0,t))return;let i=100;const s=t.attributes.autoSubmitDelay;s&&""!==s&&(i=parseInt(s)),clearTimeout(Xo),Xo=setTimeout((()=>{o()}),i)},ni=(e,t)=>{const n=e.getElement();e.setProp("isFieldVisible",!1),e.setProp("isInteractive",!1),t.includes("search-filter-field--hidden")||(t.push("search-filter-field--hidden"),e.blur(),e.setProp("classList",t),n.setAttribute("aria-hidden","true"))},ri=e=>{if("yes"!==e.getAttribute("hideFieldWhenEmpty"))return;if(!e.getElement())return;if(0!==e.getValues().length)return;const t=[...e.getProp("classList")],n=e.getAttribute("type");if("choice"===n){if(0===e.getProp("options").length)return void ni(e,t)}else if("range"===n){if(null===e.getAttribute("rangeMin")&&null===e.getAttribute("rangeMax"))return void ni(e,t)}else{if("control"!==n)return;{if("selection"!==e.getAttribute("controlType"))return;const n=e.getProp("availableOptions");if(n&&0===n.length)return void ni(e,t)}}e.getProp("isFieldVisible")||((e,t)=>{const n=e.getElement();e.setProp("isFieldVisible",!0),e.setProp("isInteractive",!0),n.setAttribute("aria-hidden","false"),t.includes("search-filter-field--hidden")&&(t.splice(t.indexOf("search-filter-field--hidden"),1),e.setProp("classList",t))})(e,t)};var oi={fields:{init:(e,t)=>{(e=>{Zo[e.getStoreKey()]||(Zo[e.getStoreKey()]=e)})(e),ri(e)},onUpdateOptions:(e,t)=>{ri(e)},onUpdateProps:(e,t)=>{t.availableOptions&&ri(e)},onUpdateValues:(e,t,n)=>{((e,t)=>{const n=e.queryActions(),{submit:r}=n;if(!r)return;if(!ei(0,t))return;let o=100;const i=t.attributes.autoSubmitDelay;i&&""!==i&&(o=parseInt(i)),clearTimeout(Xo),Xo=setTimeout((()=>{r()}),o)})(e,n),ti(e,n)},onClearValues:(e,t)=>{((e,t)=>{const n=e.queryActions(),{submit:r}=n;r&&ei(0,t)&&r()})(e,t),ti(e,t)},config:(e,t)=>{let n={...e};return n=((e,t)=>{const{attributes:n}=e,{showLabel:r,labelToggleVisibility:o=!1,labelInitialVisibility:i="visible"}=n;if("yes"!==r)return e;if("yes"!==o)return e;const s={...e},l=t.getProp("isFieldOpen");let a=void 0!==l?l:"visible"===i;return bo()&&(a=!0),s.extensions={labelProps:{fieldIsOpen:a,onClick:()=>{const e=!t.getProp("isFieldOpen");t.setProp("isFieldOpen",e);const n={...t.getProp("extensions")};n.inputClassName=e?null:"search-filter-field__input--hidden",n.labelProps={...n.labelProps,fieldIsOpen:e},t.setProp("extensions",n)},isToggle:!0},inputClassName:a?null:"search-filter-field__input--hidden"},s.isFieldOpen=a,s})(n,t),n=(e=>{if(!e.defaultValues)return e;if(!e.attributes.defaultValueType)return e;const t=e.attributes.defaultValueType;if(!t||"none"===t)return e;const n=e.defaultValues,r={...e},o=Number(e.attributes.queryId),i=searchAndFilter.frontend.queries.get(o);return i?window.location.href.includes(i.getActiveUrlArg())?e:(i.isActive()||(r.values=n),0===r.values.length&&(r.values=n),r):e})(n),n},setProps:(e,t)=>{if(e.isBusy){const n=[...t.getProp("classList")];n.includes("search-filter-field--is-busy")||(n.push("search-filter-field--is-busy"),e.classList=n)}else if(!1===e.isBusy){const n=[...t.getProp("classList")];n.includes("search-filter-field--is-busy")&&(n.splice(n.indexOf("search-filter-field--is-busy"),1),e.classList=n)}return e}},queries:{onSubmit:e=>{clearTimeout(Xo)},onReset:e=>{clearTimeout(Xo)}}};Br("fields",oi.fields),Br("queries",oi.queries),to("search","autocomplete",Nr),to("range","number",Dr),to("range","select",Ir),to("range","slider",Pr),to("range","radio",Tr),to("control","load_more",$r),to("control","selection",Fr);const ii=(e=>{const t=no();return{create:function(...n){const r=e(...n);return t.triggerEvent("create",[r]),r},getByUid:function(e){const t=[],n=so.getState();for(const r in n)n[r].uid===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},get:function(e){const t=[],n=so.getState();for(const r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(e){const t=[],n=so.getState();for(const r in n)e?n[r].id===e&&t.push(n[r]._instance):t.push(n[r]._instance);return t},enable:function(){const e=so.getState();for(const t in e)e[t]._instance.enable()},disable:function(){const e=so.getState();for(const t in e)e[t]._instance.disable()},unload:function(){const e=so.getState(),t=[];for(const n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:so,on:t.addEventListener,off:t.removeEventListener}})(_o);p([],"fields",ii);const si=(e=>{const t=no();return{create:function(n){const r=e(n);return t.triggerEvent("create",[r]),r},getByStoreKey:function(e){const t=ir.getState();return t[e]?t[e]._instance:null},get:function(e){if("number"!=typeof e)return yt("Query ID is not a number","error"),null;const t=[],n=ir.getState();for(const r in n)n[r].id===e&&t.push(n[r]._instance);return t.length>0?t[0]:null},getAll:function(){const e=[],t=ir.getState();for(const n in t)e.push(t[n]._instance);return e},enable:function(){const e=ir.getState();for(const t in e)e[t]._instance.enable()},disable:function(){const e=ir.getState();for(const t in e)e[t]._instance.disable()},unload:function(){const e=ir.getState(),t=[];for(const n in e)t.push(e[n].id),e[n]._instance.remove();return t},store:ir,on:t.addEventListener,off:t.removeEventListener}})(zo);p([],"queries",si),p([],"mount",(function(){const e=window?.searchAndFilterData?.queries,t=(e=>{const t=[];for(const[n,r]of Object.entries(e)){const e=r;if(void 0===e)return void(0,In.log)("Query config not set.","error");let n=si.get(e.id);n||(n=si.create(e)),t.push(n)}return t})(e??{}),n=window?.searchAndFilterData?.fields,r=(e=>{const t=[];for(const[n,r]of Object.entries(e)){const e=r;if(void 0===e)return void(0,In.log)("Field config not set.","error");let n=ii.get(e.id);if(!n){const r=document.querySelectorAll(`[data-search-filter-id="${e.id}"]`);if(0===r.length)n=ii.create(null,e),t.push(n);else for(const o of r)n=ii.create(o,e),t.push(n)}}return t})(n);document.dispatchEvent(new CustomEvent("search-filter/mount",{detail:{queries:t,fields:r}}))})),p([],"unmount",(function(){const e=ii.unload(),t=si.unload();document.dispatchEvent(new CustomEvent("search-filter/unmount",{detail:{fieldIds:e,queryIds:t}}))})),document.dispatchEvent(new CustomEvent("search-filter/interactive")),Yo()||document.addEventListener("readystatechange",(e=>{Jo||(Jo=Yo())}))}()}();
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter-elementor/assets/v3/js/frontend.js?ver=1.4.3 
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?t(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function n(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(t){var r=function(t){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function a(e){if(window.elementorFrontend&&window.elementorFrontend.elementsHandler&&window.elementorFrontend.elementsHandler.runReadyTrigger){var t=window.elementorFrontend.elementsHandler.runReadyTrigger;e&&(t(e),e.querySelectorAll(".elementor-widget").forEach((function(e){t(e)})))}}var f={};window.addEventListener("elementor/frontend/init",(function(){var t=new WeakMap,n=function(){function n(){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,i=new Array(o),u=0;u<o;u++)i[u]=arguments[u];return function(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}(r=function(t,r,n){return r=l(r),function(t,r){if(r&&("object"==e(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,c()?Reflect.construct(r,n||[],l(t).constructor):r.apply(t,n))}(this,n,[].concat(i)),t,null),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(n,elementorModules.frontend.handlers.Base),i=n,(s=[{key:"getDefaultSettings",value:function(){return{selectors:{field:".search-filter-field"}}}},{key:"initEditorField",value:function(e,t,n){var o=JSON.parse(e.getAttribute("data-search-filter-settings")),i=o.elementorId,c=function(e,t){var r,n=0;if(f[e])n=f[e];else{var o=(r=t.id,window.searchAndFilter.frontend.fields.get(parseInt(r))||null);o&&!o.getElement()&&(n=o.getUid())}return n}(i,o),l={};if(!this.isEdit){var u=function(e){return window.searchAndFilter.frontend.fields.getByUid(parseInt(e))||null}(c);u&&(l={attributes:u.getAttributes(),values:u.getValues(),options:u.getProp("options")},u.remove())}if(e.getAttribute("data-search-filter-settings")){var s=r(r({},o),l);(function(e){var t=function(e){return window.searchAndFilter.frontend.queries.get(parseInt(e))||null}(e);if(!t){var r=window.searchAndFilterData.queries[parseInt(e)];r&&(t=function(e){return(0,window.searchAndFilter.frontend.queries.create)(e)}(r))}return!!t&&(t.getProp("elementorListeners")||function(e){"yes"===e.getAttribute("resultsDynamicUpdate")&&["elementor/widget"].includes(e.getAttribute("queryIntegration"))&&(e.setProp("elementorListeners",!0),e.on("get-results/finish",(function(e,t){var r=e.getQueryContainer();!function(e,t){"load-more"===(null==t?void 0:t.action)&&e.classList.contains("elementor-widget-portfolio")&&e.querySelectorAll(".elementor-portfolio-ghost-item").forEach((function(e){e.remove()}))}(r,t),a(r);var n=e.getAttribute("dynamicSections");n&&document.querySelectorAll(n).forEach((function(e){a(e)}))})))}(t),!0)})(s.attributes.queryId)||console.warn("Search & Filter: Unable to init query '".concat(s.attributes.queryId,"' for field '").concat(t,"'")),this.fieldReference=function(e,t){return(0,window.searchAndFilter.frontend.fields.create)(e,t)}(e,s),this.isEdit||function(e,t){f[e]=t}(i,this.fieldReference.getUid())}else console.warn("Search & Filter: Unable to find config for field widget: ".concat(t," | ").concat(n))}},{key:"bindEvents",value:function(){var e=this.elements.field;if(e){var t=parseInt(this.getElementSettings("search_filter_field").replace("field_","")),r=e.getAttribute("data-search-filter-uid");this.initEditorField(e,t,r)}}},{key:"onDestroy",value:function(){this.fieldReference&&this.fieldReference.remove()}},{key:"getDefaultElements",value:function(){var e=this.getSettings("selectors");return{field:this.$element.find(e.field)[0]}}}])&&o(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,s}();elementorFrontend.elementsHandler.attachHandler("search-filter-field",n)}))}();
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter/assets/frontend/components/combobox.js?ver=cc6927f5437c5824732d 
!function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=window.window.searchAndFilter.frontend.packages.core.hooks,l=window.searchAndFilter.frontend.packages.utils,n=window.searchAndFilter.frontend.packages.hooks,o=window.searchAndFilter.frontend.packages.components;function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},s.apply(null,arguments)}const a=()=>{},i=()=>!0,c=()=>!1,r=({value:n,baseClass:o,label:s,index:a,listboxId:i,activeOptionIndex:c,onSelect:r,updateSelected:u,isActive:p=!1,depth:d=-1,focusInput:h,countLabel:b})=>{const f=(0,t.useRef)(null),g=c===a;return(0,e.h)(e.Fragment,null,(0,e.h)("li",{tabIndex:"-1","aria-selected":g,role:"option","data-option-value":n,className:(0,l.classNames)({[o+"__listbox-option"]:!0,[o+"__listbox-option--selected"]:g,[o+"__listbox-option--active"]:p,[o+"__listbox-option--depth-"+d]:-1!==d}),id:i+"-option--"+n,ref:f,onClick:()=>{r(a)},onMouseMove:()=>{a!==c&&u(a)},onMouseUp:e=>{h()}},s,b?(0,e.h)("span",{className:o+"__listbox-option-count",translate:"no"},b):null))};var u=({listboxRef:n,sourceRef:u,id:p,baseClass:d,className:h,options:b,onClickOutside:f=a,activeOptionIndex:g,onSelectOption:v,onOptionChange:m,shouldRenderOption:x=i,isOptionActive:C=c,focusInput:_,contentOverride:O,showCount:k,noResultsText:w="No results",attachment:y="attached",...I})=>{let N=(0,t.useRef)(null);n&&(N=n);const[S,F]=(0,t.useState)(!0),L=e=>{F(!1),m(e)};(0,t.useEffect)((()=>{if(S){if(N.current){const e=(e=>{if(N.current){const t=N.current.querySelector(`li:nth-child(${e+1})`);if(t)return t}return null})(g);e&&((e,t)=>{parseFloat(t.offsetTop)-parseFloat(e.scrollTop)<0&&(e.scrollTop=t.offsetTop);const l=parseFloat(e.scrollTop)+parseFloat(e.clientHeight);parseFloat(t.offsetTop)+parseFloat(t.clientHeight)>l&&(e.scrollTop=parseFloat(t.offsetTop)-(parseFloat(e.clientHeight)-parseFloat(t.clientHeight)))})(N.current,e)}}else F(!0)}),[g,N]);const R={[d+"__listbox"]:d,[d+"__listbox--"+y]:!0};h&&(R[h]=!0);const A=[];return O||b.forEach(((t,l)=>{x(t)&&A.push((0,e.h)(r,{key:t.value,index:l,value:t.value,label:t.label,activeOptionIndex:g,depth:t.depth,listboxId:p,onSelect:v,updateSelected:L,baseClass:d,isActive:C(t),focusInput:_,countLabel:k?t.countLabel:null}))})),(0,e.h)(o.Popover,s({name:p,id:p,className:(0,l.classNames)(R),sourceRef:u,matchWidth:!0,onClickOutside:f},I),(0,e.h)("ul",{className:d+"__listbox-list",role:"listbox",ref:N},O||A,O||0!==b.length?null:(0,e.h)("li",{className:(0,l.classNames)(d+"__listbox-option",d+"__listbox-option--disabled")},w)))};function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},p.apply(null,arguments)}const d=()=>{},h={},b=({value:s="",icon:a,placeholder:i,showLabel:c,hasClear:r=!0,label:f,isInteractive:g=!0,options:v=[],onChange:m=d,onEnter:x=d,listboxProps:C=h,InputComponent:_,clickAction:O="open",onSelectOption:k,shouldRenderOption:w,isOptionActive:y,onKeyDownCallback:I=d,onKeyUpCallback:N=d,onControlEscape:S=d,closeListboxOnScroll:F=!0,updateListboxOnScroll:L=!1,onLoseFocus:R=d,onShowListbox:A,listboxClassName:E,listboxContent:T,listboxAttachment:P="attached",hideSuggestionsOnEmpty:D=!1,onClear:$=d,inputClassName:V,showCount:j=!1,inputProps:M,enableSearch:H=!0,noResultsText:K="No results",singularResultsCountText:U="%d result available",pluralResultsCountText:B="%d results available",disabled:q=!1,...z})=>{const W="search-filter-component-combobox-base",G=(0,t.useRef)(null),J=(0,t.useRef)(null),Q=(0,t.useRef)(null),X=s,Y=m,Z=(0,n.useInstanceId)(b),ee="search-filter-input-combobox-"+Z,te="search-filter-input-combobox-listbox-"+Z,{isVisible:le,toggle:ne,position:oe}=(0,o.usePopover)(te),se=(0,o.useFocusDispatch)(),[ae,ie]=(0,t.useState)("text"),ce=(0,t.useMemo)((()=>Array.isArray(v)?v.map((e=>"string"==typeof e?{label:e,value:e}:e)):[]),[v]),[re,ue]=(0,t.useState)(0),pe=(0,t.useMemo)((()=>ce.filter((e=>(""!==e.value||""===s)&&!!e.label&&String(e.label).toLowerCase().includes(String(s).toLowerCase())))),[s,ce]);(0,t.useLayoutEffect)((()=>{he()}),[pe]);const de=e=>!D||""!==e;(0,t.useLayoutEffect)((()=>{de(X)||ve(!1)}),[X]);const he=()=>{ue((e=>pe.length>0?0:e))},be=()=>{ue((e=>pe.length>0?pe.length-1:e))},fe=e=>{g&&!q&&(xe(!0),ge(),de(s)&&("open"===O?ve(!0):"toggle"===O&&ve()))},ge=()=>{g&&!q&&se({type:"SET",id:ee})},ve=e=>{if(!g||q)return;let t=e;void 0===e&&(t=!le),ne(t),t?A?A({setActiveOption:ue,setFirstOption:he,filteredOptions:pe}):he():ue(-1)},[me,xe]=(0,t.useState)(!1),Ce=(0,t.useCallback)((e=>{xe(!1),ve(!1)}),[]),_e=(0,t.useCallback)((e=>{const t=pe[e];k?k(t):Y(t.label),ve(!1),ge()}),[pe,k]),Oe=(0,t.useCallback)((e=>{ue(e)}),[]),[ke,we]=(0,t.useState)(-1),ye=()=>{if(H&&G.current){const e=G.current,t=e.selectionStart;t===e.selectionEnd&&we(t)}},Ie=e=>{H&&e.target?.activeElement&&e.target.activeElement.id===ee&&ye()};if((0,t.useEffect)((()=>(document.addEventListener("selectionchange",Ie),()=>{document.removeEventListener("selectionchange",Ie)})),[]),!_)return null;const Ne=pe.length;let Se;return Se=0===Ne?K:(0,l.getNumericString)(U,B,Ne),(0,e.h)(e.Fragment,null,(0,e.h)(_,p({id:ee,icon:a,inputRef:G,controlRef:J,label:f,showLabel:c,hasClear:r,onChange:e=>{Y(e),de(e)&&(ve(!0),he(),ye())},onClear:$,value:X,placeholder:i,readOnly:!g,onEnter:x,onClick:fe,isInteractive:g,disabled:q,focusInput:ge,onSelectOption:k,popupVisible:le,inputClassName:V,inputProps:{maxlength:"2048",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"combobox","aria-autocomplete":"list","aria-controls":te,"aria-haspopup":"listbox","aria-expanded":le,"aria-activedescendant":le&&-1!==re&&pe.length>0?te+"-option--"+pe[re].value:null,readOnly:!g,tabIndex:g?null:-1,onKeyDown:e=>{let t="text";const l=0===ke,n=ke===e.target?.value?.length;switch(e.keyCode){case 9:ve(!1),xe(!1);break;case 40:!le&&de(X)?ve(!0):le&&ue((e=>e<pe.length-1?e+1:e)),t="listbox",e.preventDefault();break;case 38:le&&ue((e=>e>0?e-1:e)),t="listbox",e.preventDefault();break;case 13:if(le&&v[re])return void _e(re);x(),e.preventDefault();break;case 32:break;case 36:if(!le)break;0===re?l&&(t="listbox"):("listbox"===ae||l)&&(t="listbox",(e=>{he(),e.preventDefault()})(e));break;case 35:if(!le)break;re===pe.length-1?n&&(t="listbox"):("listbox"===ae||n)&&(t="listbox",(e=>{be(),e.preventDefault()})(e));break;case 33:t="listbox",(e=>{const t=re-5;t>=0?ue(t):he(),e.preventDefault()})(e);break;case 34:t="listbox",(e=>{const t=re+5;t<=pe.length-1?ue(t):be(),e.preventDefault()})(e)}ie(t),I(e.keyCode,l,n)},onKeyUp:e=>{switch(e.keyCode){case 27:(e=>{H&&(le?ve(!1):S(e))})(e);break;case 46:case 8:ye()}N(e.keyCode)},onFocus:()=>{g&&!q&&xe(!0)},onBlur:e=>{g&&!q&&(e.relatedTarget&&Q.current.contains(e.relatedTarget)||R(e))},...M},controlProps:{onClick:fe,tabIndex:g?null:-1,className:(0,l.classNames)(W,{[`${W}--listbox-visible`]:le,[`${W}--listbox-position-${oe}`]:le&&oe?oe:null,[`${W}--focused`]:me,[`${W}--disabled`]:q,[`${W}--listbox-${P}`]:!0})},showCount:j,options:v,enableSearch:!q&&H,listboxId:te},z)),(0,e.h)("div",{"aria-live":"polite",role:"status",className:W+"__screen-reader-text"},Se),g?(0,e.h)(u,p({className:E,attachment:P,listboxRef:Q,baseClass:W,sourceRef:J,id:te,options:pe,activeOptionIndex:re,onSelectOption:_e,onOptionChange:Oe,onClickOutside:Ce,shouldRenderOption:w,isOptionActive:y,closeOnScroll:F,updateOnScroll:L,focusInput:ge,contentOverride:T,showCount:j,noResultsText:K},C)):null)};function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},f.apply(null,arguments)}const g=({inputId:n,inputRef:s,inputProps:a,baseClass:i,listboxId:c,labelId:r,showLabel:u,label:p,enableSearch:d,multiple:h,placeholder:b,interactive:g,selection:v,searchValue:m,setSearchValue:x,toggleOption:C,focusInput:_,showCount:O})=>{const{toggle:k,isVisible:w}=(0,o.usePopover)(c),[y,I]=(0,t.useState)(!1),[N,S]=(0,t.useState)(-1);let F={className:i+"__selection"};d||(F.role="combobox",F.tabindex="0",F["aria-expanded"]="false",F["aria-controls"]=c,F["aria-haspopup"]="listbox",F["aria-labelledby"]="yes"===u?r:null,F["aria-label"]="yes"===u?null:p);let L={};if(d)if(L={type:"text",value:m,"aria-labelledby":"yes"===u?r:null,"aria-label":"yes"===u?null:p,id:n,className:i+"__actions-input",onInput:e=>{const t=e.target.value;x(t),g&&k(true)},tabIndex:g?null:-1,readOnly:!g,placeholder:0===v.length?b:"",...a},h){let e=m?.length>0?m.length:1;0===v.length&&b?.length&&b.length>e&&(e=b.length),L.style={width:`calc( ${e}ch + 6px )`}}else 0===v.length&&(L.placeholder=b);const R={onClick:e=>{d&&"function"==typeof e.currentTarget.select&&e.currentTarget.select(),I(!1)},ref:s};d?L=(0,l.mergeObjects)(L,R):F=(0,l.mergeObjects)(F,R);const A=v.length>0;let E=A?v[0].label:"";const T=0===v.length?b:"";return d||h||0!==v.length||(F.className+=` ${i}__selection-placeholder`,E=b),(0,e.h)(e.Fragment,null,h&&(0,e.h)("div",F,v.map(((t,l)=>{let n="";return y&&l===v.length-1&&(n=" "+i+"__selection-item--active"),(0,e.h)("div",{key:l,className:i+"__selection-item"+n},(0,e.h)("div",{className:i+"__selection-label"},t.label,O&&(0,e.h)("span",{className:i+"__selection-count",translate:"no"},t.countLabel)),(0,e.h)(o.Icon,{icon:"clear",className:i+"__selection-remove",onClick:e=>{C(t),_(),e.stopPropagation(),e.preventDefault()}}))})),d&&(0,e.h)("input",f({},L,{placeholder:T})),!d&&0===v.length&&(0,e.h)("div",{className:i+"__selection-placeholder"},T)),!h&&(0,e.h)(e.Fragment,null,""===m&&(0,e.h)("div",F,E,O&&A?(0,e.h)("span",{className:i+"__selection-count",translate:"no"},v[0].countLabel):null),d&&(0,e.h)("input",L)))};g.templateVars=["selectionLabel","placeholderText",["multiple",{type:"control"}],["selection",{type:"list",child:{type:"object",props:["label"]}}]];var v=g,m=({baseClass:t,show:n,onClick:s=()=>{}})=>(0,e.h)("div",{className:(0,l.classNames)({[t+"__clear-selection"]:!0,[t+"--hidden"]:!n})},(0,e.h)(o.Icon,{icon:"clear",onClick:s,isInteractive:!0,isDestructive:!0,label:"Clear selection",className:t+"__clear-button"}));function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)({}).hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},x.apply(null,arguments)}const C=s=>{const a="search-filter-component-combobox",{id:i,icon:c,inputRef:r,controlRef:u,label:p,showLabel:d,hasClear:h=!0,onChange:b,value:f,placeholder:g,labelProps:_,isInteractive:O,inputProps:k,controlProps:w,options:y,fieldValue:I,setFieldValue:N,onSelectOption:S,onClear:F,multiple:L,enableSearch:R=!0,scale:A=4,escClears:E,focusInput:T,description:P,showDescription:D,inputClassName:$,showCount:V,showDivider:j=!0,listboxId:M}=s,H=(0,n.useInstanceId)(C),K=i??"search-filter-input-combobox-"+H;(0,o.useFocusEvent)(r,K);const U="search-filter-label-"+(0,n.useInstanceId)(o.Label);let B={};R?B=w:(B.className=w.className,B.onClick=w.onClick);const q=[a+"__actions"];!1===L&&0===I.length&&q.push(a+"__actions--empty");const[z,W]=(0,t.useState)([]);(0,t.useEffect)((()=>{if(!y)return;const e=[];I.forEach((t=>{const l=y.findIndex((e=>e.value===t));-1!==l&&e.push(y[l])})),W(e)}),[y,I]);const G=z.length>0;return(0,e.h)(e.Fragment,null,(0,e.h)(o.Label,x({showLabel:d,label:p,id:U,forId:K,isInteractive:O},_)),(0,e.h)(o.Description,{description:P,showDescription:D}),(0,e.h)("div",x({},B,{"aria-labelledby":"yes"===d?U:null,"aria-label":"yes"===d?null:p,ref:u,className:(0,l.classNames)(w.className,a,$,`${a}--mode-${L?"multiple":"single"}`,`${a}--search-${R?"enabled":"disabled"}`,{[`${a}--has-icon`]:c})}),(0,e.h)("div",{className:a+"__header"},c&&(0,e.h)(o.Icon,{icon:c,className:a+"__icon"}),(0,e.h)("div",{className:(0,l.classNames)(q)},(0,e.h)(v,{baseClass:a,listboxId:M,inputId:K,labelId:U,showLabel:d,label:p,inputRef:r,inputProps:k,multiple:L,enableSearch:R,interactive:O,selection:z,fieldValue:I,searchValue:f,setFieldValue:N,setSearchValue:b,escClears:E,placeholder:g,toggleOption:S,focusInput:T,showCount:"yes"===V,onClear:F,onChange:b,hasClear:h})),(0,e.h)(m,{baseClass:a,show:h&&G,onClick:e=>{"click"===e.type&&e.stopPropagation(),N([]),F?F():b(""),T()}}),j?(0,e.h)("div",{className:a+"__input-divider"}):null,(0,e.h)("div",{className:a+"__listbox-toggle"},(0,e.h)(o.Icon,{icon:"arrow-down"})))))};var _=window.searchAndFilter.frontend.packages.registry;(0,_.register)(["packages","components"],"ComboboxControl",(l=>{const n=l.value,o=l.onChange,[s,a]=(0,t.useState)(""),i=(0,t.useCallback)((e=>!(l.multiple&&(!l.multiple||l.hideSelectedOptions))&&n.includes(e.value)),[n]),c=(0,t.useCallback)((e=>!l.multiple||!l.hideSelectedOptions||!n.includes(e.value)),[n]);return(0,e.h)(b,x({InputComponent:C},l,{clickAction:"toggle",fieldValue:n,setFieldValue:o,value:s,onChange:a,onSelectOption:e=>{a(""),(e=>{l.enableSearch&&a("");let t=[...n];if(l.multiple){const l=n.findIndex((t=>t===e.value));-1!==l?(t.splice(l,1),o(t)):t.push(e.value)}else t=[e.value];o(t)})(e)},isOptionActive:i,shouldRenderOption:c,onLoseFocus:e=>{a("")},onControlEscape:l.escClears?()=>{s.length>0?a(""):!l.multiple&&n.length>0&&o([])}:void 0,onShowListbox:({setActiveOption:e,setFirstOption:t,filteredOptions:o})=>{if(l.multiple)return void t();if(0===n.length)return void t();const s=n[0],a=o.findIndex((e=>e.value===s));-1!==a?e(a):t()}}))})),(0,_.register)(["packages","components"],"ComboboxBase",b)}();
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter/assets/frontend/components/checkbox.js?ver=93ec2e37e6adfeb3fc48 
!function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=window.window.searchAndFilter.frontend.packages.core.hooks,n=window.searchAndFilter.frontend.packages.hooks,o=window.searchAndFilter.frontend.packages.components,a=window.searchAndFilter.frontend.packages.utils;function s(){}function c(e,t=s){const n={},o={nodes:{}};return e&&(o.nodes=r(e,null,n,t)),{getNode:function(e){return n[e]},getRoot:function(){return o}}}function r(e,t,n,o,a){const s={};return e.forEach((e=>{const c=a??e.value,l=function(e,t,n,o,a=[]){return{value:e,object:t,parent:n,nodes:a,root:o}}(e.value,e,t,c,[]);e.options&&(l.nodes=r(e.options,l,n,o,c)),e=o(e),s[e.value]=l,n[e.value]=l})),s}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}const u=["false","true"],i=["false","mixed","true"];function h(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n];if(!t[n])return!1;const a=t[n];return o.value===a.value&&(o.options&&a.options?h(o.options,a.options):!o.options&&!t.options)}return!0}function f(e,n,r){const l=(0,t.useRef)(new Set),f=(0,t.useRef)([]),[b,k]=(0,t.useState)({}),[g,m]=(0,t.useState)({});(0,t.useLayoutEffect)((()=>{let e=[];Object.keys(b).forEach((t=>{"true"===b[t]&&e.push(t)}))}),[b]);const y=function(e,n=s){return(0,t.useMemo)((()=>c(e,n)),[e])}(e,v("checkbox")),{getNode:w,getRoot:O}=y,x=O();function C(e){return Object.keys(e.nodes).length>0}function j(e,t,n){const o=e.nodes;let s={};const c=[];if(C(e)){c.push(e);const n=Object.keys(o);n.forEach((e=>{const n=o[e];s=(0,a.mergeObjects)(s,j(n,t))}));const l={true:0,false:0,mixed:0},u=n.length,i={};n.forEach((e=>{const t=o[e].value,n=s[t];l[n]++})),l.true===u?(s[e.value]="true",i[e.value]="true"):l.false===u?(s[e.value]="false",i[e.value]="false"):(s[e.value]="mixed",i[e.value]="mixed",r={[e.value]:s},m((e=>(0,a.mergeObjects)(e,r))))}else t.has(e.value)?s[e.value]="true":s[e.value]="false";var r;return s}function I(e,t,n="all"){let o=(0,a.cloneArray)(e);const s=t.nodes;return Object.keys(s).forEach((t=>{const a=s[t];C(a)?(o=o.concat(I(e,a,n)),o.push(a.value)):("all"===n||b[a.value]===n)&&o.push(a.value)})),o}return(0,t.useLayoutEffect)((()=>{h(f.current,e)||m({}),f.current=e,x.nodes&&Object.keys(x.nodes).forEach((e=>{const t=j(x.nodes[e],new Set(n));k((e=>(0,a.mergeObjects)(e,t)))}))}),[x]),(0,t.useLayoutEffect)((()=>{const e=new Set(n),t=[];!function(e,t,n){for(const o of e)t.has(o)||n(o);for(const o of t)e.has(o)||n(o)}(l.current,e,(e=>{const n=w(e);n&&!t.includes(n.root)&&t.push(n.root)})),l.current=e,t.forEach((t=>{const n=j(w(t),e);k((e=>(0,a.mergeObjects)(e,n)))}))}),[n]),[b,e=>{const t=g[e]??!1,s=w(e),c=C(s),l=c&&t?i:u,h=b[e]??"false",f=(0,o.checkableGetNextState)(l,h),v=(0,a.cloneArray)(n);if(c)"true"===f?(I([],s).forEach((e=>{p(v,e)})),p(v,e)):"false"===f?(I([],s).forEach((e=>{d(v,e)})),d(v,e)):"mixed"===f&&(Object.keys(g[e]).forEach((t=>{"true"===g[e][t]&&p(v,t)})),d(v,e)),r(v);else{if("true"===f){p(v,e);let t=s;for(;t;){let n=!0;Object.keys(t.nodes).forEach((t=>{t!==e&&"true"!==b[t]&&(n=!1)})),n&&p(v,t.value),t=t.parent}}else if("false"===f){d(v,e);let t=s;for(;t.parent;)t=t.parent,d(v,t.value)}else"mixed"===f&&d(v,e);r(v)}}]}function p(e,t){-1===e.indexOf(t)&&e.push(t)}function d(e,t){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}const v=e=>t=>(t.id=(0,n.generateInputId)(e,(0,n.getInstanceId)(g)),t),b=({type:n,options:s,value:c,onChange:r,showLabel:i,label:h,isInteractive:f,...v})=>{const[b,k]=function(e,n){const[s,c]=(0,t.useState)({});return(0,t.useLayoutEffect)((()=>{const t={},n=new Set(e);for(const e of n)n.has(e)&&(t[e]="true");c(t)}),[e]),[s,t=>{const c=u,r=s[t]??"false",l=(0,o.checkableGetNextState)(c,r),i=(0,a.cloneArray)(e);"true"===l?p(i,t):d(i,t),n(i)}]}(c,r);return(0,e.h)(o.CheckableSkeleton,l({},v,{type:"checkbox",options:s,value:c,onChange:r,checkableState:b,onUpdateOption:k,CheckableOptionComponent:g,showLabel:i,label:h,isInteractive:f}))},k=({options:t,value:n,onChange:a,showLabel:s,label:c,isInteractive:r,...u})=>{const[i,h]=f(t,n,a);return(0,e.h)(o.CheckableSkeleton,l({},u,{type:"checkbox",options:t,value:n,onChange:a,checkableState:i,onUpdateOption:h,CheckableOptionComponent:g,showLabel:s,label:c,isInteractive:r}))},g=({option:t,type:a,onUpdate:s,isInteractive:c=!0,checkedState:r="false",groupId:l,countLabel:u,showCount:i})=>{const{label:h,value:f,id:p}=t,d=t.options||[],v=(0,n.useInstanceId)(g),b=(0,n.generateInputId)(a,l,p??v),k="search-filter-input-"+a,m="true"===r||"mixed"===r,y=m?" "+k+"--is-active":"",w=d?.length>0;let O="";"true"===r?O="-checked":"mixed"===r&&(O="-mixed");const x=`#sf-svg-${a}${O}`;let C="";return d&&(C=d.map((e=>e.id)).join(",")),(0,e.h)("div",{className:k+y,"data-option-value":f},(0,e.h)("input",{id:b,type:a,readOnly:!c,tabIndex:c?null:-1,className:"search-filter-input-"+a+"__input",onChange:e=>{e.preventDefault(),s(f)},checked:m,name:b,"aria-checked":r,"aria-controls":""!==C?C:void 0,value:f}),(0,e.h)("label",{htmlFor:b,className:"search-filter-input-"+a+"__container",onClick:e=>{c||e.preventDefault()}},(0,e.h)("span",{className:"search-filter-input-"+a+"__control","aria-hidden":"true"},(0,e.h)("svg",null,(0,e.h)("use",{xlinkHref:x}))),(0,e.h)("span",{className:"search-filter-input-"+a+"__label"},h,u?(0,e.h)("span",{className:"search-filter-input-"+a+"__count",translate:"no"},u):null)),w&&(0,e.h)(o.CheckableOptions,{type:a,options:d,isInteractive:c,showCount:i,nested:!0}))};g.templateVars=["value","label","uid",["hasChildren",{type:"control"}],"checkedState","activeClass","svgLink",["options",{type:"list",depth:10,child:{type:"object",props:["value","label",{name:"options",type:"list"}]}}]],(0,window.searchAndFilter.frontend.packages.registry.register)(["packages","components"],"CheckboxControl",(t=>"yes"===t.hierarchical?(0,e.h)(k,t):(0,e.h)(b,t)))}();
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter/assets/frontend/components/date-picker.js?ver=4e11347078425c9be994 
/*! For license information please see date-picker.js.LICENSE.txt */
!function(){var e={0:function(){"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 a=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++)a(o[i]);return e})},110:function(e,t){var n;!function(){"use strict";var a={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)a.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_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' viewBox='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},i={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},o=i,r=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},l=function(e){return!0===e?1:0};function c(e,t){var n;return function(){var a=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(a,i)}),t)}}var s=function(e){return e instanceof Array?e:[e]};function d(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function f(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function m(e,t){return t(e)?e:e.parentNode?m(e.parentNode,t):void 0}function p(e,t){var n=u("div","numInputWrapper"),a=u("input","numInput "+e),i=u("span","arrowUp"),o=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var h=function(){},v=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},D={D:h,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*l(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 a=parseInt(t),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},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:h,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:h,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},b={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})"},w={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[w.w(e,t,n)]},F:function(e,t,n){return v(w.n(e,t,n)-1,!1,t)},G:function(e,t,n){return r(w.h(e,t,n))},H:function(e){return r(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[l(e.getHours()>11)]},M:function(e,t){return v(e.getMonth(),!0,t)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return r(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)}},y=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,t,a){var i=a||r;return void 0===n.formatDate||c?t.split("").map((function(t,a,o){return w[t]&&"\\"!==o[a-1]?w[t](e,i,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,i)}},C=function(e){var t=e.config,n=void 0===t?a:t,o=e.l10n,r=void 0===o?i:o;return function(e,t,i,o){if(0===e||e){var l,c=o||r,s=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var d=t||(n||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(n&&n.parseDate)l=n.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],p=0,g=0,h="";p<d.length;p++){var v=d[p],w="\\"===v,y="\\"===d[p-1]||w;if(b[v]&&!y){h+=b[v];var C=new RegExp(h).exec(e);C&&(f=!0)&&m["Y"!==v?"push":"unshift"]({fn:D[v],val:C[++g]})}else w||(h+=".")}l=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),m.forEach((function(e){var t=e.fn,n=e.val;return l=t(l,n,c)||l})),l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;n.errorHandler(new Error("Invalid date provided: "+s))}}};function M(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 x=function(e,t,n){return 3600*e+60*t+n};function E(e){var t=e.defaultHour,n=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();t<i&&(t=i),t===i&&n<o&&(n=o),t===i&&n===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(t=Math.min(t,l))===l&&(n=Math.min(c,n)),t===l&&n===c&&(a=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:a}}n(0);var k=function(){return k=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)},T=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a};function I(e,n){var i={config:k(k({},a),_.defaultConfig),l10n:o};function h(){var e;return(null===(e=i.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function D(e){return e.bind(i)}function w(){var e=i.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){var t=(i.days.offsetWidth+1)*e.showMonths;i.daysContainer.style.width=t+"px",i.calendarContainer.style.width=t+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}}))}function I(e){if(0===i.selectedDates.length){var t=void 0===i.config.minDate||M(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),n=E(i.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),i.selectedDates=[t],i.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=g(e),a=n;void 0!==i.amPM&&n===i.amPM&&(i.amPM.textContent=i.l10n.amPM[l(i.amPM.textContent===i.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),c=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),d=parseInt(a.value,10),u=d+s*(e.delta||(t?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var f=a===i.hourElement,m=a===i.minuteElement;u<o?(u=c+u+l(!f)+(l(f)&&l(!i.amPM)),m&&H(void 0,-1,i.hourElement)):u>c&&(u=a===i.hourElement?u-c-l(!i.amPM):o,m&&H(void 0,1,i.hourElement)),i.amPM&&f&&(1===s?u+d===23:Math.abs(u-d)>s)&&(i.amPM.textContent=i.l10n.amPM[l(i.amPM.textContent===i.l10n.amPM[0])]),a.value=r(u)}}(e);var a=i._input.value;S(),Ce(),i._input.value!==a&&i._debouncedChange()}function S(){if(void 0!==i.hourElement&&void 0!==i.minuteElement){var e,t,n=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(i.minuteElement.value,10)||0)%60,o=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;void 0!==i.amPM&&(e=n,t=i.amPM.textContent,n=e%12+12*l(t===i.l10n.amPM[1]));var r=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===M(i.latestSelectedDateObj,i.config.minDate,!0),c=void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===M(i.latestSelectedDateObj,i.config.maxDate,!0);if(void 0!==i.config.maxTime&&void 0!==i.config.minTime&&i.config.minTime>i.config.maxTime){var s=x(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),d=x(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),u=x(n,a,o);if(u>d&&u<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);n=f[0],a=f[1],o=f[2]}}else{if(c){var m=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;(n=Math.min(n,m.getHours()))===m.getHours()&&(a=Math.min(a,m.getMinutes())),a===m.getMinutes()&&(o=Math.min(o,m.getSeconds()))}if(r){var p=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;(n=Math.max(n,p.getHours()))===p.getHours()&&a<p.getMinutes()&&(a=p.getMinutes()),a===p.getMinutes()&&(o=Math.max(o,p.getSeconds()))}}F(n,a,o)}}function O(e){var t=e||i.latestSelectedDateObj;t&&t instanceof Date&&F(t.getHours(),t.getMinutes(),t.getSeconds())}function F(e,t,n){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(e%24,t,n||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=r(i.config.time_24hr?e:(12+e)%12+12*l(e%12==0)),i.minuteElement.value=r(t),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[l(e>=12)]),void 0!==i.secondElement&&(i.secondElement.value=r(n)))}function A(e){var t=g(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&X(n)}function N(e,t,n,a){return t instanceof Array?t.forEach((function(t){return N(e,t,n,a)})):e instanceof Array?e.forEach((function(e){return N(e,t,n,a)})):(e.addEventListener(t,n,a),void i._handlers.push({remove:function(){return e.removeEventListener(t,n,a)}}))}function P(){ve("onChange")}function Y(e,t){var n=void 0!==e?i.parseDate(e):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),a=i.currentYear,o=i.currentMonth;try{void 0!==n&&(i.currentYear=n.getFullYear(),i.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,i.config.errorHandler(e)}t&&i.currentYear!==a&&(ve("onYearChange"),U()),!t||i.currentYear===a&&i.currentMonth===o||ve("onMonthChange"),i.redraw()}function j(e){var t=g(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var a=e&&g(e),i=n||a&&a.parentNode&&a.parentNode.firstChild,o=De("increment");o.delta=t,i&&i.dispatchEvent(o)}function L(e,t,n,a){var o=ee(t,!0),r=u("span",e,t.getDate().toString());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",i.formatDate(t,i.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(t,i.now)&&(i.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,be(t)&&(r.classList.add("selected"),i.selectedDateElem=r,"range"===i.config.mode&&(d(r,"startRange",i.selectedDates[0]&&0===M(t,i.selectedDates[0],!0)),d(r,"endRange",i.selectedDates[1]&&0===M(t,i.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function(e){return!("range"!==i.config.mode||i.selectedDates.length<2)&&M(e,i.selectedDates[0])>=0&&M(e,i.selectedDates[1])<=0}(t)&&!be(t)&&r.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(t)+"</span>"),ve("onDayCreate",r),r}function R(e){e.focus(),"range"===i.config.mode&&ie(e)}function W(e){for(var t=e>0?0:i.config.showMonths-1,n=e>0?i.config.showMonths:-1,a=t;a!=n;a+=e)for(var o=i.daysContainer.children[a],r=e>0?0:o.children.length-1,l=e>0?o.children.length:-1,c=r;c!=l;c+=e){var s=o.children[c];if(-1===s.className.indexOf("hidden")&&ee(s.dateObj))return s}}function B(e,t){var n=h(),a=te(n||document.body),o=void 0!==e?e:a?n:void 0!==i.selectedDateElem&&te(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&te(i.todayDateElem)?i.todayDateElem:W(t>0?1:-1);void 0===o?i._input.focus():a?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():i.currentMonth,a=t>0?i.config.showMonths:-1,o=t>0?1:-1,r=n-i.currentMonth;r!=a;r+=o)for(var l=i.daysContainer.children[r],c=n-i.currentMonth===r?e.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf("hidden")&&ee(u.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return R(u)}i.changeMonth(o),B(W(o),0)}(o,t):R(o)}function J(e,t){for(var n=(new Date(e,t,1).getDay()-i.l10n.firstDayOfWeek+7)%7,a=i.utils.getDaysInMonth((t-1+12)%12,e),o=i.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),l=i.config.showMonths>1,c=l?"prevMonthDay hidden":"prevMonthDay",s=l?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,f=0;d<=a;d++,f++)r.appendChild(L("flatpickr-day "+c,new Date(e,t-1,d),0,f));for(d=1;d<=o;d++,f++)r.appendChild(L("flatpickr-day",new Date(e,t,d),0,f));for(var m=o+1;m<=42-n&&(1===i.config.showMonths||f%7!=0);m++,f++)r.appendChild(L("flatpickr-day "+s,new Date(e,t+1,m%o),0,f));var p=u("div","dayContainer");return p.appendChild(r),p}function K(){if(void 0!==i.daysContainer){f(i.daysContainer),i.weekNumbers&&f(i.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<i.config.showMonths;t++){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+t),e.appendChild(J(n.getFullYear(),n.getMonth()))}i.daysContainer.appendChild(e),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&ie()}}function U(){if(!(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)){var e=function(e){return!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&e<i.config.minDate.getMonth()||void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&e>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(i.currentYear,t).getMonth().toString(),n.textContent=v(t,i.config.shorthandCurrentMonth,i.l10n),n.tabIndex=-1,i.currentMonth===t&&(n.selected=!0),i.monthsDropdownContainer.appendChild(n)}}}function q(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();i.config.showMonths>1||"static"===i.config.monthSelectorType?e=u("span","cur-month"):(i.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),N(i.monthsDropdownContainer,"change",(function(e){var t=g(e),n=parseInt(t.value,10);i.changeMonth(n-i.currentMonth),ve("onMonthChange")})),U(),e=i.monthsDropdownContainer);var a=p("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&o.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(o.setAttribute("max",i.config.maxDate.getFullYear().toString()),o.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(a),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function $(){f(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var e=i.config.showMonths;e--;){var t=q();i.yearElements.push(t.yearElement),i.monthElements.push(t.monthElement),i.monthNav.appendChild(t.container)}i.monthNav.appendChild(i.nextMonthNav)}function V(){i.weekdayContainer?f(i.weekdayContainer):i.weekdayContainer=u("div","flatpickr-weekdays");for(var e=i.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(t)}return z(),i.weekdayContainer}function z(){if(i.weekdayContainer){var e=i.l10n.firstDayOfWeek,t=T(i.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=T(t.splice(e,t.length),t.splice(0,e)));for(var n=i.config.showMonths;n--;)i.weekdayContainer.children[n].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function G(e,t){void 0===t&&(t=!0);var n=t?e:e-i.currentMonth;n<0&&!0===i._hidePrevMonthArrow||n>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=n,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,ve("onYearChange"),U()),K(),ve("onMonthChange"),we())}function Z(e){return i.calendarContainer.contains(e)}function Q(e){if(i.isOpen&&!i.config.inline){var t=g(e),n=Z(t),a=!(t===i.input||t===i.altInput||i.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(i.input)||~e.path.indexOf(i.altInput))||n||Z(e.relatedTarget)),o=!i.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&o&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&I(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&i.clear(!1))}}function X(e){if(!(!e||i.config.minDate&&e<i.config.minDate.getFullYear()||i.config.maxDate&&e>i.config.maxDate.getFullYear())){var t=e,n=i.currentYear!==t;i.currentYear=t||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),n&&(i.redraw(),ve("onYearChange"),U())}}function ee(e,t){var n;void 0===t&&(t=!0);var a=i.parseDate(e,void 0,t);if(i.config.minDate&&a&&M(a,i.config.minDate,void 0!==t?t:!i.minDateHasTime)<0||i.config.maxDate&&a&&M(a,i.config.maxDate,void 0!==t?t:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!i.config.enable,r=null!==(n=i.config.enable)&&void 0!==n?n:i.config.disable,l=0,c=void 0;l<r.length;l++){if("function"==typeof(c=r[l])&&c(a))return o;if(c instanceof Date&&void 0!==a&&c.getTime()===a.getTime())return o;if("string"==typeof c){var s=i.parseDate(c,void 0,!0);return s&&s.getTime()===a.getTime()?o:!o}if("object"==typeof c&&void 0!==a&&c.from&&c.to&&a.getTime()>=c.from.getTime()&&a.getTime()<=c.to.getTime())return o}return!o}function te(e){return void 0!==i.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(e)}function ne(e){var t=e.target===i._input,n=i._input.value.trimEnd()!==ye();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||i.setDate(i._input.value,!0,e.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function ae(t){var n=g(t),a=i.config.wrap?e.contains(n):n===i._input,o=i.config.allowInput,r=i.isOpen&&(!o||!a),l=i.config.inline&&a&&!o;if(13===t.keyCode&&a){if(o)return i.setDate(i._input.value,!0,n===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),n.blur();i.open()}else if(Z(n)||r||l){var c=!!i.timeContainer&&i.timeContainer.contains(n);switch(t.keyCode){case 13:c?(t.preventDefault(),I(),ue()):fe(t);break;case 27:t.preventDefault(),ue();break;case 8:case 46:a&&!i.config.allowInput&&(t.preventDefault(),i.clear());break;case 37:case 39:if(c||a)i.hourElement&&i.hourElement.focus();else{t.preventDefault();var s=h();if(void 0!==i.daysContainer&&(!1===o||s&&te(s))){var d=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),G(d),B(W(1),0)):B(void 0,d)}}break;case 38:case 40:t.preventDefault();var u=40===t.keyCode?1:-1;i.daysContainer&&void 0!==n.$i||n===i.input||n===i.altInput?t.ctrlKey?(t.stopPropagation(),X(i.currentYear-u),B(W(1),0)):c||B(void 0,7*u):n===i.currentYearElement?X(i.currentYear-u):i.config.enableTime&&(!c&&i.hourElement&&i.hourElement.focus(),I(t),i._debouncedChange());break;case 9:if(c){var f=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter((function(e){return e})),m=f.indexOf(n);if(-1!==m){var p=f[m+(t.shiftKey?-1:1)];t.preventDefault(),(p||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(n)&&t.shiftKey&&(t.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&n===i.amPM)switch(t.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],S(),Ce();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],S(),Ce()}(a||Z(n))&&ve("onKeyDown",t)}function ie(e,t){if(void 0===t&&(t="flatpickr-day"),1===i.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),a=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),o=Math.min(n,i.selectedDates[0].getTime()),r=Math.max(n,i.selectedDates[0].getTime()),l=!1,c=0,s=0,d=o;d<r;d+=864e5)ee(new Date(d),!0)||(l=l||d>o&&d<r,d<a&&(!c||d>c)?c=d:d>a&&(!s||d<s)&&(s=d));Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+t)).forEach((function(t){var o,r,d,u=t.dateObj.getTime(),f=c>0&&u<c||s>0&&u>s;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(n<=i.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&u===a?t.classList.add("startRange"):a>n&&u===a&&t.classList.add("endRange"),u>=c&&(0===s||u<=s)&&(r=a,d=n,(o=u)>Math.min(r,d)&&o<Math.max(r,d))&&t.classList.add("inRange")))}))}}function oe(){!i.isOpen||i.config.static||i.config.inline||se()}function re(e){return function(t){var n=i.config["_"+e+"Date"]=i.parseDate(t,i.config.dateFormat),a=i.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(i["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter((function(e){return ee(e)})),i.selectedDates.length||"min"!==e||O(n),Ce()),i.daysContainer&&(de(),void 0!==n?i.currentYearElement[e]=n.getFullYear().toString():i.currentYearElement.removeAttribute(e),i.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function le(){return i.config.wrap?e.querySelector("[data-input]"):e}function ce(){"object"!=typeof i.config.locale&&void 0===_.l10ns[i.config.locale]&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=k(k({},_.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?_.l10ns[i.config.locale]:void 0),b.D="("+i.l10n.weekdays.shorthand.join("|")+")",b.l="("+i.l10n.weekdays.longhand.join("|")+")",b.M="("+i.l10n.months.shorthand.join("|")+")",b.F="("+i.l10n.months.longhand.join("|")+")",b.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")",void 0===k(k({},n),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===_.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=y(i),i.parseDate=C({config:i.config,l10n:i.l10n})}function se(e){if("function"!=typeof i.config.position){if(void 0!==i.calendarContainer){ve("onPreCalendarPosition");var t=e||i._positionElement,n=Array.prototype.reduce.call(i.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=i.calendarContainer.offsetWidth,o=i.config.position.split(" "),r=o[0],l=o.length>1?o[1]:null,c=t.getBoundingClientRect(),s=window.innerHeight-c.bottom,u="above"===r||"below"!==r&&s<n&&c.top>n,f=window.pageYOffset+c.top+(u?-n-2:t.offsetHeight+2);if(d(i.calendarContainer,"arrowTop",!u),d(i.calendarContainer,"arrowBottom",u),!i.config.inline){var m=window.pageXOffset+c.left,p=!1,g=!1;"center"===l?(m-=(a-c.width)/2,p=!0):"right"===l&&(m-=a-c.width,g=!0),d(i.calendarContainer,"arrowLeft",!p&&!g),d(i.calendarContainer,"arrowCenter",p),d(i.calendarContainer,"arrowRight",g);var h=window.document.body.offsetWidth-(window.pageXOffset+c.right),v=m+a>window.document.body.offsetWidth,D=h+a>window.document.body.offsetWidth;if(d(i.calendarContainer,"rightMost",v),!i.config.static)if(i.calendarContainer.style.top=f+"px",v)if(D){var b=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:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===b)return;var w=window.document.body.offsetWidth,y=Math.max(0,w/2-a/2),C=b.cssRules.length,M="{left:"+c.left+"px;right:auto;}";d(i.calendarContainer,"rightMost",!1),d(i.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+M,C),i.calendarContainer.style.left=y+"px",i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=h+"px";else i.calendarContainer.style.left=m+"px",i.calendarContainer.style.right="auto"}}}else i.config.position(i,e)}function de(){i.config.noCalendar||i.isMobile||(U(),we(),K())}function ue(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function fe(e){e.preventDefault(),e.stopPropagation();var t=m(g(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 n=t,a=i.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(a.getMonth()<i.currentMonth||a.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=n,"single"===i.config.mode)i.selectedDates=[a];else if("multiple"===i.config.mode){var r=be(a);r?i.selectedDates.splice(parseInt(r),1):i.selectedDates.push(a)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=a,i.selectedDates.push(a),0!==M(a,i.selectedDates[0],!0)&&i.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),o){var l=i.currentYear!==a.getFullYear();i.currentYear=a.getFullYear(),i.currentMonth=a.getMonth(),l&&(ve("onYearChange"),U()),ve("onMonthChange")}if(we(),K(),Ce(),o||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():R(n),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect){var c="single"===i.config.mode&&!i.config.enableTime,s="range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime;(c||s)&&ue()}P()}}i.parseDate=C({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=N,i._setHoursFromDate=O,i._positionCalendar=se,i.changeMonth=G,i.changeYear=X,i.clear=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=!0),i.input.value="",void 0!==i.altInput&&(i.altInput.value=""),void 0!==i.mobileInput&&(i.mobileInput.value=""),i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===t&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth()),!0===i.config.enableTime){var n=E(i.config);F(n.hours,n.minutes,n.seconds)}i.redraw(),e&&ve("onChange")},i.close=function(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active")),ve("onClose")},i.onMouseOver=ie,i._createElement=u,i.createDay=L,i.destroy=function(){void 0!==i.config&&ve("onDestroy");for(var e=i._handlers.length;e--;)i._handlers[e].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var t=i.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 i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput),i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","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 i[e]}catch(e){}}))},i.isEnabled=ee,i.jumpToDate=Y,i.updateValue=Ce,i.open=function(e,t){if(void 0===t&&(t=i._positionElement),!0===i.isMobile){if(e){e.preventDefault();var n=g(e);n&&n.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void ve("onOpen")}if(!i._input.disabled&&!i.config.inline){var a=i.isOpen;i.isOpen=!0,a||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),ve("onOpen"),se(t)),!0===i.config.enableTime&&!0===i.config.noCalendar&&(!1!==i.config.allowInput||void 0!==e&&i.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return i.hourElement.select()}),50))}},i.redraw=de,i.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(i.config,e),e)void 0!==me[a]&&me[a].forEach((function(e){return e()}));else i.config[e]=n,void 0!==me[e]?me[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(i.config[e]=s(n));i.redraw(),Ce(!0)},i.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=i.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return i.clear(t);pe(e,n),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),Y(void 0,t),O(),0===i.selectedDates.length&&i.clear(!1),Ce(t),t&&ve("onChange")},i.toggle=function(e){if(!0===i.isOpen)return i.close();i.open(e)};var me={locale:[ce,z],showMonths:[$,w,V],minDate:[Y],maxDate:[Y],positionElement:[he],clickOpens:[function(){!0===i.config.clickOpens?(N(i._input,"focus",i.open),N(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function pe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return i.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[i.parseDate(e,t)];else if("string"==typeof e)switch(i.config.mode){case"single":case"time":n=[i.parseDate(e,t)];break;case"multiple":n=e.split(i.config.conjunction).map((function(e){return i.parseDate(e,t)}));break;case"range":n=e.split(i.l10n.rangeSeparator).map((function(e){return i.parseDate(e,t)}))}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));i.selectedDates=i.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===i.config.mode&&i.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function ge(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?i.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:i.parseDate(e.from,void 0),to:i.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(){i._positionElement=i.config.positionElement||i._input}function ve(e,t){if(void 0!==i.config){var n=i.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](i.selectedDates,i.input.value,i,t);"onChange"===e&&(i.input.dispatchEvent(De("change")),i.input.dispatchEvent(De("input")))}}function De(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function be(e){for(var t=0;t<i.selectedDates.length;t++){var n=i.selectedDates[t];if(n instanceof Date&&0===M(n,e))return""+t}return!1}function we(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach((function(e,t){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+t),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[t].textContent=v(n.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function ye(e){var t=e||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map((function(e){return i.formatDate(e,t)})).filter((function(e,t,n){return"range"!==i.config.mode||i.config.enableTime||n.indexOf(e)===t})).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=ye(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=ye(i.config.altFormat)),!1!==e&&ve("onValueUpdate")}function Me(e){var t=g(e),n=i.prevMonthNav.contains(t),a=i.nextMonthNav.contains(t);n||a?G(n?-1:1):i.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):t.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function(){i.element=i.input=e,i.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=k(k({},JSON.parse(JSON.stringify(e.dataset||{}))),n),l={};i.config.parseDate=r.parseDate,i.config.formatDate=r.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(e){i.config._enable=ge(e)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(e){i.config._disable=ge(e)}});var c="time"===r.mode;if(!r.dateFormat&&(r.enableTime||c)){var d=_.defaultConfig.dateFormat||a.dateFormat;l.dateFormat=r.noCalendar||c?"H:i"+(r.enableSeconds?":S":""):d+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||c)&&!r.altFormat){var u=_.defaultConfig.altFormat||a.altFormat;l.altFormat=r.noCalendar||c?"h:i"+(r.enableSeconds?":S K":" K"):u+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:re("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:re("max")});var f=function(e){return function(t){i.config["min"===e?"_minTime":"_maxTime"]=i.parseDate(t,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:f("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:f("max")}),"time"===r.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0),Object.assign(i.config,l,r);for(var m=0;m<o.length;m++)i.config[o[m]]=!0===i.config[o[m]]||"true"===i.config[o[m]];for(t.filter((function(e){return void 0!==i.config[e]})).forEach((function(e){i.config[e]=s(i.config[e]||[]).map(D)})),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),m=0;m<i.config.plugins.length;m++){var p=i.config.plugins[m](i)||{};for(var g in p)t.indexOf(g)>-1?i.config[g]=s(p[g]).map(D).concat(i.config[g]):void 0===r[g]&&(i.config[g]=p[g])}r.altInputClass||(i.config.altInputClass=le().className+" "+i.config.altInputClass),ve("onParseConfig")}(),ce(),i.input=le(),i.input?(i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=u(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling)),i.config.allowInput||i._input.setAttribute("readonly","readonly"),he()):i.config.errorHandler(new Error("Invalid input element specified")),function(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var e=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);e&&pe(e,i.config.dateFormat),i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]),void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i")),void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i")),i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),i.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=i.currentMonth),void 0===t&&(t=i.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:i.l10n.daysInMonth[e]}},i.isMobile||function(){var e=window.document.createDocumentFragment();if(i.calendarContainer=u("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(e.appendChild((i.monthNav=u("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=u("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=u("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,$(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(e){i.__hidePrevMonthArrow!==e&&(d(i.prevMonthNav,"flatpickr-disabled",e),i.__hidePrevMonthArrow=e)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(e){i.__hideNextMonthArrow!==e&&(d(i.nextMonthNav,"flatpickr-disabled",e),i.__hideNextMonthArrow=e)}}),i.currentYearElement=i.yearElements[0],we(),i.monthNav)),i.innerContainer=u("div","flatpickr-innerContainer"),i.config.weekNumbers){var t=function(){i.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",i.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,a=t.weekNumbers;i.innerContainer.appendChild(n),i.weekNumbers=a,i.weekWrapper=n}i.rContainer=u("div","flatpickr-rContainer"),i.rContainer.appendChild(V()),i.daysContainer||(i.daysContainer=u("div","flatpickr-days"),i.daysContainer.tabIndex=-1),K(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),e.appendChild(i.innerContainer)}i.config.enableTime&&e.appendChild(function(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var e=E(i.config);i.timeContainer=u("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=p("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=n.getElementsByTagName("input")[0];var a=p("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});if(i.minuteElement=a.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),i.minuteElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():e.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(n),i.timeContainer.appendChild(t),i.timeContainer.appendChild(a),i.config.time_24hr&&i.timeContainer.classList.add("time24hr"),i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var o=p("flatpickr-second");i.secondElement=o.getElementsByTagName("input")[0],i.secondElement.value=r(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():e.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(o)}return i.config.time_24hr||(i.amPM=u("span","flatpickr-am-pm",i.l10n.amPM[l((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM)),i.timeContainer}()),d(i.calendarContainer,"rangeMode","range"===i.config.mode),d(i.calendarContainer,"animate",!0===i.config.animate),d(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(e);var o=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!o&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var c=u("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(c,i.element),c.appendChild(i.element),i.altInput&&c.appendChild(i.altInput),c.appendChild(i.calendarContainer)}i.config.static||i.config.inline||(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function(){if(i.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+e+"]"),(function(t){return N(t,"click",i[e])}))})),i.isMobile)!function(){var e=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=u("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=e,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr)),i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d")),i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d")),i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step"))),i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch(e){}N(i.mobileInput,"change",(function(e){i.setDate(g(e).value,!1,i.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=c(oe,50);if(i._debouncedChange=c(P,300),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&N(i.daysContainer,"mouseover",(function(e){"range"===i.config.mode&&ie(g(e))})),N(i._input,"keydown",ae),void 0!==i.calendarContainer&&N(i.calendarContainer,"keydown",ae),i.config.inline||i.config.static||N(window,"resize",e),void 0!==window.ontouchstart?N(window.document,"touchstart",Q):N(window.document,"mousedown",Q),N(window.document,"focus",Q,{capture:!0}),!0===i.config.clickOpens&&(N(i._input,"focus",i.open),N(i._input,"click",i.open)),void 0!==i.daysContainer&&(N(i.monthNav,"click",Me),N(i.monthNav,["keyup","increment"],A),N(i.daysContainer,"click",fe)),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){N(i.timeContainer,["increment"],I),N(i.timeContainer,"blur",I,{capture:!0}),N(i.timeContainer,"click",j),N([i.hourElement,i.minuteElement],["focus","click"],(function(e){return g(e).select()})),void 0!==i.secondElement&&N(i.secondElement,"focus",(function(){return i.secondElement&&i.secondElement.select()})),void 0!==i.amPM&&N(i.amPM,"click",(function(e){I(e)}))}i.config.allowInput&&N(i._input,"blur",ne)}}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&O(i.config.noCalendar?i.latestSelectedDateObj:void 0),Ce(!1)),w();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&o&&se(),ve("onReady")}(),i}function S(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=I(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var _=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};_.defaultConfig={},_.l10ns={en:k({},o),default:k({},o)},_.localize=function(e){_.l10ns.default=k(k({},_.l10ns.default),e)},_.setDefaults=function(e){_.defaultConfig=k(k({},_.defaultConfig),e)},_.parseDate=C({}),_.formatDate=y({}),_.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(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=_);var O=_,F=n(110),A=n.n(F),N=window.window.searchAndFilter.frontend.packages.core.hooks,P=window.searchAndFilter.frontend.packages.hooks,Y=window.searchAndFilter.frontend.packages.components;function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},j.apply(null,arguments)}const H=()=>{},L=({value:t="",icon:n,hasClear:a=!1,placeholder:i,showLabel:o,label:r,dateFormat:l,calendarClassName:c,isInteractive:s=!0,flatpickrOptions:d={},description:u,showDescription:f,inputClassName:m,labelProps:p,onChange:g=H,onClear:h=H})=>{const v=(0,N.useRef)(null),D=(0,N.useRef)(null),b=(0,N.useRef)(null),w=(0,N.useRef)(null),y=(0,N.useRef)(t),C=(0,N.useRef)(g);y.current=t,C.current=g;const M="search-filter-input-text__input",x=()=>{s&&(b.current&&(D.current&&D.current.removeEventListener("click",k),D.current=null,b.current.destroy()),b.current=null)},E=(e,t)=>{t!==y.current&&C.current(t)};(0,N.useLayoutEffect)((()=>{if(s||!v.current)return v.current&&(()=>{if(!s)return;const e=v.current?.ownerDocument||document,t=e?e.body:document.body;b.current=O(v.current,{clickOpens:!0,onChange:E,altInput:!0,altFormat:l,altInputClass:M,dateFormat:"Y-m-d",allowInvalidPreload:!0,appendTo:t,positionElement:w.current,disableMobile:!0,...d}),b.current.calendarContainer.classList.add("search-filter-input-date-picker__calendar"),c&&c.split(" ").forEach((e=>{b.current.calendarContainer.classList.add(e)})),w.current&&(D.current=w.current.querySelector("."+M),D.current&&D.current.addEventListener("click",k))})(),()=>{x()};x()}),[v.current,i,a,n,s,m,c,l]),(0,N.useLayoutEffect)((()=>{b.current&&""===t&&b.current.clear()}),[t]),(0,N.useLayoutEffect)((()=>{s&&b.current&&b.current.set("altFormat",l)}),[l]);const k=e=>{e.stopImmediatePropagation(),s&&b.current&&b.current.open()},T=e=>{s&&(D.current&&D.current.focus(),k(e))},I="search-filter-input-date-picker-"+(0,P.useInstanceId)(L),S="search-filter-label-"+(0,P.useInstanceId)(Y.Label),_=""!==t;return(0,e.h)(e.Fragment,null,(0,e.h)(Y.Label,j({showLabel:o,label:r,id:S,forId:I,isInteractive:s},p)),(0,e.h)(Y.Description,{description:u,showDescription:f}),(0,e.h)(Y.TextControlContainer,{cRef:w,className:A()("search-filter-input-date-picker",m)},n&&(0,e.h)(Y.Icon,{className:"search-filter-input-text__icon",icon:n,onClick:T,isInteractive:s&&T}),(0,e.h)("div",{className:"search-filter-input-date-picker__input-container"},s&&(0,e.h)(Y.TextInput,{id:I,"aria-labelledby":"yes"===o?S:null,"aria-label":"yes"===o?null:r,className:`${M}--hidden`,autoComplete:"off",value:t,inputRef:v,placeholder:i}),!s&&(0,e.h)(Y.TextInput,{id:I,"aria-labelledby":"yes"===o?S:null,"aria-label":"yes"===o?null:r,className:M,autoComplete:"off",value:"",inputRef:v,placeholder:i,readOnly:!0,tabIndex:-1})),a&&_&&(0,e.h)(Y.Icon,{icon:"clear",isInteractive:s,isDestructive:!0,onClick:()=>{v.current&&v.current.focus(),h!==H?h():g("")}})))};L.templateVars=["placeholder","uid","labelUid"],(0,window.searchAndFilter.frontend.packages.registry.register)(["packages","components"],"DatePickerControl",L)}()}();
// source --> https://www.cerratinga.org.br/wp-content/plugins/search-filter-pro/assets/frontend/components/range.js?ver=1fe8b7d52c10a7df36a9 
!function(){var e={129:function(e,a){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var e=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function a(e){return e.split("").reverse().join("")}function r(e,a){return e.substring(0,a.length)===a}function n(e,a,r){if((e[a]||e[r])&&e[a]===e[r])throw new Error(a)}function t(e){return"number"==typeof e&&isFinite(e)}function i(e,r,n,i,s,l,o,c,u,p,g,d){var f,h,m,x,b,v=d,F="",C="";return l&&(d=l(d)),!!t(d)&&(!1!==e&&0===parseFloat(d.toFixed(e))&&(d=0),d<0&&(f=!0,d=Math.abs(d)),!1!==e&&(b=e,x=(x=d).toString().split("e"),d=(+((x=(x=Math.round(+(x[0]+"e"+(x[1]?+x[1]+b:b)))).toString().split("e"))[0]+"e"+(x[1]?+x[1]-b:-b))).toFixed(b)),-1!==(d=d.toString()).indexOf(".")?(m=(h=d.split("."))[0],n&&(F=n+h[1])):m=d,r&&(m=a(m).match(/.{1,3}/g),m=a(m.join(a(r)))),f&&c&&(C+=c),i&&(C+=i),f&&u&&(C+=u),C+=m,C+=F,s&&(C+=s),p&&(C=p(C,v)),C)}function s(e,a,n,i,s,l,o,c,u,p,g,d){var f,h="";return g&&(d=g(d)),!(!d||"string"!=typeof d)&&(c&&r(d,c)&&(d=d.replace(c,""),f=!0),i&&r(d,i)&&(d=d.replace(i,"")),u&&r(d,u)&&(d=d.replace(u,""),f=!0),s&&function(e,a){return e.slice(-1*a.length)===a}(d,s)&&(d=d.slice(0,-1*s.length)),a&&(d=d.split(a).join("")),n&&(d=d.replace(n,".")),f&&(h+="-"),""!==(h=(h+=d).replace(/[^0-9\.\-.]/g,""))&&(h=Number(h),o&&(h=o(h)),!!t(h)&&h))}function l(a,r,n){var t,i=[];for(t=0;t<e.length;t+=1)i.push(a[e[t]]);return i.push(n),r.apply("",i)}return function a(r){if(!(this instanceof a))return new a(r);"object"==typeof r&&(r=function(a){var r,t,i,s={};for(void 0===a.suffix&&(a.suffix=a.postfix),r=0;r<e.length;r+=1)if(void 0===(i=a[t=e[r]]))"negative"!==t||s.negativeBefore?"mark"===t&&"."!==s.thousand?s[t]=".":s[t]=!1:s[t]="-";else if("decimals"===t){if(!(i>=0&&i<8))throw new Error(t);s[t]=i}else if("encoder"===t||"decoder"===t||"edit"===t||"undo"===t){if("function"!=typeof i)throw new Error(t);s[t]=i}else{if("string"!=typeof i)throw new Error(t);s[t]=i}return n(s,"mark","thousand"),n(s,"prefix","negative"),n(s,"prefix","negativeBefore"),s}(r),this.to=function(e){return l(r,i,e)},this.from=function(e){return l(r,s,e)})}})?r.apply(a,[]):r)||(e.exports=n)}},a={};function r(n){var t=a[n];if(void 0!==t)return t.exports;var i=a[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},r.d=function(e,a){for(var n in a)r.o(a,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},function(){"use strict";var e=window.window.searchAndFilter.frontend.packages.core,a=window.window.searchAndFilter.frontend.packages.core.hooks,n=window.searchAndFilter.frontend.packages.hooks,t=window.searchAndFilter.frontend.packages.components,i=window.searchAndFilter.frontend.packages.utils,s=r(129),l=r.n(s);const o=(e,a)=>Math.round(e*10**a)/10**a,c={},u=e=>{const{rangeValuePrefix:a,rangeValueSuffix:r,rangeDecimalPlaces:n,rangeThousandCharacter:t=",",rangeDecimalCharacter:i=".",rangeMin:s,rangeMax:l,rangeStep:u}=e,p=Number(n||0);let g=null;null!==s&&(g=void 0!==s&&""!==s?parseFloat(s):0,g=o(g,p));let d=null;null!==l&&(d=void 0!==l&&""!==l?parseFloat(l):100,d=o(d,p));let f=null;return null!==u&&(f=u&&""!==u?parseFloat(u):1),f=o(f,p),f<=0&&(f=1),{min:g??0,max:d??0,step:f??1,formatOptions:{prefix:a,suffix:r,decimals:p,thousand:t,mark:i}??c}},p=e=>void 0!==e&&""!==e&&e,g=(e,a)=>{if(a){const r=(e=>{const a={...e};return e.decimals||(a.decimals=0),0===a.decimals&&(a.mark=""),a.decimals>0&&a.mark===e.thousand&&(a.thousand=""),e.decimals>=7&&(a.decimals=6),a})(a);return l()(r).to(e)}return e},d=(e,r,n,t,s,l)=>{const c=l.decimals??0;if(!b(e,r)&&n&&t)return{min:[{value:n,label:g(parseFloat(n),l)}],max:[{value:t,label:g(parseFloat(t),l)}]};const u=o(e,c)??0,p=o(r,c)??0,d=(0,a.useMemo)((()=>{const e=[];let a=u,r=!1;for(;!r;){if(a>p||e.length>=200){r=!0;break}e.push(a),a=o(a+s,c)}return e.length>=200&&(0,i.log)("Maximum number of options reached for range field.","warning"),e}),[u,p,s]).map((e=>[{value:String(e.toFixed(c)),label:String(g(e,l))}])).flat();return{min:d,max:d}},f=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)>parseFloat(n))){if(parseFloat(a)<parseFloat(r))return r;if(parseFloat(a)!==parseFloat(n))return a}},h=(e,a,r,n)=>{if(e&&parseFloat(a)===parseFloat(e))return e;if(!(parseFloat(a)<parseFloat(r))){if(parseFloat(a)>parseFloat(n))return n;if(parseFloat(a)!==parseFloat(r))return a}},m=(e,a,r,n,t,i)=>{const s=parseFloat(r??0).toFixed(i),l=parseFloat(n??0).toFixed(i),o=(e,a)=>{if(void 0===e&&void 0===a)t([]);else{let r=e?String(e):void 0,n=a?String(a):void 0;void 0===r&&(r=s),void 0===n&&(n=l),t([r,n])}};return{updateMinValue:function(a,r){const n=h(e,a,s,l);let t=r;n&&parseFloat(n)>parseFloat(r)&&(t=n),o(n,f(void 0,t,s,l))},updateMaxValue:function(e,r){const n=f(a,r,s,l);let t=e;n&&parseFloat(n)<parseFloat(e)&&(t=n),o(h(void 0,t,s,l),n)}}},x=(e,a,r,n,t=0)=>((e,a,r,n,t=0)=>{if(null===r&&null===n)return c=parseFloat(e??0).toFixed(t),u=parseFloat(a??0).toFixed(t),null===e&&(c=r),null===a&&(u=n),{visibleMinValue:c,visibleMaxValue:u};const i=parseFloat(e),s=parseFloat(a),l=parseFloat(r),o=parseFloat(n);let c=p(e)?i.toFixed(t):l.toFixed(t),u=p(a)?s.toFixed(t):o.toFixed(t);return p(e)&&i<l&&(c=l.toFixed(t)),p(a)&&s>o&&(u=o.toFixed(t)),{visibleMinValue:c,visibleMaxValue:u}})(e,a,r,n,t),b=(e,a)=>null!==e&&null!==a;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}const F=()=>{},C=({values:r,appliedValues:s,label:l,separator:o,showLabel:c,isInteractive:p=!0,onChange:g=F,description:f,showDescription:h,inputClassName:w,labelProps:M,rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:I,rangeMin:S,rangeMax:D,rangeStep:y})=>{const{min:k,max:O,step:L,formatOptions:j}=u({rangeValuePrefix:V,rangeValueSuffix:_,rangeDecimalPlaces:N,rangeThousandCharacter:P,rangeDecimalCharacter:I,rangeMin:S,rangeMax:D,rangeStep:y}),[T,R]=r,[A,E]=s,B=b(k,O),$=j.decimals??0,{updateMinValue:U,updateMaxValue:W}=m(A,E,k,O,g,$),{visibleMinValue:X,visibleMaxValue:q}=x(T,R,k,O,$),{min:z,max:G}=d(k,O,X,q,L,j),[H,J]=(0,a.useMemo)((()=>[[X],[q]]),[X,q]),K="search-filter-label-"+(0,n.useInstanceId)(t.Label),Q="search-filter-component-range-radio-"+(0,n.useInstanceId)(C);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,v({label:l,id:K,showLabel:c},M)),(0,e.h)(t.Description,{description:f,showDescription:h}),(0,e.h)("div",{id:Q,role:"group",className:(0,i.classNames)("search-filter-select-range",w)},(0,e.h)(t.RadioControl,{isInteractive:p,value:H,onChange:e=>{B&&p&&U(e[0],R)},options:z}),o&&(0,e.h)("span",{className:"search-filter-input-range__separator"},o),(0,e.h)(t.RadioControl,{isInteractive:p,value:J,onChange:e=>{B&&p&&W(T,e[0])},options:G})))};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w.apply(null,arguments)}const M=()=>{},V=({values:a,appliedValues:r,onChange:s=M,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:d,inputClassName:f,labelProps:h,rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:I,rangeStep:S})=>{const{min:D,max:y,step:k,formatOptions:O}=u({rangeValuePrefix:v,rangeValueSuffix:F,rangeDecimalPlaces:C,rangeThousandCharacter:_,rangeDecimalCharacter:N,rangeMin:P,rangeMax:I,rangeStep:S}),[L,j]=a,[T,R]=r,A=b(D,y),E=O.decimals??0,{updateMinValue:B,updateMaxValue:$}=m(T,R,D,y,s,E),{visibleMinValue:U,visibleMaxValue:W}=x(L,j,D,y,E),X="search-filter-label-"+(0,n.useInstanceId)(t.Label),q="search-filter-component-range-number-"+(0,n.useInstanceId)(V),z={type:"number",min:D??0,max:y??0,step:k};return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,w({label:o,id:X,showLabel:c},h)),(0,e.h)(t.Description,{description:g,showDescription:d}),(0,e.h)("div",{id:q,role:"group",className:(0,i.classNames)("search-filter-select-range",f)},(0,e.h)(t.TextControl,{value:U,onChange:e=>{A&&p&&B(e,j)},inputProps:z}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.TextControl,{value:W,onChange:e=>{A&&p&&$(L,e)},inputProps:z})))};function _(){return _=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(null,arguments)}const N=()=>{},P=({values:r,appliedValues:s,separator:l,label:o,showLabel:c,isInteractive:p=!0,description:g,showDescription:f,listboxClassName:h,listboxProps:v,inputClassName:F,onChange:C=N,labelProps:w,rangeValuePrefix:M,rangeValueSuffix:V,rangeDecimalPlaces:I,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:y,rangeMax:k,rangeStep:O})=>{const{min:L,max:j,step:T,formatOptions:R}=u({rangeValuePrefix:M,rangeValueSuffix:V,rangeDecimalPlaces:I,rangeThousandCharacter:S,rangeDecimalCharacter:D,rangeMin:y,rangeMax:k,rangeStep:O}),[A,E]=r,[B,$]=s,U=b(L,j),W=R.decimals??0,{updateMinValue:X,updateMaxValue:q}=m(B,$,L,j,C,W),{visibleMinValue:z,visibleMaxValue:G}=x(A,E,L,j,W),{min:H,max:J}=d(L,j,z,G,T,R),[K,Q]=(0,a.useMemo)((()=>[[z],[G]]),[z,G]),Y="search-filter-label-"+(0,n.useInstanceId)(t.Label),Z="search-filter-component-range-select-"+(0,n.useInstanceId)(P);return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,_({label:o,id:Y,forId:Z,showLabel:c},w)),(0,e.h)(t.Description,{description:g,showDescription:f}),(0,e.h)("div",{id:Z,role:"group",className:(0,i.classNames)("search-filter-select-range",F)},(0,e.h)(t.ComboboxControl,{options:H,value:K,onChange:e=>{U&&p&&X(e[0],E)},disabled:!U,listboxClassName:h,hasClear:!1,isInteractive:p,listboxProps:v}),l&&(0,e.h)("span",{className:"search-filter-select-range__separator"},l),(0,e.h)(t.ComboboxControl,{options:J,value:Q,onChange:e=>{U&&p&&q(A,e[0])},disabled:!U,listboxClassName:h,hasClear:!1,isInteractive:p,listboxProps:v})))};function I(){return I=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var r=arguments[a];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},I.apply(null,arguments)}const S=({label:r,showLabel:s,description:l,showDescription:o,values:c,appliedValues:p,onChange:d,labelProps:f,inputClassName:h,showInputFields:v=!1,showFilterButton:F=!1,inlineInput:C=!0,isLoading:w=!1,isUpdating:M=!1,separator:V,textPosition:_="above",showReset:N,resetPosition:P,isEditor:D=!1,isInteractive:y=!0,onSubmit:k=()=>{},rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:T,rangeDecimalCharacter:R,rangeMin:A,rangeMax:E,rangeStep:B})=>{const{min:$,max:U,step:W,formatOptions:X}=u({rangeValuePrefix:O,rangeValueSuffix:L,rangeDecimalPlaces:j,rangeThousandCharacter:T,rangeDecimalCharacter:R,rangeMin:A,rangeMax:E,rangeStep:B}),q="search-filter-label-"+(0,n.useInstanceId)(t.Label),z="search-filter-component-range-slider-"+(0,n.useInstanceId)(S),G=(0,a.useRef)(null),H=(0,a.useRef)(null),[J,K]=c,[Q,Y]=p,Z=b($,U),ee=X.decimals??0,{updateMinValue:ae,updateMaxValue:re}=m(Q,Y,$,U,d,ee),{visibleMinValue:ne,visibleMaxValue:te}=x(J,K,$,U,ee),ie=(0,a.useRef)(null),[se,le]=(0,a.useState)(0);(0,a.useLayoutEffect)((()=>{C&&ie.current&&le(ie.current?.offsetWidth)}),[C,le]);const oe=(0,a.useMemo)((()=>Z?{"--search-filter-range-slider-progress-low":(ne-$)/(U-$)*100+"%","--search-filter-range-slider-progress-high":(te-$)/(U-$)*100+"%"}:{"--search-filter-range-slider-progress-low":"0%","--search-filter-range-slider-progress-high":"0%"}),[Z,ne,te,$,U]),ce=(0,a.useCallback)((e=>{Z&&y&&ae(e.target.value,K)}),[d,K,Z,y,ae]),ue=(0,a.useCallback)((e=>{Z&&y&&re(J,e.target.value)}),[d,J,Z,y,re]),pe=w||!Z||!y,ge="search-filter-component-range-slider",de=(0,i.classNames)(ge,v&&`${ge}--has-input-fields`,F&&`${ge}--has-filter-button`,!Z&&`${ge}--is-disabled`,(C||se<=300)&&`${ge}--is-input-inline`,h),fe=String(ne),he=String(te),me=(0,a.useCallback)((e=>{if("INPUT"===e.target.tagName)return;if(w||!Z||!y)return;const a=e.currentTarget.getBoundingClientRect(),r=e.clientX-a.left,n=a.width,t=$+(U-$)*r/n,i=Math.round((t-$)/W),s=parseFloat(($+i*W).toFixed(X.decimals));Math.abs(s-parseFloat(ne))<=Math.abs(s-parseFloat(te))?ae(s,K):re(J,s)}),[w,Z,y,$,U,ne,te,W,X.decimals,ae,re,J,K]),xe=(0,e.h)("div",{className:(0,i.classNames)("search-filter-component-range-slider__range-input-wrapper"),onClick:me},(0,e.h)("div",{id:z,className:(0,i.classNames)("search-filter-component-range-slider__range-input-bar",{[`${ge}--is-loading`]:w&&M}),role:"group"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-input-progress",style:oe}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--min","aria-label":"Filter products by minimum price","aria-valuetext":fe,value:ne,onChange:ce,step:W,min:$,max:U,ref:G,disabled:pe,tabIndex:v?-1:0}),(0,e.h)("input",{type:"range",className:"search-filter-component-range-slider__range-input search-filter-component-range-slider__range-input--max","aria-label":"Filter products by maximum price","aria-valuetext":he,value:te,onChange:ue,step:W,min:$,max:U,ref:H,disabled:pe,tabIndex:v?-1:0}))),be=Z||ne!==te?(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)),V&&(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-seperator"},V),(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-max"},g(parseFloat(te),X))):(0,e.h)("div",{className:"search-filter-component-range-slider__range-text search-filter-component-range-slider__range-text"},(0,e.h)("div",{className:"search-filter-component-range-slider__range-text-min"},g(parseFloat(ne),X)));return(0,e.h)(e.Fragment,null,(0,e.h)(t.Label,I({label:r,id:q,showLabel:s,forId:z},f)),(0,e.h)(t.Description,{description:l,showDescription:o}),(0,e.h)("div",{className:de,ref:ie},!v&&"above"===_&&be,xe,!v&&"below"===_&&be,(0,e.h)("div",{className:"search-filter-component-range-slider__actions"})))};var D=window.searchAndFilter.frontend.packages.registry;(0,D.register)(["packages","components"],"RangeRadioControl",C),(0,D.register)(["packages","components"],"RangeNumberControl",V),(0,D.register)(["packages","components"],"RangeSelectControl",P),(0,D.register)(["packages","components"],"RangeSliderControl",S)}()}();