(function(){var Xt={1609:(function(o){"use strict";o.exports=window.React}),3593:(function(o,N,A){"use strict";o.exports=A(3691)}),3691:(function(o,N,A){"use strict";/** @license React v17.0.2
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */A(9645);var f=A(1609),d=60103;if(N.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var se=Symbol.for;d=se("react.element"),N.Fragment=se("react.fragment")}var P=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,e=Object.prototype.hasOwnProperty,n={key:!0,ref:!0,__self:!0,__source:!0};function r(a,h,g){var w,v={},_=null,S=null;g!==void 0&&(_=""+g),h.key!==void 0&&(_=""+h.key),h.ref!==void 0&&(S=h.ref);for(w in h)e.call(h,w)&&!n.hasOwnProperty(w)&&(v[w]=h[w]);if(a&&a.defaultProps)for(w in h=a.defaultProps,h)v[w]===void 0&&(v[w]=h[w]);return{$$typeof:d,type:a,key:_,ref:S,props:v,_owner:P.current}}N.jsx=r,N.jsxs=r}),8140:(function(o,N,A){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f=A(1609);function d(v,_){return v===_&&(v!==0||1/v===1/_)||v!==v&&_!==_}var se=typeof Object.is=="function"?Object.is:d,P=f.useState,e=f.useEffect,n=f.useLayoutEffect,r=f.useDebugValue;function a(v,_){var S=_(),H=P({inst:{value:S,getSnapshot:_}}),D=H[0].inst,z=H[1];return n(function(){D.value=S,D.getSnapshot=_,h(D)&&z({inst:D})},[v,S,_]),e(function(){return h(D)&&z({inst:D}),v(function(){h(D)&&z({inst:D})})},[v]),r(S),S}function h(v){var _=v.getSnapshot;v=v.value;try{var S=_();return!se(v,S)}catch{return!0}}function g(v,_){return _()}var w=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:a;N.useSyncExternalStore=f.useSyncExternalStore!==void 0?f.useSyncExternalStore:w}),8279:(function(o,N,A){"use strict";o.exports=A(8140)}),8623:(function(o){(function(N,A){o.exports=A()})(window,(()=>(()=>{"use strict";var N={d:(e,n)=>{for(var r in n)N.o(n,r)&&!N.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)},A={};let f;N.d(A,{default:()=>P}),window.DoMini===void 0?(f=function(e,n){return arguments[2]!==void 0?this.constructor.call(this,e,n):arguments.length!==1||typeof arguments[0]!="function"?new f(e,n,!0):void(document.readyState==="complete"||document.readyState==="loaded"||document.readyState==="interactive"?arguments[0].apply(this,[f]):window.addEventListener("DOMContentLoaded",(()=>{arguments[0].apply(this,[f])})))},f.prototype=f.fn={constructor:function(e,n){if(this.length=0,n!==void 0){if(n instanceof f)return n.find(e);if(this.isValidNode(n)||typeof n=="string")return f(n).find(e)}else if(typeof e=="string"&&e!=="")this.push(...this._(e));else{if(e instanceof f)return e;this.isValidNode(e)&&this.push(e)}return this},_:function(e){return e.charAt(0)==="<"?f._fn.createElementsFromHTML(e):[...document.querySelectorAll(e)]},isValidNode:e=>e instanceof Element||e instanceof Document||e instanceof Window,push:Array.prototype.push,pop:Array.prototype.pop,sort:Array.prototype.sort,splice:Array.prototype.splice},f.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],f._fn={},f.version="0.2.8"):f=window.DoMini;const d=f;d.fn.get=function(e){return e===void 0?Array.from(this):this[e]},d.fn.extend=function(){for(let e=1;e<arguments.length;e++)for(let n in arguments[e])arguments[e].hasOwnProperty(n)&&(arguments[0][n]=arguments[e][n]);return arguments[0]},d.fn.forEach=function(e){return this.get().forEach((function(n,r,a){e.apply(n,[n,r,a])})),this},d.fn.each=function(e){return this.get().forEach((function(n,r,a){e.apply(n,[r,n,a])})),this},d.fn.css=function(e,n){for(const r of this)if(arguments.length===1){if(typeof e!="object")return window.getComputedStyle(r)[e];Object.keys(e).forEach((function(a){r.style[a]=e[a]}))}else r.style[e]=n;return this},d.fn.hasClass=function(e){let n=this.get(0);return n!=null&&n.classList.contains(e)},d.fn.addClass=function(e){let n=e;return typeof e=="string"&&(n=e.split(" ")),n=n.filter((function(r){return r.trim()!==""})),n.length>0&&this.forEach((function(r){r.classList.add.apply(r.classList,n)})),this},d.fn.removeClass=function(e){if(e!==void 0){let n=e;typeof e=="string"&&(n=e.split(" ")),n=n.filter((function(r){return r.trim()!==""})),n.length>0&&this.forEach((function(r){r.classList.remove.apply(r.classList,n)}))}else this.forEach((function(n){n.classList.length>0&&n.classList.remove.apply(n.classList,n.classList)}));return this},d.fn.isVisible=function(){let e,n=this.get(0),r=!0;for(;n!==null;){if(e=window.getComputedStyle(n),e.display==="none"||e.visibility==="hidden"||parseInt(e.opacity)===0){r=!1;break}n=n.parentElement}return r},d.fn.val=function(e){let n;if(arguments.length===1){for(const r of this)if(r.type==="select-multiple"){e=typeof e=="string"?e.split(","):e;for(let a,h=0,g=r.options.length;h<g;h++)a=r.options[h],a.selected=e.indexOf(a.value)!==-1}else r.value=e;n=this}else{let r=this.get(0);r!=null&&(n=r.type==="select-multiple"?Array.prototype.map.call(r.selectedOptions,(function(a){return a.value})):r.value)}return n},d.fn.attr=function(e,n){let r;for(const a of this)if(arguments.length===2)a.setAttribute(e,n),r=this;else{if(typeof e!="object"){r=a.getAttribute(e);break}Object.keys(e).forEach((function(h){a.setAttribute(h,e[h])}))}return r},d.fn.removeAttr=function(e){for(const n of this)n.removeAttribute(e);return this},d.fn.prop=function(e,n){let r;for(const a of this){if(arguments.length!==2){r=a[e]!==void 0?a[e]:null;break}a[e]=n}return arguments.length===2?this:r},d.fn.data=function(e,n){const r=e.replace(/-([a-z])/g,(function(a){return a[1].toUpperCase()}));if(arguments.length===2){for(const a of this)a!=null&&(a.dataset[r]=n);return this}{let a=this.get(0);return a!=null&&a.dataset[r]!==void 0?a.dataset[r]:""}},d.fn.html=function(e){if(arguments.length===1){for(const n of this)n.innerHTML=e;return this}{let n=this.get(0);return n==null?"":n.innerHTML}},d.fn.text=function(e){if(arguments.length===1){for(const n of this)n.textContent=e;return this}{let n=this.get(0);return n==null?"":n.textContent}},d.fn.position=function(){let e=this.get(0);return e!=null?{top:e.offsetTop,left:e.offsetLeft}:{top:0,left:0}},d.fn.offset=function(){let e=this.get(0);return e!=null?d._fn.hasFixedParent(e)?e.getBoundingClientRect():d._fn.absolutePosition(e):{top:0,left:0}},d.fn.outerWidth=function(e){e=e||!1;let n=this.get(0);return n!=null?e?parseInt(n.offsetWidth)+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(n.offsetWidth):0},d.fn.outerHeight=function(e){e=e||!1;let n=this.get(0);return n!=null?e?parseInt(n.offsetHeight)+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(n.offsetHeight):0},d.fn.noPaddingHeight=function(e){return e=e||!1,this.length>0?e?parseInt(this.css("height"))+parseInt(this.css("marginTop"))+parseInt(this.css("marginBottom")):parseInt(this.css("height")):0},d.fn.noPaddingWidth=function(e){return e=e||!1,this.length>0?e?parseInt(this.css("width"))+parseInt(this.css("marginLeft"))+parseInt(this.css("marginRight")):parseInt(this.css("width")):0},d.fn.innerWidth=function(){let e=this.get(0);if(e!=null){let n=window.getComputedStyle(e);return this.outerWidth()-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}return 0},d.fn.innerHeight=function(){let e=this.get(0);if(e!=null){let n=window.getComputedStyle(e);return this.outerHeight()-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomtWidth)}return 0},d.fn.width=function(){return this.outerWidth()},d.fn.height=function(){return this.outerHeight()},d.fn.on=function(){let e=arguments,n=function(a,h){let g;if(h.type==="mouseenter"||h.type==="mouseleave"||h.type==="mouseover"){let w=document.elementFromPoint(h.clientX,h.clientY);if(!w.matches(a[1]))for(;(w=w.parentElement)&&!w.matches(a[1]););w!=null&&(g=d(w))}else g=d(h.target).closest(a[1]);if(g!=null&&g.closest(this).length>0){let w=[];if(w.push(h),a[4]!==void 0)for(let v=4;v<a.length;v++)w.push(a[v]);a[2].apply(g.get(0),w)}},r=e[0].split(" ");for(let a=0;a<r.length;a++){let h=r[a];if(typeof e[1]=="string")this.forEach((function(g){if(!d._fn.hasEventListener(g,h,e[2])){let w=n.bind(g,e);g.addEventListener(h,w,e[3]),g._domini_events=g._domini_events===void 0?[]:g._domini_events,g._domini_events.push({type:h,selector:e[1],func:w,trigger:e[2],args:e[3]})}}));else for(let g=0;g<r.length;g++){let w=r[g];this.forEach((function(v){d._fn.hasEventListener(v,w,e[1])||(v.addEventListener(w,e[1],e[2]),v._domini_events=v._domini_events===void 0?[]:v._domini_events,v._domini_events.push({type:w,func:e[1],trigger:e[1],args:e[2]}))}))}}return this},d.fn.off=function(e,n){return this.forEach((function(r){if(r._domini_events!==void 0&&r._domini_events.length>0)if(e===void 0){let a;for(;a=r._domini_events.pop();)r.removeEventListener(a.type,a.func,a.args);r._domini_events=[]}else e.split(" ").forEach((function(a){let h,g=[];for(;h=r._domini_events.pop();)h.type!==a||n!==void 0&&h.trigger!==n?g.push(h):r.removeEventListener(a,h.func,h.args);r._domini_events=g}))})),this},d.fn.offForced=function(){let e=this;return this.forEach((function(n,r){let a=n.cloneNode(!0);n.parentNode.replaceChild(a,n),e[r]=a})),this},d.fn.trigger=function(e,n,r,a){return r=r||!1,a=a||!1,this.forEach((function(h){let g=!1;if(a&&typeof jQuery<"u"&&jQuery._data!==void 0&&jQuery._data(h,"events")!==void 0&&jQuery._data(h,"events")[e]!==void 0&&(jQuery(h).trigger(e,n),g=!0),!g&&r){let w=new Event(e);w.detail=n,h.dispatchEvent(w)}if(h._domini_events!==void 0)h._domini_events.forEach((function(w){if(w.type===e){let v=new Event(e);w.trigger.apply(h,[v].concat(n))}}));else{let w=!1,v=h;for(;v=v.parentElement,v!=null&&(v._domini_events!==void 0&&v._domini_events.forEach((function(_){if(_.selector!==void 0){let S=d(v).find(_.selector);if(S.length>0&&S.get().indexOf(h)>=0&&_.type===e){let H=new Event(e);_.trigger.apply(h,[H].concat(n)),w=!0}}})),!w););}})),this},d.fn.clear=function(){for(const e of this)delete e._domini_events;return this},d.fn.clone=function(){let e=[];for(const n of this)e.push(n.cloneNode(!0));return d().add(e)},d.fn.detach=function(e){let n=this,r=[];e!==void 0&&(n=this.find(e));for(const a of n)a.parentElement!=null&&r.push(a.parentElement.removeChild(a));return d().add(r)},d.fn.remove=function(e){return this.detach(e).off().clear()},d.fn.prepend=function(e){if((e=d._fn.elementArrayFromAny(e)).length>0)for(const n of this)for(const r of e)n.insertBefore(r,n.children[0]);return this},d.fn.append=function(e){if((e=d._fn.elementArrayFromAny(e)).length>0)for(const n of this)for(const r of e)n.appendChild(r);return this},d.fn.is=function(e){let n=!1;for(const r of this)if(r.matches(e)){n=!0;break}return n},d.fn.parent=function(e){let n=[];for(const r of this){let a=r.parentElement;typeof e=="string"&&(a==null||a.matches(e)||(a=null)),n.push(a)}return d().add(n)},d.fn.copy=function(e,n){let r,a,h;if(typeof e!="object"||e===null)return r=e,r;for(a in r=new e.constructor,e)e.hasOwnProperty(a)&&(h=typeof e[a],n&&h==="object"&&e[a]!==null?r[a]=this.copy(e[a]):r[a]=e[a]);return r},d.fn.first=function(){return d(this[0])},d.fn.last=function(){return d(this[this.length-1])},d.fn.prev=function(e){let n=[];for(const r of this){let a;if(typeof e=="string")for(a=r.previousElementSibling;a!=null;){if(a.matches(e)){n.push(a);break}a=a.previousElementSibling}else n.push(r.previousElementSibling)}return d(null).add(n)},d.fn.next=function(e){let n=[];for(const r of this){let a;if(typeof e=="string")for(a=r.nextElementSibling;a!=null;){if(a.matches(e)){n.includes(a)||n.push(a);break}a=a.nextElementSibling}else n.push(r.nextElementSibling)}return d(null).add(n)},d.fn.closest=function(e){let n=[];for(let r of this)if(typeof e=="string"&&e!==""){for(;!r.matches(e)&&(r=r.parentElement););n.includes(r)||n.push(r)}else{if((e=e instanceof d?e.get(0):e)instanceof Element)for(;r!==e&&(r=r.parentElement););else r=null;n.includes(r)||n.push(r)}return d().add(n)},d.fn.add=function(e){let n=d._fn.elementArrayFromAny(e);for(const r of n)Array.from(this).includes(r)||this.push(r);return this},d.fn.find=function(e){const n=new d;if(typeof e=="string"){let r=[];this.get().forEach((function(a){const h=a.querySelectorAll?.(e)??[];r=r.concat(Array.from(h))})),r.length>0&&n.add(r)}return n},d._fn.bodyTransform=function(){let e=0,n=0;if(typeof WebKitCSSMatrix<"u"){let r=window.getComputedStyle(document.body);if(r.transform!==void 0){let a=new WebKitCSSMatrix(r.transform);a.m41!=="undefined"&&(e=a.m41),a.m42!=="undefined"&&(n=a.m42)}}return{x:e,y:n}},d._fn.bodyTransformY=function(){return this.bodyTransform().y},d._fn.bodyTransformX=function(){return this.bodyTransform().x},d._fn.hasFixedParent=function(e){if(d._fn.bodyTransformY()!=0)return!1;do if(window.getComputedStyle(e).position=="fixed")return!0;while(e=e.parentElement);return!1},d._fn.hasEventListener=function(e,n,r){if(e._domini_events===void 0)return!1;for(let a=0;a<e._domini_events.length;a++)if(e._domini_events[a].trigger===r&&e._domini_events[a].type===n)return!0;return!1},d._fn.allDescendants=function(e){let n=[],r=this;return Array.isArray(e)||(e=[e]),e.forEach((function(a){for(let h=0;h<a.childNodes.length;h++){let g=a.childNodes[h];n.push(g),n=n.concat(r.allDescendants(g))}})),n},d._fn.createElementsFromHTML=function(e){let n=document.createElement("template");return n.innerHTML=e.replace(/(\r\n|\n|\r)/gm,""),[...n.content.childNodes]},d._fn.elementArrayFromAny=function(e){if(typeof e=="string")e=d(e).get();else if(e instanceof d)e=e.get();else if(e instanceof Element)e=[e];else{if(!(e instanceof Array))return[];e=e.filter((n=>n instanceof Element))}return e},d._fn.ElementArrayFromAny=d._fn.elementArrayFromAny,d._fn.absolutePosition=function(e){if(!e.getClientRects().length)return{top:0,left:0};let n=e.getBoundingClientRect(),r=e.ownerDocument.defaultView;return{top:n.top+r.pageYOffset,left:n.left+r.pageXOffset}},d._fn.plugin=function(e,n){d.fn[e]=function(r){return r!==void 0&&n[r]?n[r].apply(this,Array.prototype.slice.call(arguments,1)):this.forEach((function(a){a["domini_"+e]=Object.create(n).init(r,a)}))}},document.dispatchEvent(new Event("domini-dom-core-loaded"));const se=d;d.fn.animate=function(e,n,r){n=n||200,r=r||"easeInOutQuad";for(const a of this){let h,g,w,v,_,S=0,H=60,D={},z={};if(w=this.prop("_domini_animations"),w=w??[],e===!1)w.forEach((function(Q){clearInterval(Q)}));else{let Q=function(){S++,S>h?clearInterval(v):(g=_(S/h),Object.keys(z).forEach((function(L){L.indexOf("scroll")>-1?a[L]=D[L]+z[L]*g:a.style[L]=D[L]+z[L]*g+"px"})))};_=d.fn.animate.easing[r]??d.fn.animate.easing.easeInOutQuad,Object.keys(e).forEach((function(L){L.indexOf("scroll")>-1?(D[L]=a[L],z[L]=e[L]-D[L]):(D[L]=parseInt(window.getComputedStyle(a)[L]),z[L]=e[L]-D[L])})),h=n/1e3*H,v=setInterval(Q,1e3/H),w.push(v),this.prop("_domini_animations",w)}}return this},d.fn.animate.easing={linear:function(e){return e},easeInOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},easeOutQuad:function(e){return 1-(1-e)*(1-e)}},d.fn.unhighlight=function(e){let n={className:"highlight",element:"span"};return d.fn.extend(n,e),this.find(n.element+"."+n.className).forEach((function(){let r=this.parentNode;r.replaceChild(this.firstChild,this),r.normalize()}))},d.fn.highlight=function(e,n){this.defaults={className:"highlight",element:"span",caseSensitive:!1,wordsOnly:!1,excludeParents:".excludeFromHighlight"};const r=d,a={...this.defaults,...n};if(e.constructor===String&&(e=[e]),(e=e.filter((function(_){return _!==""}))).forEach((function(_,S,H){H[S]=_.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g,"")})),e.length===0)return this;let h=a.caseSensitive?"":"i",g="("+e.join("|")+")";a.wordsOnly&&(g="(?:,|^|\\s)"+g+"(?:,|$|\\s)");let w=new RegExp(g,h);function v(_,S,H,D,z){if(z=z===""?r.fn.highlight.defaults:z,_.nodeType===3){if(!r(_.parentNode).is(z)){let Q=_.data.normalize("NFD").replace(/[\u0300-\u036f]/g,"").match(S);if(Q){let L,Se=document.createElement(H||"span");Se.className=D||"highlight",L=/\.|,|\s/.test(Q[0].charAt(0))?Q.index+1:Q.index;let me=_.splitText(L);me.splitText(Q[1].length);let pt=me.cloneNode(!0);return Se.appendChild(pt),me.parentNode.replaceChild(Se,me),1}}}else if(_.nodeType===1&&_.childNodes&&!/(script|style)/i.test(_.tagName)&&!r(_).closest(z).length>0&&(_.tagName!==H.toUpperCase()||_.className!==D))for(let Q=0;Q<_.childNodes.length;Q++)Q+=v(_.childNodes[Q],S,H,D,z);return 0}return this.forEach((function(_){v(_,w,a.element,a.className,a.excludeParents)}))},d.fn.serialize=function(){let e=this.get(0);if(!e||e.nodeName!=="FORM")return"";let n,r,a=[];for(n=e.elements.length-1;n>=0;n-=1)if(e.elements[n].name!=="")switch(e.elements[n].nodeName){case"INPUT":switch(e.elements[n].type){case"checkbox":case"radio":e.elements[n].checked&&a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"file":break;default:a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value))}break;case"TEXTAREA":a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"SELECT":switch(e.elements[n].type){case"select-one":a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value));break;case"select-multiple":for(r=e.elements[n].options.length-1;r>=0;r-=1)e.elements[n].options[r].selected&&a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].options[r].value))}break;case"BUTTON":switch(e.elements[n].type){case"reset":case"submit":case"button":a.push(e.elements[n].name+"="+encodeURIComponent(e.elements[n].value))}}return a.join("&")},d.fn.serializeObject=function(e,n){let r,a=[];for(r in e)if(e.hasOwnProperty(r)){let h=n?n+"["+r+"]":r,g=e[r];a.push(g!==null&&typeof g=="object"?d.fn.serializeObject(g,h):encodeURIComponent(h)+"="+encodeURIComponent(g))}return a.join("&")},d.fn.inViewPort=function(e,n){let r,a,h=this.get(0);if(h==null)return!1;e=e===void 0?0:e,n=n===void 0?window:typeof n=="string"?document.querySelector(n):n;let g=h.getBoundingClientRect(),w=g.top,v=g.bottom,_=g.left,S=g.right,H=!1;if(n==null&&(n=window),n===window)r=window.innerWidth||0,a=window.innerHeight||0;else{r=n.clientWidth,a=n.clientHeight;let D=n.getBoundingClientRect();w-=D.top,v-=D.top,_-=D.left,S-=D.left}return e=~~Math.round(parseFloat(e)),S<=0||_>=r||(H=e>0?w>=e&&v<a-e:(v>0&&w<=a-e)|(w<=0&&v>e)),H},d.fn.ajax=function(e){if((e=this.extend({url:"",method:"GET",cors:"cors",data:{},success:null,fail:null,accept:"text/html",contentType:"application/x-www-form-urlencoded; charset=UTF-8"},e)).cors==="cors"){let n=new XMLHttpRequest;return n.onreadystatechange=function(){e.success!=null&&this.readyState===4&&this.status>=200&&this.status<400&&e.success(this.responseText),e.fail!=null&&this.readyState===4&&this.status>=400&&e.fail(this)},n.open(e.method.toUpperCase(),e.url,!0),n.setRequestHeader("Content-type",e.contentType),n.setRequestHeader("Accept",e.accept),n.send(this.serializeObject(e.data)),n}{let n="ajax_cb_"+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(a){let h=16*Math.random()|0;return(a==="x"?h:3&h|8).toString(16)})).replaceAll("-","");d.fn[n]=function(){e.success.apply(this,arguments),delete d.fn[e.data.fn]},e.data.callback="DoMini.fn."+n,e.data.fn=n;let r=document.createElement("script");r.type="text/javascript",r.src=e.url+"?"+this.serializeObject(e.data),r.onload=function(){this.remove()},document.body.appendChild(r)}};const P=se;return A.default})()))}),9645:(function(o){"use strict";/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var N=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;function d(P){if(P==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(P)}function se(){try{if(!Object.assign)return!1;var P=new String("abc");if(P[5]="de",Object.getOwnPropertyNames(P)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(h){return e[h]});if(r.join("")!=="0123456789")return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(h){a[h]=h}),Object.keys(Object.assign({},a)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}o.exports=se()?Object.assign:function(P,e){for(var n,r=d(P),a,h=1;h<arguments.length;h++){n=Object(arguments[h]);for(var g in n)A.call(n,g)&&(r[g]=n[g]);if(N){a=N(n);for(var w=0;w<a.length;w++)f.call(n,a[w])&&(r[a[w]]=n[a[w]])}}return r}})},ht={};function J(o){var N=ht[o];if(N!==void 0)return N.exports;var A=ht[o]={exports:{}};return Xt[o](A,A.exports,J),A.exports}(function(){J.n=function(o){var N=o&&o.__esModule?function(){return o.default}:function(){return o};return J.d(N,{a:N}),N}})(),(function(){J.d=function(o,N){for(var A in N)J.o(N,A)&&!J.o(o,A)&&Object.defineProperty(o,A,{enumerable:!0,get:N[A]})}})(),(function(){J.o=function(o,N){return Object.prototype.hasOwnProperty.call(o,N)}})();var ys={};(function(){"use strict";var o=J(3593),N=window.ReactDOM,A=J.n(N),f=J(1609);const d=["Yay","Top of the morning to you","You did it","All good chief","Looking good","Good job"],se=["Something went south :(","Ooof, please try again","Ouch, that didn't work...","Ooops, that didn't work..."];let P=[],e=[];const n=()=>e.forEach(t=>t(P)),r=t=>{P=P.filter(s=>s.id!==t),n()},a=(t,s="")=>{const i=Math.random().toString(36).substring(2,9);s===""&&(t==="success"?s=d[Math.floor(Math.random()*d.length)]:s=se[Math.floor(Math.random()*se.length)]),P=[...P,{id:i,type:t,text:s}],n(),setTimeout(()=>r(i),t==="success"?3e3:15e3)},h=(t="")=>a("success",t),g=(t="")=>{typeof t=="string"?a("error",t):a("error",t.message)},w=()=>{const[t,s]=(0,f.useState)(P);return(0,f.useEffect)(()=>(e.push(s),s(P),()=>{e=e.filter(i=>i!==s)}),[]),{messages:t,addSuccess:h,addError:g,addMessage:a,dismissMessage:r}};function v(t){var s,i,c="";if(typeof t=="string"||typeof t=="number")c+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(s=0;s<l;s++)t[s]&&(i=v(t[s]))&&(c&&(c+=" "),c+=i)}else for(i in t)t[i]&&(c&&(c+=" "),c+=i);return c}function _(){for(var t,s,i=0,c="",l=arguments.length;i<l;i++)(t=arguments[i])&&(s=v(t))&&(c&&(c+=" "),c+=s);return c}var S=_;/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H=(...t)=>t.filter((s,i,c)=>!!s&&s.trim()!==""&&c.indexOf(s)===i).join(" ").trim();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,i,c)=>c?c.toUpperCase():i.toLowerCase());/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q=t=>{const s=z(t);return s.charAt(0).toUpperCase()+s.slice(1)};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var L={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Se=t=>{for(const s in t)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const me=(0,f.createContext)({});function pt({children:t,size:s,color:i,strokeWidth:c,absoluteStrokeWidth:l,className:m}){const u=useMemo(()=>({size:s,color:i,strokeWidth:c,absoluteStrokeWidth:l,className:m}),[s,i,c,l,m]);return createElement(me.Provider,{value:u},t)}const en=()=>(0,f.useContext)(me);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tn=(0,f.forwardRef)(({color:t,size:s,strokeWidth:i,absoluteStrokeWidth:c,className:l="",children:m,iconNode:u,...p},x)=>{const{size:C=24,strokeWidth:O=2,absoluteStrokeWidth:T=!1,color:I="currentColor",className:R=""}=en()??{},k=c??T?Number(i??O)*24/Number(s??C):i??O;return(0,f.createElement)("svg",{ref:x,...L,width:s??C??L.width,height:s??C??L.height,stroke:t??I,strokeWidth:k,className:H("lucide",R,l),...!m&&!Se(p)&&{"aria-hidden":"true"},...p},[...u.map(([Z,E])=>(0,f.createElement)(Z,E)),...Array.isArray(m)?m:[m]])});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ee=(t,s)=>{const i=(0,f.forwardRef)(({className:c,...l},m)=>(0,f.createElement)(tn,{ref:m,iconNode:s,className:H(`lucide-${D(Q(t))}`,`lucide-${t}`,c),...l}));return i.displayName=Q(t),i};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nn=ee("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sn=ee("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const on=ee("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rn={success:(0,o.jsx)(nn,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"}),error:(0,o.jsx)(sn,{className:"wdo:w-5 wdo:h-5 wdo:shrink-0"})};var an=({messages:t})=>(0,o.jsx)("div",{className:"wdo:fixed wdo:top-16 wdo:left-1/2 wdo:-translate-x-1/2 wdo:w-full wdo:max-w-md wdo:z-50 wdo:flex wdo:flex-col wdo:gap-2 wdo:px-4",children:t.map(s=>(0,o.jsxs)("div",{className:S("wdo:toast",s.type==="success"?"wdo:toast-success":"wdo:toast-error"),children:[(0,o.jsx)("span",{className:S("wdo:shrink-0",s.type==="success"?"wdo:text-green-600 wdo:dark:text-green-400":"wdo:text-red-600 wdo:dark:text-red-400"),children:rn[s.type]}),(0,o.jsx)("span",{className:"wdo:grow wdo:text-sm",children:s.text}),(0,o.jsx)("button",{className:"wdo:shrink-0 wdo:p-0.5 wdo:rounded wdo:border-0 wdo:cursor-pointer wdo:bg-transparent wdo:text-wp-admin-500 wdo:hover:text-wp-admin-800 wdo:dark:text-wp-admin-400 wdo:dark:hover:text-wp-admin-100 wdo:transition-colors",onClick:()=>r(s.id),"aria-label":"Dismiss",children:(0,o.jsx)(on,{className:"wdo:w-4 wdo:h-4"})})]},s.id))});/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cn=ee("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ln=ee("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dn=ee("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),mt=(0,f.createContext)(void 0),wt=t=>t==="light"||t==="dark"||t==="system",xt=t=>t==="dark"?!0:t==="light"?!1:window.matchMedia("(prefers-color-scheme: dark)").matches,un=({children:t})=>{const[s,i]=(0,f.useState)(()=>{const u=localStorage.getItem("wdo_darkmode");return wt(u)?u:"system"}),[c,l]=(0,f.useState)(()=>xt(s)),m=u=>{i(u),localStorage.setItem("wdo_darkmode",u)};return(0,f.useEffect)(()=>{l(xt(s))},[s]),(0,f.useEffect)(()=>{if(s!=="system")return;const u=window.matchMedia("(prefers-color-scheme: dark)"),p=x=>l(x.matches);return u.addEventListener("change",p),()=>u.removeEventListener("change",p)},[s]),(0,f.useEffect)(()=>{document.body.classList.toggle("wdo:dark",c)},[c]),(0,f.useEffect)(()=>{const u=p=>{p.key==="wdo_darkmode"&&wt(p.newValue)&&i(p.newValue)};return window.addEventListener("storage",u),()=>window.removeEventListener("storage",u)},[]),(0,o.jsx)(mt.Provider,{value:{isDark:c,mode:s,setMode:m},children:t})},gt=()=>{const t=(0,f.useContext)(mt);if(t===void 0)throw new Error("useIsDark must be used within a DarkModeProvider");return t},fn=[{mode:"light",icon:(0,o.jsx)(cn,{}),title:"Light"},{mode:"system",icon:(0,o.jsx)(ln,{}),title:"System"},{mode:"dark",icon:(0,o.jsx)(dn,{}),title:"Dark"}],hn=()=>{const{isDark:t,mode:s,setMode:i}=gt();return(0,o.jsx)("div",{className:S("wdo:inline-flex wdo:rounded-lg wdo:p-0.5 wdo:gap-0.5",t?"wdo:bg-wp-admin-700":"wdo:bg-wp-admin-200"),children:fn.map(({mode:c,icon:l,title:m})=>{const u=s===c;return(0,o.jsx)("button",{title:m,onClick:()=>i(c),className:S("wdo:rounded wdo:p-1.5 wdo:border-0 wdo:cursor-pointer","wdo:transition-colors wdo:flex wdo:items-center wdo:justify-center",u?t?"wdo:bg-wp-admin-500 wdo:text-white":"wdo:bg-white wdo:text-wp-admin-700 wdo:shadow-sm":t?"wdo:bg-transparent wdo:text-wp-admin-300":"wdo:bg-transparent wdo:text-wp-admin-500"),children:(0,o.jsx)("span",{className:"wdo:w-[18px] wdo:h-[18px] wdo:flex wdo:items-center wdo:justify-center",children:l})},c)})})};var pn=()=>{const t=typeof window<"u"&&Array.isArray(window.wpdrmsSharedConflicts)?window.wpdrmsSharedConflicts:[];return t.length===0?null:(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:gap-2 wdo:mb-4",children:t.map((s,i)=>(0,o.jsx)("div",{role:"alert",className:"wdo:p-3 wdo:rounded wdo:text-sm wdo:bg-red-50 wdo:text-red-800 wdo:dark:bg-red-900/20 wdo:dark:text-red-200",children:s.message},i))})},mn=({subtitle:t="",logo:s,className:i=""})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(pn,{}),(0,o.jsxs)("div",{className:"wdo:top-bar",children:[(0,o.jsxs)("div",{className:S("wdo:flex wdo:items-baseline wdo:gap-3",i),children:[s,t?(0,o.jsx)("h2",{children:t}):""]}),(0,o.jsx)(hn,{})]})]}),wn=()=>(0,o.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right"},"aria-hidden":"true",focusable:"false",children:(0,o.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})}),xn=()=>(0,o.jsx)("svg",{height:"20",width:"20",viewBox:"0 0 20 20",style:{float:"right",transform:"rotate(180deg)"},"aria-hidden":"true",focusable:"false",children:(0,o.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})});const He=(0,f.createContext)(null),gn=({children:t})=>{const[s,i]=(0,f.useState)(null),[c,l]=(0,f.useState)(()=>window.location.hash.slice(1)||null),[m,u]=(0,f.useState)([]),p=(0,f.useRef)([]),[x,C]=(0,f.useState)(()=>({})),O=E=>{const Y=p.current.reduce((j,X)=>(j[X]=!0,j),{});C(j=>({...j,...Y,[E]:!0}))},T=E=>{C(Y=>({...Y,[E]:!1}))},I=E=>{C(Y=>({...Y,[E]:!(Y[E]??!1)}))},R=E=>{u(Y=>[...Y,c]),l(E),E?window.history.pushState(null,"",`#${E}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},k=()=>{if(m.length===0)return;const E=m[m.length-1];u(Y=>Y.slice(0,-1)),l(E),E?window.history.pushState(null,"",`#${E}`):window.history.replaceState(null,"",window.location.pathname+window.location.search)},Z=m.length>0;return(0,f.useEffect)(()=>{const E=()=>{l(window.location.hash.slice(1)||null),c&&O(c)};return c&&O(c),window.addEventListener("hashchange",E),()=>window.removeEventListener("hashchange",E)},[]),(0,o.jsx)(He.Provider,{value:{activeId:c,setActiveId:l,isOpen:x,toggleOpen:I,open:O,close:T,openedParents:p,confirmBeforeSwap:s,setConfirmBeforeSwap:i,navigate:R,goBack:k,canGoBack:Z},children:t})},yn=({children:t,...s})=>(0,o.jsx)("ul",{style:{listStyleType:"none",padding:0,userSelect:"none"},...s,children:f.Children.map(t,i=>(0,f.cloneElement)(i,{level:0}))}),Le=({label:t,id:s,children:i,iconBefore:c,iconAfter:l,disabled:m,defaultActive:u=!1,level:p=0,parents:x=[],...C})=>{const O=(0,f.useContext)(He);if(!O)throw new Error("MenuItem must be used within a MenuProvider");const{activeId:T,isOpen:I,toggleOpen:R,openedParents:k,confirmBeforeSwap:Z,setConfirmBeforeSwap:E,navigate:Y}=O,j=T!==null?T===s:u,X=f.Children.count(i)>0,ie=X?I[s]:!1;j&&(X&&(k.current=[...new Set(k.current.concat([s]))]),x.length&&(k.current=[...new Set(k.current.concat(x))]));const B=["","wdo:pl-4","wdo:pl-6","wdo:pl-8","wdo:pl-10"];return(0,o.jsxs)("li",{...C,children:[(0,o.jsxs)("a",{href:s?`#${s}`:void 0,onClick:K=>{K.preventDefault(),X&&!ie&&R(s),!m&&(Z===null||confirm(Z))&&(E(null),X||Y(s))},className:`
					${B[p]??""} 
					${j?"wdo:menu-item-active":""}
				    wdo:menu-item
				 `,children:[c&&(0,o.jsx)("span",{children:c}),(0,o.jsx)("span",{children:t}),l&&(0,o.jsx)("span",{children:l}),X&&(0,o.jsx)("span",{className:"wdo:dark:fill-gray-300",onClick:K=>{K.stopPropagation(),K.preventDefault(),R(s)},children:ie?(0,o.jsx)(xn,{}):(0,o.jsx)(wn,{})})]}),X&&(0,o.jsx)("ul",{style:{listStyleType:"none",padding:0,display:ie?"block":"none"},children:f.Children.map(i,K=>(0,f.cloneElement)(K,{level:p+1,parents:x.concat([s]),...C}))})]})};/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vn=ee("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),$e=({className:t="",children:s,isLoading:i,...c})=>(0,o.jsx)("button",{className:`wdo:button ${t}`,...c,...i?{disabled:!0}:{},children:i?(0,o.jsx)(vn,{className:"wdo:animate-spin wdo:w-4 wdo:h-4"}):s}),_n=({className:t="",children:s,...i})=>(0,o.jsx)($e,{className:`wdo:button-primary ${t}`,...i,children:s}),jn=({className:t="",children:s,...i})=>(0,o.jsx)($e,{className:`wdo:button-danger ${t}`,...i,children:s}),Ds=({className:t="",children:s,...i})=>jsx($e,{className:`wdo:button-ghost ${t}`,...i,children:s});var y=window.wp.i18n;/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bn=ee("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kn=ee("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yt=ee("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const En=ee("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var Ps=J(8623);const Vs=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),vt=t=>{let s=!1;return typeof window.$<"u"&&(typeof t>"u"||typeof window.$.fn[t]<"u")&&(s=window.$),s===!1&&typeof window.jQuery<"u"&&(s=window.jQuery,(typeof t>"u"||typeof window.jQuery.fn[t]<"u")&&(s=window.jQuery)),s},Fs=function(t,s){let i=t.find("input,textarea,select,button").get();if(arguments.length===1){const c={};return i.forEach(function(l){l.name&&!l.disabled&&(l.checked||/select|textarea/i.test(l.nodeName)||/text/i.test(l.type)||$(l).hasClass("hasDatepicker")||$(l).hasClass("asp_slider_hidden"))&&(c[l.name]===void 0&&(c[l.name]=[]),$(l).hasClass("hasDatepicker")?c[l.name].push($(l).parent().find(".asp_datepicker_hidden").val()):c[l.name].push($(l).val()))}),JSON.stringify(c)}else if(s!==void 0){const c=typeof s!="object"?JSON.parse(s):s;return i.forEach(function(l){if(l.name)if(c[l.name]){let m=c[l.name],u=$(l);if(Object.prototype.toString.call(m)!=="[object Array]"&&(m=[m]),l.type==="checkbox"||l.type==="radio"){let p=u.val(),x=!1;for(let C=0;C<m.length;C++)if(m[C]===p){x=!0;break}u.prop("checked",x)}else u.val(m[0]),$(l).hasClass("asp_gochosen")||$(l).hasClass("asp_goselect2")?intervalUntilExecute(function(p){p(l).trigger("change.asp_select2")},function(){return vt("asp_select2")},50,3):$(l).hasClass("hasDatepicker")&&intervalUntilExecute(function(p){const x=u.get(0);if(x===void 0)return;let C=m[0],O=p(x).datepicker("option","dateFormat");p(x).datepicker("option","dateFormat","yy-mm-dd"),p(x).datepicker("setDate",C),p(x).datepicker("option","dateFormat",O),p(x).trigger("selectnochange")},function(){return vt("datepicker")},50,3)}else(l.type==="checkbox"||l.type==="radio")&&$(l).prop("checked",!1)}),t}},Us=function(t,s,i,c="self"){let l;l=$('<form style="display: none;" />'),l.attr("action",t),l.attr("method",s),$("body").append(l),typeof i<"u"&&i!==null&&Object.keys(i).forEach(function(m){let u=i[m],p=$('<input type="hidden" />');p.attr("name",m),p.attr("value",u),l.append(p)}),c=="new"&&l.attr("target","_blank"),l.get(0).submit()},_t=function(t){Object.assign(document.createElement("a"),{target:"_blank",href:t}).click()},Ws=function(t,s=0){for(const i of t)if(Nn(i))return window.scrollTo({top:i.getBoundingClientRect().top-120+window.pageYOffset+s,behavior:"smooth"}),!0;return!1},Nn=function(t){if(typeof t.checkVisibility>"u")return!0;let s=t,i=!0;for(;s!==null;){if(!s.checkVisibility({opacityProperty:!0,visibilityProperty:!0,contentVisibilityAuto:!0})){i=!1;break}s=s.parentElement}return i};var Sn=()=>(0,o.jsx)("svg",{width:"200",height:"100%",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 176.64 26.62",children:(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m13.59 20.4-1.32-2.93H5.78L4.46 20.4H.6L8.75 3.6h.55l8.15 16.8h-3.86Zm-6.5-5.81h3.84l-1.92-4.25-1.92 4.25Z"}),(0,o.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"M22.03 7.92V21.6c0 1.23-.34 2.16-1.01 2.78-.67.62-1.6.94-2.78.94-.66 0-1.53-.19-2.64-.58v-3.43c.19.05.41.11.66.18.25.07.44.13.58.17.14.04.29.08.46.11.17.03.32.05.47.05.56 0 .84-.45.84-1.34V7.92h3.43Zm0-4.32v3.05H18.6V3.6h3.43ZM29.63 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM46.7 20.4l-2.85-4.06L41 20.4h-3.86l4.79-6.41-4.31-6.07h3.76l2.47 3.72 2.47-3.72h3.76l-4.31 6.07 4.79 6.41H46.7ZM61.63 3.43c1.34 0 2.49.32 3.45.96.96.64 1.68 1.42 2.16 2.33l-3.09 1.06c-.42-.86-1.21-1.3-2.37-1.3-.58 0-1.06.13-1.45.38-.39.26-.59.58-.59.98s.14.78.42 1.09.81.6 1.59.85l.65.22c1.87.64 3.22 1.42 4.04 2.35.82.93 1.23 2.01 1.23 3.24 0 1.09-.34 2.02-1.01 2.81-.67.78-1.45 1.34-2.35 1.67-.9.33-1.81.49-2.76.49-1.53 0-2.85-.35-3.94-1.06-1.09-.7-1.87-1.66-2.31-2.88l2.9-1.3c.24.62.66 1.14 1.27 1.56s1.3.62 2.09.62c.67 0 1.27-.16 1.79-.48.52-.32.78-.8.78-1.44s-.19-1.08-.56-1.4c-.38-.33-1.08-.68-2.12-1.04l-.62-.24c-1.47-.51-2.61-1.16-3.4-1.96-.8-.79-1.2-1.83-1.2-3.11s.54-2.34 1.61-3.17c1.07-.83 2.34-1.25 3.81-1.25ZM74.84 7.78c.69 0 1.39.14 2.1.41s1.38.66 2.01 1.16c.63.5 1.14 1.18 1.53 2.03.39.85.59 1.79.59 2.83 0 .46-.03.88-.1 1.25h-8.92c.19.66.56 1.18 1.11 1.57.55.39 1.14.59 1.76.59.97 0 1.7-.26 2.18-.77l2.83 1.44c-1.33 1.52-3 2.28-5.03 2.28-.67 0-1.37-.13-2.09-.4s-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.2-1.98.6-2.83.91-1.52 1.55-2.03c.63-.5 1.31-.89 2.03-1.16s1.43-.41 2.13-.41Zm0 2.98c-.62 0-1.19.18-1.69.55-.5.37-.85.89-1.04 1.56h5.49c-.18-.67-.53-1.19-1.06-1.56-.53-.37-1.09-.55-1.7-.55ZM88.1 7.78c.89 0 1.65.19 2.27.56.62.38.93.72.95 1.04V7.92h3.43V20.4h-3.43v-1.66c-.02.32-.34.7-.96 1.15-.62.45-1.38.67-2.25.67-.67 0-1.34-.13-2.01-.4s-1.29-.65-1.87-1.15c-.58-.5-1.04-1.18-1.4-2.03-.36-.85-.54-1.8-.54-2.86 0-1.97.6-3.52 1.81-4.66 1.21-1.14 2.54-1.7 4.02-1.7Zm2.56 3.76c-.53-.55-1.19-.83-1.99-.83s-1.49.31-2.09.94c-.59.62-.89 1.46-.89 2.5s.3 1.92.89 2.54c.59.62 1.29.94 2.09.94s1.46-.28 1.99-.85.79-1.44.79-2.63-.26-2.05-.79-2.6ZM103.94 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM112.14 7.78c.96 0 1.92.24 2.88.71s1.74 1.18 2.35 2.12l-3.04 1.1c-.48-.67-1.21-1.01-2.18-1.01-.78 0-1.46.32-2.04.95-.58.63-.86 1.48-.86 2.56s.29 1.85.86 2.47c.58.62 1.25.94 2.04.94.99 0 1.72-.33 2.18-.98l3.07 1.1c-.62.94-1.41 1.65-2.37 2.12-.96.47-1.92.71-2.88.71-.67 0-1.36-.13-2.07-.4-.71-.26-1.39-.64-2.04-1.14-.65-.5-1.18-1.16-1.59-2s-.62-1.78-.62-2.82.21-2.01.62-2.87c.42-.86.95-1.53 1.59-2.03s1.33-.88 2.04-1.14c.71-.26 1.4-.4 2.07-.4ZM126.16 7.8c1.29 0 2.4.45 3.31 1.34.91.9 1.37 2.26 1.37 4.08v7.18h-3.43v-6.96c0-1.81-.67-2.71-2.01-2.71-.64 0-1.22.2-1.75.61s-.9.8-1.13 1.19c-.22.38-.36.69-.41.91v6.96h-3.43V3.6h3.43v6.67c.06-.48.47-1.01 1.22-1.6.75-.58 1.69-.88 2.83-.88ZM142.75 3.6c1.93 0 3.45.5 4.55 1.5 1.1 1 1.65 2.28 1.65 3.83s-.56 2.83-1.67 3.84c-1.11 1.01-2.62 1.51-4.54 1.51h-2.33v6.12h-3.52V3.6h5.85Zm-.1 7.54c.86 0 1.54-.19 2.04-.56.5-.38.74-.92.74-1.64s-.25-1.27-.74-1.64c-.5-.38-1.17-.56-2.04-.56h-2.23v4.42h2.23ZM158.05 7.8c.53 0 .92.03 1.17.1v3.19c-.27-.05-.67-.07-1.2-.07-1.07 0-1.98.37-2.72 1.1s-1.17 1.7-1.28 2.88v5.4h-3.4V7.92h3.4v4.01c.14-1.25.54-2.25 1.2-3 .66-.75 1.6-1.13 2.83-1.13ZM163.71 8.18c.73-.27 1.43-.41 2.1-.41s1.37.14 2.09.41 1.4.66 2.05 1.16c.65.5 1.18 1.18 1.59 2.03.42.85.62 1.79.62 2.83s-.21 1.98-.62 2.82c-.42.84-.95 1.51-1.59 2-.65.5-1.33.88-2.05 1.14s-1.41.4-2.09.4-1.37-.13-2.09-.4-1.41-.64-2.06-1.14c-.66-.5-1.19-1.16-1.61-2s-.62-1.78-.62-2.82.21-1.98.62-2.83.95-1.52 1.59-2.03c.65-.5 1.33-.89 2.06-1.16Zm2.1 2.52c-.78 0-1.47.31-2.06.94-.59.62-.89 1.48-.89 2.57s.3 1.89.89 2.5c.59.61 1.28.91 2.06.91s1.45-.3 2.04-.91.89-1.44.89-2.5-.3-1.94-.89-2.57c-.59-.62-1.27-.94-2.04-.94Z"}),(0,o.jsx)("path",{className:"wdo:fill-black wdo:dark:fill-white",d:"m174.49 24.75-6.88-7.26 1.29-1.39 7.74 6.34-2.15 2.31z"})]})}),Cn=window.wp.apiFetch,Te=J.n(Cn);/**
 * @license lucide-react v1.14.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const On=ee("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),jt="asl_review_notice",bt=10080*60*1e3;function Rn(){try{const t=localStorage.getItem(jt);return t?JSON.parse(t):null}catch{return null}}function kt(t){localStorage.setItem(jt,JSON.stringify(t))}function An(t){return!t||t.status==="dismissed"?!1:t.status==="snoozed"?Date.now()>t.until:Date.now()-t.firstSeen>=bt}const Dn=()=>{const{isDark:t}=gt(),[s,i]=(0,f.useState)(!1);if((0,f.useEffect)(()=>{let l=Rn();l||(l={status:"pending",firstSeen:Date.now()},kt(l)),i(An(l))},[]),!s)return null;const c=l=>{kt(l==="snoozed"?{status:"snoozed",until:Date.now()+bt}:{status:"dismissed"}),i(!1)};return(0,o.jsx)("div",{className:"asl-review-border-wrap",children:(0,o.jsxs)("div",{className:"asl-review-border-inner wdo:flex wdo:items-center wdo:gap-4 wdo:p-4 wdo:flex-wrap",style:{background:t?"#0b0c0c":"#fff"},children:[(0,o.jsx)(On,{className:"wdo:w-6 wdo:h-6 wdo:text-asp wdo:shrink-0"}),(0,o.jsxs)("div",{className:"wdo:flex-1 wdo:min-w-0",children:[(0,o.jsx)("p",{className:"wdo:font-semibold wdo:dark:text-wp-admin-100",children:(0,y.__)("Enjoying Ajax Search Pro?","ajax-search-pro")}),(0,o.jsx)("p",{className:"wdo:text-sm wdo:text-wp-admin-500 wdo:dark:text-wp-admin-400 wdo:mt-0.5",children:(0,y.__)("A quick review on WordPress.org helps the plugin grow. It only takes a minute!","ajax-search-pro")})]}),(0,o.jsxs)("div",{className:"wdo:flex wdo:gap-2 wdo:flex-wrap wdo:shrink-0 wdo:items-center",children:[(0,o.jsx)("a",{href:"https://wordpress.org/support/plugin/ajax-search-lite/reviews/#new-post",target:"_blank",rel:"noopener noreferrer",className:"wdo:button wdo:button-primary",onClick:()=>c("dismissed"),children:(0,y.__)("Leave a Review","ajax-search-pro")}),(0,o.jsx)("button",{className:"wdo:button",onClick:()=>c("snoozed"),children:(0,y.__)("Maybe later","ajax-search-pro")}),(0,o.jsx)("button",{className:"wdo:button wdo:button-ghost",onClick:()=>c("dismissed"),children:(0,y.__)("Never","ajax-search-pro")})]})]})})};var Et=J(8279);const Nt=0,St=1,Ct=2,Ot=3;var Rt=Object.prototype.hasOwnProperty;function Be(t,s){var i,c;if(t===s)return!0;if(t&&s&&(i=t.constructor)===s.constructor){if(i===Date)return t.getTime()===s.getTime();if(i===RegExp)return t.toString()===s.toString();if(i===Array){if((c=t.length)===s.length)for(;c--&&Be(t[c],s[c]););return c===-1}if(!i||typeof t=="object"){c=0;for(i in t)if(Rt.call(t,i)&&++c&&!Rt.call(s,i)||!(i in s)||!Be(t[i],s[i]))return!1;return Object.keys(s).length===c}}return t!==t&&s!==s}const ue=new WeakMap,fe=()=>{},G=fe(),Me=Object,b=t=>t===G,oe=t=>typeof t=="function",he=(t,s)=>({...t,...s}),At=t=>oe(t.then),qe={},Ie={},ze="undefined",Ce=typeof window!=ze,Ze=typeof document!=ze,Ln=Ce&&"Deno"in window,Tn=()=>Ce&&typeof window.requestAnimationFrame!=ze,Dt=(t,s)=>{const i=ue.get(t);return[()=>!b(s)&&t.get(s)||qe,c=>{if(!b(s)){const l=t.get(s);s in Ie||(Ie[s]=l),i[5](s,he(l,c),l||qe)}},i[6],()=>!b(s)&&s in Ie?Ie[s]:!b(s)&&t.get(s)||qe]};let Ye=!0;const Mn=()=>Ye,[Qe,Ge]=Ce&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[fe,fe],In=()=>{const t=Ze&&document.visibilityState;return b(t)||t!=="hidden"},Pn=t=>(Ze&&document.addEventListener("visibilitychange",t),Qe("focus",t),()=>{Ze&&document.removeEventListener("visibilitychange",t),Ge("focus",t)}),Vn=t=>{const s=()=>{Ye=!0,t()},i=()=>{Ye=!1};return Qe("online",s),Qe("offline",i),()=>{Ge("online",s),Ge("offline",i)}},Fn={isOnline:Mn,isVisible:In},Un={initFocus:Pn,initReconnect:Vn},Lt=!f.useId,ye=!Ce||Ln,Wn=t=>Tn()?window.requestAnimationFrame(t):setTimeout(t,1),Pe=ye?f.useEffect:f.useLayoutEffect,Ke=typeof navigator<"u"&&navigator.connection,Tt=!ye&&Ke&&(["slow-2g","2g"].includes(Ke.effectiveType)||Ke.saveData),Ve=new WeakMap,Hn=t=>Me.prototype.toString.call(t),Je=(t,s)=>t===`[object ${s}]`;let $n=0;const Xe=t=>{const s=typeof t,i=Hn(t),c=Je(i,"Date"),l=Je(i,"RegExp"),m=Je(i,"Object");let u,p;if(Me(t)===t&&!c&&!l){if(u=Ve.get(t),u)return u;if(u=++$n+"~",Ve.set(t,u),Array.isArray(t)){for(u="@",p=0;p<t.length;p++)u+=Xe(t[p])+",";Ve.set(t,u)}if(m){u="#";const x=Me.keys(t).sort();for(;!b(p=x.pop());)b(t[p])||(u+=p+":"+Xe(t[p])+",");Ve.set(t,u)}}else u=c?t.toJSON():s=="symbol"?t.toString():s=="string"?JSON.stringify(t):""+t;return u},et=t=>{if(oe(t))try{t=t()}catch{t=""}const s=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?Xe(t):"",[t,s]};let Bn=0;const tt=()=>++Bn;async function Mt(...t){const[s,i,c,l]=t,m=he({populateCache:!0,throwOnError:!0},typeof l=="boolean"?{revalidate:l}:l||{});let u=m.populateCache;const p=m.rollbackOnError;let x=m.optimisticData;const C=I=>typeof p=="function"?p(I):p!==!1,O=m.throwOnError;if(oe(i)){const I=i,R=[],k=s.keys();for(const Z of k)!/^\$(inf|sub)\$/.test(Z)&&I(s.get(Z)._k)&&R.push(Z);return Promise.all(R.map(T))}return T(i);async function T(I){const[R]=et(I);if(!R)return;const[k,Z]=Dt(s,R),[E,Y,j,X]=ue.get(s),ie=()=>{const re=E[R];return(oe(m.revalidate)?m.revalidate(k().data,I):m.revalidate!==!1)&&(delete j[R],delete X[R],re&&re[0])?re[0](Ct).then(()=>k().data):k().data};if(t.length<3)return ie();let B=c,K,ce=!1;const ve=tt();Y[R]=[ve,0];const V=!b(x),_e=k(),le=_e.data,je=_e._c,we=b(je)?le:je;if(V&&(x=oe(x)?x(we,le):x,Z({data:x,_c:we})),oe(B))try{B=B(we)}catch(re){K=re,ce=!0}if(B&&At(B))if(B=await B.catch(re=>{K=re,ce=!0}),ve!==Y[R][0]){if(ce)throw K;return B}else ce&&V&&C(K)&&(u=!0,Z({data:we,_c:G}));if(u&&!ce)if(oe(u)){const re=u(B,we);Z({data:re,error:G,_c:G})}else Z({data:B,error:G,_c:G});if(Y[R][1]=tt(),Promise.resolve(ie()).then(()=>{Z({_c:G})}),ce){if(O)throw K;return}return B}}const It=(t,s)=>{for(const i in t)t[i][0]&&t[i][0](s)},Pt=(t,s)=>{if(!ue.has(t)){const i=he(Un,s),c=Object.create(null),l=Mt.bind(G,t);let m=fe;const u=Object.create(null),p=(O,T)=>{const I=u[O]||[];return u[O]=I,I.push(T),()=>I.splice(I.indexOf(T),1)},x=(O,T,I)=>{t.set(O,T);const R=u[O];if(R)for(const k of R)k(T,I)},C=()=>{if(!ue.has(t)&&(ue.set(t,[c,Object.create(null),Object.create(null),Object.create(null),l,x,p]),!ye)){const O=i.initFocus(setTimeout.bind(G,It.bind(G,c,Nt))),T=i.initReconnect(setTimeout.bind(G,It.bind(G,c,St)));m=()=>{O&&O(),T&&T(),ue.delete(t)}}};return C(),[t,l,C,m]}return[t,ue.get(t)[4]]},qn=(t,s,i,c,l)=>{const m=i.errorRetryCount,u=l.retryCount,p=~~((Math.random()+.5)*(1<<(u<8?u:8)))*i.errorRetryInterval;!b(m)&&u>m||setTimeout(c,p,l)},zn=Be,[nt,Zn]=Pt(new Map),Vt=he({onLoadingSlow:fe,onSuccess:fe,onError:fe,onErrorRetry:qn,onDiscarded:fe,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tt?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Tt?5e3:3e3,compare:zn,isPaused:()=>!1,cache:nt,mutate:Zn,fallback:{}},Fn),Ft=(t,s)=>{const i=he(t,s);if(s){const{use:c,fallback:l}=t,{use:m,fallback:u}=s;c&&m&&(i.use=c.concat(m)),l&&u&&(i.fallback=he(l,u))}return i},st=(0,f.createContext)({}),Yn=t=>{const{value:s}=t,i=(0,f.useContext)(st),c=oe(s),l=(0,f.useMemo)(()=>c?s(i):s,[c,i,s]),m=(0,f.useMemo)(()=>c?l:Ft(i,l),[c,i,l]),u=l&&l.provider,p=(0,f.useRef)(G);u&&!p.current&&(p.current=Pt(u(m.cache||nt),l));const x=p.current;return x&&(m.cache=x[0],m.mutate=x[1]),Pe(()=>{if(x)return x[2]&&x[2](),x[3]},[]),(0,f.createElement)(st.Provider,he(t,{value:m}))},Qn="$inf$",Ut=Ce&&window.__SWR_DEVTOOLS_USE__,Gn=Ut?window.__SWR_DEVTOOLS_USE__:[],Kn=()=>{Ut&&(window.__SWR_DEVTOOLS_REACT__=f)},Wt=t=>oe(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(t[1]===null?t[2]:t[1])||{}],Jn=()=>{const t=(0,f.useContext)(st);return(0,f.useMemo)(()=>he(Vt,t),[t])},Bs=(t,s)=>{if(IS_SERVER)return;const[i,c]=serialize(t),[,,,l]=SWRGlobalState.get(cache);if(l[i])return l[i];const m=s(c);return l[i]=m,m},Xn=t=>(s,i,c)=>t(s,i&&((...m)=>{const[u]=et(s),[,,,p]=ue.get(nt);if(u.startsWith(Qn))return i(...m);const x=p[u];return b(x)?i(...m):(delete p[u],x)}),c),es=Gn.concat(Xn),ts=t=>function(...i){const c=Jn(),[l,m,u]=Wt(i),p=Ft(c,u);let x=t;const{use:C}=p,O=(C||[]).concat(es);for(let T=O.length;T--;)x=O[T](x);return x(l,m||p.fetcher||null,p)},ns=(t,s,i)=>{const c=s[t]||(s[t]=[]);return c.push(i),()=>{const l=c.indexOf(i);l>=0&&(c[l]=c[c.length-1],c.pop())}},qs=(t,s)=>(...i)=>{const[c,l,m]=Wt(i),u=(m.use||[]).concat(s);return t(c,l,{...m,use:u})};Kn();const ss=void 0,ot=null,Ht=t=>t===ss,os=t=>typeof t=="function",Fe=new WeakMap,rs=t=>ot.prototype.toString.call(t),rt=(t,s)=>t===`[object ${s}]`;let as=0;const at=t=>{const s=typeof t,i=rs(t),c=rt(i,"Date"),l=rt(i,"RegExp"),m=rt(i,"Object");let u,p;if(ot(t)===t&&!c&&!l){if(u=Fe.get(t),u)return u;if(u=++as+"~",Fe.set(t,u),Array.isArray(t)){for(u="@",p=0;p<t.length;p++)u+=at(t[p])+",";Fe.set(t,u)}if(m){u="#";const x=ot.keys(t).sort();for(;!Ht(p=x.pop());)Ht(t[p])||(u+=p+":"+at(t[p])+",");Fe.set(t,u)}}else u=c?t.toJSON():s=="symbol"?t.toString():s=="string"?JSON.stringify(t):""+t;return u},is=t=>{if(os(t))try{t=t()}catch{t=""}const s=t;return t=typeof t=="string"?t:(Array.isArray(t)?t.length:t)?at(t):"",[t,s]},Zs=t=>is(t)[0],it=f.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(s=>{t.status="fulfilled",t.value=s},s=>{t.status="rejected",t.reason=s}),t}}),ct={dedupe:!0},$t=Promise.resolve(G),cs=()=>fe,ls=(t,s,i)=>{const{cache:c,compare:l,suspense:m,fallbackData:u,revalidateOnMount:p,revalidateIfStale:x,refreshInterval:C,refreshWhenHidden:O,refreshWhenOffline:T,keepPreviousData:I,strictServerPrefetchWarning:R}=i,[k,Z,E,Y]=ue.get(c),[j,X]=et(t),ie=(0,f.useRef)(!1),B=(0,f.useRef)(!1),K=(0,f.useRef)(j),ce=(0,f.useRef)(s),ve=(0,f.useRef)(i),V=()=>ve.current,_e=()=>V().isVisible()&&V().isOnline(),[le,je,we,re]=Dt(c,j),be=(0,f.useRef)({}).current,ke=b(u)?b(i.fallback)?G:i.fallback[j]:u,zt=(M,F)=>{for(const U in be){const W=U;if(W==="data"){if(!l(M[W],F[W])&&(!b(M[W])||!l(We,F[W])))return!1}else if(F[W]!==M[W])return!1}return!0},lt=!ie.current,Zt=(0,f.useMemo)(()=>{const M=le(),F=re(),U=q=>{const ae=he(q);return delete ae._k,(()=>{if(!j||!s||V().isPaused())return!1;if(lt&&!b(p))return p;const De=b(ke)?ae.data:ke;return b(De)||x})()?{isValidating:!0,isLoading:!0,...ae}:ae},W=U(M),de=M===F?W:U(F);let te=W;return[()=>{const q=U(le());return zt(q,te)?(te.data=q.data,te.isLoading=q.isLoading,te.isValidating=q.isValidating,te.error=q.error,te):(te=q,q)},()=>de]},[c,j]),Ee=(0,Et.useSyncExternalStore)((0,f.useCallback)(M=>we(j,(F,U)=>{zt(U,F)||M()}),[c,j]),Zt[0],Zt[1]),ps=k[j]&&k[j].length>0,Ne=Ee.data,xe=b(Ne)?ke&&At(ke)?it(ke):ke:Ne,Ue=Ee.error,dt=(0,f.useRef)(xe),We=I?b(Ne)?b(dt.current)?xe:dt.current:Ne:xe,ge=j&&b(xe),Oe=(0,f.useRef)(null);!ye&&(0,Et.useSyncExternalStore)(cs,()=>(Oe.current=!1,Oe),()=>(Oe.current=!0,Oe));const ms=Oe.current;R&&ms&&!m&&ge&&console.warn(`Missing pre-initiated data for serialized key "${j}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Yt=!j||!s||V().isPaused()||ps&&!b(Ue)?!1:lt&&!b(p)?p:m?b(xe)?!1:x:b(xe)||x,Qt=lt&&Yt,ws=b(Ee.isValidating)?Qt:Ee.isValidating,xs=b(Ee.isLoading)?Qt:Ee.isLoading,Re=(0,f.useCallback)(async M=>{const F=ce.current;if(!j||!F||B.current||V().isPaused())return!1;let U,W,de=!0;const te=M||{},q=!E[j]||!te.dedupe,ae=()=>Lt?!B.current&&j===K.current&&ie.current:j===K.current,Ae={isValidating:!1,isLoading:!1},De=()=>{je(Ae)},Kt=()=>{const ne=E[j];ne&&ne[1]===W&&delete E[j]},Jt={isValidating:!0};b(le().data)&&(Jt.isLoading=!0);try{if(q&&(je(Jt),i.loadingTimeout&&b(le().data)&&setTimeout(()=>{de&&ae()&&V().onLoadingSlow(j,i)},i.loadingTimeout),E[j]=[F(X),tt()]),[U,W]=E[j],U=await U,q&&setTimeout(Kt,i.dedupingInterval),!E[j]||E[j][1]!==W)return q&&ae()&&V().onDiscarded(j),!1;Ae.error=G;const ne=Z[j];if(!b(ne)&&(W<=ne[0]||W<=ne[1]||ne[1]===0))return De(),q&&ae()&&V().onDiscarded(j),!1;const pe=le().data;Ae.data=l(pe,U)?pe:U,q&&ae()&&V().onSuccess(U,j,i)}catch(ne){Kt();const pe=V(),{shouldRetryOnError:ut}=pe;pe.isPaused()||(Ae.error=ne,q&&ae()&&(pe.onError(ne,j,pe),(ut===!0||oe(ut)&&ut(ne))&&(!V().revalidateOnFocus||!V().revalidateOnReconnect||_e())&&pe.onErrorRetry(ne,j,pe,gs=>{const ft=k[j];ft&&ft[0]&&ft[0](Ot,gs)},{retryCount:(te.retryCount||0)+1,dedupe:!0})))}return de=!1,De(),!0},[j,c]),Gt=(0,f.useCallback)((...M)=>Mt(c,K.current,...M),[]);if(Pe(()=>{ce.current=s,ve.current=i,b(Ne)||(dt.current=Ne)}),Pe(()=>{if(!j)return;const M=Re.bind(G,ct);let F=0;V().revalidateOnFocus&&(F=Date.now()+V().focusThrottleInterval);const W=ns(j,k,(de,te={})=>{if(de==Nt){const q=Date.now();V().revalidateOnFocus&&q>F&&_e()&&(F=q+V().focusThrottleInterval,M())}else if(de==St)V().revalidateOnReconnect&&_e()&&M();else{if(de==Ct)return Re();if(de==Ot)return Re(te)}});return B.current=!1,K.current=j,ie.current=!0,je({_k:X}),Yt&&(E[j]||(b(xe)||ye?M():Wn(M))),()=>{B.current=!0,W()}},[j]),Pe(()=>{let M;function F(){const W=oe(C)?C(le().data):C;W&&M!==-1&&(M=setTimeout(U,W))}function U(){!le().error&&(O||V().isVisible())&&(T||V().isOnline())?Re(ct).then(F):F()}return F(),()=>{M&&(clearTimeout(M),M=-1)}},[C,O,T,j]),(0,f.useDebugValue)(We),m){if(!Lt&&ye&&ge)throw new Error("Fallback data is required when using Suspense in SSR.");ge&&(ce.current=s,ve.current=i,B.current=!1);const M=Y[j],F=!b(M)&&ge?Gt(M):$t;if(it(F),!b(Ue)&&ge)throw Ue;const U=ge?Re(ct):$t;!b(We)&&ge&&(U.status="fulfilled",U.value=!0),it(U)}return{mutate:Gt,get data(){return be.data=!0,We},get error(){return be.error=!0,Ue},get isValidating(){return be.isValidating=!0,ws},get isLoading(){return be.isLoading=!0,xs}}},Ys=Me.defineProperty(Yn,"defaultValue",{value:Vt}),Bt=ts(ls),ds=()=>{const{data:t,isLoading:s}=Bt("/ajax-search-pro/updates-help/status",i=>Te()({path:i}));return(0,o.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-4 wdo:m-4",children:[(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card",children:(0,o.jsxs)("div",{className:"wdo:p-6",children:[(0,o.jsx)("h2",{className:"wdo:text-[1.4em] wdo:dark:text-white wdo:mb-3",children:(0,y.__)("Version Status","ajax-search-pro")}),s?(0,o.jsx)("p",{className:"wdo:text-sm wdo:dark:text-gray-300",children:(0,y.__)("Loading\u2026","ajax-search-pro")}):(0,o.jsxs)("div",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:space-y-1",children:[(0,o.jsxs)("p",{children:[(0,y.__)("Installed version:","ajax-search-pro")," ",(0,o.jsx)("strong",{className:"wdo:dark:text-white",children:t?.installed})]}),(0,o.jsxs)("p",{children:[(0,y.__)("Newest version:","ajax-search-pro")," ",(0,o.jsx)("strong",{className:"wdo:dark:text-white",children:t?.latest})]}),(0,o.jsxs)("p",{children:[(0,y.__)("Last update:","ajax-search-pro")," ",(0,o.jsx)("strong",{className:"wdo:dark:text-white",children:t?.last_updated})]})]})]})}),(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card",children:(0,o.jsxs)("div",{className:"wdo:p-6",children:[(0,o.jsx)("h2",{className:"wdo:text-[1.4em] wdo:dark:text-white wdo:mb-3",children:(0,y.__)("Support","ajax-search-pro")}),(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300",children:[(0,y.__)("If you can't find the answer in the documentation or knowledge base, or if you are having other issues, feel free to ","ajax-search-pro"),(0,o.jsx)("a",{href:"https://wp-dreams.com/open-support-ticket-step-1/",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("open a support ticket","ajax-search-pro")}),(0,y.__)(".","ajax-search-pro")]})]})}),(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card",children:(0,o.jsxs)("div",{className:"wdo:p-6",children:[(0,o.jsx)("h2",{className:"wdo:text-[1.4em] wdo:dark:text-white wdo:mb-3",children:(0,y.__)("Useful Resources","ajax-search-pro")}),(0,o.jsxs)("ul",{className:"wdo:list-disc wdo:ml-6 wdo:text-sm wdo:dark:text-gray-300 wdo:space-y-1",children:[(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://documentation.ajaxsearchpro.com/",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("Online Documentation","ajax-search-pro")})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://knowledgebase.ajaxsearchpro.com/",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("Knowledge base","ajax-search-pro")})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://changelog.ajaxsearchpro.com/",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("Changelog","ajax-search-pro")})}),(0,o.jsx)("li",{children:(0,o.jsx)("a",{href:"https://documentation.ajaxsearchpro.com/plugin-updates/manual-updates",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("How to manual update?","ajax-search-pro")})})]})]})})]})},us=()=>{const{addError:t}=w(),[s,i]=(0,f.useState)(""),[c,l]=(0,f.useState)(!1),[m,u]=(0,f.useState)(!1),{data:p,isLoading:x,mutate:C}=Bt("/ajax-search-pro/updates-help/status",k=>Te()({path:k})),O=()=>{l(!0),Te()({path:"/ajax-search-pro/updates-help/activate",method:"POST",data:{key:s}}).then(()=>{i(""),C()}).catch(k=>{t(k)}).finally(()=>{l(!1)})},T=()=>{u(!0),Te()({path:"/ajax-search-pro/updates-help/deactivate",method:"POST"}).then(()=>{C()}).catch(k=>{t(k)}).finally(()=>{u(!1)})},I=!x&&p?.remotely_activated===!0,R=!x&&p?.locally_activated===!0;return(0,o.jsxs)("div",{className:"wdo:flex wdo:flex-col wdo:gap-4 wdo:m-4",children:[(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card",children:(0,o.jsxs)("div",{className:"wdo:p-6",children:[(0,o.jsx)("h2",{className:"wdo:text-[1.4em] wdo:dark:text-white wdo:mb-3",children:(0,y.__)("License Activation & Automatic Updates","ajax-search-pro")}),!x&&p?.environment&&p.environment!=="production"&&(0,o.jsxs)("div",{className:"wdo:mb-4 wdo:p-3 wdo:rounded wdo:bg-blue-50 wdo:dark:bg-blue-900/20 wdo:text-sm wdo:text-blue-800 wdo:dark:text-blue-200",children:[(0,o.jsxs)("p",{className:"wdo:mb-1",children:[(0,y.__)("This site reports its environment as","ajax-search-pro")," ",(0,o.jsx)("strong",{children:p.environment}),". ",(0,y.__)("Activations on development or staging sites use one of your license's development slots, kept separate from your production activation.","ajax-search-pro")]}),(0,o.jsxs)("p",{children:[(0,y.__)("You can review and manage all activations in your","ajax-search-pro")," ",(0,o.jsx)("a",{href:"https://wp-dreams.com/login",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("wp-dreams.com account","ajax-search-pro")}),(0,y.__)(".","ajax-search-pro")]})]}),x&&(0,o.jsx)("p",{className:"wdo:text-sm wdo:dark:text-gray-300",children:(0,y.__)("Loading\u2026","ajax-search-pro")}),!x&&I&&(0,o.jsxs)("div",{children:[(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:mb-4",children:[p.masked_key?(0,y.__)("License verified & auto-updates are activated for this site, with key:","ajax-search-pro"):(0,y.__)("License verified & auto-updates are activated for this site.","ajax-search-pro"),p.masked_key&&(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsx)("strong",{className:"wdo:dark:text-white wdo:font-mono",children:p.masked_key})]})]}),(0,o.jsx)(jn,{isLoading:m,disabled:m,onClick:k=>{k.preventDefault(),T()},children:(0,y.__)("Deactivate License","ajax-search-pro")}),(0,o.jsx)("p",{className:"wdo:mt-3 wdo:text-xs wdo:dark:text-gray-400",children:(0,y.__)("NOTICE: After removal there is a 30 minute wait time until you can re-activate the same purchase code to prevent malicious activity.","ajax-search-pro")})]}),!x&&!I&&(0,o.jsxs)("div",{children:[R&&(0,o.jsxs)("div",{className:"wdo:mb-4 wdo:p-3 wdo:rounded wdo:bg-yellow-50 wdo:dark:bg-yellow-900/20 wdo:text-sm wdo:dark:text-yellow-200 wdo:text-yellow-800",children:[(0,o.jsx)("p",{className:"wdo:mb-1",children:(0,y.__)("Looks like this license was deactivated remotely or activated on a different site.","ajax-search-pro")}),(0,o.jsxs)("p",{className:"wdo:mb-1",children:[(0,o.jsx)("strong",{children:(0,y.__)("No worries!","ajax-search-pro")})," ",(0,y.__)("You can keep it that way, but this one will not receive automatic updates, only stays verified.","ajax-search-pro")]}),(0,o.jsx)("p",{children:(0,y.__)("To activate Automatic Updates, you can re-activate your license.","ajax-search-pro")})]}),!R&&(0,o.jsx)("p",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:mb-3",children:(0,y.__)("To activate Automatic Updates, please activate your license code with this site.","ajax-search-pro")}),(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:mb-2",children:[(0,y.__)("Check ","ajax-search-pro"),(0,o.jsx)("a",{href:"https://documentation.ajaxsearchpro.com/plugin-updates/automatic-updates/purchase-code",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("this documentation","ajax-search-pro")}),(0,y.__)(" to see where you can find your license key.","ajax-search-pro")]}),(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:mb-4",children:[(0,y.__)("Need a license? You can grab one ","ajax-search-pro"),(0,o.jsx)("a",{href:"https://ajaxsearchpro.com/pricing/?utm_source=license_activation",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("via the pricing page","ajax-search-pro")}),(0,y.__)(".","ajax-search-pro")]}),(0,o.jsx)("label",{className:"wdo:block wdo:text-sm wdo:font-medium wdo:dark:text-gray-200 wdo:mb-1",children:(0,y.__)("License key","ajax-search-pro")}),(0,o.jsx)("input",{type:"text",value:s,onChange:k=>i(k.target.value),className:"wdo:block wdo:w-full wdo:max-w-md wdo:mb-3 wdo:px-3 wdo:py-2 wdo:rounded wdo:border wdo:border-gray-300 wdo:dark:border-gray-600 wdo:dark:bg-gray-700 wdo:dark:text-white wdo:text-sm",placeholder:(0,y.__)("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","ajax-search-pro")}),(0,o.jsx)(_n,{isLoading:c,disabled:c||s.trim().length!==36,onClick:k=>{k.preventDefault(),O()},children:(0,y.__)("Activate","ajax-search-pro")}),!R&&(0,o.jsx)("p",{className:"wdo:mt-3 wdo:text-xs wdo:dark:text-gray-400",children:(0,y.__)("If you activated the plugin with this site before, and you see this activation form, just enter the purchase code again to re-activate.","ajax-search-pro")})]})]})}),(0,o.jsx)("div",{className:"wdo:flex wdo:flex-col wdo:card",children:(0,o.jsxs)("div",{className:"wdo:p-6",children:[(0,o.jsx)("h2",{className:"wdo:text-[1.4em] wdo:dark:text-white wdo:mb-3",children:(0,y.__)("License Management","ajax-search-pro")}),(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300 wdo:mb-2",children:[(0,y.__)("To see more details about your licenses, you can ","ajax-search-pro"),(0,o.jsx)("a",{href:"https://wp-dreams.com/login",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("login","ajax-search-pro")}),(0,y.__)(" to our support site.","ajax-search-pro")]}),(0,o.jsxs)("p",{className:"wdo:text-sm wdo:dark:text-gray-300",children:[(0,y.__)("If you don't have an account yet, just create one and ","ajax-search-pro"),(0,o.jsx)("a",{href:"https://wp-dreams.com/products/",target:"_blank",rel:"noreferrer",className:"wdo:underline",children:(0,y.__)("add","ajax-search-pro")}),(0,y.__)(" your existing licenses. They will be bound to that account.","ajax-search-pro")]})]})})]})},fs=()=>{switch((0,f.useContext)(He)?.activeId){case"license":return(0,o.jsx)(us,{});case"version-support":default:return(0,o.jsx)(ds,{})}};var hs=()=>{const{messages:t}=w();return(0,o.jsxs)(un,{children:[(0,o.jsx)(an,{messages:t}),(0,o.jsx)(mn,{subtitle:(0,y.__)("Help & Updates","ajax-search-pro"),logo:(0,o.jsx)(Sn,{}),className:"wdo:items-center!"}),(0,o.jsx)(gn,{children:(0,o.jsxs)("div",{className:"wdo:panel-container",children:[(0,o.jsx)("nav",{className:"wdo:menu-panel",children:(0,o.jsxs)(yn,{children:[(0,o.jsx)(Le,{label:(0,y.__)("Version & Support","ajax-search-pro"),id:"version-support",defaultActive:!0,iconBefore:(0,o.jsx)(bn,{})}),(0,o.jsx)(Le,{label:(0,y.__)("License","ajax-search-pro"),id:"license",iconBefore:(0,o.jsx)(kn,{})}),(0,o.jsx)(Le,{label:(0,y.__)("Documentation","ajax-search-pro"),id:"documentation",onClick:s=>{s.preventDefault(),_t("https://documentation.ajaxsearchpro.com/plugin-updates")},iconAfter:(0,o.jsx)(yt,{})}),(0,o.jsx)(Le,{label:(0,y.__)("Suggest a Feature","ajax-search-pro"),id:"suggest-feature",onClick:s=>{s.preventDefault(),_t("https://ajaxsearchpro.com/contact/?subject=feature")},iconBefore:(0,o.jsx)(En,{}),iconAfter:(0,o.jsx)(yt,{})})]})}),(0,o.jsxs)("div",{className:"wdo:content-panel",children:[(0,o.jsx)(Dn,{}),(0,o.jsx)(fs,{})]})]})})]})};const qt=document.getElementById("asp-root");qt!==null&&A().render((0,o.jsx)(hs,{}),qt)})()})();
