(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{escapeAmpersand:()=>n,escapeAttribute:()=>u,escapeEditableHTML:()=>i,escapeHTML:()=>c,escapeLessThan:()=>o,escapeQuotationMark:()=>a,isValidAttributeName:()=>p});const r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function n(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&amp;")}function a(e){return e.replace(/"/g,"&quot;")}function o(e){return e.replace(/</g,"&lt;")}function u(e){return function(e){return e.replace(/>/g,"&gt;")}(a(n(e)))}function c(e){return o(n(e))}function i(e){return o(e.replace(/&/g,"&amp;"))}function p(e){return!r.test(e)}(window.wp=window.wp||{}).escapeHtml=t})();
(()=>{"use strict";var e={4140:(e,t,n)=>{var r=n(5795);t.H=r.createRoot,t.c=r.hydrateRoot},5795:e=>{e.exports=window.ReactDOM}},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.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Children:()=>o.Children,Component:()=>o.Component,Fragment:()=>o.Fragment,Platform:()=>w,PureComponent:()=>o.PureComponent,RawHTML:()=>I,StrictMode:()=>o.StrictMode,Suspense:()=>o.Suspense,cloneElement:()=>o.cloneElement,concatChildren:()=>g,createContext:()=>o.createContext,createElement:()=>o.createElement,createInterpolateElement:()=>m,createPortal:()=>v.createPortal,createRef:()=>o.createRef,createRoot:()=>b.H,findDOMNode:()=>v.findDOMNode,flushSync:()=>v.flushSync,forwardRef:()=>o.forwardRef,hydrate:()=>v.hydrate,hydrateRoot:()=>b.c,isEmptyElement:()=>k,isValidElement:()=>o.isValidElement,lazy:()=>o.lazy,memo:()=>o.memo,render:()=>v.render,renderToString:()=>Q,startTransition:()=>o.startTransition,switchChildrenNodeName:()=>y,unmountComponentAtNode:()=>v.unmountComponentAtNode,useCallback:()=>o.useCallback,useContext:()=>o.useContext,useDebugValue:()=>o.useDebugValue,useDeferredValue:()=>o.useDeferredValue,useEffect:()=>o.useEffect,useId:()=>o.useId,useImperativeHandle:()=>o.useImperativeHandle,useInsertionEffect:()=>o.useInsertionEffect,useLayoutEffect:()=>o.useLayoutEffect,useMemo:()=>o.useMemo,useReducer:()=>o.useReducer,useRef:()=>o.useRef,useState:()=>o.useState,useSyncExternalStore:()=>o.useSyncExternalStore,useTransition:()=>o.useTransition});const o=window.React;let i,a,s,l;const c=/<(\/)?(\w+)\s*(\/)?>/g;function u(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const d=e=>{const t="object"==typeof e&&null!==e,n=t&&Object.values(e);return t&&n.length>0&&n.every((e=>(0,o.isValidElement)(e)))};function p(e){const t=function(){const e=c.exec(i);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,a]=e,s=n.length;if(a)return["self-closed",o,t,s];if(r)return["closer",o,t,s];return["opener",o,t,s]}(),[n,r,d,p]=t,m=l.length,g=d>a?a:null;if(r&&!e[r])return f(),!1;switch(n){case"no-more-tokens":if(0!==m){const{leadingTextStart:e,tokenStart:t}=l.pop();s.push(i.substr(e,t))}return f(),!1;case"self-closed":return 0===m?(null!==g&&s.push(i.substr(g,d-g)),s.push(e[r]),a=d+p,!0):(h(u(e[r],d,p)),a=d+p,!0);case"opener":return l.push(u(e[r],d,p,d+p,g)),a=d+p,!0;case"closer":if(1===m)return function(e){const{element:t,leadingTextStart:n,prevOffset:r,tokenStart:a,children:c}=l.pop(),u=e?i.substr(r,e-r):i.substr(r);u&&c.push(u);null!==n&&s.push(i.substr(n,a-n));s.push((0,o.cloneElement)(t,null,...c))}(d),a=d+p,!0;const t=l.pop(),n=i.substr(t.prevOffset,d-t.prevOffset);t.children.push(n),t.prevOffset=d+p;const c=u(t.element,t.tokenStart,t.tokenLength,d+p);return c.children=t.children,h(c),a=d+p,!0;default:return f(),!1}}function f(){const e=i.length-a;0!==e&&s.push(i.substr(a,e))}function h(e){const{element:t,tokenStart:n,tokenLength:r,prevOffset:a,children:s}=e,c=l[l.length-1],u=i.substr(c.prevOffset,n-c.prevOffset);u&&c.children.push(u),c.children.push((0,o.cloneElement)(t,null,...s)),c.prevOffset=a||n+r}var m=(e,t)=>{if(i=e,a=0,s=[],l=[],c.lastIndex=0,!d(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are React Elements");do{}while(p(t));return(0,o.createElement)(o.Fragment,null,...s)};function g(...e){return e.reduce(((e,t,n)=>(o.Children.forEach(t,((t,r)=>{(0,o.isValidElement)(t)&&"string"!=typeof t&&(t=(0,o.cloneElement)(t,{key:[n,r].join()})),e.push(t)})),e)),[])}function y(e,t){return e&&o.Children.map(e,((e,n)=>{if("string"==typeof e?.valueOf())return(0,o.createElement)(t,{key:n},e);if(!(0,o.isValidElement)(e))return e;const{children:r,...i}=e.props;return(0,o.createElement)(t,{key:n,...i},r)}))}var v=n(5795),b=n(4140);const k=e=>"number"!=typeof e&&("string"==typeof e?.valueOf()||Array.isArray(e)?!e.length:!e);var w={OS:"web",select:e=>"web"in e?e.web:e.default,isWeb:!0};
function S(e){return"[object Object]"===Object.prototype.toString.call(e)}var x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},x.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function O(e){return e.toLowerCase()}var C=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],E=/[^A-Z0-9]+/gi;function R(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function T(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?C:n,o=t.stripRegexp,i=void 0===o?E:o,a=t.transform,s=void 0===a?O:a,l=t.delimiter,c=void 0===l?" ":l,u=R(R(e,r,"$1\0$2"),i,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(s).join(c)}(e,x({delimiter:"."},t))}function A(e,t){return void 0===t&&(t={}),T(e,x({delimiter:"-"},t))}const M=window.wp.escapeHtml;function I({children:e,...t}){let n="";return o.Children.toArray(e).forEach((e=>{"string"==typeof e&&""!==e.trim()&&(n+=e)})),(0,o.createElement)("div",{dangerouslySetInnerHTML:{__html:n},...t})}const L=(0,o.createContext)(void 0);L.displayName="ElementContext";const{Provider:P,Consumer:j}=L,H=(0,o.forwardRef)((()=>null)),z=new Set(["string","boolean","number"]),D=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),V=new Set(["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"]),N=new Set(["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),W=new Set(["animation","animationIterationCount","baselineShift","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","cx","cy","fillOpacity","flexGrow","flexShrink","floodOpacity","fontWeight","gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","r","rx","ry","shapeImageThreshold","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","x","y","zIndex","zoom"]);function _(e,t){return t.some((t=>0===e.indexOf(t)))}function F(e){return"key"===e||"children"===e}function U(e,t){return"style"===e?function(e){if(t=e,!1===S(t)||void 0!==(n=t.constructor)&&(!1===S(r=n.prototype)||!1===r.hasOwnProperty("isPrototypeOf")))return e;var t,n,r;let o;const i=e;for(const e in i){const t=i[e];if(null==t)continue;o?o+=";":o="";o+=Y(e)+":"+Z(e,t)}return o}(t):t}const $=["accentHeight","alignmentBaseline","arabicForm","baselineShift","capHeight","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","dominantBaseline","enableBackground","fillOpacity","fillRule","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","horizAdvX","horizOriginX","imageRendering","letterSpacing","lightingColor","markerEnd","markerMid","markerStart","overlinePosition","overlineThickness","paintOrder","panose1","pointerEvents","renderingIntent","shapeRendering","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","textAnchor","textDecoration","textRendering","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","wordSpacing","writingMode","xmlnsXlink","xHeight"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),q=["allowReorder","attributeName","attributeType","autoReverse","baseFrequency","baseProfile","calcMode","clipPathUnits","contentScriptType","contentStyleType","diffuseConstant","edgeMode","externalResourcesRequired","filterRes","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","suppressContentEditableWarning","suppressHydrationWarning","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector"].reduce(((e,t)=>(e[t.toLowerCase()]=t,e)),{}),X=["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","xmlns:xlink"].reduce(((e,t)=>(e[t.replace(":","").toLowerCase()]=t,e)),{});function B(e){switch(e){case"htmlFor":return"for";case"className":return"class"}const t=e.toLowerCase();return q[t]?q[t]:$[t]?A($[t]):X[t]?X[t]:t}function Y(e){return e.startsWith("--")?e:_(e,["ms","O","Moz","Webkit"])?"-"+A(e):A(e)}function Z(e,t){return"number"!=typeof t||0===t||_(e,["--"])||W.has(e)?t:t+"px"}function G(e,t,n={}){if(null==e||!1===e)return"";if(Array.isArray(e))return K(e,t,n);switch(typeof e){case"string":return(0,M.escapeHTML)(e);case"number":return e.toString()}const{type:r,props:i}=e;switch(r){case o.StrictMode:case o.Fragment:return K(i.children,t,n);case I:const{children:e,...r}=i;return J(Object.keys(r).length?"div":null,{...r,dangerouslySetInnerHTML:{__html:e}},t,n)}switch(typeof r){case"string":return J(r,i,t,n);case"function":return r.prototype&&"function"==typeof r.prototype.render?function(e,t,n,r={}){const o=new e(t,r);"function"==typeof o.getChildContext&&Object.assign(r,o.getChildContext());const i=G(o.render(),n,r);return i}(r,i,t,n):G(r(i,n),t,n)}switch(r&&r.$$typeof){case P.$$typeof:return K(i.children,i.value,n);case j.$$typeof:return G(i.children(t||r._currentValue),t,n);case H.$$typeof:return G(r.render(i),t,n)}return""}function J(e,t,n,r={}){let o="";if("textarea"===e&&t.hasOwnProperty("value")){o=K(t.value,n,r);const{value:e,...i}=t;t=i}else t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=K(t.children,n,r));if(!e)return o;const i=function(e){let t="";for(const n in e){const r=B(n);if(!(0,M.isValidAttributeName)(r))continue;let o=U(n,e[n]);if(!z.has(typeof o))continue;if(F(n))continue;const i=V.has(r);if(i&&!1===o)continue;const a=i||_(n,["data-","aria-"])||N.has(r);("boolean"!=typeof o||a)&&(t+=" "+r,i||("string"==typeof o&&(o=(0,M.escapeAttribute)(o)),t+='="'+o+'"'))}return t}(t);return D.has(e)?"<"+e+i+"/>":"<"+e+i+">"+o+"</"+e+">"}function K(e,t,n={}){let r="";const o=Array.isArray(e)?e:[e];for(let e=0;e<o.length;e++){r+=G(o[e],t,n)}return r}var Q=G;(window.wp=window.wp||{}).element=r})();
(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};let n;function o(e){if("string"!=typeof e||-1===e.indexOf("&"))return e;void 0===n&&(n=document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument("").createElement("textarea"):document.createElement("textarea")),n.innerHTML=e;const t=n.textContent??"";return n.innerHTML="",t}e.r(t),e.d(t,{decodeEntities:()=>o}),(window.wp=window.wp||{}).htmlEntities=t})();
!function(){var e={745:function(e,t,n){"use strict";var r=n(850);t.s=r.createRoot,r.hydrateRoot},852:function(e,t,n){"use strict";n.d(t,{j:function(){return s}});var r=n(721),a=n(943),i=n(288),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(a.l))},747:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.S}});var r=n(61),a=n(755);n.o(a,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return a.QueryClientProvider}}),n.o(a,"useQuery")&&n.d(t,{useQuery:function(){return a.useQuery}})},909:function(e,t,n){"use strict";n.d(t,{E:function(){return i},j:function(){return a}});var r=console;function a(){return r}function i(e){r=e}},101:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(288),a=function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}(),i=new a},68:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(721),a=n(943),i=n(288),s=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!i.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(a.l))},61:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(462),a=n(288),i=n(721),s=n(101),o=n(909),c=n(216),l=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,a.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,i=this.state.data,s=(0,a.SE)(e,i);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,i,s))?s=i:!1!==this.options.structuralSharing&&(s=(0,a.Q$)(i,s)),this.dispatch({data:s,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),s},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(a.ZT).catch(a.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,a.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,i,s=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var l;return null==(l=this.retryer)||l.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var u=this.observers.find((function(e){return e.options.queryFn}));u&&this.setOptions(u.options)}var h=(0,a.mc)(this.queryKey),d=(0,a.G9)(),f={queryKey:h,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(d)return s.abortSignalConsumed=!0,d.signal}});var m,p,v={fetchOptions:t,options:this.options,queryKey:h,state:this.state,fetchFn:function(){return s.options.queryFn?(s.abortSignalConsumed=!1,s.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(m=this.options.behavior)||m.onFetch(v)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=v.fetchOptions)?void 0:r.meta)||this.dispatch({type:"fetch",meta:null==(p=v.fetchOptions)?void 0:p.meta}),this.retryer=new c.m4({fn:v.fetchFn,abort:null==d||null==(i=d.abort)?void 0:i.bind(d),onSuccess:function(e){s.setData(e),null==s.cache.config.onSuccess||s.cache.config.onSuccess(e,s),0===s.cacheTime&&s.optionalRemove()},onError:function(e){(0,c.DV)(e)&&e.silent||s.dispatch({type:"error",error:e}),(0,c.DV)(e)||(null==s.cache.config.onError||s.cache.config.onError(e,s),(0,o.j)().error(e)),0===s.cacheTime&&s.optionalRemove()},onFail:function(){s.dispatch({type:"failed"})},onPause:function(){s.dispatch({type:"pause"})},onContinue:function(){s.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),s.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,a;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(a=t.dataUpdatedAt)?a:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return(0,c.DV)(i)&&i.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),u=n(943),h=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,i=t.queryKey,s=null!=(r=t.queryHash)?r:(0,a.Rm)(i,t),o=this.get(s);return o||(o=new l({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(o)),o},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,a.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,a._x)(n,e)}))},n.findAll=function(e,t){var n=(0,a.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,a._x)(n,e)})):this.queries},n.notify=function(e){var t=this;s.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;s.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(u.l),d=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(a.ZT).catch(a.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,o.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new c.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),s.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}(),f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,i.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new d({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;s.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,a.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,a.X7)(e,t)}))},n.notify=function(e){var t=this;s.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return s.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(a.ZT)}))}),Promise.resolve())}))},t}(u.l),m=n(852),p=n(68);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new h,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=m.j.subscribe((function(){m.j.isFocused()&&p.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=p.N.subscribe((function(){m.j.isFocused()&&p.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,a.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,a._v)(e),i=this.defaultQueryOptions(r);return this.queryCache.build(this,i).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return s.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var a=e.queryKey;return[a,r.setQueryData(a,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,a.I6)(e,t)[0],r=this.queryCache;s.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var i=this,o=(0,a.I6)(e,t,n),c=o[0],l=o[1],u=this.queryCache,h=(0,r.Z)({},c,{active:!0});return s.V.batch((function(){return u.findAll(c).forEach((function(e){e.reset()})),i.refetchQueries(h,l)}))},t.cancelQueries=function(e,t,n){var r=this,i=(0,a.I6)(e,t,n),o=i[0],c=i[1],l=void 0===c?{}:c;void 0===l.revert&&(l.revert=!0);var u=s.V.batch((function(){return r.queryCache.findAll(o).map((function(e){return e.cancel(l)}))}));return Promise.all(u).then(a.ZT).catch(a.ZT)},t.invalidateQueries=function(e,t,n){var i,o,c,l=this,u=(0,a.I6)(e,t,n),h=u[0],d=u[1],f=(0,r.Z)({},h,{active:null==(i=null!=(o=h.refetchActive)?o:h.active)||i,inactive:null!=(c=h.refetchInactive)&&c});return s.V.batch((function(){return l.queryCache.findAll(h).forEach((function(e){e.invalidate()})),l.refetchQueries(f,d)}))},t.refetchQueries=function(e,t,n){var i=this,o=(0,a.I6)(e,t,n),c=o[0],l=o[1],u=s.V.batch((function(){return i.queryCache.findAll(c).map((function(e){return e.fetch(void 0,(0,r.Z)({},l,{meta:{refetchPage:null==c?void 0:c.refetchPage}}))}))})),h=Promise.all(u).then(a.ZT);return(null==l?void 0:l.throwOnError)||(h=h.catch(a.ZT)),h},t.fetchQuery=function(e,t,n){var r=(0,a._v)(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);var s=this.queryCache.build(this,i);return s.isStaleByTime(i.staleTime)?s.fetch(i):Promise.resolve(s.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(a.ZT).catch(a.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,a._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,s,o,l,u,h,d=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,f=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,m=null==f?void 0:f.pageParam,p="forward"===(null==f?void 0:f.direction),y="backward"===(null==f?void 0:f.direction),g=(null==(s=e.state.data)?void 0:s.pages)||[],C=(null==(o=e.state.data)?void 0:o.pageParams)||[],b=(0,a.G9)(),E=null==b?void 0:b.signal,w=C,_=!1,T=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},S=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},O=function(t,n,r,a){if(_)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var i={queryKey:e.queryKey,signal:E,pageParam:r,meta:e.meta},s=T(i),o=Promise.resolve(s).then((function(e){return S(t,r,e,a)}));return(0,c.LE)(s)&&(o.cancel=s.cancel),o};if(g.length)if(p){var q=void 0!==m,M=q?m:v(e.options,g);l=O(g,q,M)}else if(y){var R=void 0!==m,N=R?m:(u=e.options,h=g,null==u.getPreviousPageParam?void 0:u.getPreviousPageParam(h[0],h));l=O(g,R,N,!0)}else!function(){w=[];var t=void 0===e.options.getNextPageParam,n=!d||!g[0]||d(g[0],0,g);l=n?O([],t,C[0]):Promise.resolve(S([],C[0],g[0]));for(var r=function(n){l=l.then((function(r){if(!d||!g[n]||d(g[n],n,g)){var a=t?C[n]:v(e.options,r);return O(r,t,a)}return Promise.resolve(S(r,C[n],g[n]))}))},a=1;a<g.length;a++)r(a)}();else l=O([]);var A=l.then((function(e){return{pages:e,pageParams:w}}));return A.cancel=function(){_=!0,null==b||b.abort(),(0,c.LE)(l)&&l.cancel()},A}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(a.ZT).catch(a.ZT)},t.cancelMutations=function(){var e=this,t=s.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(a.ZT).catch(a.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,a.yF)(e)===(0,a.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,a.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,a.yF)(e)===(0,a.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,a.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,a.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:function(e,t,n){"use strict";n.d(t,{DV:function(){return l},LE:function(){return o},m4:function(){return u}});var r=n(852),a=n(68),i=n(288);function s(e){return Math.min(1e3*Math.pow(2,e),3e4)}function o(e){return"function"==typeof(null==e?void 0:e.cancel)}var c=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function l(e){return e instanceof c}var u=function(e){var t,n,l,u,h=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){l=e,u=t}));var f=function(t){h.isResolved||(h.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),l(t))},m=function(t){h.isResolved||(h.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),u(t))};!function l(){if(!h.isResolved){var u;try{u=e.fn()}catch(e){u=Promise.reject(e)}t=function(e){if(!h.isResolved&&(m(new c(e)),null==h.abort||h.abort(),o(u)))try{u.cancel()}catch(e){}},h.isTransportCancelable=o(u),Promise.resolve(u).then(f).catch((function(t){var o,c;if(!h.isResolved){var u=null!=(o=e.retry)?o:3,f=null!=(c=e.retryDelay)?c:s,p="function"==typeof f?f(h.failureCount,t):f,v=!0===u||"number"==typeof u&&h.failureCount<u||"function"==typeof u&&u(h.failureCount,t);!d&&v?(h.failureCount++,null==e.onFail||e.onFail(h.failureCount,t),(0,i.Gh)(p).then((function(){if(!r.j.isFocused()||!a.N.isOnline())return new Promise((function(t){n=t,h.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,h.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?m(t):l()}))):m(t)}}))}}()}},943:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:function(){},288:function(e,t,n){"use strict";n.d(t,{A4:function(){return T},G9:function(){return S},Gh:function(){return _},I6:function(){return h},Kp:function(){return l},PN:function(){return o},Q$:function(){return g},Rm:function(){return m},SE:function(){return s},VS:function(){return C},X7:function(){return f},ZT:function(){return i},_v:function(){return u},_x:function(){return d},mc:function(){return c},sk:function(){return a},to:function(){return v},yF:function(){return p}});var r=n(462),a="undefined"==typeof window;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function o(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e){return Array.isArray(e)?e:[e]}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function h(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function d(e,t){var n=e.active,r=e.exact,a=e.fetching,i=e.inactive,s=e.predicate,o=e.queryKey,c=e.stale;if(w(o))if(r){if(t.queryHash!==m(o,t.options))return!1}else if(!v(t.queryKey,o))return!1;var l=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,i);if("none"===l)return!1;if("all"!==l){var u=t.isActive();if("active"===l&&!u)return!1;if("inactive"===l&&u)return!1}return!("boolean"==typeof c&&t.isStale()!==c||"boolean"==typeof a&&t.isFetching()!==a||s&&!s(t))}function f(e,t){var n=e.exact,r=e.fetching,a=e.predicate,i=e.mutationKey;if(w(i)){if(!t.options.mutationKey)return!1;if(n){if(p(t.options.mutationKey)!==p(i))return!1}else if(!v(t.options.mutationKey,i))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||a&&!a(t))}function m(e,t){return((null==t?void 0:t.queryKeyHashFn)||p)(e)}function p(e){var t;return t=c(e),JSON.stringify(t,(function(e,t){return b(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function v(e,t){return y(c(e),c(t))}function y(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!y(e[n],t[n])}))}function g(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||b(e)&&b(t)){for(var r=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),i=a.length,s=n?[]:{},o=0,c=0;c<i;c++){var l=n?c:a[c];s[l]=g(e[l],t[l]),s[l]===e[l]&&o++}return r===i&&o===r?e:s}return t}function C(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function b(e){if(!E(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!E(n)&&!!n.hasOwnProperty("isPrototypeOf")}function E(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function _(e){return new Promise((function(t){setTimeout(t,e)}))}function T(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function S(){if("function"==typeof AbortController)return new AbortController}},767:function(e,t,n){"use strict";n.d(t,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return a.QueryClientProvider},useQuery:function(){return a.useQuery}});var r=n(747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var a=n(66)},66:function(e,t,n){"use strict";n.d(t,{QueryClientProvider:function(){return m},useQuery:function(){return R}});var r=n(101),a=n(850),i=n.n(a)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(i);var s=n(909),o=console;(0,s.E)(o);var c=n(196),l=n.n(c),u=l().createContext(void 0),h=l().createContext(!1);function d(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=u),window.ReactQueryClientContext):u}var f=function(){var e=l().useContext(d(l().useContext(h)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},m=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,a=e.children;l().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var i=d(r);return l().createElement(h.Provider,{value:r},l().createElement(i.Provider,{value:t},a))},p=n(462),v=n(721),y=n(288),g=n(852),C=n(943),b=n(216),E=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),w(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return _(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return _(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var a=this.hasListeners();a&&T(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!a||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var i=this.computeRefetchInterval();!a||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},a=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return a(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&a("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var a=t.subscribe((function(t){t.isFetching||(a(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,p.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(y.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!y.sk&&!this.currentResult.isStale&&(0,y.PN)(this.options.staleTime)){var t=(0,y.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!y.sk&&!1!==this.options.enabled&&(0,y.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||g.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,a=this.options,i=this.currentResult,o=this.currentResultState,c=this.currentResultOptions,l=e!==r,u=l?e.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,d=e.state,f=d.dataUpdatedAt,m=d.error,p=d.errorUpdatedAt,v=d.isFetching,g=d.status,C=!1,b=!1;if(t.optimisticResults){var E=this.hasListeners(),_=!E&&w(e,t),O=E&&T(e,r,t,a);(_||O)&&(v=!0,f||(g="loading"))}if(t.keepPreviousData&&!d.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==g)n=h.data,f=h.dataUpdatedAt,g=h.status,C=!0;else if(t.select&&void 0!==d.data)if(i&&d.data===(null==o?void 0:o.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(d.data),!1!==t.structuralSharing&&(n=(0,y.Q$)(null==i?void 0:i.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}else n=d.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){var q;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==c?void 0:c.placeholderData))q=i.data;else if(q="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==q)try{q=t.select(q),!1!==t.structuralSharing&&(q=(0,y.Q$)(null==i?void 0:i.data,q)),this.selectError=null}catch(e){(0,s.j)().error(e),this.selectError=e}void 0!==q&&(g="success",n=q,b=!0)}return this.selectError&&(m=this.selectError,n=this.selectResult,p=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:f,error:m,errorUpdatedAt:p,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&"loading"!==g,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:b,isPreviousData:C,isRefetchError:"error"===g&&0!==d.dataUpdatedAt,isStale:S(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,a=n.notifyOnChangePropsExclusions;if(!r&&!a)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var i="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,s=e[r]!==t[r],o=null==i?void 0:i.some((function(e){return e===n})),c=null==a?void 0:a.some((function(e){return e===n}));return s&&!c&&(!i||o)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,y.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,p.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,b.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(C.l);function w(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&_(e,t,t.refetchOnMount)}function _(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&S(e,t)}return!1}function T(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&S(e,n)}function S(e,t){return e.isStaleByTime(t.staleTime)}var O,q=l().createContext((O=!1,{clearReset:function(){O=!1},reset:function(){O=!0},isReset:function(){return O}})),M=function(){return l().useContext(q)};function R(e,t,n){return function(e,t){var n=l().useRef(!1),a=l().useState(0)[1],i=f(),s=M(),o=i.defaultQueryObserverOptions(e);o.optimisticResults=!0,o.onError&&(o.onError=r.V.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=r.V.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=r.V.batchCalls(o.onSettled)),o.suspense&&("number"!=typeof o.staleTime&&(o.staleTime=1e3),0===o.cacheTime&&(o.cacheTime=1)),(o.suspense||o.useErrorBoundary)&&(s.isReset()||(o.retryOnMount=!1));var c,u,h,d=l().useState((function(){return new t(i,o)}))[0],m=d.getOptimisticResult(o);if(l().useEffect((function(){n.current=!0,s.clearReset();var e=d.subscribe(r.V.batchCalls((function(){n.current&&a((function(e){return e+1}))})));return d.updateResult(),function(){n.current=!1,e()}}),[s,d]),l().useEffect((function(){d.setOptions(o,{listeners:!1})}),[o,d]),o.suspense&&m.isLoading)throw d.fetchOptimistic(o).then((function(e){var t=e.data;null==o.onSuccess||o.onSuccess(t),null==o.onSettled||o.onSettled(t,null)})).catch((function(e){s.clearReset(),null==o.onError||o.onError(e),null==o.onSettled||o.onSettled(void 0,e)}));if(m.isError&&!s.isReset()&&!m.isFetching&&(c=o.suspense,u=o.useErrorBoundary,h=[m.error,d.getCurrentQuery()],"function"==typeof u?u.apply(void 0,h):"boolean"==typeof u?u:c))throw m.error;return"tracked"===o.notifyOnChangeProps&&(m=d.trackResult(m,o)),m}((0,y._v)(e,t,n),E)}},196:function(e){"use strict";e.exports=window.React},850:function(e){"use strict";e.exports=window.ReactDOM},462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},721:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return a}})}},t={};function n(r){var a=t[r];if(void 0!==a)return a.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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var a=r.length-1;a>-1&&!e;)e=r[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e+"../"}(),function(){"use strict";var e=window.wp.element,t=n(196),r=()=>(0,e.createElement)("svg",{className:"betterdocs-launch-icon",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("mask",{id:"a",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},(0,e.createElement)("path",{fill:"#fff",d:"M24 0H0v24h24V0Z"}),(0,e.createElement)("path",{fill:"#fff",d:"M13.172 12a1.172 1.172 0 1 1-2.344 0 1.172 1.172 0 0 1 2.344 0ZM17.86 12a1.172 1.172 0 1 1-2.344 0 1.172 1.172 0 0 1 2.343 0ZM8.484 12a1.172 1.172 0 1 1-2.343 0 1.172 1.172 0 0 1 2.343 0Z"})),(0,e.createElement)("g",{mask:"url(#a)"},(0,e.createElement)("mask",{id:"b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0V0Z"})),(0,e.createElement)("g",{mask:"url(#b)"},(0,e.createElement)("path",{stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M12 .938C5.89.938.937 5.89.937 12c0 2.15.615 4.158 1.677 5.856L.938 23.062l5.206-1.676A11.01 11.01 0 0 0 12 23.063c6.11 0 11.063-4.953 11.063-11.063S18.11.938 12 .938Z"}),(0,e.createElement)("path",{fill:"#fff",d:"M13.172 12a1.172 1.172 0 1 1-2.344 0 1.172 1.172 0 0 1 2.344 0ZM17.86 12a1.172 1.172 0 1 1-2.344 0 1.172 1.172 0 0 1 2.343 0ZM8.484 12a1.172 1.172 0 1 1-2.343 0 1.172 1.172 0 0 1 2.343 0Z"})))),a=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:15,className:"betterdocs-launch-icon betterdocs-launch-icon-close"},(0,e.createElement)("path",{d:"M14.793.207a.758.758 0 0 0-.227-.156.774.774 0 0 0-.27-.059.774.774 0 0 0-.269.059.758.758 0 0 0-.226.156L7.5 6.504 1.2.207A.682.682 0 0 0 .702 0a.682.682 0 0 0-.496.207A.682.682 0 0 0 0 .703c0 .188.07.363.207.496L6.504 7.5.207 13.8a.682.682 0 0 0-.207.497c0 .187.07.363.207.496A.682.682 0 0 0 .703 15c.188 0 .363-.07.496-.207L7.5 8.496l6.3 6.297a.682.682 0 0 0 .497.207c.187 0 .363-.07.496-.207a.682.682 0 0 0 .207-.496.682.682 0 0 0-.207-.496L8.496 7.5l6.297-6.3a.758.758 0 0 0 .156-.227.769.769 0 0 0 .051-.27.769.769 0 0 0-.05-.27.758.758 0 0 0-.157-.226Zm0 0",style:{stroke:"none",fillRule:"nonzero",fill:"#fff",fillOpacity:1}})),i=window.wp.hooks;const s=betterdocs,o=s?.BASE_URL,c=(s.IA_NONCE,Boolean(s.HOME_DOCS_SWITCH)),l=Boolean(s.HOME_FAQ_SWITCH),u=s.CHAT,h=Boolean(s.TAB_AI_CHATBOT),d=s.FAQ,f=s.HOME_FAQ,m=s.SEARCH,p=s.SEARCH_LETTER_LIMIT,v=s.ASKFORM,y=v.FILE_UPLOAD_SWITCH,g=s.THANKS,C=s.DOC_CATEGORY,b=C["doc-title"],E=d["faq-title"],w=d["faq-switch"],_=d.faq_content_type,T=d["faq-terms"],S=d["faq-list"],O=d["faq-terms-order"],q=d["faq-terms-order-by"],M=d["faq-list-orderby"],R=d["faq-list-order"],N=C["doc-category-switch"],A=C["doc-terms"],F=C["doc-terms-order"],k=C["doc-terms-order-by"],P=C["doc-subcategory-switch"],x=s?.URL,L=s?.HOME_CONTENT,D=s?.HOME_CONTENT_DOC_CATEGORY_TITLE,Z=s?.HOME_CONTENT_DOCS_TITLE,Q="docs"==L?Z:D,H="docs"==L?"post_type":"taxonomy",I=s?.FEEDBACK?.DISPLAY,V=s?.FEEDBACK?.URL,z=s?.FEEDBACK?.SUCCESS,U=s?.FEEDBACK?.TEXT,j=s.HOME_TITLE,B=s.HOME_SUBTITLE,K=s.RESOURCES_TITLE,$=s.RESOURCES_TAB_TITLE,G=(s.HEADER_ICON,s.HEADER_LOGO),W=s.TAB_HOME_ICON,X=s.TAB_MESSAGE_ICON,Y=s.TAB_RESOURCE_ICON,J=s.LAUNCHER?.open_icon,ee=s.LAUNCHER?.close_icon,te=s.BRANDING?.show,ne=s.HOME_TAB_TITLE,re={home:W?.url,feedback_tab:X?.url,resources:Y?.url};var ae=n=>{let{toogle:s}=n;const[o,c]=(0,t.useState)(void 0),[l,u]=(0,t.useState)(void 0),[h,d]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{(0,i.addAction)("openIconPreviewAction","instant_answer",(e=>{const{img_url:t,preview:n}=e;c(t),d(n)})),(0,i.addAction)("closeIconPreviewAction","instant_answer",(e=>{const{img_url:t,preview:n}=e;u(t),d(n)}))}),[]),!s&&h?null!=o?(0,e.createElement)("img",{src:o,height:25,width:25}):(0,e.createElement)(r,null):s&&h?null!=l?(0,e.createElement)("img",{src:l,height:25,width:25}):(0,e.createElement)(a,null):s&&!h?null!=ee?(0,e.createElement)("img",{src:ee,height:25,width:25}):(0,e.createElement)(a,null):s||h?void 0:null!=J?(0,e.createElement)("img",{src:J,height:25,width:25}):(0,e.createElement)(r,null)},ie=t=>{let{toggleState:n,setToggleState:r}=t;return(0,e.createElement)("div",{className:"betterdocs-ia-launcher-wrapper"},(0,e.createElement)("button",{className:"betterdocs-ia-launcher",onClick:()=>r(!n)},(0,e.createElement)(ae,{toogle:n})))},se=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("g",{clipPath:"url(#a)"},(0,e.createElement)("mask",{id:"b",width:24,height:24,x:0,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"luminance"}},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0V0Z"})),(0,e.createElement)("g",{fill:"#202223",mask:"url(#b)"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M16.242 22.547a6.307 6.307 0 0 1-6.183-5.07l-1.472.292a7.807 7.807 0 0 0 11.61 5.203l3.837 1.061-1.062-3.837A7.807 7.807 0 0 0 17.77 8.587l-.292 1.472a6.307 6.307 0 0 1 4.056 9.613l-.184.283.533 1.927-1.927-.533-.283.184a6.271 6.271 0 0 1-3.43 1.014Z",clipRule:"evenodd"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M-.047 9.164A9.211 9.211 0 1 1 4.5 17.108L-.033 18.36 1.22 13.83A9.172 9.172 0 0 1-.047 9.164Zm9.211-7.71A7.711 7.711 0 0 0 2.662 13.31l.18.281-.724 2.618 2.618-.724.281.18A7.71 7.71 0 1 0 9.164 1.453Z",clipRule:"evenodd"}),(0,e.createElement)("path",{d:"M9.867 14.11H8.461v-1.407h1.406v1.406Z"}),(0,e.createElement)("path",{fillRule:"evenodd",d:"M9.914 10.22v1.077h-1.5V9.56l1.667-1.525a1.36 1.36 0 1 0-2.276-1.003h-1.5a2.86 2.86 0 1 1 4.789 2.11l-1.18 1.079Z",clipRule:"evenodd"}))),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),oe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("g",{fill:"#16CA9E",clipPath:"url(#a)"},(0,e.createElement)("path",{d:"M24 16.242a7.782 7.782 0 0 0-4.268-6.929c-.079 5.71-4.709 10.34-10.419 10.42A7.782 7.782 0 0 0 16.243 24a7.73 7.73 0 0 0 3.947-1.078l3.776 1.044-1.045-3.776A7.73 7.73 0 0 0 24 16.242Z"}),(0,e.createElement)("path",{d:"M18.328 9.164C18.328 4.111 14.218 0 9.164 0 4.111 0 0 4.11 0 9.164c0 1.647.438 3.25 1.27 4.658L.035 18.294l4.472-1.237a9.135 9.135 0 0 0 4.658 1.271c5.053 0 9.164-4.11 9.164-9.164ZM7.758 7.031H6.352A2.816 2.816 0 0 1 9.164 4.22a2.816 2.816 0 0 1 2.813 2.812 2.82 2.82 0 0 1-.915 2.076L9.867 10.2v1.097H8.461V9.58l1.652-1.512a1.408 1.408 0 0 0-.948-2.444c-.776 0-1.407.63-1.407 1.406Zm.703 5.672h1.406v1.406H8.461v-1.406Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),ce=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("g",{clipPath:"url(#a)"},(0,e.createElement)("path",{fill:"#000",d:"m23.4 10.392-.002-.002L13.608.6a2.194 2.194 0 0 0-1.562-.647c-.59 0-1.145.23-1.563.647L.698 10.385a2.212 2.212 0 0 0-.006 3.13 2.197 2.197 0 0 0 1.535.648h.39v7.204a2.589 2.589 0 0 0 2.586 2.586h3.83a.703.703 0 0 0 .703-.703v-5.648c0-.651.53-1.18 1.18-1.18h2.26c.65 0 1.18.529 1.18 1.18v5.648c0 .388.314.703.702.703h3.83a2.589 2.589 0 0 0 2.586-2.586v-7.204h.362c.59 0 1.145-.23 1.563-.648.86-.86.86-2.261.001-3.123Zm-.996 2.13a.798.798 0 0 1-.568.235h-1.065a.703.703 0 0 0-.703.703v7.907c0 .65-.529 1.18-1.18 1.18h-3.127v-4.945a2.589 2.589 0 0 0-2.586-2.586h-2.259a2.59 2.59 0 0 0-2.586 2.586v4.945H5.203c-.65 0-1.18-.53-1.18-1.18V13.46a.703.703 0 0 0-.703-.703H2.273a.797.797 0 0 1-.586-.236.804.804 0 0 1 0-1.136h.001l9.79-9.79a.797.797 0 0 1 .568-.236c.214 0 .416.084.568.236l9.787 9.787a.805.805 0 0 1 .003 1.14Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),le=t=>{let{url:n,active:r}=t;return n?(0,e.createElement)("img",{src:TAB_MESSAGE_ICON?.url,width:"24",height:"24"}):(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("g",{clipPath:"url(#a)"},(0,e.createElement)("path",{fill:"#16CA9E",d:"m23.353 10.439-.002-.002-9.79-9.79A2.194 2.194 0 0 0 12 0c-.59 0-1.145.23-1.563.647L.652 10.432l-.01.01a2.212 2.212 0 0 0 .004 3.12 2.197 2.197 0 0 0 1.534.648h.39v7.204A2.589 2.589 0 0 0 5.156 24h3.83a.703.703 0 0 0 .704-.703v-5.649c0-.65.529-1.18 1.18-1.18h2.259c.65 0 1.18.53 1.18 1.18v5.649c0 .388.314.703.702.703h3.83a2.589 2.589 0 0 0 2.587-2.586V14.21h.361c.59 0 1.145-.23 1.563-.648.86-.86.86-2.261 0-3.123Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))},ue=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("g",{fill:"#000",clipPath:"url(#a)"},(0,e.createElement)("path",{d:"M2.768 18.719a4.668 4.668 0 0 1-2.296-.603.723.723 0 0 1-.288-1.013c.725-1.16.987-2.576.655-3.908C.495 11.815-.003 10.651 0 9.19.013 4.06 4.282-.098 9.406.002c4.949.1 9.027 4.26 9.027 9.21 0 6.465-6.775 11.004-12.757 8.508-.824.647-1.86.999-2.908.999Zm-.975-1.579c1.127.35 2.394.07 3.263-.77a.713.713 0 0 1 .803-.13c5.121 2.449 11.149-1.39 11.149-7.028 0-4.208-3.424-7.7-7.631-7.785-4.336-.086-7.94 3.426-7.951 7.766-.003 1.388.538 2.498.834 3.814a6.362 6.362 0 0 1-.467 4.133Z"}),(0,e.createElement)("path",{d:"M21.232 24a4.734 4.734 0 0 1-2.908-1c-3.181 1.328-6.965.724-9.573-1.529a.713.713 0 0 1 .931-1.079c2.314 1.998 5.702 2.447 8.459 1.13a.713.713 0 0 1 .803.13 3.305 3.305 0 0 0 3.263.77 6.335 6.335 0 0 1-.248-4.892c.41-.968.618-1.996.615-3.056-.004-1.87-.626-3.599-1.798-5.001a.713.713 0 1 1 1.094-.914A9.26 9.26 0 0 1 24 14.47a9.15 9.15 0 0 1-.719 3.594c-.503 1.459-.272 3.02.535 4.32a.723.723 0 0 1-.288 1.013 4.67 4.67 0 0 1-2.296.603ZM9.217 10.375a1.128 1.128 0 1 0 0-2.255 1.128 1.128 0 0 0 0 2.255ZM5.061 10.375a1.128 1.128 0 1 0 0-2.255 1.128 1.128 0 0 0 0 2.255ZM13.373 10.375a1.128 1.128 0 1 0 0-2.255 1.128 1.128 0 0 0 0 2.255Z"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),he=()=>(0,e.createElement)("svg",{width:21,height:24,viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8.55 19.4v-.75H5.6c-.964 0-1.612-.002-2.095-.066-.461-.063-.659-.17-.789-.3l-.53.53.53-.53c-.13-.13-.237-.328-.3-.79-.064-.482-.066-1.13-.066-2.094V9.5c0-.964.002-1.612.067-2.095.062-.461.169-.659.3-.789s.327-.237.788-.3c.483-.064 1.131-.066 2.095-.066h9c.964 0 1.612.002 2.095.067.461.062.659.169.789.3l.53-.531-.53.53c.13.13.237.328.3.79.064.482.066 1.13.066 2.094v5.9c0 .964-.002 1.612-.067 2.095-.062.461-.169.659-.3.789s-.327.237-.788.3c-.483.064-1.131.066-2.095.066h-1.743l-.21.182-4.097 3.531z",stroke:"#344054",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M6.2 14c2.3 2 5.3 2 7.8 0",stroke:"#344054",strokeWidth:"1.6"}),(0,e.createElement)("path",{d:"M7 10.1v1.5m6.2-1.5v1.5M10.1 7V1",stroke:"#344054",strokeWidth:"1.5"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.6 13.2v-3.1H0v3.1zm17-3.1v3.1h1.6v-3.1z",fill:"#344054"}),(0,e.createElement)("circle",{cx:"10.1",cy:"1.5",r:"1.5",fill:"#344054"})),de=()=>(0,e.createElement)("svg",{width:22,height:24,viewBox:"0 0 22 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("mask",{id:"a",fill:"#fff"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 5.5h9c1.886 0 2.829 0 3.415.586S19.5 7.614 19.5 9.5v5.9c0 1.886 0 2.828-.585 3.414-.586.586-1.529.586-3.415.586h-1.464L8.7 24v-4.6H6.5c-1.885 0-2.828 0-3.414-.586S2.5 17.286 2.5 15.4V9.5c0-1.886 0-2.828.586-3.414S4.615 5.5 6.5 5.5m.075 9.104c2.613 2.272 6.046 2.244 8.825.02l-1-1.249c-2.22 1.777-4.788 1.75-6.775.021zM7.15 11.6v-1.5h1.5v1.5zm6.2-1.5v1.5h1.5v-1.5z"})),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 5.5h9c1.886 0 2.829 0 3.415.586S19.5 7.614 19.5 9.5v5.9c0 1.886 0 2.828-.585 3.414-.586.586-1.529.586-3.415.586h-1.464L8.7 24v-4.6H6.5c-1.885 0-2.828 0-3.414-.586S2.5 17.286 2.5 15.4V9.5c0-1.886 0-2.828.586-3.414S4.615 5.5 6.5 5.5m.075 9.104c2.613 2.272 6.046 2.244 8.825.02l-1-1.249c-2.22 1.777-4.788 1.75-6.775.021zM7.15 11.6v-1.5h1.5v1.5zm6.2-1.5v1.5h1.5v-1.5z",fill:"#00B682"}),(0,e.createElement)("path",{d:"m18.915 6.086-1.061 1.06zm0 12.728-1.061-1.06zm-4.879.586v-1.5h-.557l-.422.364zM8.7 24H7.2v3.274l2.48-2.138zm0-4.6h1.5v-1.5H8.7zm-5.614-.586 1.06-1.06zm12.314-4.19.937 1.172 1.172-.937-.938-1.171zm-8.825-.02-1.131-.985-.985 1.132 1.132.985zm7.826-1.229 1.17-.937-.936-1.171-1.171.937zm-6.776.021.985-1.132-1.132-.984-.985 1.132zM7.15 10.1V8.6h-1.5v1.5zm0 1.5h-1.5v1.5h1.5zm1.5-1.5h1.5V8.6h-1.5zm0 1.5v1.5h1.5v-1.5zm4.7 0h-1.5v1.5h1.5zm0-1.5V8.6h-1.5v1.5zm1.5 1.5v1.5h1.5v-1.5zm0-1.5h1.5V8.6h-1.5zM15.5 4h-9v3h9zm4.475 1.025c-.618-.618-1.37-.843-2.08-.938C17.227 3.997 16.4 4 15.5 4v3c.986 0 1.574.003 1.995.06a1.4 1.4 0 0 1 .354.084l.006.003h-.001q-.002-.001 0 0zM21 9.5c0-.9.004-1.727-.086-2.394-.096-.711-.32-1.463-.939-2.08l-2.121 2.12q0 .002 0 0l.003.005.01.02c.017.044.048.141.073.334.057.422.06 1.01.06 1.995zm0 5.9V9.5h-3v5.9zm-1.025 4.475c.618-.618.843-1.37.939-2.08.09-.668.086-1.495.086-2.395h-3c0 .985-.003 1.573-.06 1.995a1.4 1.4 0 0 1-.083.354l-.003.005q0-.002 0 0zM15.5 20.9c.9 0 1.727.003 2.395-.087.71-.095 1.462-.32 2.08-.938l-2.121-2.121q-.002 0 0 0l-.005.002-.02.01c-.044.018-.14.048-.334.074-.421.057-1.01.06-1.995.06zm-1.464 0H15.5v-3h-1.464zM9.68 25.136l5.336-4.6-1.96-2.272-5.335 4.6zM7.2 19.4V24h3v-4.6zm-.7 1.5h2.2v-3H6.5zm-4.475-1.025c.619.618 1.37.843 2.081.938.668.09 1.494.087 2.394.087v-3c-.985 0-1.573-.003-1.994-.06a1.4 1.4 0 0 1-.354-.084l-.006-.003h.001q0 .002 0 0zM1 15.4c0 .9-.003 1.727.087 2.394.096.711.32 1.463.938 2.08l2.122-2.12q-.002-.002 0 0l-.003-.005-.01-.02a1.4 1.4 0 0 1-.074-.334C4.004 16.973 4 16.385 4 15.4zm0-5.9v5.9h3V9.5zm1.025-4.475c-.618.618-.842 1.37-.938 2.08C.997 7.774 1 8.6 1 9.5h3c0-.985.004-1.573.06-1.995a1.4 1.4 0 0 1 .084-.354l.003-.005q-.002.002 0 0zM6.5 4c-.9 0-1.726-.003-2.394.087-.711.095-1.462.32-2.08.938l2.12 2.121h.001-.001l.006-.002.02-.01c.044-.018.14-.048.334-.074C4.927 7.003 5.516 7 6.5 7zm7.963 9.453c-2.257 1.806-4.878 1.78-6.903.019l-1.97 2.264c3.2 2.783 7.444 2.701 10.746.06zm-1.234.86 1 1.249 2.342-1.874-1-1.25zm-6.588.215c1.24 1.079 2.72 1.67 4.283 1.672 1.558.001 3.077-.584 4.414-1.653l-1.874-2.343c-.885.708-1.759.997-2.537.996-.774 0-1.57-.286-2.317-.936zm1.066 1.06 1.05-1.207-2.264-1.969-1.05 1.207zM5.65 10.1v1.5h3v-1.5zm3-1.5h-1.5v3h1.5zm1.5 3v-1.5h-3v1.5zm-3 1.5h1.5v-3h-1.5zm7.7-1.5v-1.5h-3v1.5zm0-1.5h-1.5v3h1.5zm-1.5 0v1.5h3v-1.5zm0 1.5h1.5v-3h-1.5z",mask:"url(#a)"}),(0,e.createElement)("path",{d:"M11 7V1",stroke:"#00B682",strokeWidth:"1.5"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 13.2v-3.1H.9v3.1zm17-3.1v3.1h1.6v-3.1z",fill:"#00B682"}),(0,e.createElement)("circle",{cx:11,cy:"1.5",r:"1.5",fill:"#00B682"})),fe=t=>{let{icon:n,active:r}=t;if(null!=re?.[n])return(0,e.createElement)("img",{src:re[n],width:"24",height:"24"});const a={home:{default:(0,e.createElement)(ce,null),active:(0,e.createElement)(le,null)},feedback_tab:{default:(0,e.createElement)(ue,null),active:(0,e.createElement)(ue,null)},resources:{default:(0,e.createElement)(se,null),active:(0,e.createElement)(oe,null)},chatbot:{default:(0,e.createElement)(he,null),active:(0,e.createElement)(de,null)}};return r?a?.[n]?.active:a?.[n].default},me=(0,t.createContext)(),pe=()=>{const{Tabs:n,setTab:r,activeTabClass:a,setactiveTabClass:i}=(0,t.useContext)(me);return(0,e.createElement)("ul",{className:"betterdocs-ia-tabs"},n.filter((e=>1==e?.showTab&&"tab"==e?.type)).map((t=>(0,e.createElement)("li",{className:a==t?.id?t?.class+" active":t?.class,key:Math.random(),onClick:()=>(e=>{let t=n.find((t=>t?.id==e));"feedback_tab"!=e&&i(e),r(t?.id)})(t?.id)},t?.icon,(0,e.createElement)("p",null,t?.title)))))},ve=()=>{const{selectedTab:n,Tabs:r}=(0,t.useContext)(me),a=r?.find((e=>e.id==n))?.component,i=r?.find((e=>e.id==n))?.require_components,s="home"==n?" home-content":"resources"==n?" resources-content":"";return(0,e.createElement)("div",{className:`betterdocs-ia-main-content${s}`},a&&(0,e.createElement)(a,i))},ye=window.wp.i18n,ge=window.wp.url;const Ce=e=>{let{queryKey:t}=e;const[n,r]=t,{parent:a,taxonomy:i,terms:s,terms_per_page:c,term_id:l,post_type:u,post_id:h,post_ids:d,posts_order:f,posts_orderby:m,posts_per_page:p,terms_orderby:v,terms_order:y}=r;let g="wp/v2/",C={},b={hide_empty:!0};return null!=i?(g+=i,s?.length>0&&(b.include=s.join(",")),null!=a&&0==a&&(b.parent=0),null!=v&&(b.orderby=v),null!=y&&(b.order=y),null!=c&&(b.per_page=c),null!=l&&"doc_category"==i&&(g=g.replace(i,""),g+="docs",b[i]=l),null!=l&&"betterdocs_faq_category"==i&&(g=g.replace(i,""),g+="betterdocs_faq",b[i]=l),fetch(`${o}${(0,ge.addQueryArgs)(g,b)}`,{method:"GET"}).then((e=>e.json()))):null!=u?(g+=u+"/",d?.length>0&&(C.include=d.join(",")),null!=h&&(g+=h),null!=f&&(C.order=f),null!=m&&(C.orderby=m),null!=p&&(C.per_page=p),fetch(`${o}${(0,ge.addQueryArgs)(g,C)}`,{method:"GET"}).then((e=>e.json()))):void 0};var be=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("path",{fill:"#fff",d:"M15.675 21.3 6.9 12.525a.762.762 0 0 1-.175-.25.734.734 0 0 1-.05-.275c0-.1.017-.192.05-.275a.762.762 0 0 1 .175-.25L15.675 2.7a.948.948 0 0 1 .7-.275c.283 0 .517.092.7.275.2.2.3.437.3.712 0 .275-.1.513-.3.713L9.2 12l7.875 7.875c.217.217.317.458.3.725a1.011 1.011 0 0 1-.3.675c-.2.2-.438.3-.712.3a.933.933 0 0 1-.688-.275Z"})),Ee=n=>{let{layout:r}=n;const{Tabs:a,selectedTab:i,setNavigationHistory:s,setTab:o,setactiveTabClass:d,mainWrapperStyleRef:f}=(0,t.useContext)(me);let m="single-doc"==r?"content-icon-back":"header__back header__button";const{current:p}=f,{style:v}=p,y=()=>{const e=a.filter((e=>e.showTab&&"tab"===e.type));return e.length>0?e[0].id:null};return(0,e.createElement)("div",{className:m,onClick:()=>{if("resources"===i){const e=(e=>{const t={home:c||l,resources:N||w,chatbot:h,feedback_tab:u?.show},n=["home","resources","chatbot","feedback_tab"].filter((e=>"resources"!==e&&t[e]));return n.length>0?n[0]:y()})();if(e)return o(e),d(e),s([{id:e}]),void(""!=v?.width&&""!=v?.height&&Object.assign(v,{width:"",height:""}))}s((e=>{let t=[...e];if(t?.length>0){if(t.pop(),t?.length<1)if(c||l)t.push({id:"home"});else if(N||w)t.push({id:"resources"});else if(h)t.push({id:"chatbot"});else if(u?.show)t.push({id:"feedback_tab"});else{const e=y();e&&t.push({id:e})}let e=t[t.length-1];return o(e?.id),"home"!==e?.id&&"resources"!==e?.id&&"chatbot"!==e?.id&&"feedback_tab"!==e?.id||d(e?.id),t}return t})),""!=v?.width&&""!=v?.height&&Object.assign(v,{width:"",height:""})}},(0,e.createElement)(be,null))},we=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},(0,e.createElement)("path",{d:"M7.29289 1.2876C3.98708 1.2876 1.29419 3.98048 1.29419 7.28631C1.29419 10.5921 3.98708 13.2902 7.29289 13.2902C8.7049 13.2902 10.0035 12.7954 11.0299 11.9738L13.5286 14.4712C13.6547 14.5921 13.8231 14.6588 13.9977 14.657C14.1724 14.6552 14.3394 14.5851 14.463 14.4617C14.5866 14.3382 14.657 14.1713 14.659 13.9967C14.661 13.822 14.5946 13.6535 14.4739 13.5272L11.9752 11.0285C12.7975 10.0006 13.2929 8.69995 13.2929 7.28631C13.2929 3.98048 10.5987 1.2876 7.29289 1.2876ZM7.29289 2.62095C9.87811 2.62095 11.9583 4.70108 11.9583 7.28631C11.9583 9.87153 9.87811 11.9569 7.29289 11.9569C4.70766 11.9569 2.62752 9.87153 2.62752 7.28631C2.62752 4.70108 4.70766 2.62095 7.29289 2.62095Z"})),_e=t=>{let{onClick:n}=t;return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",stroke:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",onClick:n},(0,e.createElement)("path",{stroke:"none",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))},Te=t=>{let{searchCallback:n,searchKeyword:r}=t;return(0,e.createElement)("label",{className:"betterdocs-ia-search"},(0,e.createElement)("input",{className:"betterdocs-ia-search-field",onChange:e=>n(e?.target?.value),name:"betterdocs-ia-search",placeholder:m?.SEARCH_PLACEHOLDER,value:r}),(0,e.createElement)("div",{className:"betterdocs-ia-search-icon"},r?.length>0?(0,e.createElement)(_e,{onClick:()=>n("")}):(0,e.createElement)(we,null)))},Se=()=>(0,e.createElement)("svg",{width:"190",viewBox:"0 0 366 85",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M63.063 32.6198H44.0562C42.1943 32.6198 40.6873 31.1128 40.6873 29.2509C40.6873 27.389 42.1943 25.882 44.0562 25.882H63.063C64.9249 25.882 66.4319 27.389 66.4319 29.2509C66.4319 31.1128 64.9249 32.6198 63.063 32.6198Z",fill:"white"}),(0,e.createElement)("path",{d:"M55.4024 45.7461H36.4065C34.5446 45.7461 33.0376 44.2391 33.0376 42.3772C33.0376 40.5152 34.5446 39.0082 36.4065 39.0082H55.4024C57.2643 39.0082 58.7713 40.5152 58.7713 42.3772C58.7713 44.2391 57.2643 45.7461 55.4024 45.7461Z",fill:"white"}),(0,e.createElement)("path",{d:"M47.6545 59.1016H28.6476C26.7857 59.1016 25.2787 57.5946 25.2787 55.7327C25.2787 53.8708 26.7857 52.3638 28.6476 52.3638H47.6545C49.5164 52.3638 51.0234 53.8708 51.0234 55.7327C51.0234 57.5946 49.5164 59.1016 47.6545 59.1016Z",fill:"white"}),(0,e.createElement)("path",{d:"M77.0901 40.2531C76.97 40.002 76.8171 39.7727 76.6479 39.5597L81.7204 30.8235C84.4832 26.0731 84.4996 20.3891 81.7586 15.6224C79.0121 10.8502 74.0925 8 68.5832 8H45.6342C40.2559 8 35.2217 10.8993 32.497 15.5678L10.0831 54.1765C7.32026 58.9269 7.30388 64.6109 10.0449 69.3776C12.7913 74.1498 17.7109 77 23.2202 77H62.5443C69.5497 77 75.9599 73.4618 79.6892 67.5266C83.4185 61.5969 83.8334 54.2857 80.7976 47.9738L77.0901 40.2531ZM29.0189 69.8745H23.2148C20.2936 69.8745 17.6782 68.362 16.2203 65.8285C14.7679 63.3005 14.7734 60.2865 16.2422 57.7639L38.667 19.1496C40.114 16.6653 42.7894 15.1255 45.6451 15.1255H68.5941C71.5153 15.1255 74.1307 16.638 75.5886 19.1715C77.041 21.6995 77.0355 24.7135 75.5668 27.2361L53.131 65.8558C51.7004 68.3293 49.0359 69.869 46.1747 69.869H29.0189V69.8745Z",fill:"white"}),(0,e.createElement)("path",{d:"M124.384 42.1533C125.82 41.4325 126.913 40.4279 127.65 39.1338C128.387 37.8397 128.758 36.3819 128.758 34.7657C128.758 33.5044 128.534 32.3359 128.081 31.2603C127.633 30.1791 126.929 29.2455 125.979 28.4537C125.023 27.662 123.822 27.045 122.364 26.5918C120.906 26.1441 119.17 25.9148 117.155 25.9148H104.433C104.127 25.9148 103.882 26.1605 103.882 26.4662V59.4183C103.882 59.6749 104.056 59.8988 104.302 59.9534C105.672 60.2646 107.212 60.5212 108.927 60.7178C110.816 60.9362 112.82 61.0399 114.944 61.0399C117.641 61.0399 119.951 60.7997 121.878 60.3137C123.8 59.8278 125.378 59.1343 126.601 58.2389C127.824 57.3379 128.725 56.235 129.299 54.9191C129.872 53.6087 130.161 52.1399 130.161 50.5237C130.161 48.4707 129.659 46.7398 128.649 45.3147C127.639 43.895 126.219 42.8412 124.384 42.1587V42.1533ZM110.516 31.9209C110.516 31.6152 110.767 31.364 111.073 31.364H116.129C118.214 31.3312 119.732 31.708 120.688 32.4997C121.638 33.2914 122.118 34.3725 122.118 35.7376C122.118 37.1791 121.643 38.2984 120.688 39.112C119.732 39.9201 118.231 40.3241 116.183 40.3241H111.078C110.772 40.3241 110.521 40.0729 110.521 39.7672V31.9264L110.516 31.9209ZM121.605 54.4004C120.328 55.2631 118.269 55.6944 115.43 55.6944C114.387 55.6944 113.486 55.6671 112.732 55.6125C112.126 55.5689 111.531 55.487 110.952 55.3614C110.701 55.3068 110.521 55.0774 110.521 54.8208V46.0464C110.521 45.7406 110.767 45.4949 111.073 45.4949H116.669C119.006 45.4949 120.732 45.9426 121.851 46.8435C122.965 47.7445 123.522 48.9839 123.522 50.5674C123.522 52.26 122.883 53.5322 121.605 54.4004Z",fill:"white"}),(0,e.createElement)("path",{d:"M273.916 31.2275C272.278 29.715 270.302 28.5466 267.981 27.7221C265.66 26.8976 263.078 26.4826 260.239 26.4826H250.612C250.312 26.4826 250.066 26.7283 250.066 27.0287V60.5213C250.066 60.8216 250.312 61.0673 250.612 61.0673H260.239C263.078 61.0673 265.66 60.6523 267.981 59.8278C270.302 59.0033 272.278 57.8239 273.916 56.2951C275.554 54.7662 276.821 52.9426 277.722 50.8186C278.623 48.6946 279.071 46.3412 279.071 43.7531C279.071 41.165 278.623 38.8062 277.722 36.6877C276.821 34.5637 275.554 32.7509 273.916 31.2384V31.2275ZM271.541 48.5471C270.984 49.9504 270.176 51.1571 269.111 52.1617C268.052 53.1719 266.747 53.9527 265.202 54.5096C263.657 55.0666 261.877 55.345 259.862 55.345H257.257C256.952 55.345 256.706 55.0993 256.706 54.7935V32.7564C256.706 32.4506 256.952 32.2049 257.257 32.2049H259.862C261.877 32.2049 263.657 32.4833 265.202 33.0403C266.747 33.5972 268.052 34.3889 269.111 35.4155C270.171 36.442 270.979 37.6705 271.541 39.112C272.098 40.5535 272.376 42.1314 272.376 43.8623C272.376 45.5932 272.098 47.1548 271.541 48.558V48.5471Z",fill:"white"}),(0,e.createElement)("path",{d:"M305.798 38.7516C304.581 37.5995 303.172 36.7095 301.567 36.0816C299.961 35.4537 298.225 35.137 296.358 35.137C294.49 35.137 292.797 35.4591 291.176 36.1089C289.554 36.7586 288.14 37.665 286.944 38.8335C285.743 40.002 284.793 41.3779 284.089 42.9614C283.384 44.5448 283.029 46.2538 283.029 48.0885C283.029 50.0323 283.373 51.7959 284.061 53.3739C284.749 54.9573 285.699 56.3224 286.917 57.4745C288.135 58.6266 289.554 59.5166 291.176 60.1445C292.797 60.7724 294.528 61.0891 296.358 61.0891C298.187 61.0891 299.912 60.7669 301.517 60.1172C303.123 59.4674 304.531 58.572 305.749 57.4199C306.967 56.2678 307.928 54.8918 308.632 53.292C309.336 51.6922 309.691 49.9558 309.691 48.083C309.691 46.2102 309.347 44.4301 308.659 42.8467C307.971 41.2633 307.021 39.8982 305.804 38.7461L305.798 38.7516ZM302.675 50.8895C302.342 51.7522 301.861 52.5057 301.244 53.1555C300.627 53.8052 299.901 54.3076 299.077 54.6679C298.247 55.0283 297.34 55.2085 296.352 55.2085C295.364 55.2085 294.457 55.0283 293.627 54.6679C292.798 54.3076 292.077 53.8052 291.46 53.1555C290.843 52.5057 290.368 51.7522 290.029 50.8895C289.696 50.0268 289.527 49.0931 289.527 48.083C289.527 47.0729 289.696 46.1392 290.029 45.2765C290.362 44.4138 290.843 43.6603 291.46 43.0105C292.077 42.3608 292.798 41.8584 293.627 41.498C294.457 41.1377 295.364 40.9575 296.352 40.9575C297.34 40.9575 298.247 41.1377 299.077 41.498C299.907 41.8584 300.627 42.3608 301.244 43.0105C301.861 43.6603 302.336 44.4138 302.675 45.2765C303.008 46.1392 303.177 47.0729 303.177 48.083C303.177 49.0931 303.008 50.0268 302.675 50.8895Z",fill:"white"}),(0,e.createElement)("path",{d:"M331.603 54.7226C330.576 55.0447 329.31 55.2085 327.797 55.2085C326.683 55.2085 325.657 55.0283 324.723 54.668C323.789 54.3076 322.976 53.8162 322.293 53.1828C321.611 52.5549 321.081 51.7959 320.699 50.9168C320.322 50.0377 320.131 49.0931 320.131 48.083C320.131 47.0729 320.322 46.0791 320.699 45.1946C321.076 44.3155 321.605 43.5565 322.293 42.9286C322.976 42.3007 323.795 41.8038 324.75 41.4434C325.7 41.0831 326.754 40.9029 327.906 40.9029C329.31 40.9029 330.522 41.0722 331.548 41.4161C331.92 41.5417 332.264 41.6728 332.586 41.8147C332.952 41.9731 333.356 41.7165 333.356 41.3179V36.5402C333.356 36.3109 333.214 36.1034 333.001 36.027C332.264 35.7649 331.461 35.5574 330.582 35.4045C329.555 35.2243 328.414 35.137 327.158 35.137C325.253 35.137 323.473 35.47 321.818 36.1362C320.164 36.8023 318.733 37.7196 317.527 38.8881C316.32 40.0566 315.37 41.4216 314.665 42.9887C313.967 44.5557 313.612 46.2539 313.612 48.0885C313.612 49.9231 313.945 51.5775 314.611 53.161C315.277 54.7444 316.205 56.1204 317.39 57.2888C318.575 58.4573 320 59.3855 321.654 60.0681C323.309 60.7506 325.144 61.0946 327.158 61.0946C328.594 61.0946 329.79 60.9799 330.746 60.7451C331.537 60.5486 332.285 60.3356 332.99 60.1063C333.214 60.0353 333.361 59.8224 333.361 59.5876V54.8754C333.361 54.4878 332.968 54.2257 332.608 54.3731C332.296 54.4987 331.963 54.6188 331.608 54.728L331.603 54.7226Z",fill:"white"}),(0,e.createElement)("path",{d:"M245.299 35.137H244.382C242.438 35.137 240.8 35.5956 239.473 36.5129C238.141 37.4303 237.207 38.5714 236.667 39.9365L236.334 35.7376C236.312 35.4373 236.044 35.208 235.739 35.2353L230.884 35.6775C230.59 35.7048 230.371 35.9615 230.388 36.2563L230.835 42.9013V60.5049C230.835 60.8106 231.081 61.0564 231.387 61.0564H236.76C237.065 61.0564 237.311 60.8106 237.311 60.5049V48.4052C237.311 46.2812 237.884 44.5558 239.036 43.2235C240.189 41.8912 241.805 41.2251 243.891 41.2251C244.338 41.2251 244.77 41.2469 245.174 41.296C245.501 41.3343 245.78 41.0776 245.78 40.75V35.4919C245.78 35.4919 245.758 35.1261 245.294 35.1261L245.299 35.137Z",fill:"white"}),(0,e.createElement)("path",{d:"M223.481 54.0236C222.907 54.3458 222.296 54.6188 221.646 54.8317C220.996 55.0501 220.281 55.2194 219.489 55.345C218.698 55.4706 217.819 55.5361 216.847 55.5361C214.362 55.5361 212.424 54.9682 211.021 53.838C209.617 52.7023 208.809 51.2226 208.591 49.388C209.132 50.0377 209.978 50.5401 211.124 50.9004C212.277 51.2608 213.609 51.441 215.116 51.441C218.496 51.4082 221.111 50.6656 222.968 49.2296C224.819 47.7936 225.747 45.757 225.747 43.1306C225.747 40.8264 224.911 38.9209 223.241 37.4138C221.57 35.9014 219.113 35.1479 215.875 35.1479C213.898 35.1479 212.064 35.4919 210.371 36.1744C208.678 36.8569 207.215 37.8015 205.976 39.0082C204.736 40.2149 203.77 41.6345 203.087 43.2726C202.405 44.9106 202.061 46.6961 202.061 48.6399C202.061 50.5837 202.394 52.2709 203.06 53.8216C203.726 55.3668 204.654 56.6827 205.839 57.7584C207.024 58.8395 208.449 59.664 210.103 60.2427C211.758 60.8161 213.576 61.1054 215.553 61.1054C217.709 61.1054 219.544 60.8816 221.056 60.4284C222.422 60.0243 223.519 59.5657 224.354 59.0579C224.518 58.9596 224.606 58.7849 224.606 58.5938V54.3294C224.606 53.909 224.147 53.6414 223.781 53.8598C223.683 53.9199 223.579 53.9799 223.481 54.0345V54.0236ZM211.07 42.2898C212.435 41.1213 214.035 40.5371 215.869 40.5371C216.95 40.5371 217.813 40.7773 218.457 41.2633C219.107 41.7492 219.429 42.4426 219.429 43.3381C219.429 43.9879 219.238 44.5612 218.862 45.0635C218.485 45.5659 217.873 45.9808 217.027 46.303C216.181 46.6251 215.067 46.8599 213.68 47.0019C212.293 47.1438 210.595 47.1821 208.58 47.1111C208.869 45.0635 209.694 43.4528 211.064 42.2843L211.07 42.2898Z",fill:"white"}),(0,e.createElement)("path",{d:"M355.655 48.225C354.393 46.9855 352.253 46.0409 349.234 45.3912C348.049 45.14 347.077 44.9161 346.318 44.7141C345.564 44.5175 344.975 44.3101 344.565 44.0917C344.15 43.8732 343.866 43.6494 343.702 43.4146C343.539 43.1798 343.462 42.9013 343.462 42.5792C343.462 41.105 344.975 40.3678 347.994 40.3678C349.359 40.3678 350.719 40.5316 352.067 40.8538C352.974 41.0722 353.858 41.3834 354.721 41.782C355.081 41.9458 355.491 41.6783 355.491 41.2797V36.846C355.491 36.6222 355.36 36.4201 355.158 36.3328C354.202 35.9396 353.165 35.6448 352.04 35.4537C350.779 35.2353 349.43 35.1315 347.994 35.1315C346.378 35.1315 344.909 35.3117 343.599 35.6721C342.283 36.0325 341.153 36.5457 340.197 37.2119C339.242 37.878 338.515 38.6861 338.013 39.6416C337.511 40.5972 337.26 41.6455 337.26 42.7976C337.26 44.8506 337.909 46.4777 339.203 47.679C340.497 48.8857 342.55 49.7757 345.351 50.349C346.575 50.5674 347.574 50.7803 348.344 50.9987C349.119 51.2171 349.731 51.4465 350.178 51.6976C350.626 51.9488 350.932 52.2218 351.096 52.5057C351.259 52.7951 351.336 53.1337 351.336 53.5323C351.336 55.0775 349.698 55.8528 346.427 55.8528C344.811 55.8528 343.178 55.6017 341.546 55.0993C340.465 54.7662 339.433 54.3076 338.455 53.7343C338.089 53.5213 337.636 53.7834 337.636 54.2093V58.6976C337.636 58.905 337.751 59.1016 337.937 59.1944C339.209 59.8333 340.53 60.3028 341.895 60.6031C343.369 60.9253 345.007 61.0891 346.804 61.0891C350.042 61.0891 352.641 60.3957 354.601 59.0142C356.561 57.6274 357.544 55.7327 357.544 53.3193C357.544 51.1625 356.916 49.459 355.655 48.2195V48.225Z",fill:"white"}),(0,e.createElement)("path",{d:"M196.158 54.941C195.405 55.2304 194.433 55.3723 193.242 55.3723C192.052 55.3723 190.987 55.0229 190.141 54.3185C189.295 53.6196 188.874 52.402 188.874 50.6766V41.1814H196.961C197.261 41.1814 197.507 40.9357 197.507 40.6354V36.2236C197.507 35.9232 197.261 35.6775 196.961 35.6775H188.874V28.421C188.874 28.0934 188.585 27.8368 188.257 27.875L182.934 28.5466C182.661 28.5793 182.453 28.8141 182.453 29.0871L182.399 51.7522C182.399 54.8809 183.245 57.2179 184.932 58.7685C186.625 60.3138 188.869 61.0891 191.675 61.0891C193.04 61.0891 194.203 60.9635 195.154 60.7124C196.104 60.4612 196.89 60.1554 197.501 59.7951V59.7732V55.1921C197.501 54.7935 197.092 54.5315 196.732 54.6953C196.551 54.7772 196.36 54.8591 196.153 54.941H196.158Z",fill:"white"}),(0,e.createElement)("path",{d:"M176.212 54.941C175.459 55.2304 174.487 55.3723 173.297 55.3723C172.106 55.3723 171.041 55.0229 170.195 54.3185C169.349 53.6196 168.928 52.402 168.928 50.6766V41.1814H176.993C177.293 41.1814 177.539 40.9357 177.539 40.6354V36.229C177.539 35.9287 177.293 35.683 176.993 35.683H168.928V28.4264C168.928 28.0988 168.639 27.8422 168.311 27.8804L162.988 28.552C162.715 28.5848 162.507 28.8196 162.507 29.0926L162.453 51.7577C162.453 54.8864 163.299 57.2233 164.986 58.774C166.679 60.3192 168.923 61.0946 171.729 61.0946C173.094 61.0946 174.257 60.969 175.208 60.7178C176.005 60.5103 176.682 60.2592 177.239 59.9752C177.419 59.8824 177.523 59.6913 177.523 59.4893V55.214C177.523 54.8154 177.113 54.5478 176.747 54.7171C176.578 54.7935 176.392 54.87 176.201 54.9464L176.212 54.941Z",fill:"white"}),(0,e.createElement)("path",{d:"M155.819 54.0236C155.245 54.3458 154.634 54.6188 153.984 54.8317C153.334 55.0501 152.619 55.2194 151.827 55.345C151.035 55.4706 150.156 55.5361 149.184 55.5361C146.7 55.5361 144.762 54.9682 143.358 53.838C141.955 52.7023 141.147 51.2226 140.929 49.388C141.469 50.0377 142.316 50.5401 143.462 50.9004C144.614 51.2608 145.947 51.441 147.454 51.441C150.833 51.4082 153.449 50.6656 155.305 49.2296C157.156 47.7936 158.085 45.757 158.085 43.1306C158.085 40.8264 157.249 38.9209 155.578 37.4138C153.908 35.9014 151.45 35.1479 148.213 35.1479C146.236 35.1479 144.401 35.4919 142.709 36.1744C141.016 36.8569 139.553 37.8015 138.313 39.0082C137.074 40.2149 136.107 41.6345 135.425 43.2726C134.742 44.9106 134.398 46.6961 134.398 48.6399C134.398 50.5837 134.731 52.2709 135.398 53.8216C136.064 55.3668 136.992 56.6827 138.177 57.7584C139.362 58.8395 140.787 59.664 142.441 60.2427C144.096 60.8161 145.914 61.1054 147.89 61.1054C150.047 61.1054 151.882 60.8816 153.394 60.4284C154.765 60.0189 155.868 59.5602 156.703 59.0524C156.861 58.9541 156.954 58.7794 156.954 58.5883V54.3185C156.954 53.898 156.496 53.6305 156.135 53.8489C156.032 53.9144 155.928 53.9745 155.824 54.0345L155.819 54.0236ZM143.408 42.2898C144.773 41.1213 146.372 40.5371 148.207 40.5371C149.288 40.5371 150.151 40.7773 150.795 41.2633C151.445 41.7492 151.767 42.4426 151.767 43.3381C151.767 43.9879 151.576 44.5612 151.199 45.0635C150.823 45.5659 150.211 45.9808 149.365 46.303C148.518 46.6251 147.404 46.8599 146.018 47.0019C144.631 47.1438 142.933 47.1821 140.918 47.1111C141.207 45.0635 142.032 43.4528 143.402 42.2843L143.408 42.2898Z",fill:"white"})),Oe=t=>{let{headingContent:n,headingLayout:r,headingSubContent:a,enableLogo:i,enableSearch:s,extraClass:o,enableBackButton:c,searchCallback:l,searchKeyword:u}=t,h=null!=o?" "+o:"",d=n&&"home-layout"==r?(0,e.createElement)("h4",{className:"betterdocs-title"},n):!n||"resources-list"!=r&&"resources-category"!=r?"":(0,e.createElement)("h4",{className:"betterdocs-header-title"},n),f=i?null==G||Array.isArray(G)?(0,e.createElement)("span",{className:"betterdocs-logo"},(0,e.createElement)(Se,null)):(0,e.createElement)("img",{src:G?.url,width:100,height:20}):"",m=a?(0,e.createElement)("p",{className:"betterdocs-info"},a):"",p=s?(0,e.createElement)(Te,{searchCallback:l,searchKeyword:u}):"",v=c?(0,e.createElement)(Ee,null):"";return(0,e.createElement)("div",{className:`betterdocs-ia-common-header${h}`},(0,e.createElement)("div",{className:"betterdocs-ia-header-group"},f,v,d,m),p)},qe=()=>(0,e.createElement)("div",{className:"generic-loader"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:40,height:40,preserveAspectRatio:"xMidYMid",style:{background:"0 0",shapeRendering:"auto"},viewBox:"0 0 100 100"},(0,e.createElement)("circle",{cx:50,cy:50,r:26,fill:"none",stroke:"#16ca9e",strokeDasharray:"122.52211349000194 42.840704496667314",strokeWidth:10},(0,e.createElement)("animateTransform",{attributeName:"transform",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))),Me=n(767),Re=window.wp.apiFetch,Ne=n.n(Re);function Ae(e,t){const n=`wp/v2/${e}`,r={search:t};return"docs"==e&&(r.orderby="relevance"),Ne()({url:`${o}${(0,ge.addQueryArgs)(n,r)}`})}function Fe(e,t){const n={s:e};t&&(n.no_result=1);try{return Ne()({url:`${o}${(0,ge.addQueryArgs)("betterdocs/v1/search-insert",n)}`})}catch(e){return console.error("Please update BetterDocs free version: ",e),!1}}const ke=(e,n,r)=>{const a=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;const[r,a]=(0,t.useState)(e);return(0,t.useEffect)((()=>{let t=setTimeout((()=>{a(e)}),n);return()=>{clearTimeout(t)}}),[e,n]),r}(e,300),[i,s]=(0,t.useState)([]),[o,c]=(0,t.useState)(!1),[l,u]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{0!==a.length?(c(!0),async function(){var t,i,o;switch(!0){case n&&r:u(!0),t=Ae("docs",a),i=Ae("betterdocs_faq",a),o=await Promise.all([t,i]);let[c,l]=o;a.length>=p&&(c.length>0?await Fe(e,0):await Fe(e,1)),s([...c,...l]),u(!1);break;case n:u(!0),t=await Ae("docs",a),a.length>=p&&(t.length?Fe(a,0):Fe(a,1)),s([...t]),u(!1);break;case r:u(!0),i=await Ae("betterdocs_faq",a),a.length>=p&&(i.length?Fe(a,0):Fe(a,1)),s([...i]),u(!1)}}()):c(!1)}),[a]),[o,l,i]};var Pe=n=>{let{DocList:r}=n;const[a,i]=(0,t.useState)(""),{termInfo:s}=(0,t.useContext)(me),{term_id:o,taxonomy:c,term_name:l}=s,[u,h,d]=ke(a,N,w),{data:f,isLoading:p,isSuccess:v}=(0,Me.useQuery)({queryKey:["taxDocs",{taxonomy:c,term_id:o,terms_per_page:100}],queryFn:Ce,staleTime:1/0});return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Oe,{enableBackButton:!0,headingContent:K,headingLayout:"resources-list",enableSearch:!0,extraClass:"list-page-header",searchCallback:i,searchKeyword:a}),p&&!u&&(0,e.createElement)(qe,null),v&&!u&&(0,e.createElement)(r,{docList:f,headingContent:l,contentType:"post_type"}),h&&u&&(0,e.createElement)(qe,null),!h&&u&&(0,e.createElement)(r,{docList:d,contentType:"post_type",noContent:m?.OOPS,noSubContent:m?.NOT_FOUND}))},xe=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:67,height:14,fill:"none"},(0,e.createElement)("path",{fill:"#00B682",d:"M10.871 5.14H7.293a.634.634 0 1 1 0-1.268h3.578a.634.634 0 1 1 0 1.268ZM9.429 7.611H5.853a.634.634 0 1 1 0-1.268h3.576a.634.634 0 1 1 0 1.268ZM7.97 10.125H4.392a.634.634 0 1 1 0-1.268H7.97a.634.634 0 1 1 0 1.268Z"}),(0,e.createElement)("path",{fill:"#00B682",d:"M13.511 6.577a.685.685 0 0 0-.083-.13l.955-1.645c.52-.894.523-1.964.007-2.861A2.83 2.83 0 0 0 11.91.506H7.59c-1.012 0-1.96.546-2.473 1.424L.898 9.198a2.829 2.829 0 0 0-.007 2.861 2.83 2.83 0 0 0 2.48 1.435h7.402A3.79 3.79 0 0 0 14 11.711a3.79 3.79 0 0 0 .209-3.68l-.698-1.454Zm-9.049 5.576H3.37c-.55 0-1.042-.285-1.317-.762a1.5 1.5 0 0 1 .004-1.518l4.221-7.268a1.526 1.526 0 0 1 1.314-.758h4.32c.55 0 1.042.285 1.316.762a1.5 1.5 0 0 1-.004 1.518l-4.223 7.27c-.27.465-.77.755-1.31.755H4.463Z"}),(0,e.createElement)("path",{fill:"#16342F",d:"M22.413 6.935c.27-.136.476-.325.615-.569.139-.243.208-.518.208-.822 0-.237-.042-.457-.127-.66a1.361 1.361 0 0 0-.396-.528 1.967 1.967 0 0 0-.68-.35 3.358 3.358 0 0 0-.98-.128h-2.396a.104.104 0 0 0-.103.104v6.203c0 .048.033.09.079.1.258.059.548.107.87.144.356.041.733.06 1.133.06.508 0 .942-.044 1.305-.136.362-.091.66-.222.89-.39.23-.17.4-.378.507-.625.108-.247.162-.523.162-.828 0-.386-.094-.712-.284-.98a1.667 1.667 0 0 0-.803-.594v-.001Zm-2.61-1.926c0-.058.047-.105.104-.105h.952c.393-.006.678.065.858.214.18.149.27.352.27.61 0 .27-.09.481-.27.634-.18.152-.462.228-.848.228h-.96a.105.105 0 0 1-.105-.104V5.01l-.002-.001ZM21.89 9.24c-.24.162-.628.244-1.163.244-.196 0-.365-.005-.507-.016a2.392 2.392 0 0 1-.335-.047.104.104 0 0 1-.082-.102V7.668c0-.058.047-.104.104-.104h1.054c.44 0 .765.084.975.254.21.17.315.402.315.7 0 .32-.12.559-.361.722ZM50.56 4.878a3.204 3.204 0 0 0-1.117-.66 4.331 4.331 0 0 0-1.457-.233h-1.812a.103.103 0 0 0-.103.103v6.304c0 .057.047.103.103.103h1.812c.535 0 1.02-.078 1.458-.233a3.168 3.168 0 0 0 1.117-.665c.308-.288.547-.631.716-1.031.17-.4.254-.843.254-1.33 0-.487-.084-.931-.254-1.33-.17-.4-.408-.741-.716-1.026v-.002Zm-.446 3.26a1.87 1.87 0 0 1-.458.68c-.2.19-.445.338-.736.443-.29.104-.626.157-1.005.157h-.49a.103.103 0 0 1-.104-.104V5.166c0-.058.046-.104.104-.104h.49c.38 0 .715.053 1.005.157.291.105.537.254.736.447.2.194.352.425.458.696.104.272.157.569.157.894 0 .326-.053.62-.157.884v-.002ZM56.561 6.294a2.439 2.439 0 0 0-.796-.502 2.668 2.668 0 0 0-.98-.178c-.352 0-.67.06-.976.183a2.407 2.407 0 0 0-1.334 1.29c-.133.298-.2.62-.2.965 0 .366.065.698.195.995.13.298.308.555.537.772.23.217.497.384.802.502.305.119.63.178.975.178s.67-.06.971-.183c.303-.122.568-.29.797-.508a2.406 2.406 0 0 0 .742-1.758c0-.352-.065-.687-.194-.985a2.324 2.324 0 0 0-.538-.772v.001Zm-.588 2.285a1.287 1.287 0 0 1-.269.427 1.243 1.243 0 0 1-.92.386 1.233 1.233 0 0 1-.92-.386 1.303 1.303 0 0 1-.271-.427 1.453 1.453 0 0 1-.095-.528c0-.19.032-.366.095-.528.063-.163.153-.305.27-.427a1.233 1.233 0 0 1 .92-.386 1.233 1.233 0 0 1 .92.386c.117.122.207.264.27.427.063.162.095.338.095.528s-.032.366-.095.528ZM61.419 9.3a2.42 2.42 0 0 1-.717.092c-.21 0-.402-.034-.578-.102a1.41 1.41 0 0 1-.458-.28 1.247 1.247 0 0 1-.3-.426 1.34 1.34 0 0 1-.107-.533c0-.19.036-.377.107-.544.071-.165.17-.308.3-.426a1.41 1.41 0 0 1 .463-.28c.179-.068.377-.102.594-.102.264 0 .492.032.685.097.07.024.135.048.196.075a.103.103 0 0 0 .145-.094v-.899a.102.102 0 0 0-.067-.096 2.773 2.773 0 0 0-.455-.118 3.744 3.744 0 0 0-.645-.05c-.358 0-.694.063-1.005.188-.311.125-.58.298-.808.518-.227.22-.406.477-.538.772a2.329 2.329 0 0 0-.199.96 2.413 2.413 0 0 0 .712 1.732c.223.22.49.394.802.523.312.128.657.193 1.036.193.27 0 .496-.021.675-.066.15-.037.29-.077.423-.12a.102.102 0 0 0 .07-.098V9.33a.103.103 0 0 0-.142-.094 2.348 2.348 0 0 1-.188.067l-.001-.001ZM45.173 5.614h-.172c-.366 0-.675.086-.924.259-.251.173-.427.388-.529.644l-.062-.79a.103.103 0 0 0-.112-.094l-.914.083a.103.103 0 0 0-.094.109l.085 1.25v3.314c0 .058.046.104.103.104h1.012a.104.104 0 0 0 .104-.104V8.112c0-.4.108-.725.324-.976.217-.25.522-.376.914-.376.084 0 .166.004.242.013a.102.102 0 0 0 .114-.102v-.99s-.004-.069-.092-.069l.001.002ZM41.066 9.17c-.108.06-.223.111-.345.151a2.505 2.505 0 0 1-.406.097 3.183 3.183 0 0 1-.498.036c-.467 0-.832-.107-1.096-.32a1.221 1.221 0 0 1-.458-.837c.102.122.262.216.477.284.217.068.468.102.752.102.636-.006 1.128-.146 1.478-.416.348-.27.523-.654.523-1.148 0-.434-.157-.793-.472-1.076-.315-.285-.777-.427-1.386-.427-.373 0-.718.065-1.036.193a2.525 2.525 0 0 0-.828.534 2.393 2.393 0 0 0-.544.802 2.598 2.598 0 0 0-.193 1.01c0 .367.063.684.188.976.126.291.3.539.523.741a2.3 2.3 0 0 0 .803.468c.311.108.654.162 1.026.162.406 0 .751-.042 1.036-.127.257-.076.463-.163.62-.258a.1.1 0 0 0 .048-.088v-.802c0-.08-.086-.13-.155-.089a1.6 1.6 0 0 1-.057.033V9.17ZM38.73 6.96c.257-.22.558-.33.904-.33.203 0 .365.046.487.137a.459.459 0 0 1 .183.39c0 .123-.036.231-.107.326a.754.754 0 0 1-.346.233c-.159.06-.369.105-.63.131a7.16 7.16 0 0 1-.96.021c.055-.385.21-.689.468-.909l.001.001ZM65.946 8.078c-.237-.234-.64-.411-1.209-.534-.223-.047-.406-.09-.548-.127a1.58 1.58 0 0 1-.33-.117.448.448 0 0 1-.163-.128.267.267 0 0 1-.045-.157c0-.278.285-.416.853-.416.257 0 .513.03.767.091.17.041.337.1.5.175.067.03.144-.02.144-.095v-.834a.105.105 0 0 0-.063-.097 2.745 2.745 0 0 0-.586-.165 4.468 4.468 0 0 0-.762-.061c-.304 0-.58.034-.827.102a2.06 2.06 0 0 0-.64.29 1.28 1.28 0 0 0-.412.457c-.094.18-.142.377-.142.594 0 .386.123.693.366.919.244.227.63.395 1.158.502.23.042.418.082.563.123.146.04.26.084.345.131a.443.443 0 0 1 .173.152c.03.055.045.119.045.194 0 .29-.308.436-.924.436-.304 0-.612-.047-.919-.141a2.746 2.746 0 0 1-.581-.257.102.102 0 0 0-.155.09v.844c0 .039.022.076.057.094.24.12.488.208.745.265.277.06.586.091.924.091.61 0 1.099-.13 1.468-.39.369-.261.554-.618.554-1.072 0-.406-.119-.727-.356-.96ZM35.923 9.342a1.554 1.554 0 0 1-.549.081.893.893 0 0 1-.584-.198c-.159-.132-.238-.361-.238-.686V6.752h1.522a.103.103 0 0 0 .103-.103v-.83a.103.103 0 0 0-.103-.103h-1.522V4.35a.104.104 0 0 0-.116-.103l-1.002.126a.103.103 0 0 0-.09.102l-.011 4.267c0 .589.16 1.028.477 1.32.319.291.74.437 1.27.437a2.6 2.6 0 0 0 .654-.07c.179-.048.327-.106.442-.174V9.39a.102.102 0 0 0-.145-.093l-.109.046h.001ZM32.17 9.342a1.553 1.553 0 0 1-.55.081.893.893 0 0 1-.584-.198c-.159-.132-.238-.361-.238-.686V6.752h1.518a.103.103 0 0 0 .103-.103v-.83a.103.103 0 0 0-.103-.102h-1.518V4.35a.104.104 0 0 0-.116-.103l-1.002.127a.103.103 0 0 0-.09.101l-.01 4.267c0 .589.158 1.028.476 1.32.319.291.741.437 1.27.437a2.6 2.6 0 0 0 .654-.07 1.9 1.9 0 0 0 .382-.14.102.102 0 0 0 .054-.092v-.805a.103.103 0 0 0-.146-.093 2.609 2.609 0 0 1-.103.043l.002-.001ZM28.33 9.17a1.93 1.93 0 0 1-.345.151 2.504 2.504 0 0 1-.406.097c-.15.024-.315.036-.498.036-.468 0-.832-.107-1.096-.32a1.221 1.221 0 0 1-.458-.837c.102.122.261.216.477.284.217.068.468.102.751.102.637-.006 1.129-.146 1.478-.416s.523-.654.523-1.148c0-.434-.157-.793-.471-1.076-.315-.285-.777-.427-1.387-.427-.372 0-.717.065-1.036.193a2.524 2.524 0 0 0-.827.534 2.391 2.391 0 0 0-.544.802 2.598 2.598 0 0 0-.193 1.01c0 .367.063.684.188.976.125.291.3.539.523.741a2.3 2.3 0 0 0 .803.468c.311.108.653.162 1.025.162.407 0 .752-.042 1.037-.127.258-.077.465-.164.622-.26a.102.102 0 0 0 .048-.087v-.803c0-.08-.087-.13-.154-.089-.02.013-.04.024-.06.035V9.17Zm-2.336-2.21c.257-.22.558-.33.903-.33.204 0 .366.046.487.137a.459.459 0 0 1 .183.39c0 .123-.036.231-.107.326a.754.754 0 0 1-.345.233c-.16.06-.369.105-.63.131-.261.027-.58.034-.96.021.055-.385.21-.689.468-.909v.001Z"})),Le=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},(0,e.createElement)("path",{fill:"#16CA9E",d:"M23.995.901c-.001-.015-.004-.029-.006-.043L23.98.805l-.013-.05-.011-.045-.017-.048-.016-.045-.02-.043-.022-.045-.024-.04-.026-.044L23.8.402l-.027-.036a.993.993 0 0 0-.065-.073h-.001a.999.999 0 0 0-.073-.066L23.598.2l-.043-.032c-.014-.01-.029-.017-.043-.026l-.04-.024-.046-.022-.043-.02-.045-.016-.048-.017-.045-.012-.05-.012-.053-.008L23.1.005A1.022 1.022 0 0 0 23 0h-7a1 1 0 1 0 0 2h4.586l-7.293 7.293a1 1 0 0 0 1.414 1.414L22 3.414V8a1 1 0 1 0 2 0V1c0-.033-.002-.066-.005-.099ZM9.293 13.293 2 20.586V16a1 1 0 1 0-2 0v7c0 .033.002.066.005.099l.006.043.008.053.013.05.011.045.017.048.016.045.02.043.022.045.024.04.026.044.032.043.027.036c.02.025.042.05.065.072v.001h.001c.024.024.048.046.073.066l.036.027c.014.01.028.022.043.031.014.01.029.018.043.027l.04.024.046.022.043.02.045.016.048.017.045.011c.017.005.033.01.05.013l.053.008.043.006C.934 23.998.967 24 1 24h7a1 1 0 1 0 0-2H3.414l7.293-7.293a1 1 0 1 0-1.414-1.414Z"})),De=()=>{const{mainWrapperStyleRef:n}=(0,t.useContext)(me),{current:r}=n;return(0,e.createElement)("span",{className:"content-icon-expand",onClick:()=>{let{style:e}=r,{width:t,height:n}=e;""===t&&""===n?Object.assign(e,{width:"686px",height:"800px"}):Object.assign(e,{width:"",height:""})}},(0,e.createElement)(Le,null))},Ze=t=>{let{scrollData:n,scrollTitle:r,contentTitle:a}=t;const{current:i}=a,s=null!=i?.offsetHeight?i?.offsetHeight:0;return(0,e.createElement)("div",{className:"betterdocs-ia-singleDoc-header"+(n>s?" on-scroll":"")},(0,e.createElement)(Ee,{layout:"single-doc"}),n>s&&(0,e.createElement)("h2",null,r),(0,e.createElement)(De,null))},Qe=t=>{let{clickHandler:n}=t;return(0,e.createElement)("div",{className:"ia-reaction ia-neutral",onClick:n},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",className:"betterdocs-emo betterdocs-neutral-icon",viewBox:"0 0 20 20","data-reaction":"normal"},(0,e.createElement)("path",{d:"M10 0C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zM6.6 6.4c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5c-.8.1-1.5-.6-1.5-1.4 0-.9.7-1.6 1.5-1.6zm7.7 8H5.7c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h8.5c.3 0 .6.3.6.6.1.3-.2.6-.5.6zm-1-4.9c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5c.1.8-.6 1.5-1.5 1.5z"})))},He=t=>{let{clickHandler:n}=t;return(0,e.createElement)("div",{className:"ia-reaction ia-sad",onClick:n},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",className:"betterdocs-emo betterdocs-sad-icon",viewBox:"0 0 20 20","data-reaction":"sad"},(0,e.createElement)("path",{d:"M10 0C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zm3.3 6.4c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-6.6 0c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5c-.9.1-1.6-.6-1.6-1.4 0-.9.7-1.6 1.6-1.6zm7.5 8.6c-.2 0-.4-.1-.5-.2-.9-1.1-2.2-1.8-3.7-1.8s-2.8.7-3.7 1.7c-.2.2-.3.3-.5.3-.6 0-.9-.7-.5-1.1 1.2-1.3 2.9-2.2 4.7-2.2 1.8 0 3.6.8 4.7 2.2.4.4.1 1.1-.5 1.1z",className:"st-path"})))},Ie=t=>{let{clickHandler:n}=t;return(0,e.createElement)("div",{className:"ia-reaction ia-happy",onClick:n},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",className:"betterdocs-emo betterdocs-happy-icon",viewBox:"0 0 20 20","data-reaction":"happy"},(0,e.createElement)("path",{d:"M10 0C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zm3.3 6.4c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5-1.5-.7-1.5-1.5.7-1.5 1.5-1.5zm-6.6 0c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5c-.9.1-1.6-.6-1.6-1.4 0-.9.7-1.6 1.6-1.6zm3.3 9.9c-2.6 0-5-1.6-5.9-4.1l1.2-.5c.7 1.9 2.6 3.2 4.6 3.2s3.9-1.3 4.6-3.2l1.2.5c-.7 2.4-3.1 4.1-5.7 4.1z"})))},Ve=t=>{let{sadOnclick:n,neutralOnclick:r,happyOnClick:a,reactionText:i}=t,s=U==i?"":" success";return(0,e.createElement)("div",{className:`betterdocs-ia-footer-feedback${s}`},(0,e.createElement)("p",null,i),U==i&&(0,e.createElement)("div",{className:"betterdocs-ia-reaction-group"},(0,e.createElement)(Ie,{clickHandler:a}),(0,e.createElement)(He,{clickHandler:n}),(0,e.createElement)(Qe,{clickHandler:r})))},ze=()=>{const{singleDocInfo:n,feedbackText:r,setFeedbackText:a}=(0,t.useContext)(me),{doc_id:i,post_type:s}=n,[o,c]=(0,t.useState)(0),[l,u]=(0,t.useState)(""),h=(0,t.useRef)(null),{data:d,isLoading:f}=(0,Me.useQuery)({queryKey:["docContent",{post_type:s,post_id:i}],queryFn:Ce,staleTime:1/0});function m(e,t){fetch(`${V}/${e}?feelings=${t}`,{method:"POST"}).then((e=>e.json())).then((e=>{a(e?z:"Oops! Something went wrong with your reaction."),setTimeout((()=>{a(U)}),3e3)}))}return(0,e.createElement)(e.Fragment,null,f?(0,e.createElement)(qe,null):(0,e.createElement)("div",{className:"betterdocs-ia-single-docs-wrapper",onScroll:e=>{c(e?.target?.scrollTop),u(d?.title?.rendered)}},(0,e.createElement)(Ze,{scrollData:o,scrollTitle:l,contentTitle:h}),(0,e.createElement)("div",{className:"betterdocs-ia-singleDoc-content"},"betterdocs_faq"==d?.type&&(0,e.createElement)("h5",{className:"doc-title",dangerouslySetInnerHTML:{__html:d?.title?.rendered},ref:h}),"docs"==d?.type&&(0,e.createElement)("h5",{className:"doc-title",ref:h},(0,e.createElement)("a",{href:d?.link,dangerouslySetInnerHTML:{__html:d?.title?.rendered},target:"_blank"})),(0,e.createElement)("div",{dangerouslySetInnerHTML:{__html:d?.content?.rendered}})),(0,e.createElement)("div",{className:"betterdocs-ia-singleDoc-footer"},I&&"betterdocs_faq"!=s&&(0,e.createElement)(Ve,{sadOnclick:e=>{m(i,"sad")},neutralOnclick:e=>{m(i,"normal")},happyOnClick:e=>{m(i,"happy")},reactionText:r}),te&&(0,e.createElement)("div",{className:"betterdocs-ia-footer-group"},(0,e.createElement)("h5",null,(0,ye.__)("Powered by","betterdocs-pro")),(0,e.createElement)("span",{className:"logoFooter"},(0,e.createElement)("a",{href:"https://betterdocs.co/",target:"_blank"},(0,e.createElement)(xe,null)))))))},Ue=()=>(0,e.createElement)(ze,null),je=n.p+"images/nodoc.c8afc2a7.png",Be=n=>{let{content:r,subContent:a}=n;const{setTab:i}=(0,t.useContext)(me);return(0,e.createElement)("div",{className:"betterdocs-ia-no-doc"},(0,e.createElement)("img",{src:je,alt:"nodoc"}),r&&(0,e.createElement)("h4",null,r),a&&(0,e.createElement)("p",null,a),(0,e.createElement)("button",{onClick:()=>{i("feedback_form")}},(0,ye.__)("Contact Us","betterdocs-pro")))},Ke=n=>{let{DocList:r}=n;const[a,i]=(0,t.useState)(""),[s,o,c]=ke(a,N,w);let l,u,h=[{querykey:"docDefault",queryParams:{taxonomy:"doc_category",terms_per_page:5,terms_order:F,terms_orderby:k,parent:1==P?1:0},queryFn:Ce,queryRenderCondition:N&&0==A.length},{querykey:"docPerPage",queryParams:{taxonomy:"doc_category",terms_per_page:100,terms_order:F,terms_orderby:k,parent:1==P?1:0},queryFn:Ce,queryRenderCondition:N&&A.includes("all")},{querykey:"docTerms",queryParams:{taxonomy:"doc_category",terms:A,terms_order:F,terms_orderby:k},queryFn:Ce,queryRenderCondition:N&&!A.includes("all")&&A.length>0}],d=[{querykey:"faqDefault",queryParams:{post_type:"betterdocs_faq",posts_per_page:5,posts_order:R,posts_orderby:M},queryFn:Ce,queryRenderCondition:w&&"faq-list"===_&&0==S.length},{querykey:"faqAll",queryParams:{post_type:"betterdocs_faq",posts_per_page:100,posts_order:R,posts_orderby:M},queryFn:Ce,queryRenderCondition:w&&"faq-list"===_&&S.includes("all")},{querykey:"faqSpecificList",queryParams:{post_type:"betterdocs_faq",post_ids:S,posts_order:R,posts_orderby:M},queryFn:Ce,queryRenderCondition:w&&"faq-list"===_&&!S.includes("all")},{queryKey:"faqListPerPage",queryParams:{taxonomy:"betterdocs_faq_category",terms_per_page:5,terms_order:O,terms_orderby:q},queryFn:Ce,queryRenderCondition:w&&"faq-group"===_&&0==T.length},{queryKey:"faqListPerPage",queryParams:{taxonomy:"betterdocs_faq_category",terms_per_page:100,terms_order:O,terms_orderby:q},queryFn:Ce,queryRenderCondition:w&&"faq-group"===_&&T.includes("all")},{queryKey:"faqSpecficTerms",queryParams:{taxonomy:"betterdocs_faq_category",terms:T,terms_order:O,terms_orderby:q},queryFn:Ce,queryRenderCondition:w&&"faq-group"===_&&!T.includes("all")}];for(const e of h)if(e?.queryRenderCondition){u=(0,Me.useQuery)({queryKey:[e?.querykey,e?.queryParams],queryFn:e?.queryFn,staleTime:1/0,enabled:N});break}for(const e of d)if(e?.queryRenderCondition){l=(0,Me.useQuery)({queryKey:[e?.querykey,e?.queryParams],queryFn:e?.queryFn,staleTime:1/0,enabled:w});break}return(0,e.createElement)("div",{className:"betterdocs-ia-tab-faq-content"},(0,e.createElement)(Oe,{headingLayout:"resources-category",headingContent:K,enableSearch:!0,extraClass:"resources-page-header",searchCallback:i,searchKeyword:a,enableBackButton:!0}),s&&o&&(0,e.createElement)(qe,null),s&&!o&&(0,e.createElement)(r,{docList:c,contentType:"post_type",borderRadius:!0,noContent:m?.OOPS,noSubContent:m?.NOT_FOUND}),!N&&w&&l?.isLoading&&!s&&(0,e.createElement)(qe,null),!w&&N&&u?.isLoading&&!s&&(0,e.createElement)(qe,null),N&&w&&u?.isLoading&&l?.isLoading&&!s&&(0,e.createElement)(qe,null),N&&!s&&u?.isSuccess&&u?.data?.length>0&&(0,e.createElement)(r,{docList:u?.data,headingContent:b,contentType:"taxonomy",borderRadius:!0}),w&&l?.isSuccess&&!s&&l?.data?.length>0&&(0,e.createElement)(r,{docList:l?.data,headingContent:E,contentType:"faq-list"==_?"post_type":"taxonomy",borderRadius:!0}),N&&w&&0==l?.data?.length&&0==u?.data?.length&&!s&&(0,e.createElement)(Be,{content:(0,ye.__)("No Faq & Doc Categories Available","betterdocs-pro"),subContent:(0,ye.__)("There are no categories available","betterdocs-pro")}),N&&!w&&0==u?.data?.length&&!s&&(0,e.createElement)(Be,{content:(0,ye.__)("No Doc Categories Available","betterdocs-pro"),subContent:(0,ye.__)("There are no categories available","betterdocs-pro")}),!N&&w&&0==l?.data?.length&&!s&&(0,e.createElement)(Be,{content:(0,ye.__)("No FAQ Available","betterdocs-pro"),subContent:(0,ye.__)("There are no FAQs available","betterdocs-pro")}),!N&&!w&&!s&&(0,e.createElement)(Be,{content:(0,ye.__)("No Content Available","betterdocs-pro"),subContent:(0,ye.__)("Please enable Doc Categories or FAQ in settings","betterdocs-pro")}))},$e=n=>{let{DocList:r}=n;const[a,i]=(0,t.useState)(""),[s,o,u]=ke(a,c,!1),[h,d,p]=ke(a,!1,l),{data:v,isLoading:y,isSuccess:g}=(0,Me.useQuery)({queryKey:["homeContent"],queryFn:()=>fetch(x,{method:"GET"}).then((e=>e.json())),staleTime:1/0,enabled:c}),{data:C,isLoading:b,isSuccess:E}=(0,Me.useQuery)({queryKey:["homeFaqContent"],queryFn:()=>fetch(f?.FAQ_URL,{method:"GET"}).then((e=>e.json())),staleTime:1/0,enabled:l});return(0,e.createElement)("div",{className:"betterdocs-ia-tab-home-content"},(0,e.createElement)(Oe,{headingContent:j,headingSubContent:B,headingLayout:"home-layout",enableLogo:!1,enableSearch:!0,extraClass:"home-page-header",searchCallback:i,searchKeyword:a}),(0,e.createElement)("div",{className:"betterdocs-ia-tab-main-content"},(0,e.createElement)("div",{className:"betterdocs-ia-home-content-list"},(c&&y||l&&b)&&!s&&(0,e.createElement)(qe,null),c&&g&&!s&&v?.length>0&&(0,e.createElement)(r,{docList:v,headingContent:Q,borderRadius:!0,contentType:H,noContent:"post_type"==H?(0,ye.__)("No Docs Available","betterdocs-pro"):(0,ye.__)("No Doc Categories Found","betterdocs-pro")}),l&&E&&!s&&C?.length>0&&(0,e.createElement)(r,{docList:C,headingContent:(0,ye.__)("FAQ","betterdocs-pro"),borderRadius:!0,contentType:"faq-list"==f.HOME_FAQ_CONTENT_TYPE?"post_type":"taxonomy",noContent:(0,ye.__)("No FAQ Available","betterdocs-pro")}),!s&&(c&&l&&g&&E&&0==v?.length&&0==C?.length||c&&!l&&g&&0==v?.length||!c&&l&&E&&0==C?.length)&&(0,e.createElement)(Be,{content:c&&l?"post_type"==H?(0,ye.__)("No Docs & FAQ Available","betterdocs-pro"):(0,ye.__)("No Doc Categories & FAQ Found","betterdocs-pro"):c?"post_type"==H?(0,ye.__)("No Docs Available","betterdocs-pro"):(0,ye.__)("No Doc Categories Found","betterdocs-pro"):(0,ye.__)("No FAQ Available","betterdocs-pro")}),(s&&o||h&&d)&&(0,e.createElement)(qe,null),c&&l&&s&&h&&!o&&!d&&u?.length>0&&p?.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r,{docList:u,headingContent:(0,ye.__)(Q,"betterdocs-pro"),borderRadius:!0,contentType:"post_type",noContent:m?.OOPS,noSubContent:m?.NOT_FOUND}),(0,e.createElement)(r,{docList:p,headingContent:(0,ye.__)("FAQ","betterdocs-pro"),borderRadius:!0,contentType:"post_type",noContent:m?.OOPS,noSubContent:m?.NOT_FOUND})),c&&s&&!o&&(l&&h&&!d&&u?.length>0&&0==p?.length||!l&&u?.length>0)&&(0,e.createElement)(r,{docList:u,headingContent:(0,ye.__)(Z,"betterdocs-pro"),borderRadius:!0,contentType:"post_type",noContent:m?.OOPS,noSubContent:m?.NOT_FOUND}),l&&h&&!d&&(c&&s&&!o&&0==u?.length&&p?.length>0||!c&&p?.length>0)&&(0,e.createElement)(r,{docList:p,headingContent:(0,ye.__)("FAQ","betterdocs-pro"),borderRadius:!0,contentType:"post_type",noContent:m?.OOPS,noSubContent:m?.NOT_FOUND}),(c&&s&&!o&&0==u?.length||!c)&&(l&&h&&!d&&0==p?.length||!l)&&(s||h)&&(0,e.createElement)(Be,{content:m?.OOPS,subContent:m?.NOT_FOUND}))))},Ge=window.wp.htmlEntities,We=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:8,height:16,fill:"none"},(0,e.createElement)("path",{fill:"#00B682",d:"M.94.97a.81.81 0 0 0-.514.173.991.991 0 0 0-.332.479 1.126 1.126 0 0 0-.025.608c.048.2.15.38.291.512l5.401 5.242-5.401 5.24a.97.97 0 0 0-.24.304 1.127 1.127 0 0 0-.08.795c.034.132.094.254.173.358.079.105.176.19.286.25a.79.79 0 0 0 .706.03.882.882 0 0 0 .301-.223L7.69 8.744a.997.997 0 0 0 .229-.342 1.113 1.113 0 0 0 0-.838.998.998 0 0 0-.229-.342l-6.184-6A.828.828 0 0 0 .941.97Z"})),Xe=(0,t.memo)((n=>{let{docList:r,headingContent:a,borderRadius:i,contentType:s,noContent:o,noSubContent:c}=n;const{setTab:l,setSingleDocInfo:u,setTermInfo:h}=(0,t.useContext)(me);return(0,e.createElement)(e.Fragment,null,r?.length>0?(0,e.createElement)("div",{className:"betterdocs-ia-docs"+(i?" radius-layout":"")},a&&(0,e.createElement)("div",{className:"betterdocs-ia-docs-heading"},(0,e.createElement)("h5",{className:"doc-title"},(0,ye.__)((0,Ge.decodeEntities)(a),"betterdocs-pro"))),r?.map((t=>(0,e.createElement)("div",{className:"betterdocs-ia-docs-content",onClick:()=>{return e=t,"post_type"==(n=s)&&(l("single_doc_view"),u({doc_id:e?.id,post_type:e.hasOwnProperty("doc_category")?"docs":"betterdocs_faq"})),void("taxonomy"==n&&(l("doc_list"),h({term_name:e?.name,term_id:e?.id,taxonomy:e?.taxonomy})));var e,n},key:Math?.random()},(0,e.createElement)("div",{className:"content-item"},(0,e.createElement)("h6",{className:"content-title",dangerouslySetInnerHTML:{__html:"taxonomy"==s?(0,Ge.decodeEntities)(t?.name):t?.title?.rendered}}),"taxonomy"!=s&&(0,e.createElement)("p",null,(0,Ge.decodeEntities)(t?.excerpt?.rendered?.replace(/<[^>]+>/g,"")?.replace("[&hellip;]",""))?.split(" ")?.slice(0,10)?.join(" "))),(0,e.createElement)("div",{className:"content-icon"},(0,e.createElement)(We,null)))))):(0,e.createElement)(Be,{content:o,subContent:c}))})),Ye=n.p+"images/messageLoader.d2dc7c6a.gif",Je=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},(0,e.createElement)("g",{clipPath:"url(#a)"},(0,e.createElement)("path",{stroke:"#475467",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.667,d:"M13.334 13.333 10 10m0 0-3.333 3.333M10 10v7.5m6.992-2.175A4.167 4.167 0 0 0 15 7.5h-1.05A6.667 6.667 0 1 0 2.5 13.583"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"a"},(0,e.createElement)("path",{fill:"#fff",d:"M0 0h20v20H0z"})))),et=t=>{let{className:n,onClick:r}=t;return(0,e.createElement)("svg",{className:n,xmlns:"http://www.w3.org/2000/svg",width:20,height:25,fill:"none",onClick:r},(0,e.createElement)("path",{stroke:"#667085",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.667,d:"M2.5 5h1.667m0 0H17.5M4.167 5v11.667a1.667 1.667 0 0 0 1.666 1.666h8.334a1.667 1.667 0 0 0 1.666-1.666V5H4.167Zm2.5 0V3.333a1.667 1.667 0 0 1 1.666-1.666h3.334a1.667 1.667 0 0 1 1.666 1.666V5m-5 4.167v5m3.334-5v5"}))},tt=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:25,fill:"none"},(0,e.createElement)("path",{stroke:"#01BAB4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.333,d:"M8.666 1.333H4a1.333 1.333 0 0 0-1.333 1.334v10.666A1.333 1.333 0 0 0 4 14.667h8a1.333 1.333 0 0 0 1.333-1.334V6M8.666 1.333 13.333 6M8.666 1.333V6h4.667"})),nt=(0,t.forwardRef)(((t,n)=>{let{fileName:r,fileSize:a,fileID:i,fileDatas:s,formState:o}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"betterdocs-ia-progress-wrapper",ref:n},(0,e.createElement)("div",{className:"progress-content-wrapper"},(0,e.createElement)("div",{className:"progress-icon-details"},(0,e.createElement)(tt,null),(0,e.createElement)("div",{className:"progress-details"},(0,e.createElement)("h5",{className:"brand-info-title"},r),(0,e.createElement)("span",{className:"brand-info-sub"},a+"mb"))),(0,e.createElement)(et,{className:"progress-remove-icon",onClick:()=>{let e=s.filter(((e,t)=>t!=i));o((t=>({...t,fileData:[...e]})))}}))))})),rt=n.p+"images/msg-receive.fe68435f.png",at=()=>(0,e.createElement)("div",{className:"betterdocs-ia-msg-receive"},(0,e.createElement)("img",{src:rt,alt:"receiveImg"}),(0,e.createElement)("h4",null,(0,ye.__)(g?.title)),(0,e.createElement)("p",null,(0,ye.__)(g?.text))),it=t=>{let{enableBackButton:n,heading:r,subHeading:a}=t,i=n?(0,e.createElement)(Ee,null):"";return(0,e.createElement)("div",{className:"message__header betterdocs-ia-common-header"},(0,e.createElement)("div",{className:"betterdocs-ia-header-group"},i,(0,e.createElement)("div",{className:"header__content"},r?(0,e.createElement)("h4",{className:"betterdocs-header-title"},r):null,a?(0,e.createElement)("p",null,a):null)))},st=()=>{const{feedbackFormInfo:n,setFeedbackFormInfo:r,validation:a,setValidation:i,messageStatus:s,setMessageStatus:o,buttonStatus:c,setButtonStatus:l}=(0,t.useContext)(me),h=(0,t.useRef)(),d=(0,t.useRef)(),{current:f}=h,{name:m,subject:p,message:g,email:C,fileData:b}=n,{message:E,fieldType:w}=a;function _(e){let t,n,r=["png","gif","pdf","jpeg","jpg"];for(let a of e)if(n=a?.name?.split(".")[0],t=a?.name?.split(".")[a?.name?.split(".")?.length-1].toLowerCase(),!r.includes(t))return i((e=>({...e,message:`Only ${r.join(", ")} are allowed`,fieldType:"file"}))),!1;return!0}function T(e){let t;for(let n of e)if(t=Math.ceil(n?.size/1048576),t>5)return i((e=>({...e,message:"Max file size limit 5 mb",fieldType:"file"}))),!1;return!0}function S(e){const{payload:t,type:n}=e,{target:a}=t,{value:i}=a;switch(n){case"setEmail":r((e=>({...e,email:i})));break;case"setName":r((e=>({...e,name:i})));break;case"setSubject":r((e=>({...e,subject:i})));break;case"setMessage":r((e=>({...e,message:i})));break;case"setFileData":r((e=>({...e,fileData:t})))}}return(0,t.useEffect)((()=>{d?.current?.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}),[b.length]),(0,e.createElement)("div",{className:"betterdocs-ia-tab-message-container"},(0,e.createElement)(it,{enableBackButton:!0,heading:(0,ye.__)(u?.subtitle),subHeading:(0,ye.__)(u?.subtitle_two)}),"idle"==s?(0,e.createElement)("div",{className:"betterdocs-ia-feedback-form"},(0,e.createElement)("div",{className:`betterdocs-ia-group betterdocs-ia-email-group ${"email"==w&&"betterdocs-ia-warning-group"}`},(0,e.createElement)("p",null,v?.EMAIL),(0,e.createElement)("input",{className:"ia-input",name:"ia-email",onChange:e=>S({payload:e,type:"setEmail"})}),"email"==w&&(0,e.createElement)("span",{className:"warning-text"},(0,e.createElement)("p",null,E))),(0,e.createElement)("div",{className:`betterdocs-ia-group betterdocs-ia-name-group ${"name"==w&&"betterdocs-ia-warning-group"}`},(0,e.createElement)("p",null,v?.NAME),(0,e.createElement)("input",{className:"ia-input",name:"ia-name",onChange:e=>S({payload:e,type:"setName"})}),"name"==w&&(0,e.createElement)("span",{className:"warning-text"},(0,e.createElement)("p",null,E))),(0,e.createElement)("div",{className:`betterdocs-ia-group betterdocs-ia-subject-group ${"subject"==w&&"betterdocs-ia-warning-group"}`},(0,e.createElement)("p",null,v?.SUBJECT),(0,e.createElement)("input",{className:"ia-input",name:"ia-subject",onChange:e=>S({payload:e,type:"setSubject"})}),"subject"==w&&(0,e.createElement)("span",{className:"warning-text"},(0,e.createElement)("p",null,E))),(0,e.createElement)("div",{className:`betterdocs-ia-group betterdocs-ia-message-group ${"message"==w&&"betterdocs-ia-warning-group"}`},(0,e.createElement)("p",null,v?.TEXTAREA),(0,e.createElement)("textarea",{className:"ia-message",name:"ia-message",onChange:e=>S({payload:e,type:"setMessage"})}),"message"==w&&(0,e.createElement)("span",{className:"warning-text"},(0,e.createElement)("p",null,E))),y&&(0,e.createElement)("div",{className:"betterdocs-ia-attachments-group",onDragOver:function(e){e.preventDefault()},onDragLeave:function(e){e.preventDefault()},onDrop:function(e){e.preventDefault();const{files:t}=e.dataTransfer;_(t)&&T(t)&&(i((e=>({...e,message:"",fieldType:""}))),r((e=>{const{fileData:n}=e;return n.push(...t),{...e,fileData:[...n]}})))}},(0,e.createElement)("button",{onClick:e=>{f?.click()}},(0,e.createElement)(Je,null)),(0,e.createElement)("p",null,(0,ye.__)("Click To Upload Or Drag and Drop","betterdocs-pro")),(0,e.createElement)("p",null,v?.ATTACHMENT),(0,e.createElement)("input",{type:"file",name:"ia-upload-file",multiple:!0,accept:"image/png, image/gif, image/jpeg, image/jpg, .pdf",style:{display:"none"},ref:h,onChange:function(e){const{files:t}=e.target;_(t)&&T(t)&&(""!=E&&i((e=>({...e,message:"",fieldType:""}))),r((e=>{const{fileData:n}=e;return n.push(...t),{...e,fileData:[...n]}})))}})),"file"==w&&(0,e.createElement)("div",{className:"betterdocs-ia-group"+("message"===w?" betterdocs-ia-warning-group":"")},(0,e.createElement)("span",{className:"warning-text file-warning"},(0,e.createElement)("p",null,E))),(0,e.createElement)("div",{className:"betterdocs-ia-submit"},(0,e.createElement)("button",{type:"submit",onClick:()=>function(){let e=/^([a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/;switch(!0){case 0===C.length:return void i((e=>({...e,message:`${v?.EMAIL} Field Must Not Be Empty`,fieldType:"email"})));case!e.test(C):return void i((e=>({...e,message:"Email Address Invalid",fieldType:"email"})));case 0===m.length:return void i((e=>({...e,message:`${v?.NAME} Field Must Not Be Empty`,fieldType:"name"})));case 0===p.length:return void i((e=>({...e,message:`${v?.SUBJECT} Field Must Not Be Empty`,fieldType:"subject"})));case 0===g.length:return void i((e=>({...e,message:"Text Area Field Must Not Be Empty",fieldType:"message"})))}i((e=>({...e,message:"",fieldType:""}))),l("submitting"),function(){let e=new FormData;e.append("name",m),e.append("email",C),e.append("subject",p),e.append("message",g);for(let t=0;t<b.length;t++)e.append("file[]",b[t]);fetch(betterdocs?.ASK_URL,{method:"POST",body:e}).then((e=>e.json())).then((e=>{e&&(o("sent"),setTimeout((()=>{o("idle"),l("idle"),r({email:"",name:"",subject:"",message:"",fileData:[]})}),5e3))})).catch((e=>{console.error(e)})),i((e=>({...e,message:"",fieldType:""})))}()}()},"submitting"==c?(0,e.createElement)("img",{src:Ye,className:"submit-loader",height:20,width:25}):"",(0,e.createElement)("span",null,"idle"==c?v?.SEND:v?.SENDING)))):(0,e.createElement)(at,null),b.length>0&&"idle"==s?b.map(((t,n)=>{let a=t?.name,i=Math.ceil(t?.size/1048576);return(0,e.createElement)(nt,{fileName:a,fileSize:i,key:n,fileID:n,fileDatas:b,formState:r,ref:d})})):"")},ot=()=>{const[n,r]=(0,t.useState)(void 0),[a,s]=(0,t.useState)({taxonomy:"doc_category"}),o=(0,t.useRef)(null),[d,f]=(0,t.useState)([]),[m,p]=(0,t.useState)({}),[v,y]=(0,t.useState)({email:"",name:"",subject:"",message:"",fileData:[]}),[g,C]=(0,t.useState)({message:"",fieldType:""}),[b,E]=(0,t.useState)("home"),[_,T]=(0,t.useState)("idle"),[S,O]=(0,t.useState)("idle"),[q,M]=(0,t.useState)(U),R=[{id:"home",class:"betterdocs-ia-home",type:"tab",title:null!=ne&&""!=ne?ne:(0,ye.__)("Home","betterdocs"),default:!0,icon:(0,e.createElement)(fe,{active:"home"===b,icon:"home"}),component:$e,require_components:{DocList:Xe},showTab:c||l,showTabInComponent:!0},...h?(0,i.applyFilters)("tab_chatbot_preview",[],b):[],{id:"feedback_tab",class:"betterdocs-ia-message",type:"tab",title:""!=u?.label&&null!=u?.label?u?.label:(0,ye.__)("Message","betterdocs"),default:!1,icon:(0,e.createElement)(fe,{active:"feedback_tab"===b,icon:"feedback_tab"}),component:st,showTab:u?.show,showTabInComponent:!1},{id:"resources",class:"betterdocs-ia-faq",type:"tab",title:""!=$&&null!=$?$:(0,ye.__)("Resources","betterdocs"),default:!1,icon:(0,e.createElement)(fe,{active:"resources"===b,icon:"resources"}),component:Ke,require_components:{DocList:Xe},showTab:N||w,showTabInComponent:!0},{id:"feedback_form",class:"",type:"page",title:"",default:!1,icon:"",component:st,showTab:!1},{id:"single_doc_view",class:"",type:"page",title:"",default:!1,icon:"",component:Ue,showTab:!1},{id:"doc_list",class:"",type:"page",title:"",default:!1,icon:"",require_components:{DocList:Xe},component:Pe,showTab:!0,showTabInComponent:!0}],A=()=>{const e=R?.find((e=>e?.default&&e?.showTab));if(e)r(e.id);else{const e=R?.find((e=>e?.showTab));e&&r(e.id)}};(0,t.useEffect)((()=>{A()}),[]),(0,t.useEffect)((()=>{A()}),[c,l,N,w]),(0,t.useEffect)((()=>{d.includes(n)||f((e=>{if("home"===n)return[{id:"home"}];if("resources"===n)return[{id:"resources"}];if("chatbot"===n)return[{id:"chatbot"}];if("resources"!=n&&!d.includes(n)||"home"!=n&&!d.includes(n)){let t=[...e];return t[t.length-1]?.id!=n&&t.push({id:n}),t}}))}),[n]);const F=R?.find((e=>e?.id==n));return(0,e.createElement)("div",{className:"betterdocs-ia-main-wrapper",ref:o},(0,e.createElement)(me.Provider,{value:{Tabs:R,selectedTab:n,setTab:r,termInfo:a,setTermInfo:s,singleDocInfo:m,setSingleDocInfo:p,mainWrapperStyleRef:o,setNavigationHistory:f,navigationHistory:d,feedbackFormInfo:v,setFeedbackFormInfo:y,validation:g,setValidation:C,activeTabClass:b,setactiveTabClass:E,messageStatus:_,setMessageStatus:T,buttonStatus:S,setButtonStatus:O,feedbackText:q,setFeedbackText:M}},(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ve,null),F?.showTab&&F?.showTabInComponent&&R.filter((e=>e?.showTab&&"tab"===e?.type)).length>1?(0,e.createElement)(pe,null):"")))},ct=n(745);const lt=document.getElementById("betterdocs-ia");(0,ct.s)(lt).render((0,e.createElement)((()=>{const[n,r]=(0,t.useState)(!1),a=new Me.QueryClient;return(0,t.useEffect)((()=>{let e=e=>{"Escape"==e?.key&&n&&r(!1)};return document.addEventListener("keydown",e,!1),()=>{document.removeEventListener("keydown",e,!1)}}),[n]),(0,e.createElement)(Me.QueryClientProvider,{client:a},(0,e.createElement)("div",{className:"betterdocs-ia-root"},n&&(0,e.createElement)(ot,null),(0,e.createElement)(ie,{toggleState:n,setToggleState:r})))}),null))}()}();
(()=>{"use strict";var e,r,_,t,a,n={},i={};function __webpack_require__(e){var r=i[e];if(void 0!==r)return r.exports;var _=i[e]={exports:{}};return n[e].call(_.exports,_,_.exports,__webpack_require__),_.exports}__webpack_require__.m=n,e=[],__webpack_require__.O=(r,_,t,a)=>{if(!_){var n=1/0;for(b=0;b<e.length;b++){for(var[_,t,a]=e[b],i=!0,c=0;c<_.length;c++)(!1&a||n>=a)&&Object.keys(__webpack_require__.O).every(e=>__webpack_require__.O[e](_[c]))?_.splice(c--,1):(i=!1,a<n&&(n=a));if(i){e.splice(b--,1);var o=t();void 0!==o&&(r=o)}}return r}a=a||0;for(var b=e.length;b>0&&e[b-1][2]>a;b--)e[b]=e[b-1];e[b]=[_,t,a]},_=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);__webpack_require__.r(a);var n={};r=r||[null,_({}),_([]),_(_)];for(var i=2&t&&e;("object"==typeof i||"function"==typeof i)&&!~r.indexOf(i);i=_(i))Object.getOwnPropertyNames(i).forEach(r=>n[r]=()=>e[r]);return n.default=()=>e,__webpack_require__.d(a,n),a},__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((r,_)=>(__webpack_require__.f[_](e,r),r),[])),__webpack_require__.u=e=>786===e?"397f2d183c19202777d6.bundle.min.js":216===e?"lightbox.570c05c5a283cfb6b223.bundle.min.js":30===e?"text-path.a67c1f3a78d208bc7e1b.bundle.min.js":131===e?"accordion.8b0db5058afeb74622f5.bundle.min.js":707===e?"alert.42cc1d522ef5c60bf874.bundle.min.js":457===e?"counter.12335f45aaa79d244f24.bundle.min.js":234===e?"progress.0ea083b809812c0e3aa1.bundle.min.js":575===e?"tabs.18344b05d8d1ea0702bc.bundle.min.js":775===e?"toggle.2a177a3ef4785d3dfbc5.bundle.min.js":180===e?"video.86d44e46e43d0807e708.bundle.min.js":177===e?"image-carousel.6167d20b95b33386757b.bundle.min.js":212===e?"text-editor.45609661e409413f1cef.bundle.min.js":211===e?"wp-audio.c9624cb6e5dc9de86abd.bundle.min.js":215===e?"nested-tabs.a2401356d329f179475e.bundle.min.js":915===e?"nested-accordion.294d40984397351fd0f5.bundle.min.js":1===e?"contact-buttons.e98d0220ce8c38404e7e.bundle.min.js":336===e?"floating-bars.740d06d17cea5cebdb61.bundle.min.js":557===e?"shared-frontend-handlers.03caa53373b56d3bab67.bundle.min.js":396===e?"shared-editor-handlers.cacdcbed391abf4b48b0.bundle.min.js":768===e?"container-editor-handlers.a2e8e48d28c5544fb183.bundle.min.js":77===e?"section-frontend-handlers.d85ab872da118940910d.bundle.min.js":220===e?"section-editor-handlers.53ffedef32043348b99b.bundle.min.js":304===e?"nested-title-keyboard-handler.2a67d3cc630e11815acc.bundle.min.js":void 0,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},a="elementorFrontend:",__webpack_require__.l=(e,r,_,n)=>{if(t[e])t[e].push(r);else{var i,c;if(void 0!==_)for(var o=document.getElementsByTagName("script"),b=0;b<o.length;b++){var u=o[b];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==a+_){i=u;break}}i||(c=!0,(i=document.createElement("script")).charset="utf-8",__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",a+_),i.src=e),t[e]=[r];var onScriptComplete=(r,_)=>{i.onerror=i.onload=null,clearTimeout(d);var a=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),a&&a.forEach(e=>e(_)),r)return r(_)},d=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=onScriptComplete.bind(null,i.onerror),i.onload=onScriptComplete.bind(null,i.onload),c&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var r=__webpack_require__.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var _=r.getElementsByTagName("script");if(_.length)for(var t=_.length-1;t>-1&&(!e||!/^http(s?):/.test(e));)e=_[t--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={76:0};__webpack_require__.f.j=(r,_)=>{var t=__webpack_require__.o(e,r)?e[r]:void 0;if(0!==t)if(t)_.push(t[2]);else if(76!=r){var a=new Promise((_,a)=>t=e[r]=[_,a]);_.push(t[2]=a);var n=__webpack_require__.p+__webpack_require__.u(r),i=new Error;__webpack_require__.l(n,_=>{if(__webpack_require__.o(e,r)&&(0!==(t=e[r])&&(e[r]=void 0),t)){var a=_&&("load"===_.type?"missing":_.type),n=_&&_.target&&_.target.src;i.message="Loading chunk "+r+" failed.\n("+a+": "+n+")",i.name="ChunkLoadError",i.type=a,i.request=n,t[1](i)}},"chunk-"+r,r)}else e[r]=0},__webpack_require__.O.j=r=>0===e[r];var webpackJsonpCallback=(r,_)=>{var t,a,[n,i,c]=_,o=0;if(n.some(r=>0!==e[r])){for(t in i)__webpack_require__.o(i,t)&&(__webpack_require__.m[t]=i[t]);if(c)var b=c(__webpack_require__)}for(r&&r(_);o<n.length;o++)a=n[o],__webpack_require__.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return __webpack_require__.O(b)},r=self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[];r.forEach(webpackJsonpCallback.bind(null,0)),r.push=webpackJsonpCallback.bind(null,r.push.bind(r))})()})();
(self.webpackChunkelementorFrontend=self.webpackChunkelementorFrontend||[]).push([[941],{1:(e,t,r)=>{"use strict";var n=r(5578),i=r(7255),s=r(5755),o=r(1866),a=r(6029),c=r(5022),l=n.Symbol,u=i("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return s(u,e)||(u[e]=a&&s(l,e)?l[e]:p("Symbol."+e)),u[e]}},41:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},169:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1483),o=r(5755),a=r(382),c=r(2048).CONFIGURABLE,l=r(7268),u=r(4483),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),y=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===g(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||c&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return o(n,"source")||(n.source=v(w,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function toString(){return s(this)&&d(this).source||l(this)},"toString")},274:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},348:(e,t,r)=>{"use strict";var n=r(1807),i=r(1483),s=r(1704),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},382:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},641:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(9655);const Module=function(){const e=jQuery,t=arguments,r=this,n={};let i;this.getItems=function(e,t){if(t){const r=t.split("."),n=r.splice(0,1);if(!r.length)return e[n];if(!e[n])return;return this.getItems(e[n],r.join("."))}return e},this.getSettings=function(e){return this.getItems(i,e)},this.setSettings=function(t,n,s){if(s||(s=i),"object"==typeof t)return e.extend(s,t),r;const o=t.split("."),a=o.splice(0,1);return o.length?(s[a]||(s[a]={}),r.setSettings(o.join("."),n,s[a])):(s[a]=n,r)},this.getErrorMessage=function(e,t){let r;if("forceMethodImplementation"===e)r=`The method '${t}' must to be implemented in the inheritor child.`;else r="An error occurs";return r},this.forceMethodImplementation=function(e){throw new Error(this.getErrorMessage("forceMethodImplementation",e))},this.on=function(t,i){if("object"==typeof t)return e.each(t,function(e){r.on(e,this)}),r;return t.split(" ").forEach(function(e){n[e]||(n[e]=[]),n[e].push(i)}),r},this.off=function(e,t){if(!n[e])return r;if(!t)return delete n[e],r;const i=n[e].indexOf(t);return-1!==i&&(delete n[e][i],n[e]=n[e].filter(e=>e)),r},this.trigger=function(t){const i="on"+t[0].toUpperCase()+t.slice(1),s=Array.prototype.slice.call(arguments,1);r[i]&&r[i].apply(r,s);const o=n[t];return o?(e.each(o,function(e,t){t.apply(r,s)}),r):r},r.__construct.apply(r,t),e.each(r,function(e){const t=r[e];"function"==typeof t&&(r[e]=function(){return t.apply(r,arguments)})}),function(){i=r.getDefaultSettings();const n=t[0];n&&e.extend(!0,i,n)}(),r.trigger("init")};Module.prototype.__construct=function(){},Module.prototype.getDefaultSettings=function(){return{}},Module.prototype.getConstructorID=function(){return this.constructor.name},Module.extend=function(e){const t=jQuery,r=this,child=function(){return r.apply(this,arguments)};return t.extend(child,r),(child.prototype=Object.create(t.extend({},r.prototype,e))).constructor=child,child.__super__=r.prototype,child},e.exports=Module},670:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=function(e,t,r){n?i.f(e,t,s(0,r)):e[t]=r}},751:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724),r(4846),r(9655);class InstanceType{static[Symbol.hasInstance](e){let t=super[Symbol.hasInstance](e);if(e&&!e.constructor.getInstanceType)return t;if(e&&(e.instanceTypes||(e.instanceTypes=[]),t||this.getInstanceType()===e.constructor.getInstanceType()&&(t=!0),t)){const t=this.getInstanceType===InstanceType.getInstanceType?"BaseInstanceType":this.getInstanceType();-1===e.instanceTypes.indexOf(t)&&e.instanceTypes.push(t)}return!t&&e&&(t=e.instanceTypes&&Array.isArray(e.instanceTypes)&&-1!==e.instanceTypes.indexOf(this.getInstanceType())),t}static getInstanceType(){elementorModules.ForceMethodImplementation()}constructor(){let e=new.target;const t=[];for(;e.__proto__&&e.__proto__.name;)t.push(e.__proto__),e=e.__proto__;t.reverse().forEach(e=>this instanceof e)}}t.default=InstanceType},1091:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},1265:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641)),s=n(r(2425)),o=n(r(2946)),a=n(r(3980)),c=n(r(2970)),l=n(r(8685)),u=r(9031),p=r(1462);const d={Module:i.default,ViewModule:s.default,ArgsObject:o.default,ForceMethodImplementation:l.default,utils:{Masonry:a.default,Scroll:c.default},importExport:{createGetInitialState:u.createGetInitialState,customizationDialogsRegistry:p.customizationDialogsRegistry}};window.elementorModules?Object.assign(window.elementorModules,d):window.elementorModules=d;t.default=window.elementorModules},1278:(e,t,r)=>{"use strict";var n=r(4762),i=n({}.toString),s=n("".slice);e.exports=function(e){return s(i(e),8,-1)}},1409:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},1423:(e,t,r)=>{"use strict";var n=r(1409),i=r(1483),s=r(4815),o=r(5022),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,a(e))}},1462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customizationDialogsRegistry=void 0;var n=r(7958);t.customizationDialogsRegistry=new n.BaseRegistry},1483:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},1506:(e,t,r)=>{"use strict";var n=r(2914),i=r(1807),s=r(2293),o=r(8761),a=r(5299),c=r(6960),l=r(4815),u=r(4887),p=r(6665),d=r(6721),h=TypeError,Result=function(e,t){this.stopped=e,this.result=t},f=Result.prototype;e.exports=function(e,t,r){var g,m,v,y,w,b,S,x=r&&r.that,E=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),C=!(!r||!r.INTERRUPTED),O=n(t,x),stop=function(e){return g&&d(g,"normal"),new Result(!0,e)},callFn=function(e){return E?(s(e),C?O(e[0],e[1],stop):O(e[0],e[1])):C?O(e,stop):O(e)};if(I)g=e.iterator;else if(_)g=e;else{if(!(m=p(e)))throw new h(o(e)+" is not iterable");if(a(m)){for(v=0,y=c(e);y>v;v++)if((w=callFn(e[v]))&&l(f,w))return w;return new Result(!1)}g=u(e,m)}for(b=I?e.next:g.next;!(S=i(b,g)).done;){try{w=callFn(S.value)}catch(e){d(g,"throw",e)}if("object"==typeof w&&w&&l(f,w))return w}return new Result(!1)}},1507:e=>{"use strict";e.exports={}},1703:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function trunc(e){var n=+e;return(n>0?r:t)(n)}},1704:(e,t,r)=>{"use strict";var n=r(1483);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},1799:(e,t,r)=>{"use strict";var n=r(382),i=r(8473),s=r(3145);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},1807:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},1831:(e,t,r)=>{"use strict";var n=r(9557),i=r(5578),s=r(2095),o="__core-js_shared__",a=e.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},1851:(e,t,r)=>{"use strict";var n,i,s,o=r(8473),a=r(1483),c=r(1704),l=r(5290),u=r(3181),p=r(7914),d=r(1),h=r(9557),f=d("iterator"),g=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(n=i):g=!0),!c(n)||o(function(){var e={};return n[f].call(e)!==e})?n={}:h&&(n=l(n)),a(n[f])||p(n,f,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},1866:(e,t,r)=>{"use strict";var n=r(4762),i=0,s=Math.random(),o=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},1975:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(9557),p=r(6721),d=r(7486),h=r(5267),f=!u&&!d("filter",function(){}),g=!u&&!f&&h("filter",TypeError),m=u||f||g,v=c(function(){for(var e,t,r=this.iterator,n=this.predicate,s=this.next;;){if(e=o(i(s,r)),this.done=!!e.done)return;if(t=e.value,l(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function filter(e){o(this);try{s(e)}catch(e){p(this,"throw",e)}return g?i(g,this,e):new v(a(this),{predicate:e})}})},1983:(e,t,r)=>{"use strict";var n=r(6721);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},2048:(e,t,r)=>{"use strict";var n=r(382),i=r(5755),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=i(s,"name"),c=a&&"something"===function something(){}.name,l=a&&(!n||n&&o(s,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},2095:(e,t,r)=>{"use strict";var n=r(5578),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},2121:(e,t,r)=>{"use strict";var n=r(4762),i=r(8473),s=r(1278),o=Object,a=n("".split);e.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},2278:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return n(e,i)}},2293:(e,t,r)=>{"use strict";var n=r(1704),i=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not an object")}},2313:(e,t,r)=>{"use strict";var n=r(7914);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},2347:(e,t,r)=>{"use strict";var n=r(3312),i=Object;e.exports=function(e){return i(n(e))}},2355:(e,t,r)=>{"use strict";var n=r(1807),i=r(1704),s=r(1423),o=r(2564),a=r(348),c=r(1),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||s(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!i(r)||s(r))return r;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2425:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(641));t.default=i.default.extend({elements:null,getDefaultElements:()=>({}),bindEvents(){},onInit(){this.initElements(),this.bindEvents()},initElements(){this.elements=this.getDefaultElements()}})},2564:(e,t,r)=>{"use strict";var n=r(8120),i=r(5983);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},2811:(e,t,r)=>{"use strict";var n=r(1409);e.exports=n("document","documentElement")},2890:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);class _default extends elementorModules.ViewModule{getDefaultSettings(){return{selectors:{elements:".elementor-element",nestedDocumentElements:".elementor .elementor-element"},classes:{editMode:"elementor-edit-mode"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$elements:this.$element.find(e.elements).not(this.$element.find(e.nestedDocumentElements))}}getDocumentSettings(e){let t;if(this.isEdit){t={};const e=elementor.settings.page.model;jQuery.each(e.getActiveControls(),r=>{t[r]=e.attributes[r]})}else t=this.$element.data("elementor-settings")||{};return this.getItems(t,e)}runElementsHandlers(){this.elements.$elements.each((e,t)=>setTimeout(()=>elementorFrontend.elementsHandler.runReadyTrigger(t)))}onInit(){this.$element=this.getSettings("$element"),super.onInit(),this.isEdit=this.$element.hasClass(this.getSettings("classes.editMode")),this.isEdit?elementor.on("document:loaded",()=>{elementor.settings.page.model.on("change",this.onSettingsChange.bind(this))}):this.runElementsHandlers()}onSettingsChange(){}}t.default=_default},2914:(e,t,r)=>{"use strict";var n=r(3786),i=r(8120),s=r(274),o=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},2946:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(751)),s=n(r(5213));class ArgsObject extends i.default{static getInstanceType(){return"ArgsObject"}constructor(e){super(),this.args=e}requireArgument(e,t=this.args){if(!Object.prototype.hasOwnProperty.call(t,e))throw Error(`${e} is required.`)}requireArgumentType(e,t,r=this.args){if(this.requireArgument(e,r),typeof r[e]!==t)throw Error(`${e} invalid type: ${t}.`)}requireArgumentInstance(e,t,r=this.args){if(this.requireArgument(e,r),!(r[e]instanceof t||(0,s.default)(r[e],t)))throw Error(`${e} invalid instance.`)}requireArgumentConstructor(e,t,r=this.args){if(this.requireArgument(e,r),r[e].constructor.toString()!==t.prototype.constructor.toString())throw Error(`${e} invalid constructor type.`)}}t.default=ArgsObject},2970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);t.default=class Scroll{static scrollObserver(e){let t=0;const r={root:e.root||null,rootMargin:e.offset||"0px",threshold:((e=0)=>{const t=[];if(e>0&&e<=100){const r=100/e;for(let e=0;e<=100;e+=r)t.push(e/100)}else t.push(0);return t})(e.sensitivity)};return new IntersectionObserver(function handleIntersect(r){const n=r[0].boundingClientRect.y,i=r[0].isIntersecting,s=n<t?"down":"up",o=Math.abs(parseFloat((100*r[0].intersectionRatio).toFixed(2)));e.callback({sensitivity:e.sensitivity,isInViewport:i,scrollPercentage:o,intersectionScrollDirection:s}),t=n},r)}static getElementViewportPercentage(e,t={}){const r=e[0].getBoundingClientRect(),n=t.start||0,i=t.end||0,s=window.innerHeight*n/100,o=window.innerHeight*i/100,a=r.top-window.innerHeight,c=0-a+s,l=r.top+s+e.height()-a+o,u=Math.max(0,Math.min(c/l,1));return parseFloat((100*u).toFixed(2))}static getPageScrollPercentage(e={},t){const r=e.start||0,n=e.end||0,i=t||document.documentElement.scrollHeight-document.documentElement.clientHeight,s=i*r/100,o=i+s+i*n/100;return(document.documentElement.scrollTop+document.body.scrollTop+s)/o*100}}},3005:(e,t,r)=>{"use strict";var n=r(1703);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3145:(e,t,r)=>{"use strict";var n=r(5578),i=r(1704),s=n.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},3181:(e,t,r)=>{"use strict";var n=r(5755),i=r(1483),s=r(2347),o=r(5409),a=r(9441),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=s(e);if(n(t,c))return t[c];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},3242:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function find(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;return s(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},3312:(e,t,r)=>{"use strict";var n=r(5983),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},3392:(e,t,r)=>{"use strict";var n=r(3005),i=Math.max,s=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},3617:(e,t,r)=>{"use strict";var n=r(8612),i=r(5578),s=r(6021),o=r(2293),a=r(1483),c=r(3181),l=r(3864),u=r(670),p=r(8473),d=r(5755),h=r(1),f=r(1851).IteratorPrototype,g=r(382),m=r(9557),v="constructor",y="Iterator",w=h("toStringTag"),b=TypeError,S=i[y],x=m||!a(S)||S.prototype!==f||!p(function(){S({})}),E=function Iterator(){if(s(this,f),c(this)===f)throw new b("Abstract class Iterator not directly constructable")},defineIteratorPrototypeAccessor=function(e,t){g?l(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new b("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};d(f,w)||defineIteratorPrototypeAccessor(w,y),!x&&d(f,v)&&f[v]!==Object||defineIteratorPrototypeAccessor(v,E),E.prototype=f,n({global:!0,constructor:!0,forced:x},{Iterator:E})},3658:(e,t,r)=>{"use strict";var n=r(6742),i=r(4741);e.exports=Object.keys||function keys(e){return n(e,i)}},3786:(e,t,r)=>{"use strict";var n=r(1278),i=r(4762);e.exports=function(e){if("Function"===n(e))return i(e)}},3815:(e,t,r)=>{"use strict";var n=r(2355),i=r(1423);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},3864:(e,t,r)=>{"use strict";var n=r(169),i=r(5835);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},3896:(e,t,r)=>{"use strict";var n=r(382),i=r(8473);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},3980:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(5724);var i=n(r(2425));t.default=i.default.extend({getDefaultSettings:()=>({container:null,items:null,columnsCount:3,verticalSpaceBetween:30}),getDefaultElements(){return{$container:jQuery(this.getSettings("container")),$items:jQuery(this.getSettings("items"))}},run(){var e=[],t=this.elements.$container.position().top,r=this.getSettings(),n=r.columnsCount;t+=parseInt(this.elements.$container.css("margin-top"),10),this.elements.$items.each(function(i){var s=Math.floor(i/n),o=jQuery(this),a=o[0].getBoundingClientRect().height+r.verticalSpaceBetween;if(s){var c=o.position(),l=i%n,u=c.top-t-e[l];u-=parseInt(o.css("margin-top"),10),u*=-1,o.css("margin-top",u+"px"),e[l]+=a}else e.push(a)})}})},3991:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(8120),o=r(2293),a=r(41),c=r(8660),l=r(8901),u=r(6721),p=r(7486),d=r(5267),h=r(9557),f=!h&&!p("map",function(){}),g=!h&&!f&&d("map",TypeError),m=h||f||g,v=c(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return l(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function map(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return g?i(g,this,e):new v(a(this),{mapper:e})}})},4338:(e,t,r)=>{"use strict";var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},4347:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},4364:(e,t,r)=>{"use strict";r(3991)},4483:(e,t,r)=>{"use strict";var n,i,s,o=r(4644),a=r(5578),c=r(1704),l=r(9037),u=r(5755),p=r(1831),d=r(5409),h=r(1507),f="Object already initialized",g=a.TypeError,m=a.WeakMap;if(o||p.state){var v=p.state||(p.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new g(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},s=function(e){return v.has(e)}}else{var y=d("state");h[y]=!0,n=function(e,t){if(u(e,y))throw new g(f);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}e.exports={set:n,get:i,has:s,enforce:function(e){return s(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return r}}}},4644:(e,t,r)=>{"use strict";var n=r(5578),i=r(1483),s=n.WeakMap;e.exports=i(s)&&/native code/.test(String(s))},4741:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4762:(e,t,r)=>{"use strict";var n=r(274),i=Function.prototype,s=i.call,o=n&&i.bind.bind(s,s);e.exports=n?o:function(e){return function(){return s.apply(e,arguments)}}},4815:(e,t,r)=>{"use strict";var n=r(4762);e.exports=n({}.isPrototypeOf)},4846:(e,t,r)=>{"use strict";r(3617)},4887:(e,t,r)=>{"use strict";var n=r(1807),i=r(8120),s=r(2293),o=r(8761),a=r(6665),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return s(n(r,e));throw new c(o(e)+" is not iterable")}},4914:(e,t,r)=>{"use strict";var n=r(1278);e.exports=Array.isArray||function isArray(e){return"Array"===n(e)}},4946:(e,t,r)=>{"use strict";var n=r(6784),i=n(r(1265)),s=n(r(2890)),o=n(r(7955)),a=n(r(8140)),c=n(r(7224)),l=n(r(5633)),u=n(r(9603));i.default.frontend={Document:s.default,tools:{StretchElement:o.default},handlers:{Base:c.default,StretchedElement:a.default,SwiperBase:l.default,CarouselBase:u.default}}},4961:(e,t,r)=>{"use strict";var n=r(382),i=r(1807),s=r(7611),o=r(7738),a=r(5599),c=r(3815),l=r(5755),u=r(1799),p=Object.getOwnPropertyDescriptor;t.f=n?p:function getOwnPropertyDescriptor(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!i(s.f,e,t),e[t])}},5022:(e,t,r)=>{"use strict";var n=r(6029);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5213:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=(e,t)=>{t=Array.isArray(t)?t:[t];for(const r of t)if(e.constructor.name===r.prototype[Symbol.toStringTag])return!0;return!1}},5247:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},5267:(e,t,r)=>{"use strict";var n=r(5578);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},5290:(e,t,r)=>{"use strict";var n,i=r(2293),s=r(5799),o=r(4741),a=r(1507),c=r(2811),l=r(3145),u=r(5409),p="prototype",d="script",h=u("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+d+">"+e+"</"+d+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObject=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;NullProtoObject="undefined"!=typeof document?document.domain&&n?NullProtoObjectViaActiveX(n):(t=l("iframe"),r="java"+d+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(scriptTag("document.F=Object")),e.close(),e.F):NullProtoObjectViaActiveX(n);for(var i=o.length;i--;)delete NullProtoObject[p][o[i]];return NullProtoObject()};a[h]=!0,e.exports=Object.create||function create(e,t){var r;return null!==e?(EmptyConstructor[p]=i(e),r=new EmptyConstructor,EmptyConstructor[p]=null,r[h]=e):r=NullProtoObject(),void 0===t?r:s.f(r,t)}},5299:(e,t,r)=>{"use strict";var n=r(1),i=r(6775),s=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},5409:(e,t,r)=>{"use strict";var n=r(7255),i=r(1866),s=n("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},5578:function(e,t,r){"use strict";var check=function(e){return e&&e.Math===Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof r.g&&r.g)||check("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5599:(e,t,r)=>{"use strict";var n=r(2121),i=r(3312);e.exports=function(e){return n(i(e))}},5633:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(7224));class SwiperHandlerBase extends i.default{getInitialSlide(){const e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0}getSlidesCount(){return this.elements.$slides.length}togglePauseOnHover(e){e?this.elements.$swiperContainer.on({mouseenter:()=>{this.swiper.autoplay.stop()},mouseleave:()=>{this.swiper.autoplay.start()}}):this.elements.$swiperContainer.off("mouseenter mouseleave")}handleKenBurns(){const e=this.getSettings();this.$activeImageBg&&this.$activeImageBg.removeClass(e.classes.kenBurnsActive),this.activeItemIndex=this.swiper?this.swiper.activeIndex:this.getInitialSlide(),this.swiper?this.$activeImageBg=jQuery(this.swiper.slides[this.activeItemIndex]).children("."+e.classes.slideBackground):this.$activeImageBg=jQuery(this.elements.$slides[0]).children("."+e.classes.slideBackground),this.$activeImageBg.addClass(e.classes.kenBurnsActive)}}t.default=SwiperHandlerBase},5724:(e,t,r)=>{"use strict";var n=r(8612),i=r(2347),s=r(6960),o=r(9273),a=r(1091);n({target:"Array",proto:!0,arity:1,forced:r(8473)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function push(e){var t=i(this),r=s(t),n=arguments.length;a(r+n);for(var c=0;c<n;c++)t[r]=arguments[c],r++;return o(t,r),r}})},5755:(e,t,r)=>{"use strict";var n=r(4762),i=r(2347),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return s(i(e),t)}},5799:(e,t,r)=>{"use strict";var n=r(382),i=r(3896),s=r(5835),o=r(2293),a=r(5599),c=r(3658);t.f=n&&!i?Object.defineProperties:function defineProperties(e,t){o(e);for(var r,n=a(t),i=c(t),l=i.length,u=0;l>u;)s.f(e,r=i[u++],n[r]);return e}},5835:(e,t,r)=>{"use strict";var n=r(382),i=r(1799),s=r(3896),o=r(2293),a=r(3815),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";t.f=n?s?function defineProperty(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function defineProperty(e,t,r){if(o(e),t=a(t),o(r),i)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5983:e=>{"use strict";e.exports=function(e){return null==e}},6021:(e,t,r)=>{"use strict";var n=r(4815),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},6029:(e,t,r)=>{"use strict";var n=r(6477),i=r(8473),s=r(5578).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},6145:(e,t,r)=>{"use strict";var n=r(4338),i=r(1483),s=r(1278),o=r(1)("toStringTag"),a=Object,c="Arguments"===s(function(){return arguments}());e.exports=n?s:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?s(t):"Object"===(n=s(t))&&i(t.callee)?"Arguments":n}},6211:(e,t,r)=>{"use strict";r(3242)},6477:(e,t,r)=>{"use strict";var n,i,s=r(5578),o=r(9461),a=s.process,c=s.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},6651:(e,t,r)=>{"use strict";var n=r(5599),i=r(3392),s=r(6960),createMethod=function(e){return function(t,r,o){var a=n(t),c=s(a);if(0===c)return!e&&-1;var l,u=i(o,c);if(e&&r!=r){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},6665:(e,t,r)=>{"use strict";var n=r(6145),i=r(2564),s=r(5983),o=r(6775),a=r(1)("iterator");e.exports=function(e){if(!s(e))return i(e,a)||i(e,"@@iterator")||o[n(e)]}},6721:(e,t,r)=>{"use strict";var n=r(1807),i=r(2293),s=r(2564);e.exports=function(e,t,r){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return i(o),r}},6726:(e,t,r)=>{"use strict";var n=r(5755),i=r(9497),s=r(4961),o=r(5835);e.exports=function(e,t,r){for(var a=i(t),c=o.f,l=s.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},6742:(e,t,r)=>{"use strict";var n=r(4762),i=r(5755),s=r(5599),o=r(6651).indexOf,a=r(1507),c=n([].push);e.exports=function(e,t){var r,n=s(e),l=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&c(u,r);for(;t.length>l;)i(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},6775:e=>{"use strict";e.exports={}},6784:e=>{e.exports=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6960:(e,t,r)=>{"use strict";var n=r(8324);e.exports=function(e){return n(e.length)}},7224:(e,t,r)=>{"use strict";r(5724),r(4846),r(7458),r(6211),r(9655),e.exports=elementorModules.ViewModule.extend({$element:null,editorListeners:null,onElementChange:null,onEditSettingsChange:null,onPageSettingsChange:null,isEdit:null,__construct(e){this.isActive(e)&&(this.$element=e.$element,this.isEdit=this.$element.hasClass("elementor-element-edit-mode"),this.isEdit&&this.addEditorListeners())},isActive:()=>!0,isElementInTheCurrentDocument(){return!!elementorFrontend.isEditMode()&&elementor.documents.currentDocument.id.toString()===this.$element[0].closest(".elementor").dataset.elementorId},findElement(e){var t=this.$element;return t.find(e).filter(function(){return jQuery(this).parent().closest(".elementor-element").is(t)})},getUniqueHandlerID(e,t){return e||(e=this.getModelCID()),t||(t=this.$element),e+t.attr("data-element_type")+this.getConstructorID()},initEditorListeners(){var e=this;if(e.editorListeners=[{event:"element:destroy",to:elementor.channels.data,callback(t){t.cid===e.getModelCID()&&e.onDestroy()}}],e.onElementChange){const t=e.getWidgetType()||e.getElementType();let r="change";"global"!==t&&(r+=":"+t),e.editorListeners.push({event:r,to:elementor.channels.editor,callback(t,r){e.getUniqueHandlerID(r.model.cid,r.$el)===e.getUniqueHandlerID()&&e.onElementChange(t.model.get("name"),t,r)}})}e.onEditSettingsChange&&e.editorListeners.push({event:"change:editSettings",to:elementor.channels.editor,callback(t,r){if(r.model.cid!==e.getModelCID())return;const n=Object.keys(t.changed)[0];e.onEditSettingsChange(n,t.changed[n])}}),["page"].forEach(function(t){var r="on"+t[0].toUpperCase()+t.slice(1)+"SettingsChange";e[r]&&e.editorListeners.push({event:"change",to:elementor.settings[t].model,callback(t){e[r](t.changed)}})})},getEditorListeners(){return this.editorListeners||this.initEditorListeners(),this.editorListeners},addEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.addListenerOnce(e,t.event,t.callback,t.to)})},removeEditorListeners(){var e=this.getUniqueHandlerID();this.getEditorListeners().forEach(function(t){elementorFrontend.removeListeners(e,t.event,null,t.to)})},getElementType(){return this.$element.data("element_type")},getWidgetType(){const e=this.$element.data("widget_type");if(e)return e.split(".")[0]},getID(){return this.$element.data("id")},getModelCID(){return this.$element.data("model-cid")},getElementSettings(e){let t={};const r=this.getModelCID();if(this.isEdit&&r){const e=elementorFrontend.config.elements.data[r],n=e.attributes;let i=n.widgetType||n.elType;n.isInner&&(i="inner-"+i);let s=elementorFrontend.config.elements.keys[i];s||(s=elementorFrontend.config.elements.keys[i]=[],jQuery.each(e.controls,(e,t)=>{(t.frontend_available||t.editor_available)&&s.push(e)})),jQuery.each(e.getActiveControls(),function(e){if(-1!==s.indexOf(e)){let r=n[e];r.toJSON&&(r=r.toJSON()),t[e]=r}})}else t=this.$element.data("settings")||{};return this.getItems(t,e)},getEditSettings(e){var t={};return this.isEdit&&(t=elementorFrontend.config.elements.editSettings[this.getModelCID()].attributes),this.getItems(t,e)},getCurrentDeviceSetting(e){return elementorFrontend.getCurrentDeviceSetting(this.getElementSettings(),e)},onInit(){this.isActive(this.getSettings())&&elementorModules.ViewModule.prototype.onInit.apply(this,arguments)},onDestroy(){this.isEdit&&this.removeEditorListeners(),this.unbindEvents&&this.unbindEvents()}})},7255:(e,t,r)=>{"use strict";var n=r(1831);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},7268:(e,t,r)=>{"use strict";var n=r(4762),i=r(1483),s=r(1831),o=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),e.exports=s.inspectSource},7458:(e,t,r)=>{"use strict";r(1975)},7486:e=>{"use strict";e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},7611:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function propertyIsEnumerable(e){var t=n(this,e);return!!t&&t.enumerable}:r},7738:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7914:(e,t,r)=>{"use strict";var n=r(1483),i=r(5835),s=r(169),o=r(2095);e.exports=function(e,t,r,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:t;if(n(r)&&s(r,l,a),a.global)c?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},7955:e=>{"use strict";e.exports=elementorModules.ViewModule.extend({getDefaultSettings:()=>({element:null,direction:elementorFrontend.config.is_rtl?"right":"left",selectors:{container:window},considerScrollbar:!1,cssOutput:"inline"}),getDefaultElements(){return{$element:jQuery(this.getSettings("element"))}},stretch(){const e=this.getSettings();let t;try{t=jQuery(e.selectors.container)}catch(e){}t&&t.length||(t=jQuery(this.getDefaultSettings().selectors.container)),this.reset();var r=this.elements.$element,n=t.innerWidth(),i=r.offset().left,s="fixed"===r.css("position"),o=s?0:i,a=window===t[0];if(!a){var c=t.offset().left;s&&(o=c),i>c&&(o=i-c)}if(e.considerScrollbar&&a){o-=window.innerWidth-n}s||(elementorFrontend.config.is_rtl&&(o=n-(r.outerWidth()+o)),o=-o),e.margin&&(o+=e.margin);var l={};let u=n;e.margin&&(u-=2*e.margin),l.width=u+"px",l[e.direction]=o+"px","variables"!==e.cssOutput?r.css(l):this.applyCssVariables(r,l)},reset(){const e={},t=this.getSettings(),r=this.elements.$element;"variables"!==t.cssOutput?(e.width="",e[t.direction]="",r.css(e)):this.resetCssVariables(r)},applyCssVariables(e,t){e.css("--stretch-width",t.width),t.left?e.css("--stretch-left",t.left):e.css("--stretch-right",t.right)},resetCssVariables(e){e.css({"--stretch-width":"","--stretch-left":"","--stretch-right":""})}})},7958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRegistry=void 0,r(4846),r(7458),r(9655),r(4364);t.BaseRegistry=class BaseRegistry{constructor(){this.sections=new Map}register(e){if(!e.key||!e.title)throw new Error("Template type must have key and title");const t=this.get(e.key)||this.formatSection(e);if(e.children)if(t.children){const r=new Map(t.children.map(e=>[e.key,e]));e.children.forEach(e=>{const t=this.formatSection(e);r.set(e.key,t)}),t.children=Array.from(r.values())}else t.children=e.children.map(e=>this.formatSection(e));this.sections.set(e.key,t)}formatSection({children:e,...t}){return{key:t.key,title:t.title,description:t.description||"",useParentDefault:!1!==t.useParentDefault,getInitialState:t.getInitialState||null,component:t.component||null,order:t.order||10,isAvailable:t.isAvailable||(()=>!0),...t}}getAll(){return Array.from(this.sections.values()).filter(e=>e.isAvailable()).map(e=>e.children?{...e,children:[...e.children].sort((e,t)=>e.order-t.order)}:e).sort((e,t)=>e.order-t.order)}get(e){return this.sections.get(e)}}},8120:(e,t,r)=>{"use strict";var n=r(1483),i=r(8761),s=TypeError;e.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not a function")}},8140:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211);var i=n(r(7224));class StretchedElement extends i.default{getStretchedClass(){return"e-stretched"}getStretchSettingName(){return"stretch_element"}getStretchActiveValue(){return"yes"}bindEvents(){const e=this.getUniqueHandlerID();elementorFrontend.addListenerOnce(e,"resize",this.stretch),elementorFrontend.addListenerOnce(e,"sticky:stick",this.stretch,this.$element),elementorFrontend.addListenerOnce(e,"sticky:unstick",this.stretch,this.$element),elementorFrontend.isEditMode()&&(this.onKitChangeStretchContainerChange=this.onKitChangeStretchContainerChange.bind(this),elementor.channels.editor.on("kit:change:stretchContainer",this.onKitChangeStretchContainerChange))}unbindEvents(){elementorFrontend.removeListeners(this.getUniqueHandlerID(),"resize",this.stretch),elementorFrontend.isEditMode()&&elementor.channels.editor.off("kit:change:stretchContainer",this.onKitChangeStretchContainerChange)}isActive(e){return elementorFrontend.isEditMode()||e.$element.hasClass(this.getStretchedClass())}getStretchElementForConfig(e=null){return e?this.$element.find(e):this.$element}getStretchElementConfig(){return{element:this.getStretchElementForConfig(),selectors:{container:this.getStretchContainer()},considerScrollbar:elementorFrontend.isEditMode()&&elementorFrontend.config.is_rtl}}initStretch(){this.stretch=this.stretch.bind(this),this.stretchElement=new elementorModules.frontend.tools.StretchElement(this.getStretchElementConfig())}getStretchContainer(){return elementorFrontend.getKitSettings("stretched_section_container")||window}isStretchSettingEnabled(){return this.getElementSettings(this.getStretchSettingName())===this.getStretchActiveValue()}stretch(){this.isStretchSettingEnabled()&&this.stretchElement.stretch()}onInit(...e){this.isActive(this.getSettings())&&(this.initStretch(),super.onInit(...e),this.stretch())}onElementChange(e){this.getStretchSettingName()===e&&(this.isStretchSettingEnabled()?this.stretch():this.stretchElement.reset())}onKitChangeStretchContainerChange(){this.stretchElement.setSettings("selectors.container",this.getStretchContainer()),this.stretch()}}t.default=StretchedElement},8324:(e,t,r)=>{"use strict";var n=r(3005),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},8473:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},8612:(e,t,r)=>{"use strict";var n=r(5578),i=r(4961).f,s=r(9037),o=r(7914),a=r(2095),c=r(6726),l=r(8730);e.exports=function(e,t){var r,u,p,d,h,f=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(h=i(r,u))&&h.value:r[u],!l(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(e.sham||p&&p.sham)&&s(d,"sham",!0),o(r,u,d,e)}}},8660:(e,t,r)=>{"use strict";var n=r(1807),i=r(5290),s=r(9037),o=r(2313),a=r(1),c=r(4483),l=r(2564),u=r(1851).IteratorPrototype,p=r(5247),d=r(6721),h=r(1983),f=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",y="throw",w=c.set,createIteratorProxyPrototype=function(e){var t=c.getterFor(e?m:g);return o(i(u),{next:function next(){var r=t(this);if(e)return r.nextHandler();if(r.done)return p(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:p(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),i=r.iterator;if(r.done=!0,e){var s=l(i,"return");return s?n(s,i):p(void 0,!0)}if(r.inner)try{d(r.inner.iterator,v)}catch(e){return d(i,y,e)}if(r.openIters)try{h(r.openIters,v)}catch(e){return d(i,y,e)}return i&&d(i,v),p(void 0,!0)}})},b=createIteratorProxyPrototype(!0),S=createIteratorProxyPrototype(!1);s(S,f,"Iterator Helper"),e.exports=function(e,t,r){var n=function Iterator(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?m:g,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,w(this,i)};return n.prototype=t?b:S,n}},8685:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ForceMethodImplementation=void 0;class ForceMethodImplementation extends Error{constructor(e={},t={}){super(`${e.isStatic?"static ":""}${e.fullName}() should be implemented, please provide '${e.functionName||e.fullName}' functionality.`,t),Object.keys(t).length&&console.error(t),Error.captureStackTrace(this,ForceMethodImplementation)}}t.ForceMethodImplementation=ForceMethodImplementation;t.default=e=>{const t=Error().stack.split("\n")[2].trim(),r=t.startsWith("at new")?"constructor":t.split(" ")[1],n={};if(n.functionName=r,n.fullName=r,n.functionName.includes(".")){const e=n.functionName.split(".");n.className=e[0],n.functionName=e[1]}else n.isStatic=!0;throw new ForceMethodImplementation(n,e)}},8730:(e,t,r)=>{"use strict";var n=r(8473),i=r(1483),s=/#|\.prototype\./,isForced=function(e,t){var r=a[o(e)];return r===l||r!==c&&(i(t)?n(t):!!t)},o=isForced.normalize=function(e){return String(e).replace(s,".").toLowerCase()},a=isForced.data={},c=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},8761:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8901:(e,t,r)=>{"use strict";var n=r(2293),i=r(6721);e.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},9031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createGetInitialState=function createGetInitialState(e,t={}){return(r,n)=>{let i=n;if(r.hasOwnProperty("uploadedData")){i=!1;const t=r.uploadedData.manifest.templates,n=elementorAppConfig?.["import-export-customization"]?.exportGroups||{};for(const r in t){if(n[t[r].doc_type]===e){i=!0;break}}}return{enabled:i,...t}}}},9037:(e,t,r)=>{"use strict";var n=r(382),i=r(5835),s=r(7738);e.exports=n?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},9273:(e,t,r)=>{"use strict";var n=r(382),i=r(4914),s=TypeError,o=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!o(e,"length").writable)throw new s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9441:(e,t,r)=>{"use strict";var n=r(8473);e.exports=!n(function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})},9461:(e,t,r)=>{"use strict";var n=r(5578).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},9497:(e,t,r)=>{"use strict";var n=r(1409),i=r(4762),s=r(2278),o=r(4347),a=r(2293),c=i([].concat);e.exports=n("Reflect","ownKeys")||function ownKeys(e){var t=s.f(a(e)),r=o.f;return r?c(t,r(e)):t}},9557:e=>{"use strict";e.exports=!1},9603:(e,t,r)=>{"use strict";var n=r(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(4846),r(6211),r(9655);var i=n(r(5633));class CarouselHandlerBase extends i.default{getDefaultSettings(){return{selectors:{carousel:".swiper",swiperWrapper:".swiper-wrapper",slideContent:".swiper-slide",swiperArrow:".elementor-swiper-button",paginationWrapper:".swiper-pagination",paginationBullet:".swiper-pagination-bullet",paginationBulletWrapper:".swiper-pagination-bullets"}}}getDefaultElements(){const e=this.getSettings("selectors"),t={$swiperContainer:this.$element.find(e.carousel),$swiperWrapper:this.$element.find(e.swiperWrapper),$swiperArrows:this.$element.find(e.swiperArrow),$paginationWrapper:this.$element.find(e.paginationWrapper),$paginationBullets:this.$element.find(e.paginationBullet),$paginationBulletWrapper:this.$element.find(e.paginationBulletWrapper)};return t.$slides=t.$swiperContainer.find(e.slideContent),t}getSwiperSettings(){const e=this.getElementSettings(),t=+e.slides_to_show||3,r=1===t,n=elementorFrontend.config.responsive.activeBreakpoints,i={mobile:1,tablet:r?1:2},s={slidesPerView:t,loop:"yes"===e.infinite,speed:e.speed,handleElementorBreakpoints:!0,breakpoints:{}};let o=t;Object.keys(n).reverse().forEach(t=>{const r=i[t]?i[t]:o;s.breakpoints[n[t].value]={slidesPerView:+e["slides_to_show_"+t]||r,slidesPerGroup:+e["slides_to_scroll_"+t]||1},e.image_spacing_custom&&(s.breakpoints[n[t].value].spaceBetween=this.getSpaceBetween(t)),o=+e["slides_to_show_"+t]||r}),"yes"===e.autoplay&&(s.autoplay={delay:e.autoplay_speed,disableOnInteraction:"yes"===e.pause_on_interaction}),r?(s.effect=e.effect,"fade"===e.effect&&(s.fadeEffect={crossFade:!0})):s.slidesPerGroup=+e.slides_to_scroll||1,e.image_spacing_custom&&(s.spaceBetween=this.getSpaceBetween());const a="arrows"===e.navigation||"both"===e.navigation,c="dots"===e.navigation||"both"===e.navigation||e.pagination;return a&&(s.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),c&&(s.pagination={el:`.elementor-element-${this.getID()} .swiper-pagination`,type:e.pagination?e.pagination:"bullets",clickable:!0,renderBullet:(e,t)=>`<span class="${t}" role="button" tabindex="0" data-bullet-index="${e}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${e+1}"></span>`}),"yes"===e.lazyload&&(s.lazy={loadPrevNext:!0,loadPrevNextAmount:1}),s.a11y={enabled:!0,prevSlideMessage:elementorFrontend.config.i18n.a11yCarouselPrevSlideMessage,nextSlideMessage:elementorFrontend.config.i18n.a11yCarouselNextSlideMessage,firstSlideMessage:elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage,lastSlideMessage:elementorFrontend.config.i18n.a11yCarouselLastSlideMessage},s.on={slideChange:()=>{this.a11ySetPaginationTabindex(),this.handleElementHandlers(),this.a11ySetSlideAriaHidden()},init:()=>{this.a11ySetPaginationTabindex(),this.a11ySetSlideAriaHidden("initialisation")}},this.applyOffsetSettings(e,s,t),s}getOffsetWidth(){const e=elementorFrontend.getCurrentDeviceMode();return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"offset_width","size",e)||0}applyOffsetSettings(e,t,r){const n=e.offset_sides;if(!(elementorFrontend.isEditMode()&&"NestedCarousel"===this.constructor.name)&&n&&"none"!==n)switch(n){case"right":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-right");break;case"left":this.addClassToSwiperContainer("offset-left");break;case"both":this.forceSliderToShowNextSlideWhenOnLast(t,r),this.addClassToSwiperContainer("offset-both")}}forceSliderToShowNextSlideWhenOnLast(e,t){e.slidesPerView=t+.001}addClassToSwiperContainer(e){this.getDefaultElements().$swiperContainer[0].classList.add(e)}async onInit(...e){if(super.onInit(...e),!this.elements.$swiperContainer.length||2>this.elements.$slides.length)return;await this.initSwiper();"yes"===this.getElementSettings().pause_on_hover&&this.togglePauseOnHover(!0)}async initSwiper(){const e=elementorFrontend.utils.swiper;this.swiper=await new e(this.elements.$swiperContainer,this.getSwiperSettings()),this.elements.$swiperContainer.data("swiper",this.swiper)}bindEvents(){this.elements.$swiperArrows.on("keydown",this.onDirectionArrowKeydown.bind(this)),this.elements.$paginationWrapper.on("keydown",".swiper-pagination-bullet",this.onDirectionArrowKeydown.bind(this)),this.elements.$swiperContainer.on("keydown",".swiper-slide",this.onDirectionArrowKeydown.bind(this)),this.$element.find(":focusable").on("focus",this.onFocusDisableAutoplay.bind(this)),elementorFrontend.elements.$window.on("resize",this.getSwiperSettings.bind(this))}unbindEvents(){this.elements.$swiperArrows.off(),this.elements.$paginationWrapper.off(),this.elements.$swiperContainer.off(),this.$element.find(":focusable").off(),elementorFrontend.elements.$window.off("resize")}onDirectionArrowKeydown(e){const t=elementorFrontend.config.is_rtl,r=e.originalEvent.code,n=t?"ArrowLeft":"ArrowRight";if(!(-1!==["ArrowLeft","ArrowRight"].indexOf(r)))return!0;(t?"ArrowRight":"ArrowLeft")===r?this.swiper.slidePrev():n===r&&this.swiper.slideNext()}onFocusDisableAutoplay(){this.swiper.autoplay.stop()}updateSwiperOption(e){const t=this.getElementSettings()[e],r=this.swiper.params;switch(e){case"autoplay_speed":r.autoplay.delay=t;break;case"speed":r.speed=t}this.swiper.update()}getChangeableProperties(){return{pause_on_hover:"pauseOnHover",autoplay_speed:"delay",speed:"speed",arrows_position:"arrows_position"}}onElementChange(e){if(0===e.indexOf("image_spacing_custom"))return void this.updateSpaceBetween(e);if(this.getChangeableProperties()[e])if("pause_on_hover"===e){const e=this.getElementSettings("pause_on_hover");this.togglePauseOnHover("yes"===e)}else this.updateSwiperOption(e)}onEditSettingsChange(e){"activeItemIndex"===e&&this.swiper.slideToLoop(this.getEditSettings("activeItemIndex")-1)}getSpaceBetween(e=null){const t=elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(),"image_spacing_custom","size",e);return Number(t)||0}updateSpaceBetween(e){const t=e.match("image_spacing_custom_(.*)"),r=t?t[1]:"desktop",n=this.getSpaceBetween(r);"desktop"!==r&&(this.swiper.params.breakpoints[elementorFrontend.config.responsive.activeBreakpoints[r].value].spaceBetween=n),this.swiper.params.spaceBetween=n,this.swiper.update()}getPaginationBullets(e="array"){const t=this.$element.find(this.getSettings("selectors").paginationBullet);return"array"===e?Array.from(t):t}a11ySetPaginationTabindex(){const e=this.swiper?.params?.pagination.bulletClass,t=this.swiper?.params?.pagination.bulletActiveClass;this.getPaginationBullets().forEach(e=>{e.classList?.contains(t)||e.removeAttribute("tabindex")});const r="ArrowLeft"===event?.code||"ArrowRight"===event?.code;event?.target?.classList?.contains(e)&&r&&this.$element.find(`.${t}`).trigger("focus")}getSwiperWrapperTranformXValue(){let e=this.elements.$swiperWrapper[0]?.style.transform;return e=e.replace("translate3d(",""),e=e.split(","),e=parseInt(e[0].replace("px","")),e||0}a11ySetSlideAriaHidden(e=""){if("number"!=typeof("initialisation"===e?0:this.swiper?.activeIndex))return;const t=this.getSwiperWrapperTranformXValue(),r=this.elements.$swiperWrapper[0].clientWidth;this.elements.$swiperContainer.find(this.getSettings("selectors").slideContent).each((e,n)=>{0<=n.offsetLeft+t&&r>n.offsetLeft+t?(n.removeAttribute("aria-hidden"),n.removeAttribute("inert")):(n.setAttribute("aria-hidden",!0),n.setAttribute("inert",""))})}handleElementHandlers(){}}t.default=CarouselHandlerBase},9655:(e,t,r)=>{"use strict";r(9930)},9930:(e,t,r)=>{"use strict";var n=r(8612),i=r(1807),s=r(1506),o=r(8120),a=r(2293),c=r(41),l=r(6721),u=r(5267)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function forEach(e){a(this);try{o(e)}catch(e){l(this,"throw",e)}if(u)return i(u,this,e);var t=c(this),r=0;s(t,function(t){e(t,r++)},{IS_RECORD:!0})}})}},e=>{var t;t=4946,e(e.s=t)}]);
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use strict";var t,e,i,n,W,C,o,s,r,l,a,h,u;function E(t,e,i){return[parseFloat(t[0])*(a.test(t[0])?e/100:1),parseFloat(t[1])*(a.test(t[1])?i/100:1)]}function L(t,e){return parseInt(x.css(t,e),10)||0}function N(t){return null!=t&&t===t.window}x.ui=x.ui||{},x.ui.version="1.13.3",
x.extend(x.expr.pseudos,{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),
x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
x.ui.focusable=function(t,e){var i,n,o,s=t.nodeName.toLowerCase();return"area"===s?(o=(i=t.parentNode).name,!(!t.href||!o||"map"!==i.nodeName.toLowerCase())&&0<(i=x("img[usemap='#"+o+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(s)?(n=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(n=!o.disabled):n="a"===s&&t.href||e,n&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}(x(t)))},x.extend(x.expr.pseudos,{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}}),x.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},
x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),
x.expr.pseudos||(x.expr.pseudos=x.expr[":"]),x.uniqueSort||(x.uniqueSort=x.unique),x.escapeSelector||(e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},x.escapeSelector=function(t){return(t+"").replace(e,i)}),x.fn.even&&x.fn.odd||x.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),
x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},
x.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},x.ui.plugin={add:function(t,e,i){var n,o=x.ui[t].prototype;for(n in i)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<s.length;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},
W=Math.max,C=Math.abs,o=/left|center|right/,s=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,h=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==n?n:(i=(e=x("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=N(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(f){var c,d,p,g,m,v,y,w,b,_,t,e;return f&&f.of?(v="string"==typeof(f=x.extend({},f)).of?x(document).find(f.of):x(f.of),y=x.position.getWithinInfo(f.within),w=x.position.getScrollInfo(y),b=(f.collision||"flip").split(" "),_={},e=9===(e=(t=v)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:N(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},v[0].preventDefault&&(f.at="left top"),d=e.width,p=e.height,m=x.extend({},g=e.offset),x.each(["my","at"],function(){var t,e,i=(f[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):s.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=s.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),_[this]=[t?t[0]:0,e?e[0]:0],f[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===f.at[0]?m.left+=d:"center"===f.at[0]&&(m.left+=d/2),"bottom"===f.at[1]?m.top+=p:"center"===f.at[1]&&(m.top+=p/2),c=E(_.at,d,p),m.left+=c[0],m.top+=c[1],this.each(function(){var i,t,r=x(this),l=r.outerWidth(),a=r.outerHeight(),e=L(this,"marginLeft"),n=L(this,"marginTop"),o=l+e+L(this,"marginRight")+w.width,s=a+n+L(this,"marginBottom")+w.height,h=x.extend({},m),u=E(_.my,r.outerWidth(),r.outerHeight());"right"===f.my[0]?h.left-=l:"center"===f.my[0]&&(h.left-=l/2),"bottom"===f.my[1]?h.top-=a:"center"===f.my[1]&&(h.top-=a/2),h.left+=u[0],h.top+=u[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](h,{targetWidth:d,targetHeight:p,elemWidth:l,elemHeight:a,collisionPosition:i,collisionWidth:o,collisionHeight:s,offset:[c[0]+u[0],c[1]+u[1]],my:f.my,at:f.at,within:y,elem:r})}),f.using&&(t=function(t){var e=g.left-h.left,i=e+d-l,n=g.top-h.top,o=n+p-a,s={target:{element:v,left:g.left,top:g.top,width:d,height:p},element:{element:r,left:h.left,top:h.top,width:l,height:a},horizontal:i<0?"left":0<e?"right":"center",vertical:o<0?"top":0<n?"bottom":"middle"};d<l&&C(e+i)<d&&(s.horizontal="center"),p<a&&C(n+o)<p&&(s.vertical="middle"),W(C(e),C(i))>W(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n<e.collisionWidth?0<r&&l<=0?(i=t.left+r+e.collisionWidth-n-o,t.left+=r-i):t.left=!(0<l&&r<=0)&&l<r?o+n-e.collisionWidth:o:0<r?t.left+=r:0<l?t.left-=l:t.left=W(t.left-s,t.left)},top:function(t,e){var i,n=e.within,n=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,s=t.top-e.collisionPosition.marginTop,r=n-s,l=s+e.collisionHeight-o-n;o<e.collisionHeight?0<r&&l<=0?(i=t.top+r+e.collisionHeight-o-n,t.top+=r-i):t.top=!(0<l&&r<=0)&&l<r?n+o-e.collisionHeight:n:0<r?t.top+=r:0<l?t.top-=l:t.top=W(t.top-s,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,o=i.width,i=i.isWindow?i.scrollLeft:i.offset.left,s=t.left-e.collisionPosition.marginLeft,r=s-i,s=s+e.collisionWidth-o-i,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,a="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((o=t.left+l+a+h+e.collisionWidth-o-n)<0||o<C(r))&&(t.left+=l+a+h):0<s&&(0<(n=t.left-e.collisionPosition.marginLeft+l+a+h-i)||C(n)<s)&&(t.left+=l+a+h)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,o=i.height,i=i.isWindow?i.scrollTop:i.offset.top,s=t.top-e.collisionPosition.marginTop,r=s-i,s=s+e.collisionHeight-o-i,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,a="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((o=t.top+l+a+h+e.collisionHeight-o-n)<0||o<C(r))&&(t.top+=l+a+h):0<s&&(0<(n=t.top-e.collisionPosition.marginTop+l+a+h-i)||C(n)<s)&&(t.top+=l+a+h)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}},x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=(i=i||e.body).nodeName?i:e.body},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")},
x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},
x.extend(x.expr.pseudos,{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),
x.fn.extend({uniqueId:(u=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++u)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}});
var f,c=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;x.cleanData=(f=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");f(t)}),x.widget=function(t,i,e){var n,o,s,r={},l=t.split(".")[0],a=l+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[a.toLowerCase()]=function(t){return!!x.data(t,a)},x[l]=x[l]||{},n=x[l][t],o=x[l][t]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},x.extend(o,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(s=new i).options=x.widget.extend({},s.options),x.each(e,function(e,n){function o(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}r[e]="function"!=typeof n?n:function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}}),o.prototype=x.widget.extend(s,{widgetEventPrefix:n&&s.widgetEventPrefix||t},r,{constructor:o,namespace:l,widgetName:t,widgetFullName:a}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,o,e._proto)}),delete n._childConstructors):i._childConstructors.push(o),x.widget.bridge(t,o),o},x.widget.extend=function(t){for(var e,i,n=p.call(arguments,1),o=0,s=n.length;o<s;o++)for(e in n[o])i=n[o][e],d.call(n[o],e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(s,e){var r=e.prototype.widgetFullName||s;x.fn[s]=function(i){var t="string"==typeof i,n=p.call(arguments,1),o=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,r);return"instance"===i?(o=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+s+" widget instance"):(t=e[i].apply(e,n))!==e&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:x.error("cannot call methods on "+s+" prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,r);t?(t.option(i||{}),t._init&&t._init()):x.data(this,r,new e(i,this))})),o}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)n[i[o]]=n[i[o]]||{},n=n[i[o]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=e}return this._setOptions(s),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var s=[],r=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=r.classesElementLookup[t[n]]||x(),i=o.add?(function(){var i=[];o.element.each(function(t,e){x.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(o.element.get())))):x(i.not(o.element).get()),r.classesElementLookup[t[n]]=i,s.push(t[n]),e&&o.classes[t[n]]&&s.push(o.classes[t[n]])}return(o=x.extend({element:this.element,classes:this.options.classes||{}},o)).keys&&t(o.keys.match(/\S+/g)||[],!0),o.extra&&t(o.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var o="string"==typeof t||null===t,e={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n="boolean"==typeof n?n:i};return e.element.toggleClass(this._classes(e),n),this},_on:function(o,s,t){var r,l=this;"boolean"!=typeof o&&(t=s,s=o,o=!1),t?(s=r=x(s),this.bindings=this.bindings.add(s)):(t=s,s=this.element,r=this.widget()),x.each(t,function(t,e){function i(){if(o||!0!==l.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?l[e]:e).apply(l,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),n=t[1]+l.eventNamespace,t=t[2];t?r.on(n,t,i):s.on(n,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,o,s=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],o=e.originalEvent)for(n in o)n in e||(e[n]=o[n]);return this.element.trigger(e,i),!("function"==typeof s&&!1===s.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(s,r){x.Widget.prototype["_"+s]=function(e,t,i){var n,o=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:s;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[o]?e[s](t):o!==s&&e[o]?e[o](t.duration,t.easing,i):e.queue(function(t){x(this)[s](),i&&i.call(e[0]),t()})}})});