OwlCyberSecurity - MANAGER
Edit File: admin-upsell-addons-page.js
(()=>{var e={33296:(e,t,n)=>{"use strict";var r=n(51609),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=r.useState,o=r.useEffect,s=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=l({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return s((function(){i.value=n,i.getSnapshot=t,u(i)&&c({inst:i})}),[e,n,t]),o((function(){return u(i)&&c({inst:i}),e((function(){u(i)&&c({inst:i})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},95259:(e,t,n)=>{"use strict";e.exports=n(33296)},32485:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var l=typeof n;if("string"===l||"number"===l)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===l){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},51609:e=>{"use strict";e.exports=window.React}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var l=t[r]={exports:{}};return e[r](l,l.exports,n),l.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(51609);const t=window.ReactDOM;function r(t){let{children:n,items:r,idScope:i,addIdAndValue:l,dependencies:o=[]}=t,s=(0,e.useMemo)((()=>new WeakMap),o);return(0,e.useMemo)((()=>{if(r&&"function"==typeof n){let a=[];for(let u of r){let r=s.get(u);if(!r){var t,o;r=n(u);let a=null!==(o=null!==(t=r.props.id)&&void 0!==t?t:u.key)&&void 0!==o?o:u.id;if(null==a)throw new Error("Could not determine key for item");i&&(a=i+":"+a),r=(0,e.cloneElement)(r,l?{key:a,id:a,value:u}:{key:a}),s.set(u,r)}a.push(r)}return a}if("function"!=typeof n)return n}),[n,r,s,i,l])}const i={CollectionRoot:({collection:e,renderDropIndicator:t})=>l(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>l(e,t,n)};function l(t,n,i){return r({items:n?t.getChildren(n.key):t,dependencies:[i],children(n){var r;let l=n.render(n);if(!i||"item"!==n.type)return l;let o=n.key,s=t.getKeyAfter(o);return e.createElement(e.Fragment,null,i({type:"item",key:o,dropPosition:"before"}),l,(null==s||"item"!==(null===(r=t.getItem(s))||void 0===r?void 0:r.type))&&i({type:"item",key:o,dropPosition:"after"}))}})}const o=(0,e.createContext)(i);function s(t){const n=(0,e.useRef)(null);return(0,e.useMemo)((()=>({get current(){return n.current},set current(e){n.current=e,"function"==typeof t?t(e):t&&(t.current=e)}})),[t])}function a(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const u="undefined"!=typeof document?e.useLayoutEffect:()=>{},c={prefix:String(Math.round(1e10*Math.random())),current:0},d=e.createContext(c),f=e.createContext(!1);let p=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),h=new WeakMap;const y="function"==typeof e.useId?function(t){let n=e.useId(),[r]=(0,e.useState)(b());return t||`${r?"react-aria":`react-aria${c.prefix}`}-${n}`}:function(t){let n=(0,e.useContext)(d);n!==c||p||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=function(t=!1){let n=(0,e.useContext)(d),r=(0,e.useRef)(null);if(null===r.current&&!t){var i,l;let t=null===(l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===l||null===(i=l.ReactCurrentOwner)||void 0===i?void 0:i.current;if(t){let e=h.get(t);null==e?h.set(t,{id:n.current,state:t.memoizedState}):t.memoizedState!==e.state&&(n.current=e.id,h.delete(t))}r.current=++n.current}return r.current}(!!t),i=`react-aria${n.prefix}`;return t||`${i}-${r}`};function v(){return!1}function g(){return!0}function m(e){return()=>{}}function b(){return"function"==typeof e.useSyncExternalStore?e.useSyncExternalStore(m,v,g):(0,e.useContext)(f)}let E,K=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),S=new Map;function w(t){let[n,r]=(0,e.useState)(t),i=(0,e.useRef)(null),l=y(n),o=(0,e.useRef)(null);if(E&&E.register(o,l),K){const e=S.get(l);e&&!e.includes(i)?e.push(i):S.set(l,[i])}return u((()=>{let e=l;return()=>{E&&E.unregister(o),S.delete(e)}}),[l]),(0,e.useEffect)((()=>{let e=i.current;return e&&r(e),()=>{e&&(i.current=null)}})),l}function T(e,t){if(e===t)return e;let n=S.get(e);if(n)return n.forEach((e=>e.current=t)),t;let r=S.get(t);return r?(r.forEach((t=>t.current=e)),e):t}function k(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=k(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}"undefined"!=typeof FinalizationRegistry&&(E=new FinalizationRegistry((e=>{S.delete(e)})));const P=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=k(e))&&(r&&(r+=" "),r+=t);return r};function C(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=a(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=T(n,i):t[e]=void 0!==i?i:n:t[e]=P(n,i)}}return t}const x=Symbol("default");function N({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function M(t){let{className:n,style:r,children:i,defaultClassName:l,defaultChildren:o,defaultStyle:s,values:a}=t;return(0,e.useMemo)((()=>{let e,t,u;return e="function"==typeof n?n({...a,defaultClassName:l}):n,t="function"==typeof r?r({...a,defaultStyle:s||{}}):r,u="function"==typeof i?i({...a,defaultChildren:o}):null==i?o:i,{className:null!=e?e:l,style:t||s?{...s,...t}:void 0,children:null!=u?u:o,"data-rac":""}}),[n,r,i,l,o,s,a])}function L(t,n){let r=(0,e.useContext)(t);if(null===n)return null;if(r&&"object"==typeof r&&"slots"in r&&r.slots){let e=n||x;if(!r.slots[e]){let e=(new Intl.ListFormat).format(Object.keys(r.slots).map((e=>`"${e}"`)));throw new Error(`${n?`Invalid slot "${n}".`:"A slot prop is required."} Valid slot names are ${e}.`)}return r.slots[e]}return r}function D(t){const n=(0,e.useRef)(null);return u((()=>{n.current=t}),[t]),(0,e.useCallback)(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}const F=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],I=F.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";F.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const A=F.join(':not([hidden]):not([tabindex="-1"]),');function R(e){return e.matches(I)}function O(e){return e.matches(A)}const _=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},H=e=>e&&"window"in e&&e.window===e?e:_(e).defaultView||window;function B(e){if(function(){if(null==z){z=!1;try{document.createElement("div").focus({get preventScroll(){return z=!0,!0}})}catch{}}return z}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let z=null;class W{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function V(t){let n=(0,e.useRef)({isFocused:!1,observer:null});u((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let r=D((e=>{null==t||t(e)}));return(0,e.useCallback)((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let t=e.target,i=e=>{n.current.isFocused=!1,t.disabled&&r(new W("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};t.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&t.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let r=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}})),n.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}}),[r])}let U=!1;function G(e){for(;e&&!R(e);)e=e.parentElement;let t=H(e),n=t.document.activeElement;if(!n||n===e)return;U=!0;let r=!1,i=e=>{(e.target===n||r)&&e.stopImmediatePropagation()},l=t=>{(t.target===n||r)&&(t.stopImmediatePropagation(),e||r||(r=!0,B(n),a()))},o=t=>{(t.target===e||r)&&t.stopImmediatePropagation()},s=t=>{(t.target===e||r)&&(t.stopImmediatePropagation(),r||(r=!0,B(n),a()))};t.addEventListener("blur",i,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",o,!0);let a=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",i,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",o,!0),U=!1,r=!1},u=requestAnimationFrame(a);return a}function j(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function $(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Y(e){let t=null;return()=>(null==t&&(t=e()),t)}const q=Y((function(){return $(/^Mac/i)})),J=Y((function(){return $(/^iPhone/i)})),X=Y((function(){return $(/^iPad/i)||q()&&navigator.maxTouchPoints>1})),Q=Y((function(){return J()||X()})),Z=Y((function(){return q()||Q()})),ee=Y((function(){return j(/AppleWebKit/i)&&!te()})),te=Y((function(){return j(/Chrome/i)})),ne=Y((function(){return j(/Android/i)})),re=Y((function(){return j(/Firefox/i)}));function ie(e){return!(0!==e.mozInputSource||!e.isTrusted)||(ne()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}let le=null,oe=new Set,se=new Map,ae=!1,ue=!1;const ce={Tab:!0,Escape:!0};function de(e,t){for(let n of oe)n(e,t)}function fe(e){ae=!0,function(e){return!(e.metaKey||!q()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(le="keyboard",de("keyboard",e))}function pe(e){le="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ae=!0,de("pointer",e))}function he(e){ie(e)&&(ae=!0,le="virtual")}function ye(e){e.target!==window&&e.target!==document&&!U&&e.isTrusted&&(ae||ue||(le="virtual",de("virtual",e)),ae=!1,ue=!1)}function ve(){U||(ae=!1,ue=!0)}function ge(e){if("undefined"==typeof window||se.get(H(e)))return;const t=H(e),n=_(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ae=!0,r.apply(this,arguments)},n.addEventListener("keydown",fe,!0),n.addEventListener("keyup",fe,!0),n.addEventListener("click",he,!0),t.addEventListener("focus",ye,!0),t.addEventListener("blur",ve,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",pe,!0),n.addEventListener("pointermove",pe,!0),n.addEventListener("pointerup",pe,!0)):(n.addEventListener("mousedown",pe,!0),n.addEventListener("mousemove",pe,!0),n.addEventListener("mouseup",pe,!0)),t.addEventListener("beforeunload",(()=>{me(e)}),{once:!0}),se.set(t,{focus:r})}const me=(e,t)=>{const n=H(e),r=_(e);t&&r.removeEventListener("DOMContentLoaded",t),se.has(n)&&(n.HTMLElement.prototype.focus=se.get(n).focus,r.removeEventListener("keydown",fe,!0),r.removeEventListener("keyup",fe,!0),r.removeEventListener("click",he,!0),n.removeEventListener("focus",ye,!0),n.removeEventListener("blur",ve,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",pe,!0),r.removeEventListener("pointermove",pe,!0),r.removeEventListener("pointerup",pe,!0)):(r.removeEventListener("mousedown",pe,!0),r.removeEventListener("mousemove",pe,!0),r.removeEventListener("mouseup",pe,!0)),se.delete(n))};function be(){return"pointer"!==le}function Ee(){return le}"undefined"!=typeof document&&function(e){const t=_(e);let n;"loading"!==t.readyState?ge(e):(n=()=>{ge(e)},t.addEventListener("DOMContentLoaded",n))}();const Ke=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Se(e,t){return!(!t||!e)&&e.contains(t)}const we=(e=document)=>e.activeElement;function Te(e){return e.target}function ke(t){let{isDisabled:n,onFocus:r,onBlur:i,onFocusChange:l}=t;const o=(0,e.useCallback)((e=>{if(e.target===e.currentTarget)return i&&i(e),l&&l(!1),!0}),[i,l]),s=V(o),a=(0,e.useCallback)((e=>{const t=_(e.target),n=t?we(t):we();e.target===e.currentTarget&&n===Te(e.nativeEvent)&&(r&&r(e),l&&l(!0),s(e))}),[l,r,s]);return{focusProps:{onFocus:!n&&(r||l||i)?a:void 0,onBlur:n||!i&&!l?void 0:o}}}function Pe(){let t=(0,e.useRef)(new Map),n=(0,e.useCallback)(((e,n,r,i)=>{let l=(null==i?void 0:i.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:l,options:i}),e.addEventListener(n,l,i)}),[]),r=(0,e.useCallback)(((e,n,r,i)=>{var l;let o=(null===(l=t.current.get(r))||void 0===l?void 0:l.fn)||r;e.removeEventListener(n,o,i),t.current.delete(r)}),[]),i=(0,e.useCallback)((()=>{t.current.forEach(((e,t)=>{r(e.eventTarget,e.type,t,e.options)}))}),[r]);return(0,e.useEffect)((()=>i),[i]),{addGlobalListener:n,removeGlobalListener:r,removeAllGlobalListeners:i}}function Ce(t={}){let{autoFocus:n=!1,isTextInput:r,within:i}=t,l=(0,e.useRef)({isFocused:!1,isFocusVisible:n||be()}),[o,s]=(0,e.useState)(!1),[a,u]=(0,e.useState)((()=>l.current.isFocused&&l.current.isFocusVisible)),c=(0,e.useCallback)((()=>u(l.current.isFocused&&l.current.isFocusVisible)),[]),d=(0,e.useCallback)((e=>{l.current.isFocused=e,s(e),c()}),[c]);var f,p,h;f=e=>{l.current.isFocusVisible=e,c()},p=[],h={isTextInput:r},ge(),(0,e.useEffect)((()=>{let e=(e,t)=>{(function(e,t,n){let r=_(null==n?void 0:n.target);const i="undefined"!=typeof window?H(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,l="undefined"!=typeof window?H(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?H(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?H(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof i&&!Ke.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof o&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof s&&!ce[n.key])})(!!(null==h?void 0:h.isTextInput),e,t)&&f(be())};return oe.add(e),()=>{oe.delete(e)}}),p);let{focusProps:y}=ke({isDisabled:i,onFocusChange:d}),{focusWithinProps:v}=function(t){let{isDisabled:n,onBlurWithin:r,onFocusWithin:i,onFocusWithinChange:l}=t,o=(0,e.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Pe(),u=(0,e.useCallback)((e=>{e.currentTarget.contains(e.target)&&o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,a(),r&&r(e),l&&l(!1))}),[r,l,o,a]),c=V(u),d=(0,e.useCallback)((e=>{if(!e.currentTarget.contains(e.target))return;const t=_(e.target),n=we(t);if(!o.current.isFocusWithin&&n===Te(e.nativeEvent)){i&&i(e),l&&l(!0),o.current.isFocusWithin=!0,c(e);let n=e.currentTarget;s(t,"focus",(e=>{if(o.current.isFocusWithin&&!Se(n,e.target)){let r=new W("blur",new t.defaultView.FocusEvent("blur",{relatedTarget:e.target}));r.target=n,r.currentTarget=n,u(r)}}),{capture:!0})}}),[i,l,c,s,u]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}({isDisabled:!i,onFocusWithinChange:d});return{isFocused:o,isFocusVisible:a,focusProps:i?v:y}}const xe=new WeakMap;function Ne(e,t,n){return e?("string"==typeof t&&(t=t.replace(/\s+/g,"")),`${xe.get(e)}-${n}-${t}`):""}class Me{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}isDisabled(e){var t,n;return this.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getKeyAbove(e){return this.tabDirection?null:this.getPreviousKey(e)}getKeyBelow(e){return this.tabDirection?null:this.getNextKey(e)}getNextKey(e){do{null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey())}while(this.isDisabled(e));return e}getPreviousKey(e){do{null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey())}while(this.isDisabled(e));return e}constructor(e,t,n,r=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===n,this.disabledKeys=r,this.tabDirection="horizontal"===n}}function Le(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=w(n),i&&r){let e=new Set([n,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}const De=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Fe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ie(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return De.has(t.script)}let t=e.split("-")[0];return Fe.has(t)}const Ae=Symbol.for("react-aria.i18n.locale");function Re(){let e="undefined"!=typeof window&&window[Ae]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ie(e)?"rtl":"ltr"}}let Oe=Re(),_e=new Set;function He(){Oe=Re();for(let e of _e)e(Oe)}const Be=e.createContext(null);function ze(){let t=function(){let t=b(),[n,r]=(0,e.useState)(Oe);return(0,e.useEffect)((()=>(0===_e.size&&window.addEventListener("languagechange",He),_e.add(r),()=>{_e.delete(r),0===_e.size&&window.removeEventListener("languagechange",He)})),[]),t?{locale:"en-US",direction:"ltr"}:n}();return(0,e.useContext)(Be)||t}function We(e){return Z()?e.altKey:e.ctrlKey}function Ve(e,t){var n,r;let i=`[data-key="${CSS.escape(String(t))}"]`,l=null===(n=e.current)||void 0===n?void 0:n.dataset.collection;return l&&(i=`[data-collection="${CSS.escape(l)}"]${i}`),null===(r=e.current)||void 0===r?void 0:r.querySelector(i)}const Ue=new WeakMap;function Ge(e){let t=w();return Ue.set(e,t),t}const je=(0,e.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>Ye(e,t)))},useHref:e=>e});function $e(){return(0,e.useContext)(je)}function Ye(e,t,n=!0){var r,i;let{metaKey:l,ctrlKey:o,altKey:s,shiftKey:a}=t;re()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(q()?l=!0:o=!0);let u=ee()&&q()&&!X()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:o,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:l,ctrlKey:o,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});Ye.isOpening=n,B(e),e.dispatchEvent(u),Ye.isOpening=!1}function qe(e){return q()?e.metaKey:e.ctrlKey}function Je(t,n,r,i){let l=D(r),o=null==r;(0,e.useEffect)((()=>{if(o||!t.current)return;let e=t.current;return e.addEventListener(n,l,i),()=>{e.removeEventListener(n,l,i)}}),[t,n,i,o,l])}function Xe(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Qe(e,t){let n=Ze(e,t,"left"),r=Ze(e,t,"top"),i=t.offsetWidth,l=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),h=o+parseInt(u,10),y=s+parseInt(a,10),v=h+e.clientWidth,g=y+e.clientHeight,m=parseInt(c,10)||0,b=parseInt(f,10)||0,E=parseInt(d,10)||0,K=parseInt(p,10)||0;n<=o+K?o=n-parseInt(u,10)-K:n+i>v-E&&(o+=n+i-v+E),r<=y+m?s=r-parseInt(a,10)-m:r+l>g-b&&(s+=r+l-g+b),e.scrollLeft=o,e.scrollTop=s}function Ze(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function et(e,t){if(e&&document.contains(e)){let o=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(o).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Xe(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)Qe(n,e)}else{var n;let{left:o,top:s}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:a,top:u}=e.getBoundingClientRect();var r,i,l;(Math.abs(o-a)>1||Math.abs(s-u)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"}))}}}function tt(t,n){const r=(0,e.useRef)(!0),i=(0,e.useRef)(null);u((()=>(r.current=!0,()=>{r.current=!1})),[]),u((()=>{r.current?r.current=!1:i.current&&!n.some(((e,t)=>!Object.is(e,i[t])))||t(),i.current=n}),n)}Ye.isOpening=!1;let nt=new Map,rt=new Set;function it(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=nt.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),nt.delete(n.target)),0===nt.size)){for(let e of rt)e();rt.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=nt.get(n.target);r||(r=new Set,nt.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function lt(e){requestAnimationFrame((()=>{0===nt.size?e():rt.add(e)}))}function ot(e){const t=_(e),n=we(t);if("virtual"===Ee()){let r=n;lt((()=>{we(t)===r&&e.isConnected&&B(e)}))}else B(e)}function st(e,t){return"#comment"!==e.nodeName&&function(e){const t=H(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||st(e.parentElement,e))}"undefined"!=typeof document&&("loading"!==document.readyState?it():document.addEventListener("DOMContentLoaded",it));function at(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}function ut(e,t,n){let r=(null==t?void 0:t.tabbable)?O:R,i=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,l=_(i),o=function(e,t,n,r){return e.createTreeWalker(t,n,r)}(l,e||l,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t||null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!r(e)||!st(e)||n&&!at(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}class ct{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let i=new dt({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),n&&(i.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&at(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new ct;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new dt({scopeRef:null}),this.fastMap.set(null,this.root)}}class dt{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function ft(e){let t=function(e){let t=we(e),n=null==t?void 0:t.getAttribute("aria-activedescendant");return n&&e.getElementById(n)||t}(_(e));t!==e&&(t&&function(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}(t,e),e&&function(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}(e,t))}function pt(n){let{selectionManager:r,keyboardDelegate:i,ref:l,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:a=!1,disallowSelectAll:u=!1,selectOnFocus:c="replace"===r.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:y=l,linkBehavior:v="action"}=n,{direction:g}=ze(),m=$e(),b=(0,e.useRef)({top:0,left:0});Je(y,"scroll",h?void 0:()=>{var e,t,n,r;b.current={top:null!==(n=null===(e=y.current)||void 0===e?void 0:e.scrollTop)&&void 0!==n?n:0,left:null!==(r=null===(t=y.current)||void 0===t?void 0:t.scrollLeft)&&void 0!==r?r:0}});let E=(0,e.useRef)(!1);Je(l,"react-aria-focus",f?e=>{let{detail:t}=e;e.stopPropagation(),r.setFocused(!0),"first"===(null==t?void 0:t.focusStrategy)&&(E.current=!0)}:void 0);let K=D((()=>{var e,t;let n=null!==(t=null===(e=i.getFirstKey)||void 0===e?void 0:e.call(i))&&void 0!==t?t:null;null==n?(ft(l.current),r.collection.size>0&&(E.current=!1)):(r.setFocusedKey(n),E.current=!1)}));tt((()=>{E.current&&K()}),[r.collection,K]);let S=D((()=>{r.collection.size>0&&(E.current=!1)}));tt((()=>{S()}),[r.focusedKey,S]),Je(l,"react-aria-clear-focus",f?e=>{var t;e.stopPropagation(),r.setFocused(!1),(null===(t=e.detail)||void 0===t?void 0:t.clearFocusKey)&&r.setFocusedKey(null)}:void 0);const w=(0,e.useRef)(o),T=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(w.current){var e,t;let a=null;var n,s;"first"===o&&(a=null!==(n=null===(e=i.getFirstKey)||void 0===e?void 0:e.call(i))&&void 0!==n?n:null),"last"===o&&(a=null!==(s=null===(t=i.getLastKey)||void 0===t?void 0:t.call(i))&&void 0!==s?s:null);let u=r.selectedKeys;if(u.size)for(let e of u)if(r.canSelectItem(e)){a=e;break}r.setFocused(!0),r.setFocusedKey(a),null==a&&!f&&l.current&&ot(l.current),r.collection.size>0&&(w.current=!1,T.current=!0)}}));let k=(0,e.useRef)(r.focusedKey);(0,e.useEffect)((()=>{if(r.isFocused&&null!=r.focusedKey&&(r.focusedKey!==k.current||T.current)&&y.current&&l.current){let e=Ee(),t=Ve(l,r.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||T.current)&&(Qe(y.current,t),"virtual"!==e&&et(t,{containingElement:l.current}))}!f&&r.isFocused&&null==r.focusedKey&&null!=k.current&&l.current&&ot(l.current),k.current=r.focusedKey,T.current=!1})),Je(l,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),r.setFocused(!0)}));let P,x={onKeyDown:e=>{var n;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null===(n=l.current)||void 0===n?void 0:n.contains(e.target)))return;const o=(n,i)=>{if(null!=n){if(r.isLink(n)&&"selection"===v&&c&&!We(e)){(0,t.flushSync)((()=>{r.setFocusedKey(n,i)}));let o=Ve(l,n),s=r.getItemProps(n);return void(o&&m.open(o,e,s.href,s.routerOptions))}if(r.setFocusedKey(n,i),r.isLink(n)&&"override"===v)return;e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(n):c&&!We(e)&&r.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(i.getKeyBelow){var d,f,h;let t=null!=r.focusedKey?null===(d=i.getKeyBelow)||void 0===d?void 0:d.call(i,r.focusedKey):null===(f=i.getFirstKey)||void 0===f?void 0:f.call(i);null==t&&s&&(t=null===(h=i.getFirstKey)||void 0===h?void 0:h.call(i,r.focusedKey)),null!=t&&(e.preventDefault(),o(t))}break;case"ArrowUp":if(i.getKeyAbove){var y,b,E;let t=null!=r.focusedKey?null===(y=i.getKeyAbove)||void 0===y?void 0:y.call(i,r.focusedKey):null===(b=i.getLastKey)||void 0===b?void 0:b.call(i);null==t&&s&&(t=null===(E=i.getLastKey)||void 0===E?void 0:E.call(i,r.focusedKey)),null!=t&&(e.preventDefault(),o(t))}break;case"ArrowLeft":if(i.getKeyLeftOf){var K,S,w;let t=null!=r.focusedKey?null===(K=i.getKeyLeftOf)||void 0===K?void 0:K.call(i,r.focusedKey):null;null==t&&s&&(t="rtl"===g?null===(S=i.getFirstKey)||void 0===S?void 0:S.call(i,r.focusedKey):null===(w=i.getLastKey)||void 0===w?void 0:w.call(i,r.focusedKey)),null!=t&&(e.preventDefault(),o(t,"rtl"===g?"first":"last"))}break;case"ArrowRight":if(i.getKeyRightOf){var T,k,P;let t=null!=r.focusedKey?null===(T=i.getKeyRightOf)||void 0===T?void 0:T.call(i,r.focusedKey):null;null==t&&s&&(t="rtl"===g?null===(k=i.getLastKey)||void 0===k?void 0:k.call(i,r.focusedKey):null===(P=i.getFirstKey)||void 0===P?void 0:P.call(i,r.focusedKey)),null!=t&&(e.preventDefault(),o(t,"rtl"===g?"last":"first"))}break;case"Home":if(i.getFirstKey){if(null===r.focusedKey&&e.shiftKey)return;e.preventDefault();let t=i.getFirstKey(r.focusedKey,qe(e));r.setFocusedKey(t),null!=t&&(qe(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):c&&r.replaceSelection(t))}break;case"End":if(i.getLastKey){if(null===r.focusedKey&&e.shiftKey)return;e.preventDefault();let t=i.getLastKey(r.focusedKey,qe(e));r.setFocusedKey(t),null!=t&&(qe(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):c&&r.replaceSelection(t))}break;case"PageDown":if(i.getKeyPageBelow&&null!=r.focusedKey){let t=i.getKeyPageBelow(r.focusedKey);null!=t&&(e.preventDefault(),o(t))}break;case"PageUp":if(i.getKeyPageAbove&&null!=r.focusedKey){let t=i.getKeyPageAbove(r.focusedKey);null!=t&&(e.preventDefault(),o(t))}break;case"a":qe(e)&&"multiple"===r.selectionMode&&!0!==u&&(e.preventDefault(),r.selectAll());break;case"Escape":a||0===r.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),r.clearSelection());break;case"Tab":if(!p){if(e.shiftKey)l.current.focus();else{let e,t,n=ut(l.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&B(e)}break}}},onFocus:e=>{if(r.isFocused)e.currentTarget.contains(e.target)||r.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(r.setFocused(!0),null==r.focusedKey){var t,n;let l=e=>{null!=e&&(r.setFocusedKey(e),c&&!r.isSelected(e)&&r.replaceSelection(e))},a=e.relatedTarget;var o,s;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?l(null!==(o=r.lastSelectedKey)&&void 0!==o?o:null===(t=i.getLastKey)||void 0===t?void 0:t.call(i)):l(null!==(s=r.firstSelectedKey)&&void 0!==s?s:null===(n=i.getFirstKey)||void 0===n?void 0:n.call(i))}else!h&&y.current&&(y.current.scrollTop=b.current.top,y.current.scrollLeft=b.current.left);if(null!=r.focusedKey&&y.current){let e=Ve(l,r.focusedKey);e instanceof HTMLElement&&(e.contains(document.activeElement)||f||B(e),"keyboard"===Ee()&&et(e,{containingElement:l.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||r.setFocused(!1)},onMouseDown(e){y.current===e.target&&e.preventDefault()}},{typeSelectProps:N}=function(t){let{keyboardDelegate:n,selectionManager:r,onTypeSelect:i}=t,l=(0,e.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?e=>{let t=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;var o;if(t&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)){if(" "===t&&l.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),l.search+=t,null!=n.getKeyForSearch){let e=n.getKeyForSearch(l.search,r.focusedKey);null==e&&(e=n.getKeyForSearch(l.search)),null!=e&&(r.setFocusedKey(e),i&&i(e))}clearTimeout(l.timeout),l.timeout=setTimeout((()=>{l.search=""}),1e3)}}:void 0}}}({keyboardDelegate:i,selectionManager:r});return d||(x=C(N,x)),f||(P=null==r.focusedKey?0:-1),{collectionProps:C(x,{tabIndex:P,"data-collection":Ge(r.collection)})}}new ct;const ht=new Set(["id"]),yt=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),vt=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),gt=/^(data-.*)$/;function mt(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,l={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(ht.has(t)||n&&yt.has(t)||r&&vt.has(t)||(null==i?void 0:i.has(t))||gt.test(t))&&(l[t]=e[t]);return l}function bt(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t};e(r),t&&n.stopPropagation()}}function Et(e,t){u((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}let Kt=e.createContext(null);function St(t,n){let{focusProps:r}=ke(t),{keyboardProps:i}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bt(e.onKeyDown),onKeyUp:bt(e.onKeyUp)}}}(t),l=C(r,i),o=function(t){let n=(0,e.useContext)(Kt)||{};Et(n,t);let{ref:r,...i}=n;return i}(n),s=t.isDisabled?{}:o,a=(0,e.useRef)(t.autoFocus);(0,e.useEffect)((()=>{a.current&&n.current&&ot(n.current),a.current=!1}),[n]);let u=t.excludeFromTabOrder?-1:0;return t.isDisabled&&(u=void 0),{focusableProps:C({...l,tabIndex:u},s)}}let wt="default",Tt="",kt=new WeakMap;function Pt(e){if(Q()){if("default"===wt){const t=_(e);Tt=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wt="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";kt.set(e,e.style[t]),e.style[t]="none"}}function Ct(e){if(Q()){if("disabled"!==wt)return;wt="restoring",setTimeout((()=>{lt((()=>{if("restoring"===wt){const t=_(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Tt||""),Tt="",wt="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&kt.has(e)){let t=kt.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),kt.delete(e)}}const xt=e.createContext({register:()=>{}});function Nt(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Mt(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Nt(e,t,"set"),n),n}xt.displayName="PressResponderContext";var Lt=new WeakMap;class Dt{continuePropagation(){Mt(this,Lt,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(this,Nt(this,Lt,"get"))}constructor(e,t,n,r){var i,l,o,s;s={writable:!0,value:void 0},function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,o=Lt),o.set(l,s),Mt(this,Lt,!0);let a=null!==(i=null==r?void 0:r.target)&&void 0!==i?i:n.currentTarget;const u=null==a?void 0:a.getBoundingClientRect();let c,d,f=0,p=null;null!=n.clientX&&null!=n.clientY&&(d=n.clientX,p=n.clientY),u&&(null!=d&&null!=p?(c=d-u.left,f=p-u.top):(c=u.width/2,f=u.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=c,this.y=f}}const Ft=Symbol("linkClicked");function It(n){let{onPress:r,onPressChange:i,onPressStart:l,onPressEnd:o,onPressUp:s,isDisabled:u,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:p,ref:h,...y}=function(t){let n=(0,e.useContext)(xt);if(n){let{register:e,...r}=n;t=C(r,t),e()}return Et(n,t.ref),t}(n),[v,g]=(0,e.useState)(!1),m=(0,e.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:b,removeAllGlobalListeners:E}=Pe(),K=D(((e,t)=>{let n=m.current;if(u||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,l){let n=new Dt("pressstart",t,e);l(n),r=n.shouldStopPropagation}return i&&i(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,g(!0),r})),S=D(((e,t,n=!0)=>{let l=m.current;if(!l.didFirePressStart)return!1;l.didFirePressStart=!1,l.isTriggeringEvent=!0;let s=!0;if(o){let n=new Dt("pressend",t,e);o(n),s=n.shouldStopPropagation}if(i&&i(!1),g(!1),r&&n&&!u){let n=new Dt("press",t,e);r(n),s&&(s=n.shouldStopPropagation)}return l.isTriggeringEvent=!1,s})),w=D(((e,t)=>{let n=m.current;if(u)return!1;if(s){n.isTriggeringEvent=!0;let r=new Dt("pressup",t,e);return s(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),T=D((e=>{let t=m.current;if(t.isPressed&&t.target){t.didFirePressStart&&null!=t.pointerType&&S(Ht(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,E(),p||Ct(t.target);for(let e of t.disposables)e();t.disposables=[]}})),k=D((e=>{f&&T(e)})),P=(0,e.useMemo)((()=>{let e=m.current,n={onKeyDown(t){if(Rt(t.nativeEvent,t.currentTarget)&&Se(t.currentTarget,Te(t.nativeEvent))){var n;zt(Te(t.nativeEvent),t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",i=K(t,"keyboard");let n=t.currentTarget,l=t=>{Rt(t,n)&&!t.repeat&&Se(n,Te(t))&&e.target&&w(Ht(e.target,t),"keyboard")};b(_(t.currentTarget),"keyup",a(l,r),!0)}i&&t.stopPropagation(),t.metaKey&&q()&&(null===(n=e.metaKeyEvents)||void 0===n||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||Se(t.currentTarget,Te(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!Ye.isOpening){let n=!0;if(u&&t.preventDefault(),e.ignoreEmulatedMouseEvents||e.isPressed||"virtual"!==e.pointerType&&!ie(t.nativeEvent)){if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual";n=S(Ht(t.currentTarget,t),r,!0),e.isOverTarget=!1,T(t)}}else{let e=K(t,"virtual"),r=w(t,"virtual"),i=S(t,"virtual");n=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}},r=t=>{var n;if(e.isPressed&&e.target&&Rt(t,e.target)){var r;zt(Te(t),t.key)&&t.preventDefault();let n=Te(t);S(Ht(e.target,t),"keyboard",Se(e.target,Te(t))),E(),"Enter"!==t.key&&At(e.target)&&Se(e.target,n)&&!t[Ft]&&(t[Ft]=!0,Ye(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var i;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{if(0!==n.button||!Se(n.currentTarget,Te(n.nativeEvent)))return;if(i=n.nativeEvent,!ne()&&0===i.width&&0===i.height||1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType)return void(e.pointerType="virtual");var i;e.pointerType=n.pointerType;let l=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,p||Pt(e.target),l=K(n,e.pointerType);let i=Te(n.nativeEvent);"releasePointerCapture"in i&&i.releasePointerCapture(n.pointerId),b(_(n.currentTarget),"pointerup",t,!1),b(_(n.currentTarget),"pointercancel",r,!1)}l&&n.stopPropagation()},n.onMouseDown=t=>{if(Se(t.currentTarget,Te(t.nativeEvent))&&0===t.button){if(d){let n=G(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},n.onPointerUp=t=>{Se(t.currentTarget,Te(t.nativeEvent))&&"virtual"!==e.pointerType&&0===t.button&&w(t,e.pointerType||t.pointerType)},n.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,K(Ht(e.target,t),e.pointerType))},n.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,S(Ht(e.target,t),e.pointerType,!1),k(t))};let t=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(Se(e.target,Te(t))&&null!=e.pointerType){let n=!1,r=setTimeout((()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?T(t):(B(e.target),e.target.click()))}),80);b(t.currentTarget,"click",(()=>n=!0),!0),e.disposables.push((()=>clearTimeout(r)))}else T(t);e.isOverTarget=!1}},r=e=>{T(e)};n.onDragStart=e=>{Se(e.currentTarget,Te(e.nativeEvent))&&T(e)}}else{n.onMouseDown=n=>{if(0===n.button&&Se(n.currentTarget,Te(n.nativeEvent)))if(e.ignoreEmulatedMouseEvents)n.stopPropagation();else{if(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=ie(n.nativeEvent)?"virtual":"mouse",(0,t.flushSync)((()=>K(n,e.pointerType)))&&n.stopPropagation(),d){let t=G(n.target);t&&e.disposables.push(t)}b(_(n.currentTarget),"mouseup",r,!1)}},n.onMouseEnter=t=>{if(!Se(t.currentTarget,Te(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=K(t,e.pointerType)),n&&t.stopPropagation()},n.onMouseLeave=t=>{if(!Se(t.currentTarget,Te(t.nativeEvent)))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=S(t,e.pointerType,!1),k(t)),n&&t.stopPropagation()},n.onMouseUp=t=>{Se(t.currentTarget,Te(t.nativeEvent))&&(e.ignoreEmulatedMouseEvents||0!==t.button||w(t,e.pointerType||"mouse"))};let r=t=>{0===t.button&&(e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&e.target.contains(t.target)&&null!=e.pointerType||T(t),e.isOverTarget=!1))};n.onTouchStart=t=>{if(!Se(t.currentTarget,Te(t.nativeEvent)))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",p||Pt(e.target),K(_t(e.target,t),e.pointerType)&&t.stopPropagation(),b(H(t.currentTarget),"scroll",i,!0))},n.onTouchMove=t=>{if(!Se(t.currentTarget,Te(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=Ot(t.nativeEvent,e.activePointerId),r=!0;n&&Bt(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=K(_t(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=S(_t(e.target,t),e.pointerType,!1),k(_t(e.target,t))),r&&t.stopPropagation()},n.onTouchEnd=t=>{if(!Se(t.currentTarget,Te(t.nativeEvent)))return;if(!e.isPressed)return void t.stopPropagation();let n=Ot(t.nativeEvent,e.activePointerId),r=!0;n&&Bt(n,t.currentTarget)&&null!=e.pointerType?(w(_t(e.target,t),e.pointerType),r=S(_t(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=S(_t(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!p&&Ct(e.target),E()},n.onTouchCancel=t=>{Se(t.currentTarget,Te(t.nativeEvent))&&(t.stopPropagation(),e.isPressed&&T(_t(e.target,t)))};let i=t=>{e.isPressed&&Se(Te(t),e.target)&&T({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};n.onDragStart=e=>{Se(e.currentTarget,Te(e.nativeEvent))&&T(e)}}return n}),[b,u,d,E,p,T,k,S,K,w]);return(0,e.useEffect)((()=>{let e=m.current;return()=>{var t;p||Ct(null!==(t=e.target)&&void 0!==t?t:void 0);for(let t of e.disposables)t();e.disposables=[]}}),[p]),{isPressed:c||v,pressProps:C(y,P)}}function At(e){return"A"===e.tagName&&e.hasAttribute("href")}function Rt(e,t){const{key:n,code:r}=e,i=t,l=i.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||i instanceof H(i).HTMLInputElement&&!Vt(i,n)||i instanceof H(i).HTMLTextAreaElement||i.isContentEditable||("link"===l||!l&&At(i))&&"Enter"!==n)}function Ot(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function _t(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Ht(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function Bt(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return l=r,!((i=n).left>l.right||l.left>i.right||i.top>l.bottom||l.top>i.bottom);var i,l}function zt(e,t){return e instanceof HTMLInputElement?!Vt(e,t):function(e){return!(e instanceof HTMLInputElement||(e instanceof HTMLButtonElement?"submit"===e.type||"reset"===e.type:At(e)))}(e)}const Wt=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Vt(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:Wt.has(e.type)}let Ut=0;const Gt=new Map;function jt(t){let[n,r]=(0,e.useState)();return u((()=>{if(!t)return;let e=Gt.get(t);if(e)r(e.element.id);else{let n="react-aria-description-"+Ut++;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=t,document.body.appendChild(i),e={refCount:0,element:i},Gt.set(t,e)}return e.refCount++,()=>{e&&0==--e.refCount&&(e.element.remove(),Gt.delete(t))}}),[t]),{"aria-describedby":t?n:void 0}}const $t=500;function Yt(t){let{id:n,selectionManager:r,key:i,ref:l,shouldSelectOnPressUp:o,shouldUseVirtualFocus:s,focus:a,isDisabled:u,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=t,p=$e();n=w(n);let h=e=>{if("keyboard"===e.pointerType&&We(e))r.toggleSelection(i);else{if("none"===r.selectionMode)return;if(r.isLink(i)){if("selection"===f&&l.current){let t=r.getItemProps(i);return p.open(l.current,e,t.href,t.routerOptions),void r.setSelectedKeys(r.selectedKeys)}if("override"===f||"none"===f)return}"single"===r.selectionMode?r.isSelected(i)&&!r.disallowEmptySelection?r.toggleSelection(i):r.replaceSelection(i):e&&e.shiftKey?r.extendSelection(i):"toggle"===r.selectionBehavior||e&&(qe(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?r.toggleSelection(i):r.replaceSelection(i)}};(0,e.useEffect)((()=>{i===r.focusedKey&&r.isFocused&&(s?ft(l.current):a?a():document.activeElement!==l.current&&l.current&&ot(l.current))}),[l,i,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),u=u||r.isDisabled(i);let y={};s||u?u&&(y.onMouseDown=e=>{e.preventDefault()}):y={tabIndex:i===r.focusedKey?0:-1,onFocus(e){e.target===l.current&&r.setFocusedKey(i)}};let v=r.isLink(i)&&"override"===f,g=r.isLink(i)&&"selection"!==f&&"none"!==f,m=!u&&r.canSelectItem(i)&&!v,b=(c||g)&&!u,E=b&&("replace"===r.selectionBehavior?!m:!m||r.isEmpty),K=b&&m&&"replace"===r.selectionBehavior,S=E||K,T=(0,e.useRef)(null),k=S&&m,P=(0,e.useRef)(!1),x=(0,e.useRef)(!1),N=e=>{if(c&&c(),g&&l.current){let t=r.getItemProps(i);p.open(l.current,e,t.href,t.routerOptions)}},M={};var L;o?(M.onPressStart=e=>{T.current=e.pointerType,P.current=k,"keyboard"!==e.pointerType||S&&!Jt()||h(e)},d?(M.onPressUp=E?void 0:e=>{"mouse"===e.pointerType&&m&&h(e)},M.onPress=E?N:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&m&&h(e)}):M.onPress=e=>{if(E||K&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!qt())return;N(e)}else"keyboard"!==e.pointerType&&m&&h(e)}):(M.onPressStart=e=>{T.current=e.pointerType,P.current=k,x.current=E,m&&("mouse"===e.pointerType&&!E||"keyboard"===e.pointerType&&(!b||Jt()))&&h(e)},M.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&S&&qt()||"mouse"===e.pointerType&&x.current)&&(S?N(e):m&&h(e))}),y["data-collection"]=(L=r.collection,Ue.get(L)),y["data-key"]=i,M.preventFocusOnPress=s,s&&(M=C(M,{onPressStart(e){"touch"!==e.pointerType&&(r.setFocused(!0),r.setFocusedKey(i))},onPress(e){"touch"===e.pointerType&&(r.setFocused(!0),r.setFocusedKey(i))}}));let{pressProps:D,isPressed:F}=It(M),I=K?e=>{"mouse"===T.current&&(e.stopPropagation(),e.preventDefault(),N(e))}:void 0,{longPressProps:A}=function(t){let{isDisabled:n,onLongPressStart:r,onLongPressEnd:i,onLongPress:l,threshold:o=$t,accessibilityDescription:s}=t;const a=(0,e.useRef)(void 0);let{addGlobalListener:u,removeGlobalListener:c}=Pe(),{pressProps:d}=It({isDisabled:n,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),a.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),_(e.target).activeElement!==e.target&&B(e.target),l&&l({...e,type:"longpress"}),a.current=void 0}),o),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){a.current&&clearTimeout(a.current),!i||"mouse"!==e.pointerType&&"touch"!==e.pointerType||i({...e,type:"longpressend"})}});return{longPressProps:C(d,jt(l&&!n?s:void 0))}}({isDisabled:!k,onLongPress(e){"touch"===e.pointerType&&(h(e),r.setSelectionBehavior("toggle"))}}),R=r.isLink(i)?e=>{Ye.isOpening||e.preventDefault()}:void 0;return{itemProps:C(y,m||E||s?D:{},k?A:{},{onDoubleClick:I,onDragStartCapture:e=>{"touch"===T.current&&P.current&&e.preventDefault()},onClick:R,id:n},s?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:F,isSelected:r.isSelected(i),isFocused:r.isFocused&&r.focusedKey===i,isDisabled:u,allowsSelection:m,hasAction:S}}function qt(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function Jt(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}function Xt(e,t,n){let{key:r,isDisabled:i,shouldSelectOnPressUp:l}=e,{selectionManager:o,selectedKey:s}=t,a=r===s,u=i||t.isDisabled||t.selectionManager.isDisabled(r),{itemProps:c,isPressed:d}=Yt({selectionManager:o,key:r,ref:n,isDisabled:u,shouldSelectOnPressUp:l,linkBehavior:"selection"}),f=Ne(t,r,"tab"),p=Ne(t,r,"tabpanel"),{tabIndex:h}=c,y=t.collection.getItem(r),v=mt(null==y?void 0:y.props,{labelable:!0});delete v.id;let g=function(e){var t;const n=$e().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}(null==y?void 0:y.props),{focusableProps:m}=St({isDisabled:u},n);return{tabProps:C(v,m,g,c,{id:f,"aria-selected":a,"aria-disabled":u||void 0,"aria-controls":a?p:void 0,tabIndex:u?void 0:h,role:"tab"}),isSelected:a,isDisabled:u,isPressed:d}}let Qt=!1,Zt=0;function en(){Qt=!0,setTimeout((()=>{Qt=!1}),50)}function tn(e){"touch"===e.pointerType&&en()}function nn(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",tn):document.addEventListener("touchend",en),Zt++,()=>{Zt--,Zt>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",tn):document.removeEventListener("touchend",en))}}function rn(t,n,r){let i=function(t,n){let r=null==n?void 0:n.isDisabled,[i,l]=(0,e.useState)(!1);return u((()=>{if((null==t?void 0:t.current)&&!r){let e=()=>{if(t.current){let e=ut(t.current,{tabbable:!0});l(!!e.nextNode())}};e();let n=new MutationObserver(e);return n.observe(t.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!r&&i}(r)?void 0:0;var l;const o=Ne(n,null!==(l=t.id)&&void 0!==l?l:null==n?void 0:n.selectedKey,"tabpanel");return{tabPanelProps:C(Le({...t,id:o,"aria-labelledby":Ne(n,null==n?void 0:n.selectedKey,"tab")}),{tabIndex:i,role:"tabpanel","aria-describedby":t["aria-describedby"],"aria-details":t["aria-details"]})}}class ln{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new ln(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=e,this.key=t}}class on{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=(null==n?void 0:n.firstChildKey)?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);var n;return null!==(n=null==t?void 0:t.key)&&void 0!==n?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=(null==e?void 0:e.lastChildKey);)e=this.keyMap.get(e.lastChildKey);var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}UNSTABLE_filter(e){let t=new on,n=null;for(let r of this)if("section"===r.type&&r.hasChildNodes){let i=r.clone(),l=null;for(let n of this.getChildren(r.key))if(sn(n,e,this,t)){let e=n.clone();null==l&&(i.firstChildKey=e.key),null==t.firstKey&&(t.firstKey=i.key),l&&l.parentKey===e.parentKey?(l.nextKey=e.key,e.prevKey=l.key):e.prevKey=null,e.nextKey=null,t.addNode(e),l=e}l&&("header"!==l.type?(i.lastChildKey=l.key,null==n?i.prevKey=null:"section"!==n.type&&"separator"!==n.type||(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,t.addNode(i)):(t.firstKey===i.key&&(t.firstKey=null),t.removeNode(l.key)))}else if("separator"===r.type){let e=r.clone();e.nextKey=null,"section"===(null==n?void 0:n.type)&&(n.nextKey=e.key,e.prevKey=n.key,n=e,t.addNode(e))}else{let i=r.clone();sn(i,e,this,t)&&(null==t.firstKey&&(t.firstKey=i.key),null!=n&&"section"!==n.type&&"separator"!==n.type&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,t.addNode(i),n=i)}if("separator"===(null==n?void 0:n.type)&&null===n.nextKey){let e;null!=n.prevKey&&(e=t.getItem(n.prevKey),e.nextKey=null),t.removeNode(n.key),n=e}return t.lastKey=(null==n?void 0:n.key)||null,t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function sn(e,t,n,r){if("subdialogtrigger"===e.type||"submenutrigger"===e.type){let i=[...n.getChildren(e.key)][0];if(i&&t(i.textValue)){let e=i.clone();return r.addNode(e),!0}return!1}return"header"===e.type||t(e.textValue)}class an{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class un extends an{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof un?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,n,r;let i=this.ownerDocument.getMutableNode(this);var l,o,s,a;if(i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof un?this.parentNode.node.key:null,i.prevKey=null!==(l=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==l?l:null,i.nextKey=null!==(o=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==o?o:null,i.hasChildNodes=!!this.firstChild,i.firstChildKey=null!==(s=null===(n=this.firstChild)||void 0===n?void 0:n.node.key)&&void 0!==s?s:null,i.lastChildKey=null!==(a=null===(r=this.lastChild)||void 0===r?void 0:r.node.key)&&void 0!==a?a:null,(null!=i.colSpan||null!=i.colIndex)&&this.nextSibling){var u,c;let e=(null!==(u=i.colIndex)&&void 0!==u?u:i.index)+(null!==(c=i.colSpan)&&void 0!==c?c:1);e!==this.nextSibling.node.colIndex&&(this.ownerDocument.getMutableNode(this.nextSibling).colIndex=e)}}setProps(e,t,n,r){let i=this.ownerDocument.getMutableNode(this),{value:l,textValue:o,id:s,...a}=e;if(a.ref=t,i.props=a,i.rendered=n,i.render=r,i.value=l,i.textValue=o||("string"==typeof a.children?a.children:"")||e["aria-label"]||"",null!=s&&s!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=s}null!=a.colSpan&&(i.colSpan=a.colSpan),this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new ln(e,"react-aria-"+ ++t.nodeId),this.ownerDocument.startTransaction()}}class cn extends an{get isConnected(){return this.isMounted}createElement(e){return new un(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let t of e)this.addNode(t)}this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof un&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let i=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&i.addNode(e.node);var n,r;this.mutatedNodes.clear(),i.commit(null!==(n=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==n?n:null,null!==(r=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==r?r:null,this.isSSR)}this.collectionMutated=!1}queueUpdate(){if(!(0===this.dirtyNodes.size||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const dn=(0,e.createContext)(!1);function fn(t){if((0,e.useContext)(dn))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(dn.Provider,{value:!0},t.children);return e.createElement("template",{"data-react-aria-hidden":!0},n)}var pn=n(95259);const hn=(0,e.createContext)(!1),yn=(0,e.createContext)(null);function vn(t){if((0,e.useContext)(yn))return t.content;let{collection:n,document:r}=function(t){let[n]=(0,e.useState)((()=>new cn((null==t?void 0:t())||new on))),r=(0,e.useCallback)((e=>n.subscribe(e)),[n]),i=(0,e.useCallback)((()=>{let e=n.getCollection();return n.isSSR&&n.resetAfterSSR(),e}),[n]),l=(0,e.useCallback)((()=>(n.isSSR=!0,n.getCollection())),[n]),o=mn(r,i,l);return u((()=>(n.isMounted=!0,()=>{n.isMounted=!1})),[n]),{collection:o,document:n}}(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(fn,null,e.createElement(yn.Provider,{value:r},t.content)),e.createElement(gn,{render:t.children,collection:n}))}function gn({collection:e,render:t}){return t(e)}const mn="function"==typeof e.useSyncExternalStore?e.useSyncExternalStore:function(t,n,r){let i=b(),l=(0,e.useRef)(i);l.current=i;let o=(0,e.useCallback)((()=>l.current?r():n()),[n,r]);return(0,pn.useSyncExternalStore)(t,o)},bn=(0,e.createContext)(null);const En=(0,e.createContext)(null);function Kn(t){let n=(0,e.useContext)(En),i=((null==n?void 0:n.dependencies)||[]).concat(t.dependencies),l=t.idScope||(null==n?void 0:n.idScope),o=(s={...t,idScope:l,dependencies:i},r({...s,addIdAndValue:!0}));var s;return(0,e.useContext)(yn)&&(o=e.createElement(Sn,null,o)),n=(0,e.useMemo)((()=>({dependencies:i,idScope:l})),[l,...i]),e.createElement(En.Provider,{value:n},o)}function Sn({children:n}){let r=(0,e.useContext)(yn),i=(0,e.useMemo)((()=>e.createElement(yn.Provider,{value:null},e.createElement(hn.Provider,{value:!0},n))),[n]);return b()?e.createElement(bn.Provider,{value:r},i):(0,t.createPortal)(i,r)}function wn(t){const n=e.version.split(".");return parseInt(n[0],10)>=19?t:t?"true":void 0}class Tn{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),n=t,n.nextKey=void 0;var i;this.lastKey=null!==(i=null==n?void 0:n.key)&&void 0!==i?i:null}}class kn extends Set{constructor(e,t,n){super(e),e instanceof kn?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=null!=t?t:null,this.currentKey=null!=n?n:null)}}function Pn(t,n,r){let[i,l]=(0,e.useState)(t||n),o=(0,e.useRef)(void 0!==t),s=void 0!==t;(0,e.useEffect)((()=>{let e=o.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),o.current=s}),[s]);let a=s?t:i,u=(0,e.useCallback)(((e,...t)=>{let n=(e,...t)=>{r&&(Object.is(a,e)||r(e,...t)),s||(a=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),l(((r,...i)=>{let l=e(s?a:r,...i);return n(l,...t),s?r:l}))):(s||l(e),n(e,...t))}),[s,a,r]);return[a,u]}function Cn(e,t){return e?"all"===e?"all":new kn(e):t}function xn(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...Nn(e,t),t],i=[...Nn(e,n),n],l=r.slice(0,i.length).findIndex(((e,t)=>e!==i[t]));return-1!==l?(t=r[l],n=i[l],t.index-n.index):r.findIndex((e=>e===n))>=0?1:(i.findIndex((e=>e===t)),-1)}function Nn(e,t){let n=[],r=t;for(;null!=(null==r?void 0:r.parentKey);)r=e.getItem(r.parentKey),r&&n.unshift(r);return n}class Mn{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xn(this.collection,n,e)<0)&&(e=n)}var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&xn(this.collection,n,e)>0)&&(e=n)}var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t,n=this.getKey(e);if(null!=n){if("all"===this.state.selectedKeys)t=new kn([n],n,n);else{let e=this.state.selectedKeys;var r;let l=null!==(r=e.anchorKey)&&void 0!==r?r:n;var i;t=new kn(e,l,n);for(let r of this.getKeyRange(l,null!==(i=e.currentKey)&&void 0!==i?i:n))t.delete(r);for(let e of this.getKeyRange(n,l))this.canSelectItem(e)&&t.add(e)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?xn(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(i),i===t)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);let t=this.getKey(e);if(null==t)return;let n=new kn("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;let t=this.getKey(e);if(null==t)return;let n=this.canSelectItem(t)?new kn([t],t,t):new kn;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new kn;for(let n of e){let e=this.getKey(n);if(null!=e&&(t.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){var r;let s=this.collection.getItem(n);var i;"item"===(null==s?void 0:s.type)&&e.push(n),(null==s?void 0:s.hasChildNodes)&&(this.allowsCellSelection||"item"!==s.type)&&t(null!==(i=null===(l=s,r=function(e){let t=0;for(let n of e){if(0===t)return n;t++}}("function"==typeof(o=this.collection).getChildren?o.getChildren(l.key):l.childNodes))||void 0===r?void 0:r.key)&&void 0!==i?i:null)}n=this.collection.getKeyAfter(n)}var l,o};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new kn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}withCollection(e){return new Mn(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}class Ln{build(e,t){return this.context=t,Dn((()=>this.iterateCollection(e)))}*iterateCollection(t){let{children:n,items:r}=t;if(e.isValidElement(n)&&n.type===e.Fragment)yield*this.iterateCollection({children:n.props.children,items:r});else if("function"==typeof n){if(!r)throw new Error("props.children was a function but props.items is missing");let e=0;for(let t of r)yield*this.getFullNode({value:t,index:e},{renderer:n}),e++}else{let t=[];e.Children.forEach(n,(e=>{e&&t.push(e)}));let r=0;for(let e of t){let t=this.getFullNode({element:e,index:r},{});for(let e of t)r++,yield e}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let i=t.value;if(null!=i){var l;let e=null!==(l=i.key)&&void 0!==l?l:i.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(t,n,r,i){if(e.isValidElement(t.element)&&t.element.type===e.Fragment){let o=[];var l;e.Children.forEach(t.element.props.children,(e=>{o.push(e)}));let s=null!==(l=t.index)&&void 0!==l?l:0;for(const e of o)yield*this.getFullNode({element:e,index:s++},n,r,i);return}let o=t.element;if(!o&&t.value&&n&&n.renderer){let e=this.cache.get(t.value);if(e&&(!e.shouldInvalidate||!e.shouldInvalidate(this.context)))return e.index=t.index,e.parentKey=i?i.key:null,void(yield e);o=n.renderer(t.value)}if(e.isValidElement(o)){let e=o.type;if("function"!=typeof e&&"function"!=typeof e.getCollectionNode){let e=o.type;throw new Error(`Unknown element <${e}> in collection.`)}let l=e.getCollectionNode(o.props,this.context);var s;let f=null!==(s=t.index)&&void 0!==s?s:0,p=l.next();for(;!p.done&&p.value;){let e=p.value;var a;t.index=f;let s=null!==(a=e.key)&&void 0!==a?a:null;null==s&&(s=e.element?null:this.getKey(o,t,n,r));let h=[...this.getFullNode({...e,key:s,index:f,wrapper:Fn(t.wrapper,e.wrapper)},this.getChildState(n,e),r?`${r}${o.key}`:o.key,i)];for(let n of h){var u,c,d;if(n.value=null!==(c=null!==(u=e.value)&&void 0!==u?u:t.value)&&void 0!==c?c:null,n.value&&this.cache.set(n.value,n),t.type&&n.type!==t.type)throw new Error(`Unsupported type <${In(n.type)}> in <${In(null!==(d=null==i?void 0:i.type)&&void 0!==d?d:"unknown parent type")}>. Only <${In(t.type)}> is supported.`);f++,yield n}p=l.next(h)}return}if(null==t.key||null==t.type)return;let f=this;var p,h;let y={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:null!==(p=t.value)&&void 0!==p?p:null,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:null!==(h=t.textValue)&&void 0!==h?h:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Dn((function*(){if(!t.hasChildNodes||!t.childNodes)return;let e=0;for(let r of t.childNodes()){null!=r.key&&(r.key=`${y.key}${r.key}`);let t=f.getFullNode({...r,index:e},f.getChildState(n,r),y.key,y);for(let n of t)e++,yield n}}))};yield y}constructor(){this.cache=new WeakMap}}function Dn(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Fn(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function In(e){return e[0].toUpperCase()+e.slice(1)}function An(t){let{filter:n,layoutDelegate:r}=t,i=function(t){let{selectionMode:n="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:i,selectionBehavior:l="toggle",disabledBehavior:o="all"}=t,s=(0,e.useRef)(!1),[,a]=(0,e.useState)(!1),u=(0,e.useRef)(null),c=(0,e.useRef)(null),[,d]=(0,e.useState)(null),f=(0,e.useMemo)((()=>Cn(t.selectedKeys)),[t.selectedKeys]),p=(0,e.useMemo)((()=>Cn(t.defaultSelectedKeys,new kn)),[t.defaultSelectedKeys]),[h,y]=Pn(f,p,t.onSelectionChange),v=(0,e.useMemo)((()=>t.disabledKeys?new Set(t.disabledKeys):new Set),[t.disabledKeys]),[g,m]=(0,e.useState)(l);"replace"===l&&"toggle"===g&&"object"==typeof h&&0===h.size&&m("replace");let b=(0,e.useRef)(l);return(0,e.useEffect)((()=>{l!==b.current&&(m(l),b.current=l)}),[l]),{selectionMode:n,disallowEmptySelection:r,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return s.current},setFocused(e){s.current=e,a(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e,c.current=t,d(e)},selectedKeys:h,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,h)||y(e)},disabledKeys:v,disabledBehavior:o}}(t),l=(0,e.useMemo)((()=>t.disabledKeys?new Set(t.disabledKeys):new Set),[t.disabledKeys]),o=(0,e.useCallback)((e=>new Tn(n?n(e):e)),[n]),s=(0,e.useMemo)((()=>({suppressTextValueWarning:t.suppressTextValueWarning})),[t.suppressTextValueWarning]),a=function(t,n,r){let i=(0,e.useMemo)((()=>new Ln),[]),{children:l,items:o,collection:s}=t;return(0,e.useMemo)((()=>{if(s)return s;let e=i.build({children:l,items:o},r);return n(e)}),[i,l,o,s,r,n])}(t,o,s),u=(0,e.useMemo)((()=>new Mn(a,i,{layoutDelegate:r})),[a,i,r]);return function(t,n){const r=(0,e.useRef)(null);(0,e.useEffect)((()=>{if(null!=n.focusedKey&&!t.getItem(n.focusedKey)&&r.current){const c=r.current.getItem(n.focusedKey),d=[...r.current.getKeys()].map((e=>{const t=r.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),f=[...t.getKeys()].map((e=>{const n=t.getItem(e);return"item"===(null==n?void 0:n.type)?n:null})).filter((e=>null!==e));var e,i;const p=(null!==(e=null==d?void 0:d.length)&&void 0!==e?e:0)-(null!==(i=null==f?void 0:f.length)&&void 0!==i?i:0);var l,o,s;let h=Math.min(p>1?Math.max((null!==(l=null==c?void 0:c.index)&&void 0!==l?l:0)-p+1,0):null!==(o=null==c?void 0:c.index)&&void 0!==o?o:0,(null!==(s=null==f?void 0:f.length)&&void 0!==s?s:0)-1),y=null,v=!1;for(;h>=0;){if(!n.isDisabled(f[h].key)){y=f[h];break}var a,u;h<f.length-1&&!v?h++:(v=!0,h>(null!==(a=null==c?void 0:c.index)&&void 0!==a?a:0)&&(h=null!==(u=null==c?void 0:c.index)&&void 0!==u?u:0),h--)}n.setFocusedKey(y?y.key:null)}r.current=t}),[t,n])}(a,u),{collection:a,disabledKeys:l,selectionManager:u}}function Rn(t){var n,r;let i=function(t){var n;let[r,i]=Pn(t.selectedKey,null!==(n=t.defaultSelectedKey)&&void 0!==n?n:null,t.onSelectionChange),l=(0,e.useMemo)((()=>null!=r?[r]:[]),[r]),{collection:o,disabledKeys:s,selectionManager:a}=An({...t,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:l,onSelectionChange:e=>{if("all"===e)return;var n;let l=null!==(n=e.values().next().value)&&void 0!==n?n:null;l===r&&t.onSelectionChange&&t.onSelectionChange(l),i(l)}}),u=null!=r?o.getItem(r):null;return{collection:o,disabledKeys:s,selectionManager:a,selectedKey:r,setSelectedKey:i,selectedItem:u}}({...t,suppressTextValueWarning:!0,defaultSelectedKey:null!==(r=null!==(n=t.defaultSelectedKey)&&void 0!==n?n:On(t.collection,t.disabledKeys?new Set(t.disabledKeys):new Set))&&void 0!==r?r:void 0}),{selectionManager:l,collection:o,selectedKey:s}=i,a=(0,e.useRef)(s);return(0,e.useEffect)((()=>{let e=s;null!=t.selectedKey||!l.isEmpty&&null!=e&&o.getItem(e)||(e=On(o,i.disabledKeys),null!=e&&l.setSelectedKeys([e])),(null!=e&&null==l.focusedKey||!l.isFocused&&e!==a.current)&&l.setFocusedKey(e),a.current=e})),{...i,isDisabled:t.isDisabled||!1}}function On(e,t){let n=null;if(e){var r,i,l,o;for(n=e.getFirstKey();null!=n&&(t.has(n)||(null===(i=e.getItem(n))||void 0===i||null===(r=i.props)||void 0===r?void 0:r.isDisabled))&&n!==e.getLastKey();)n=e.getKeyAfter(n);null!=n&&(t.has(n)||(null===(o=e.getItem(n))||void 0===o||null===(l=o.props)||void 0===l?void 0:l.isDisabled))&&n===e.getLastKey()&&(n=e.getFirstKey())}return n}const Hn=(0,e.createContext)(null),Bn=(0,e.createContext)(null),zn=(0,e.forwardRef)((function(t,n){[t,n]=function(t,n,r){let i=L(r,t.slot)||{},{ref:l,...o}=i,a=s((0,e.useMemo)((()=>function(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}(n,l)),[n,l])),u=C(o,t);return"style"in o&&o.style&&"style"in t&&t.style&&("function"==typeof o.style||"function"==typeof t.style?u.style=e=>{let n="function"==typeof o.style?o.style(e):o.style,r={...e.defaultStyle,...n},i="function"==typeof t.style?t.style({...e,defaultStyle:r}):t.style;return{...r,...i}}:u.style={...o.style,...t.style}),[u,a]}(t,n,Hn);let{children:r,orientation:i="horizontal"}=t;return r=(0,e.useMemo)((()=>"function"==typeof r?r({orientation:i,defaultChildren:null}):r),[r,i]),e.createElement(vn,{content:r},(r=>e.createElement(Wn,{props:t,collection:r,tabsRef:n})))}));function Wn({props:t,tabsRef:n,collection:r}){let{orientation:i="horizontal"}=t,l=Rn({...t,collection:r,children:void 0}),{focusProps:o,isFocused:s,isFocusVisible:a}=Ce({within:!0}),u=(0,e.useMemo)((()=>({orientation:i,isFocusWithin:s,isFocusVisible:a})),[i,s,a]),c=M({...t,defaultClassName:"react-aria-Tabs",values:u});return e.createElement("div",{...mt(t),...o,...c,ref:n,slot:t.slot||void 0,"data-focused":s||void 0,"data-orientation":i,"data-focus-visible":a||void 0,"data-disabled":l.isDisabled||void 0},e.createElement(N,{values:[[Hn,t],[Bn,l]]},c.children))}const Vn=(0,e.forwardRef)((function(t,n){return(0,e.useContext)(Bn)?e.createElement(Un,{props:t,forwardedRef:n}):e.createElement(Kn,t)}));function Un({props:t,forwardedRef:n}){let r=(0,e.useContext)(Bn),{CollectionRoot:i}=(0,e.useContext)(o),{orientation:l="horizontal",keyboardActivation:a="automatic"}=L(Hn),u=s(n),{tabListProps:c}=function(t,n,r){let{orientation:i="horizontal",keyboardActivation:l="automatic"}=t,{collection:o,selectionManager:s,disabledKeys:a}=n,{direction:u}=ze(),c=(0,e.useMemo)((()=>new Me(o,u,i,a)),[o,a,i,u]),{collectionProps:d}=pt({ref:r,selectionManager:s,keyboardDelegate:c,selectOnFocus:"automatic"===l,disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),f=w();return xe.set(n,f),{tabListProps:{...C(d,Le({...t,id:f})),role:"tablist","aria-orientation":i,tabIndex:void 0}}}({...t,orientation:l,keyboardActivation:a},r,u),d=M({...t,children:null,defaultClassName:"react-aria-TabList",values:{orientation:l,state:r}}),f=mt(t);return delete f.id,e.createElement("div",{...f,...c,ref:u,...d,"data-orientation":l||void 0},e.createElement(i,{collection:r.collection,persistedKeys:(p=r.selectionManager.focusedKey,(0,e.useMemo)((()=>null!=p?new Set([p]):null),[p]))}));var p}const Gn=function(t,n){let r=({node:e})=>n(e.props,e.props.ref,e),i=(0,e.forwardRef)(((t,i)=>{let l=(0,e.useContext)(Kt);if(!(0,e.useContext)(hn)){if(n.length>=3)throw new Error(n.name+" cannot be rendered outside a collection.");return n(t,i)}return function(t,n,r,i,l,o){let s=(0,e.useCallback)((e=>{null==e||e.setProps(n,r,i,o)}),[n,r,i,o]),a=(0,e.useContext)(bn);if(a){let s=a.ownerDocument.nodesByProps.get(n);return s||(s=a.ownerDocument.createElement(t),s.setProps(n,r,i,o),a.appendChild(s),a.ownerDocument.updateCollection(),a.ownerDocument.nodesByProps.set(n,s)),l?e.createElement(bn.Provider,{value:s},l):null}return e.createElement(t,{ref:s},l)}("item",t,i,"children"in t?t.children:null,null,(t=>e.createElement(Kt.Provider,{value:l},e.createElement(r,{node:t}))))}));return i.displayName=n.name,i}(0,((t,n,r)=>{let i=(0,e.useContext)(Bn),l=s(n),{tabProps:o,isSelected:a,isDisabled:u,isPressed:c}=Xt({key:r.key,...t},i,l),{focusProps:d,isFocused:f,isFocusVisible:p}=Ce(),{hoverProps:h,isHovered:y}=function(t){let{onHoverStart:n,onHoverChange:r,onHoverEnd:i,isDisabled:l}=t,[o,s]=(0,e.useState)(!1),a=(0,e.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,e.useEffect)(nn,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=Pe(),{hoverProps:d,triggerHoverEnd:f}=(0,e.useMemo)((()=>{let e=(e,i)=>{if(a.pointerType=i,l||"touch"===i||a.isHovered||!e.currentTarget.contains(e.target))return;a.isHovered=!0;let o=e.currentTarget;a.target=o,u(_(e.target),"pointerover",(e=>{a.isHovered&&a.target&&!Se(a.target,e.target)&&t(e,e.pointerType)}),{capture:!0}),n&&n({type:"hoverstart",target:o,pointerType:i}),r&&r(!0),s(!0)},t=(e,t)=>{let n=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&n&&(a.isHovered=!1,c(),i&&i({type:"hoverend",target:n,pointerType:t}),r&&r(!1),s(!1))},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{Qt&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!l&&e.currentTarget.contains(e.target)&&t(e,e.pointerType)}):(o.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{a.ignoreEmulatedMouseEvents||Qt||e(t,"mouse"),a.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!l&&e.currentTarget.contains(e.target)&&t(e,"mouse")}),{hoverProps:o,triggerHoverEnd:t}}),[n,r,i,l,a,u,c]);return(0,e.useEffect)((()=>{l&&f({currentTarget:a.target},a.pointerType)}),[l]),{hoverProps:d,isHovered:o}}({isDisabled:u,onHoverStart:t.onHoverStart,onHoverEnd:t.onHoverEnd,onHoverChange:t.onHoverChange}),v=M({...t,id:void 0,children:r.rendered,defaultClassName:"react-aria-Tab",values:{isSelected:a,isDisabled:u,isFocused:f,isFocusVisible:p,isPressed:c,isHovered:y}}),g=r.props.href?"a":"div";return e.createElement(g,{...C(o,d,h,v),ref:l,"data-selected":a||void 0,"data-disabled":u||void 0,"data-focused":f||void 0,"data-focus-visible":p||void 0,"data-pressed":c||void 0,"data-hovered":y||void 0},v.children)})),jn=function(t){let n=(n,r)=>(0,e.useContext)(dn)?null:t(n,r);return n.displayName=t.displayName||t.name,(0,e.forwardRef)(n)}((function(t,n){const r=(0,e.useContext)(Bn);let l=s(n),{tabPanelProps:a}=rn(t,r,l),{focusProps:u,isFocused:c,isFocusVisible:d}=Ce(),f=r.selectedKey===t.id,p=M({...t,defaultClassName:"react-aria-TabPanel",values:{isFocused:c,isFocusVisible:d,isInert:!f,state:r}});if(!f&&!t.shouldForceMount)return null;let h=mt(t);delete h.id;let y=f?C(h,a,u,p):p;return e.createElement("div",{...y,ref:l,"data-focused":c||void 0,"data-focus-visible":d||void 0,inert:wn(!f),"data-inert":f?void 0:"true"},e.createElement(N,{values:[[Hn,null],[Bn,null]]},e.createElement(o.Provider,{value:i},p.children)))})),$n=window.wp.i18n;var Yn=n(32485),qn=n.n(Yn);const Jn=({as:t="button",className:n,...r})=>(0,e.createElement)(t,{className:qn()("dApyNdcpLpofsZgWImEG",n),...r}),Xn=({as:t="div",className:n,...r})=>(0,e.createElement)(t,{className:qn()("ik0a6zqiSJOahiBuTebx",n),...r}),Qn=({name:t,description:n,icon:r,image:i,features:l,actionLink:o,actionText:s})=>(0,e.createElement)(Xn,{as:"article",className:"rkFb2Vf1CD4OIkYmz14h"},(0,e.createElement)("div",{className:"ItXL2thGy909KgoAvRSg"},(0,e.createElement)("img",{src:r,alt:""}),(0,e.createElement)("h3",{className:"gvLTEkNZSFQouOguKpow"},t)),(0,e.createElement)("img",{className:"ZNHzNRkCt2133LlpZdh3",src:i,alt:""}),(0,e.createElement)("p",{className:"nwNkPL18xZs4dzGKc8Nk"},n),(0,e.createElement)("ul",{className:"vbFBr3lummgAZUJT1HPz"},l.map((t=>(0,e.createElement)("li",{key:t,className:"VgNdPxB9dRsGhlrBPGLs"},(0,e.createElement)("svg",{className:"ZJs3DpVJDZQQD8NXxr70",viewBox:"0 0 16 12",preserveAspectRatio:"xMidYMid meet"},(0,e.createElement)("use",{href:"#give-in-plugin-upsells-checkmark"})),t)))),(0,e.createElement)(Jn,{as:"a",href:o,rel:"noopener",target:"_blank",className:"TW17CKgiZvSibQhtscds"},s)),Zn=({heading:t,description:n,className:r=null})=>(0,e.createElement)("div",{className:qn()("hMq1riS0ksNDSl7mt3NW",r)},(0,e.createElement)("h2",{className:"Z3RAy7UNeP2e8QH08TlC"},t),(0,e.createElement)("p",{className:"jye4BpWuLM4G3rBy39kA"},n)),{addonButtonCaption:er,addons:tr,description:nr,heading:rr}=window.GiveAddons.mustHaveAddons,ir=()=>(0,e.createElement)("article",null,(0,e.createElement)(Zn,{heading:rr,description:nr}),(0,e.createElement)("ul",{className:"r0biw3eCWjMPRxddGImK"},tr.map((({name:t,description:n,url:r,icon:i,image:l,features:o})=>(0,e.createElement)("li",{key:t},(0,e.createElement)(Qn,{name:t,description:n,icon:i,image:l,features:o,actionLink:r,actionText:er})))))),lr=({name:t,description:n,image:r,actionLink:i,actionText:l})=>(0,e.createElement)(Xn,{as:"article",className:"qz250zkyCPUfc7NQjPnW"},(0,e.createElement)("img",{className:"p47qyEEySu9SnjIryn92",src:r,alt:""}),(0,e.createElement)("h3",{className:"GLheWBYtaniuzrbN9arD"},t),(0,e.createElement)("p",{className:"lGM2dEonMQ9WUy3339Oc"},n),(0,e.createElement)(Jn,{as:"a",href:i,rel:"noopener",target:"_blank",className:"Zxn6Q970VTWu8eY7Agfc"},l)),{heading:or,description:sr,addons:ar,addonButtonCaption:ur,allAddonsUrl:cr}=window.GiveAddons.additionalAddons,dr=()=>(0,e.createElement)("article",null,(0,e.createElement)(Zn,{heading:or,description:sr}),(0,e.createElement)("ul",{className:"SGSdmGKAlnKGXaR7mecy"},ar.map((({name:t,image:n,description:r,url:i})=>(0,e.createElement)("li",{key:t},(0,e.createElement)(lr,{name:t,description:r,image:n,actionText:ur,actionLink:i}))))),(0,e.createElement)("div",{className:"N9li2AsHtThKo15rYlC2"},(0,e.createElement)("p",{className:"LbLRiQKr4Wx40jiOywCH",dangerouslySetInnerHTML:{__html:(0,$n.__)("Didn’t find what you were looking for?<br> View the entire catalog!","give")}}),(0,e.createElement)(Jn,{as:"a",href:cr,rel:"noopener",target:"_blank",className:"eWb2wXzpavogJaVNnHsg"},(0,$n.__)("View All Add-ons","give")))),fr=window.lodash;function pr(e){let t=!1;return e.replaceAll("**",(()=>(t=!t,t?"<strong>":"</strong>")))}function hr(e){let t=!1;return e.replaceAll("**",(()=>(t=!t,t?"<em>":"</em>")))}const yr=e=>`${window.GiveAddons.assetsUrl}${e}`,vr=({name:t,description:n,actionText:r,actionLink:i,icon:l,includes:o,savingsPercentage:s,isMostPopular:a})=>{const u=(0,e.useMemo)((()=>`${(0,fr.kebabCase)(t)}-includes-label`),[t]);return(0,e.createElement)(Xn,{as:"article",className:"JFoaKtMZlqsC2EmNXufz"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"WxazwKC4S8t_mgg3UaHp"},(0,e.createElement)("h3",{className:"YldCiBPx0AeJGecH3gBp"},(0,e.createElement)("img",{className:"I6a55bMbcmGEHkKzYJRJ",src:l,alt:""}),t),a&&(0,e.createElement)("div",{className:"mOshJG5aQxVzmh5XEnSw"},"Most Popular")),(0,e.createElement)("p",{className:"CLi9ojZt5Fe19Y4q49_T",dangerouslySetInnerHTML:{__html:pr(n)}}),(0,e.createElement)("div",{className:"lT4fXd8OLDya9jRLjcY4"},(0,e.createElement)(Jn,{as:"a",href:i,rel:"noopener",target:"_blank",className:"yDVKiBYlOJYH9Pe4Bu5_"},r),(0,e.createElement)("p",{className:"mkRTAslxYVCNS3QHxEob"},"Save over ",s,"%"))),(0,e.createElement)("aside",{"aria-labelledby":u,className:"I0lH4T6edPc9KeM1Y7kK"},(0,e.createElement)("h4",{id:u,className:"VGH5vY2JwOlr8xcinJbQ"},(0,e.createElement)("span",{className:"screen-reader-text"},t," "),"Includes"),(0,e.createElement)("ul",{className:"s7mPHMIOUKBNW6lXmq36"},o.map((t=>(0,e.createElement)("li",{key:t.feature,className:"uhMxavrPSJC53vu81FSu"},t.icon&&(0,e.createElement)("img",{src:t.icon,alt:"",className:"QtLJPdUmBPyEmuZHqQvL"}),t.link?(0,e.createElement)("a",{href:t.link,target:"_blank",rel:"noopener",dangerouslySetInnerHTML:{__html:hr(t.feature)}}):(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:hr(t.feature)}})))))))},{heading:gr,description:mr,plansButtonCaption:br,plans:Er}=window.GiveAddons.pricingPlans,Kr=["Plus Plan","Pro Plan","Basic Plan","Agency Plan"],Sr=Er.slice().sort(((e,t)=>Kr.indexOf(e.name)-Kr.indexOf(t.name))),wr=()=>(0,e.createElement)("article",null,(0,e.createElement)(Zn,{heading:gr,description:mr}),(0,e.createElement)("ul",{className:"CcMy0RIgqRzrAG_DwLh3"},Sr.map((t=>(0,e.createElement)("li",{key:t.name},(0,e.createElement)(vr,{name:t.name,description:t.description,actionText:br,actionLink:t.url,icon:t.icon,savingsPercentage:t.savingsPercentage,includes:t.includes,isMostPopular:t.mostPopular}))))));function Tr({as:t="button",text:n,className:r,shadow:i=!1,...l}){const o=qn()("NqOCrcYwYs9o5V64hvyO",i&&"iLK8cjSi7BqH03mqKKDg",r);return"input"===t?(0,e.createElement)("input",{type:"submit",value:n,className:o,...l}):(0,e.createElement)(t,{type:"submit",className:o,...l},n)}async function kr(e){return(await fetch(giveFreeAddonModal.apiRoot,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json",Accept:"application/json","X-WP-Nonce":giveFreeAddonModal.nonce},body:JSON.stringify({reason:e})})).ok}const Pr="iRGGnkSS9DQqiGN_5N1d",Cr="zPBGhjX6f2MMoK1d8YKd",xr="eIxM838W6hihWme7E_al",{heading:Nr,description:Mr,reports:Lr,form:Dr}=window.GiveAddons.freeAddon,{siteUrl:Fr,siteName:Ir}=window.GiveAddons,Ar=()=>{const{userSubscribed:t,hasSubscriptionError:n,subscribeUser:r}=function(){const[t,n]=(0,e.useState)(!1),[r,i]=(0,e.useState)(!1),l=(0,e.useCallback)((async(e,t,r,l)=>{try{(await fetch("https://connect.givewp.com/activecampaign/subscribe/free-add-on",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({first_name:e,email:t,website_url:r,website_name:l})})).ok?(n(!0),kr("subscribed")):i(!0)}catch(e){i(!0)}}),[n,i]);return{userSubscribed:t,hasSubscriptionError:r,subscribeUser:l,rejectOffer:()=>kr("rejected")}}(),i=(0,e.useRef)(),l=(0,e.useRef)();return(0,e.createElement)("article",{className:"M7BEB3tJ1kUDIY8wu0lu"},(0,e.createElement)(Zn,{heading:Nr,description:Mr}),(0,e.createElement)(Xn,{as:"article",className:qn()(Pr,"yr4rs9Sj1ywgVg2E0o0R")},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:xr},(0,e.createElement)("h3",{className:"nd0Tkz5G36o8gWNOkep_"},(0,e.createElement)("img",{className:Cr,src:Lr.icon,alt:Lr.heading}),Lr.heading)),(0,e.createElement)("div",{className:"q8dqnE_1fOdeXYtjRmLS"},Lr.description.map(((t,n)=>(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:pr(t)},key:n}))))),(0,e.createElement)("aside",{className:"KvUtn0SEpzvlezKJqs4l"},(0,e.createElement)("h4",null,Lr.highlights.heading),Lr.highlights.items.map((({icon:t,text:n},r)=>(0,e.createElement)("div",{className:xr,key:r},(0,e.createElement)("img",{className:Cr,src:t,alt:"Icon"}),(0,e.createElement)("strong",null,n)))))),(0,e.createElement)(Zn,{heading:Dr.heading,className:"PtRsocYlCcOgcbKRjcs4"}),(0,e.createElement)(Xn,{className:qn()(Pr,"c3NGc0WcQhkdCUCFIk3H")},t?(0,e.createElement)("span",{className:"gY6JT8N3HV8R_QrsxsdC"},Dr.submissionConfirmation):(0,e.createElement)(e.Fragment,null,n&&(0,e.createElement)("div",{className:"TmTovd7o7XviQx1Jj5yo"},"There was an issue submitting your information. Please try again. If the problem persists, try refreshing the page. If it still doesn't work, please"," ",(0,e.createElement)("a",{href:"https://givewp.com/support",target:"_blank"},"contact support.")),(0,e.createElement)("form",{onSubmit:async e=>{e.preventDefault(),await r(i.current.value,l.current.value,Fr,Ir)}},(0,e.createElement)("div",{className:"Dg7aynLFRX5ld6r5lAgh"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,"First Name"),(0,e.createElement)("input",{type:"text",name:"firstName",required:!0,ref:i})),(0,e.createElement)("label",null,(0,e.createElement)("span",null,"Email Address"),(0,e.createElement)("input",{type:"email",name:"email",required:!0,ref:l}))),(0,e.createElement)(Tr,{as:"input",text:Dr.submitButton,shadow:!0})),(0,e.createElement)("em",{className:"sN2Jlgb_oViD_1do8tAV"},Dr.disclaimer))))},Rr="Wbn0cQ2Krw33d5U0VsNe",Or=new URLSearchParams(window.location.search),_r=parseInt(Or.get("tab"))||0;(0,t.render)((0,e.createElement)((function({startingTab:t=0}){const[n,r]=(0,e.useState)(t),i=(0,e.useMemo)((()=>["images/addons-admin-page-decor-1.png","images/addons-admin-page-decor-2.png","images/addons-admin-page-decor-3.png","images/addons-admin-page-decor-4.png"].map(yr)),[]);return(0,e.createElement)(zn,{as:"article",style:{"--decor":`url("${i[n]}")`},className:"y9oZuZl7ThT0g1NRRALw",index:n,onChange:r},(0,e.createElement)("div",{className:"Aa4WzMRy7RbtQ_hn4Kry"},(0,e.createElement)("div",{className:Rr},(0,e.createElement)("h1",null,(0,e.createElement)("a",{href:"https://givewp.com",target:"_blank",rel:"noopener"},(0,e.createElement)("img",{className:"dxQY8F0hUBzAlat9BWHW",src:yr("images/givewp-logo.png"),alt:(0,$n.__)("GiveWP","give")}))),(0,e.createElement)("aside",{className:"OtdH_l2FB6W8PzBxBfQ8",dangerouslySetInnerHTML:{__html:(0,$n.sprintf)(/* translators: 1: Text before anchor html tag 2: Open anchor html tag 3: Website name 4: Close anchor tag*/ "%1$s %2$s%3$s%4$s",(0,$n.__)("This page is loaded from","give"),'<a href="https://givewp.com" rel="noopener" target="_blank">',(0,$n.__)("GiveWP.com","give"),"</a>")}}),(0,e.createElement)(Vn,{className:"eEfDShf3Nc8zqJ8mb0ng"},(0,e.createElement)(Gn,{id:"tab-1"},(0,$n.__)("View Pricing Plans","give")),(0,e.createElement)(Gn,{id:"tab-2"},(0,$n.__)("Must Have Add-ons","give")),(0,e.createElement)(Gn,{id:"tab-3"},(0,$n.__)("Additional Add-ons","give")),(0,e.createElement)(Gn,{id:"tab-4"},(0,$n.__)("Get a Free Add-on!","give"))))),(0,e.createElement)("div",{className:Rr},(0,e.createElement)(jn,{id:"tab-1"},(0,e.createElement)(wr,null)),(0,e.createElement)(jn,{id:"tab-2"},(0,e.createElement)(ir,null)),(0,e.createElement)(jn,{id:"tab-3"},(0,e.createElement)(dr,null)),(0,e.createElement)(jn,{id:"tab-4"},(0,e.createElement)(Ar,null))))}),{startingTab:_r}),document.getElementById(window.GiveAddons.containerId))})()})();